Tests for module 'tanf'.
[gnulib.git] / ChangeLog
1 2011-10-08  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'tanf'.
4         * modules/tanf-tests: New file.
5         * tests/test-tanf.c: New file.
6
7         New module 'tanf'.
8         * lib/math.in.h (tanf): New declaration.
9         * lib/tanf.c: New file.
10         * m4/tanf.m4: New file.
11         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
12         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
13         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
14         * modules/tanf: New file.
15         * tests/test-math-c++.cc: Check the declaration of tanf.
16         * doc/posix-functions/tanf.texi: Mention the new module.
17
18         tan: Use a .m4 file.
19         * m4/tan.m4: New file.
20         * modules/tan (Files): Add it.
21         (configure.ac): Just invoke gl_FUNC_TAN.
22
23 2011-10-08  Bruno Haible  <bruno@clisp.org>
24
25         Tests for module 'cosf'.
26         * modules/cosf-tests: New file.
27         * tests/test-cosf.c: New file.
28
29         New module 'cosf'.
30         * lib/math.in.h (cosf): New declaration.
31         * lib/cosf.c: New file.
32         * m4/cosf.m4: New file.
33         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
34         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
35         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
36         * modules/cosf: New file.
37         * tests/test-math-c++.cc: Check the declaration of cosf.
38         * doc/posix-functions/cosf.texi: Mention the new module.
39
40         cos: Use a .m4 file.
41         * m4/cos.m4: New file.
42         * modules/cos (Files): Add it.
43         (configure.ac): Just invoke gl_FUNC_COS.
44
45 2011-10-08  Bruno Haible  <bruno@clisp.org>
46
47         Tests for module 'sinf'.
48         * modules/sinf-tests: New file.
49         * tests/test-sinf.c: New file.
50
51         New module 'sinf'.
52         * lib/math.in.h (sinf): New declaration.
53         * lib/sinf.c: New file.
54         * m4/sinf.m4: New file.
55         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
56         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
57         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
58         * modules/sinf: New file.
59         * tests/test-math-c++.cc: Check the declaration of sinf.
60         * doc/posix-functions/sinf.texi: Mention the new module.
61
62         sin: Use a .m4 file.
63         * m4/sin.m4: New file.
64         * modules/sin (Files): Add it.
65         (configure.ac): Just invoke gl_FUNC_SIN.
66
67 2011-10-08  Bruno Haible  <bruno@clisp.org>
68
69         Tests for module 'powf'.
70         * modules/powf-tests: New file.
71         * tests/test-powf.c: New file.
72
73         New module 'powf'.
74         * lib/math.in.h (powf): New declaration.
75         * lib/powf.c: New file.
76         * m4/powf.m4: New file.
77         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
78         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
79         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
80         * modules/powf: New file.
81         * tests/test-math-c++.cc: Check the declaration of powf.
82         * doc/posix-functions/powf.texi: Mention the new module.
83
84         pow: Use a .m4 file.
85         * m4/pow.m4: New file.
86         * modules/pow (Files): Add it.
87         (configure.ac): Just invoke gl_FUNC_POW.
88
89 2011-10-08  Bruno Haible  <bruno@clisp.org>
90
91         Tests for module 'log10f'.
92         * modules/log10f-tests: New file.
93         * tests/test-log10f.c: New file.
94
95         New module 'log10f'.
96         * lib/math.in.h (log10f): New declaration.
97         * lib/log10f.c: New file.
98         * m4/log10f.m4: New file.
99         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
100         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
101         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
102         * modules/log10f: New file.
103         * tests/test-math-c++.cc: Check the declaration of log10f.
104         * doc/posix-functions/log10f.texi: Mention the new module.
105
106         log10: Use a .m4 file.
107         * m4/log10.m4: New file.
108         * modules/log10 (Files): Add it.
109         (configure.ac): Just invoke gl_FUNC_LOG10.
110
111 2011-10-08  Bruno Haible  <bruno@clisp.org>
112
113         Tests for module 'logf'.
114         * modules/logf-tests: New file.
115         * tests/test-logf.c: New file.
116
117         New module 'logf'.
118         * lib/math.in.h (logf): New declaration.
119         * lib/logf.c: New file.
120         * m4/logf.m4: New file.
121         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
122         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
123         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
124         * modules/logf: New file.
125         * tests/test-math-c++.cc: Check the declaration of logf.
126         * doc/posix-functions/logf.texi: Mention the new module.
127
128         log: Use a .m4 file.
129         * m4/log.m4: New file.
130         * modules/log (Files): Add it.
131         (configure.ac): Just invoke gl_FUNC_LOG.
132
133 2011-10-08  Bruno Haible  <bruno@clisp.org>
134
135         Tests for module 'expf'.
136         * modules/expf-tests: New file.
137         * tests/test-expf.c: New file.
138
139         New module 'expf'.
140         * lib/math.in.h (expf): New declaration.
141         * lib/expf.c: New file.
142         * m4/expf.m4: New file.
143         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
144         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
145         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
146         * modules/expf: New file.
147         * tests/test-math-c++.cc: Check the declaration of expf.
148         * doc/posix-functions/expf.texi: Mention the new module.
149
150         exp: Use a .m4 file.
151         * m4/exp.m4: New file.
152         * modules/exp (Files): Add it.
153         (configure.ac): Just invoke gl_FUNC_EXP.
154
155 2011-10-08  Bruno Haible  <bruno@clisp.org>
156
157         Tests for module 'sqrtf'.
158         * modules/sqrtf-tests: New file.
159         * tests/test-sqrtf.c: New file.
160
161         New module 'sqrtf'.
162         * lib/math.in.h (sqrtf): New declaration.
163         * lib/sqrtf.c: New file.
164         * m4/sqrtf.m4: New file.
165         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
166         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
167         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
168         * modules/sqrtf: New file.
169         * tests/test-math-c++.cc: Check the declaration of sqrtf.
170         * doc/posix-functions/sqrtf.texi: Mention the new module.
171
172 2011-10-08  Bruno Haible  <bruno@clisp.org>
173
174         Tests: Avoid link failures w.r.t. libintl.
175         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
176         $(LIBINTL).
177         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
178         $(LIBINTL).
179         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
180         against $(LIBINTL).
181         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
182         $(LIBINTL).
183         * modules/openat-tests (Makefile.am): Link test-fchmodat against
184         $(LIBINTL).
185         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
186
187 2011-10-08  Bruno Haible  <bruno@clisp.org>
188
189         pow tests: Defeat compiler optimizations.
190         * tests/test-pow.c (main): Assign arguments to x and y before use.
191
192 2011-10-08  Bruno Haible  <bruno@clisp.org>
193
194         gnulib-tool: Improve last commit.
195         * gnulib-tool (func_modules_transitive_closure): Simplify code.
196         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
197         ignore dependencies that are not among the modules list.
198
199 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
200
201         gnulib-tool: don't follow dependencies to avoided modules
202         This fixes a bug that is related to the previous one.
203         * gnulib-tool (func_modules_transitive_closure)
204         (func_emit_autoconf_snippets):
205         Check whether a dependency is acceptable before using it.
206         (--extract-dependencies): Report an error if --avoid is also used,
207         since this combination of options is not yet supported.
208
209         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
210         Problem reported by Peter Dyballa in
211         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
212         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
213         when echoing "$condition".
214
215 2011-10-07  Bruno Haible  <bruno@clisp.org>
216
217         Fix documentation about math functions on MacOS X.
218         * doc/posix-functions/exp2.texi: Don't say the function is missing on
219         MacOS X 10.5.
220         * doc/posix-functions/fdim.texi: Likewise.
221         * doc/posix-functions/feclearexcept.texi: Likewise.
222         * doc/posix-functions/fegetenv.texi: Likewise.
223         * doc/posix-functions/fegetround.texi: Likewise.
224         * doc/posix-functions/feholdexcept.texi: Likewise.
225         * doc/posix-functions/feraiseexcept.texi: Likewise.
226         * doc/posix-functions/fesetenv.texi: Likewise.
227         * doc/posix-functions/fesetround.texi: Likewise.
228         * doc/posix-functions/fetestexcept.texi: Likewise.
229         * doc/posix-functions/feupdateenv.texi: Likewise.
230         * doc/posix-functions/fmax.texi: Likewise.
231         * doc/posix-functions/fmin.texi: Likewise.
232         * doc/posix-functions/log2.texi: Likewise.
233         * doc/posix-functions/modff.texi: Likewise.
234         * doc/posix-functions/nan.texi: Likewise.
235         * doc/posix-functions/nanf.texi: Likewise.
236         * doc/posix-functions/nextafterf.texi: Likewise.
237         * doc/posix-functions/remquo.texi: Likewise.
238
239 2011-10-07  Bruno Haible  <bruno@clisp.org>
240
241         modff: Drop assumption about library that defines modff.
242         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
243         AC_CHECK_FUNCS.
244         * modules/modff (Files): Add m4/mathfunc.m4.
245
246 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
247
248         raise tests: Avoid a GCC warning.
249         * tests/test-raise.c (handler): Use _Noreturn.
250
251 2011-10-07  Bruno Haible  <bruno@clisp.org>
252
253         Tests for module 'ldexpf'.
254         * modules/ldexpf-tests: New file.
255         * tests/test-ldexpf.c: New file.
256
257         New module 'ldexpf'.
258         * lib/math.in.h (ldexpf): New declaration.
259         * lib/ldexpf.c: New file.
260         * m4/ldexpf.m4: New file.
261         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
262         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
263         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
264         * modules/ldexpf: New file.
265         * tests/test-math-c++.cc: Check the declaration of ldexpf.
266         * doc/posix-functions/ldexpf.texi: Mention the new module.
267
268 2011-10-06  Bruno Haible  <bruno@clisp.org>
269
270         frexpf: Work around problems on IRIX and mingw.
271         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
273         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
274         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
275         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
276         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
277         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
278
279 2011-10-06  Bruno Haible  <bruno@clisp.org>
280
281         fabsf: Drop assumption about library that defines fabsf.
282         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
283         AC_CHECK_FUNCS.
284         * modules/fabsf (Files): Add m4/mathfunc.m4.
285
286 2011-10-06  Bruno Haible  <bruno@clisp.org>
287
288         frexpf: Drop assumption about library that defines frexpf.
289         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
290         'int *', 'float *', 'long double *', 'float', 'long double'.
291         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
292         AC_CHECK_FUNCS.
293         * modules/frexpf (Files): Add m4/mathfunc.m4.
294
295         Tests for module 'frexpf'.
296         * modules/frexpf-tests: New file.
297         * tests/test-frexpf.c: New file.
298
299         New module 'frexpf'.
300         * lib/math.in.h (frexpf): New declaration.
301         * lib/frexpf.c: New file.
302         * m4/frexpf.m4: New file.
303         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
304         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
305         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
306         * modules/frexpf: New file.
307         * tests/test-math-c++.cc: Check the declaration of frexpf.
308         * doc/posix-functions/frexpf.texi: Mention the new module.
309
310 2011-10-06  Bruno Haible  <bruno@clisp.org>
311
312         math: Sort function declarations of math.in.h.
313         * lib/math.in.h (frexp, logb): Move declarations.
314
315 2011-10-05  Bruno Haible  <bruno@clisp.org>
316
317         Tests for module 'modff'.
318         * modules/modff-tests: New file.
319         * tests/test-modff.c: New file.
320
321         New module 'modff'.
322         * lib/math.in.h (modff): New declaration.
323         * lib/modff.c: New file.
324         * m4/modff.m4: New file.
325         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
326         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
327         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
328         * modules/modff: New file.
329         * tests/test-math-c++.cc: Check the declaration of modff.
330         * doc/posix-functions/modff.texi: Mention the new module.
331
332         modf tests: Make test sharper.
333         * tests/test-modf.c (main): Strengthen upper bound.
334
335         modf: Use a .m4 file.
336         * m4/modf.m4: New file.
337         * modules/modf (Files): Add it.
338         (configure.ac): Just invoke gl_FUNC_MODF.
339
340 2011-10-05  Bruno Haible  <bruno@clisp.org>
341
342         Tests for module 'fmodf'.
343         * modules/fmodf-tests: New file.
344         * tests/test-fmodf.c: New file.
345
346         New module 'fmodf'.
347         * lib/math.in.h (fmodf): New declaration.
348         * lib/fmodf.c: New file.
349         * m4/fmodf.m4: New file.
350         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
351         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
352         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
353         * modules/fmodf: New file.
354         * tests/test-math-c++.cc: Check the declaration of fmodf.
355         * doc/posix-functions/fmodf.texi: Mention the new module.
356
357         fmod: Use a .m4 file.
358         * m4/fmod.m4: New file.
359         * modules/fmod (Files): Add it.
360         (configure.ac): Just invoke gl_FUNC_FMOD.
361
362 2011-10-05  Bruno Haible  <bruno@clisp.org>
363
364         Tests for module 'fabsf'.
365         * modules/fabsf-tests: New file.
366         * tests/test-fabsf.c: New file.
367
368         New module 'fabsf'.
369         * lib/math.in.h (fabsf): New declaration.
370         * lib/fabsf.c: New file.
371         * m4/fabsf.m4: New file.
372         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
373         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
374         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
375         * modules/fabsf: New file.
376         * tests/test-math-c++.cc: Check the declaration of fabsf.
377         * doc/posix-functions/fabsf.texi: Mention the new module.
378
379         fabs: Use a .m4 file.
380         * m4/fabs.m4: New file.
381         * modules/fabs (Files): Add it.
382         (configure.ac): Just invoke gl_FUNC_FABS.
383
384 2011-10-05  Jim Meyering  <meyering@redhat.com>
385
386         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
387         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
388         ls -lL regression introduced in coreutils-8.12, it does so at the
389         cost of an additional stat call in the common case.  Besides, now
390         that the kernel change that prompted commit 95f7c57f has been reverted
391         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
392         we have no use for commit 95f7c57f, "file-has-acl: use
393         acl_extended_file_nofollow if available".
394
395 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
396
397         file-has-acl: revert unintended change in behavior of ls -L
398         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
399         derived from...
400         (file_has_acl): ...code here.  Call it.
401         This problem was introduced with 2011-07-22 commit 95f7c57f,
402         "file-has-acl: use acl_extended_file_nofollow if available".
403         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
404
405 2011-10-03  Bruno Haible  <bruno@clisp.org>
406
407         poll: Avoid link errors on MSVC.
408         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
409         * modules/poll (Depends-on): Add sockets.
410         (Link): New section.
411         * NEWS: Mention the change.
412         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
413         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
414         $(LIB_POLL) instead of $(LIBSOCKET).
415
416 2011-10-03  Bruno Haible  <bruno@clisp.org>
417
418         sys_select tests: Fix link error on MSVC 9.
419         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
420         with $(LIB_SELECT) instead of $(LIBSOCKET).
421
422 2011-10-03  Bruno Haible  <bruno@clisp.org>
423
424         sys_select: Fix compilation error on mingw.
425         * lib/sys_select.in.h: On native Windows, include <io.h>.
426
427 2011-10-03  Bruno Haible  <bruno@clisp.org>
428
429         wmemset: Support for MSVC.
430         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
431         whether wmemset() exists.
432
433 2011-10-03  Bruno Haible  <bruno@clisp.org>
434
435         wmemmove: Support for MSVC.
436         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
437         whether wmemmove() exists.
438
439 2011-10-03  Bruno Haible  <bruno@clisp.org>
440
441         wmemcpy: Support for MSVC.
442         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
443         whether wmemcpy() exists.
444
445 2011-10-03  Bruno Haible  <bruno@clisp.org>
446
447         wmemcmp: Support for MSVC.
448         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
449         whether wmemcmp() exists.
450
451 2011-10-03  Bruno Haible  <bruno@clisp.org>
452
453         wmemchr: Support for MSVC.
454         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
455         whether wmemchr() exists.
456
457 2011-10-03  Bruno Haible  <bruno@clisp.org>
458
459         glthread/*, strsignal: Support for MSVC.
460         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
461         including <winsock.h> on MSVC 9.
462         * lib/glthread/lock.h: Likewise.
463         * lib/glthread/thread.h: Likewise.
464         * lib/glthread/tls.h: Likewise.
465         * lib/glthread/yield.h: Likewise.
466         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
467         if HAVE_UNISTD_H is false.
468         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
469
470 2011-10-03  Bruno Haible  <bruno@clisp.org>
471
472         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
473         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
474         Set to 100000.
475
476 2011-10-03  Bruno Haible  <bruno@clisp.org>
477
478         acl: Fix specification.
479         * lib/file-has-acl.c (file_has_acl): Fix specification.
480
481 2011-10-03  Bruno Haible  <bruno@clisp.org>
482
483         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
484         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
485         (compute_curr_prefix, shared_library_fullname,
486         find_shared_library_fullname, get_shared_library_fullname, relocate):
487         Use it together with PIC && INSTALLDIR.
488         Reported by <jojelino@gmail.com>
489         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
490
491 2011-10-01  Jim Meyering  <meyering@redhat.com>
492
493         maint.mk: adjust a release-related rule not to require use of gzip
494         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
495         Instead, check each file in $(DIST_ARCHIVES).  This is better for
496         projects that build only .tar.xz files.  Also fix an erroneous test.
497
498         test-linkat: don't leave behind a temporary file
499         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
500         Otherwise, coreutils' "make distcheck" would fail with this:
501           Only in /c/cu/tests/torture/coreutils/test/\
502             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
503           make[2]: *** [my-distcheck] Error 1
504
505         float, math: add omitted file
506         * lib/itold.c: Add file, required for yesterday's float change.
507
508 2011-10-01  Bruno Haible  <bruno@clisp.org>
509
510         isinf: Fix for OpenBSD/x86.
511         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
512         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
513         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
514
515 2011-10-01  Bruno Haible  <bruno@clisp.org>
516
517         isfinite: Fix syntax error in configure test.
518         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
519
520         isfinite: Fix typo.
521         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
522         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
523
524 2011-10-01  Bruno Haible  <bruno@clisp.org>
525
526         nonblocking tests: Fix test failure on Linux/IA-64.
527         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
528         Set to 270000.
529
530 2011-10-01  Bruno Haible  <bruno@clisp.org>
531
532         mkfifoat tests: Fix a test failure on mingw.
533         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
534         with error ENOSYS.
535
536 2011-09-30  Bruno Haible  <bruno@clisp.org>
537
538         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
539         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
540         'long double'. Set REPLACE_ITOLD.
541         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
542         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
543         * lib/itold.c: New file.
544         * modules/float (Files): Add lib/itold.c.
545         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
546         (Makefile.am): Substitute REPLACE_ITOLD.
547         * modules/math (Depends-on): Add float.
548         (Makefile.am): Substitute REPLACE_ITOLD.
549         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
550         * doc/posix-headers/math.texi: Likewise.
551         * doc/posix-functions/logl.texi: Likewise.
552
553 2011-09-30  Bruno Haible  <bruno@clisp.org>
554
555         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
556         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
557         Set to 140000.
558
559 2011-09-30  Bruno Haible  <bruno@clisp.org>
560
561         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
562         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
563         invocation, say "right after AC_PROG_CC_STDC", not "right after
564         AC_PROG_CC".
565         Reported by Gary V. Vaughan <gary@gnu.org>.
566
567 2011-09-30  Bruno Haible  <bruno@clisp.org>
568
569         Centralize C99 requirement.
570         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
571         * modules/stdarg (configure.ac-early): Invoke it instead of
572         AC_PROG_CC_STDC.
573         Reported by Gary V. Vaughan and Paul Eggert.
574
575 2011-09-29  Bruno Haible  <bruno@clisp.org>
576
577         float: Fix LDBL_MAX value on Linux/PowerPC.
578         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
579         on Linux/PowerPC.
580         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
581         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
582         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
583         platform.
584         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
585
586 2011-09-29  Bruno Haible  <bruno@clisp.org>
587
588         doc: Improve doc about gl_EARLY.
589         * doc/gnulib-tool.texi (Initial import): Mention where to place an
590         AC_PROG_CC_STDC invocation.
591         Reported by Gary V. Vaughan <gary@gnu.org>.
592
593 2011-09-28  Bruno Haible  <bruno@clisp.org>
594
595         fgetc, fputc, fread, fwrite tests: Fix link error.
596         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
597         on non-MSVC platforms.
598         * tests/test-fputc.c (main): Likewise.
599         * tests/test-fread.c (main): Likewise.
600         * tests/test-fwrite.c (main): Likewise.
601         Reported by Jim Meyering.
602
603 2011-09-27  Bruno Haible  <bruno@clisp.org>
604
605         fputc, fwrite tests: Avoid test failure on MSVC.
606         * tests/test-fgetc.c: Include msvc-inval.h.
607         (main): Invoke gl_msvc_inval_ensure_handler.
608         * tests/test-fputc.c: Include msvc-inval.h.
609         (main): Invoke gl_msvc_inval_ensure_handler.
610         * tests/test-fread.c: Include msvc-inval.h.
611         (main): Invoke gl_msvc_inval_ensure_handler.
612         * tests/test-fwrite.c: Include msvc-inval.h.
613         (main): Invoke gl_msvc_inval_ensure_handler.
614         * modules/fgetc-tests (Depends-on): Add msvc-inval.
615         * modules/fputc-tests (Depends-on): Likewise.
616         * modules/fread-tests (Depends-on): Likewise.
617         * modules/fwrite-tests (Depends-on): Likewise.
618
619 2011-09-27  Bruno Haible  <bruno@clisp.org>
620
621         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
622         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
623         (raise): Remove older, duplicated declaration.
624         (_gl_raise_SIGPIPE): New declaration.
625         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
626         (rpl_raise): Remove function.
627         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
628         a gnulib-defined SIGPIPE here.
629         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
630         'sigprocmask' has detected missing signal-blocking and the module
631         'sigpipe' is enabled.
632         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
633
634 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
635
636         base64-tests: avoid memory leak
637         * tests/test-base64.c (main): Plug memory leak.
638
639         base32: new module
640         * modules/base32: New module.
641         * lib/base32.c: New file.
642         * lib/base32.h: Likewise.
643         * m4/base32.m4: Likewise.
644         * modules/base32-tests: New test.
645         * tests/test-base32.c: Likewise.
646         * MODULES.html.sh (Misc): Mention it.
647
648 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
649
650         gnulib: use more-standard license notice wording
651         * gnulib-tool (func_emit_copyright_notice): When emitting a
652         license notice into a file, use the standard wording as suggested
653         by the current information for GNU maintainers, except say "file"
654         rather than "program".  The new wording gives a license version
655         number, which addresses an issue raised by Glenn Morris in
656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
657         * m4/onceonly.m4: Use that same wording here, too.
658
659         dup2: minor simplification
660         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
661         as lib/dup2.c no longer uses 'inline'.
662
663 2011-09-25  Bruno Haible  <bruno@clisp.org>
664
665         strings: Fix compilation error on MSVC.
666         * lib/strings.in.h: Include <stddef.h> for size_t.
667
668 2011-09-25  Bruno Haible  <bruno@clisp.org>
669
670         fflush et al.: Document limitation on MSVC.
671         * doc/posix-functions/fflush.texi: Document possible crash in handling
672         mode other than DEFAULT_HANDLING.
673         * doc/posix-functions/fgetc.texi: Likewise.
674         * doc/posix-functions/fputc.texi: Likewise.
675         * doc/posix-functions/fread.texi: Likewise.
676         * doc/posix-functions/fwrite.texi: Likewise.
677
678 2011-09-25  Bruno Haible  <bruno@clisp.org>
679
680         msvc-inval: Allow three invalid parameter handling modes.
681         * lib/msvc-inval.h: Don't include <stdlib.h> here.
682         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
683         macros.
684         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
685         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
686         SANE_LIBRARY_HANDLING as a no-op.
687         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
688         <stdlib.h>.
689         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
690
691 2011-09-25  Bruno Haible  <bruno@clisp.org>
692
693         msvc-inval: Make handler multithread-safe.
694         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
695         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
696         declarations.
697         (gl_msvc_inval_current): New declaration.
698         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
699         Operate on the structure returned by gl_msvc_inval_current().
700         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
701         Remove varaiables.
702         (tls_index, tls_initialized): New variables.
703         (not_per_thread): New variable.
704         (gl_msvc_inval_current): New function.
705         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
706         returned by gl_msvc_inval_current().
707
708 2011-09-25  Bruno Haible  <bruno@clisp.org>
709
710         msvc-inval: Install handler globally.
711         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
712         !_MSC_VER.
713         (gl_msvc_invalid_parameter_handler): Remove declaration.
714         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
715         declarations.
716         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
717         Install the handler globally, don't uninstall it.
718         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
719         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
720         currently valid, call RaiseException instead.
721         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
722         for !_MSC_VER.
723
724 2011-09-25  Bruno Haible  <bruno@clisp.org>
725
726         strerror_r-posix: Fix for MSVC 9.
727         * lib/strerror_r.c (local_snprintf): New function.
728         (snprintf): Define to local_snprintf, not to _snprintf.
729
730 2011-09-25  Bruno Haible  <bruno@clisp.org>
731
732         ftruncate: Support for MSVC 9.
733         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
734         (chsize_nothrow): New function.
735         (chsize): Redefine as a macro.
736         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
737         * modules/ftruncate (Depends-on): Add msvc-inval.
738
739 2011-09-25  Bruno Haible  <bruno@clisp.org>
740
741         New module 'fstat'.
742         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
743         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
744         * lib/fchdir.c (rpl_fstat): Remove function.
745         * m4/fstat.m4: New file.
746         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
747         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
748         declared.
749         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
750         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
751         * modules/fstat: New file.
752         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
753         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
754         is set.
755         * doc/posix-functions/fstat.texi: Mention the new module and the
756         problem on MSVC.
757         * NEWS: Mention the change.
758         * modules/acl (Depends-on): Add fstat.
759         * modules/chdir-safer (Depends-on): Likewise.
760         * modules/chown (Depends-on): Likewise.
761         * modules/copy-file (Depends-on): Likewise.
762         * modules/fchdir (Depends-on): Likewise.
763         * modules/fdopendir (Depends-on): Likewise.
764         * modules/fopen (Depends-on): Likewise.
765         * modules/fts (Depends-on): Likewise.
766         * modules/getcwd (Depends-on): Likewise.
767         * modules/isapipe (Depends-on): Likewise.
768         * modules/linkat (Depends-on): Likewise.
769         * modules/lseek (Depends-on): Likewise.
770         * modules/mkdir-p (Depends-on): Likewise.
771         * modules/open (Depends-on): Likewise.
772         * modules/openat (Depends-on): Likewise.
773         * modules/read-file (Depends-on): Likewise.
774         * modules/renameat (Depends-on): Likewise.
775         * modules/utimens (Depends-on): Likewise.
776
777 2011-09-25  Bruno Haible  <bruno@clisp.org>
778
779         linkat: Fix compilation on MSVC 9.
780         * lib/linkat.c: Don't include <stdint.h>.
781
782 2011-09-25  Bruno Haible  <bruno@clisp.org>
783
784         fclose: Support for MSVC 9.
785         * lib/fclose.c: Include msvc-inval.h.
786         (fclose_nothrow): New function.
787         (rpl_fclose): Use it.
788         * modules/fclose (Depends-on): Add msvc-inval.
789         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
790
791 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
792
793         dup2: minor simplifications
794         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
795         that it's a performance win.
796         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
797         ! defined __CYGWIN__)" to "ifdef F_GETFL".
798
799 2011-09-24  Jim Meyering  <meyering@redhat.com>
800
801         test-futimens: avoid a warning from gcc -Wshadow
802         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
803         to avoid a shadowing warning.
804
805 2011-09-24  Bruno Haible  <bruno@clisp.org>
806
807         fdopen: Support for MSVC 9.
808         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
809         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
810         * lib/fdopen.c: Include msvc-inval.h.
811         (fdopen_nothrow): New function.
812         (rpl_fdopen): Use it.
813         * modules/fdopen (Depends-on): Add msvc-inval.
814         * modules/fclose-tests (Depends-on): Add fdopen.
815         * modules/fflush-tests (Depends-on): Likewise.
816         * modules/fgetc-tests (Depends-on): Likewise.
817         * modules/fputc-tests (Depends-on): Likewise.
818         * modules/fread-tests (Depends-on): Likewise.
819         * modules/freopen-tests (Depends-on): Likewise.
820         * modules/fseeko-tests (Depends-on): Likewise.
821         * modules/ftello-tests (Depends-on): Likewise.
822         * modules/fwrite-tests  (Depends-on): Likewise.
823         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
824
825 2011-09-24  Bruno Haible  <bruno@clisp.org>
826
827         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
828         * modules/fgetc-tests (Depends-on): Add unistd.
829         * modules/fputc-tests (Depends-on): Likewise.
830         * modules/fread-tests (Depends-on): Likewise.
831         * modules/fwrite-tests (Depends-on): Likewise.
832
833 2011-09-24  Bruno Haible  <bruno@clisp.org>
834
835         dup: Simplify autoconf test.
836         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
837         on gl_MSVC_INVAL's result.
838
839 2011-09-24  Bruno Haible  <bruno@clisp.org>
840
841         Tests for function fwrite().
842         * modules/fwrite-tests: New file.
843         * tests/test-fwrite.c: New file.
844         * modules/stdio-tests (Depends-on): Add fwrite-tests.
845
846         Tests for function fread().
847         * modules/fread-tests: New file.
848         * tests/test-fread.c: New file.
849         * modules/stdio-tests (Depends-on): Add fread-tests.
850
851         Activate fputc tests.
852         * modules/stdio-tests (Depends-on): Add fputc-tests.
853
854         Enhance fgetc, fputc tests.
855         * tests/test-fgetc.c (main): Also test the stream's error indicator.
856         * tests/test-fputc.c (main): Likewise.
857
858 2011-09-24  Bruno Haible  <bruno@clisp.org>
859
860         write: Support for MSVC 9.
861         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
862         is not 1.
863         * lib/write.c (write_nothrow): New function.
864         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
865         not 1. Use write_nothrow.
866         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
867         invalid parameter handler.
868         (gl_PREREQ_WRITE): New macro.
869         * modules/write (Depends-on): Add msvc-inval.
870         (configure.ac): Invoke gl_PREREQ_WRITE.
871         * doc/posix-functions/write.texi: Mention the problem on MSVC.
872
873 2011-09-24  Bruno Haible  <bruno@clisp.org>
874
875         read: Fix last commit.
876         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
877
878 2011-09-24  Bruno Haible  <bruno@clisp.org>
879
880         dup2: Fix last commit.
881         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
882         (rpl_dup2): Disable fcntl workaround on native Windows.
883
884         sigprocmask: Make code safer.
885         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
886         section that changes macro definitions for this compilation unit.
887
888 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
889
890         dup2: clarify by coalescing Windows-specific material
891         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
892         "msvc-nothrow.h"' to the Windows-specific section, so that the
893         Emacs source need not contain these include files.
894         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
895         Windows-specific fixes into this function rather than just the
896         nothrow fix, as this shortens and clarifies the code.  Always
897         define as a function, as that's a bit cleaner than having it be
898         sometimes a function and sometimes a macro.
899         (rpl_dup2): Move the Windows-specific stuff out of here and into
900         ms_windows_dup2.  Don't protect the Haiku-related fix with
901         "#if !defined __linux__", as the same code also works around
902         a Linux kernel bug, and it doesn't add any system calls on any
903         platform.  Add comment about FreeBSD 6.1.
904
905         sigprocmask: move #include directive
906         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
907         Windows-specific section, so that the Emacs source need not
908         contain msvc-inval.h.
909
910 2011-09-23  Bruno Haible  <bruno@clisp.org>
911
912         read: Support for MSVC 9.
913         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
914         is not 1.
915         * lib/read.c (read_nothrow): New function.
916         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
917         read_nothrow.
918         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
919         invalid parameter handler.
920         (gl_PREREQ_READ): New macro.
921         * modules/read (Depends-on): Add msvc-inval.
922         (configure.ac): Invoke gl_PREREQ_READ.
923         * doc/posix-functions/read.texi: Mention the problem on MSVC.
924
925 2011-09-23  Bruno Haible  <bruno@clisp.org>
926
927         close: Support for MSVC 9.
928         * lib/close.c: Include <errno.h>, msvc-inval.h.
929         (close_nothrow): New function.
930         (rpl_close): Use it.
931         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
932         invalid parameter handler.
933         * modules/close (Depends-on): Add msvc-inval.
934         * modules/dup2-tests (Depends-on): Add close.
935         * modules/dup3-tests (Depends-on): Likewise.
936         * modules/fcntl-tests (Depends-on): Likewise.
937         * modules/spawn-pipe-tests (Depends-on): Likewise.
938         * modules/unistd-safer-tests (Depends-on): Likewise.
939         * doc/posix-functions/close.texi: Mention the problem on MSVC.
940
941 2011-09-23  Bruno Haible  <bruno@clisp.org>
942
943         New module 'dup'.
944         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
945         Allow replacement.
946         * lib/dup.c: New file.
947         * lib/fchdir.c (rpl_dup): Remove function.
948         * m4/dup.m4: New file.
949         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
950         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
951         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
952         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
953         * modules/dup: New file.
954         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
955         'dup' module is in use.
956         * modules/fdopendir (Depends-on): Add dup.
957         * modules/fdutimensat-tests (Depends-on): Likewise.
958         * modules/fts (Depends-on): Likewise.
959         * modules/futimens-tests (Depends-on): Likewise.
960         * modules/posix_spawnp-tests (Depends-on): Likewise.
961         * modules/unistd-safer-tests (Depends-on): Likewise.
962         * modules/utimens-tests (Depends-on): Likewise.
963         * doc/posix-functions/dup.texi: Mention the new module and the problem
964         on MSVC.
965
966 2011-09-23  Bruno Haible  <bruno@clisp.org>
967
968         getdtablesize: Support for MSVC 9.
969         * lib/getdtablesize.c: Include msvc-inval.h.
970         (_setmaxstdio_nothrow): New function.
971         (_setmaxstdio): Redefine it.
972         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
973         * modules/getdtablesize (Depends-on): Add msvc-inval.
974         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
975
976 2011-09-23  Bruno Haible  <bruno@clisp.org>
977
978         signal-h: Rename from signal.
979         * modules/signal-h: Renamed from modules/signal.
980         * modules/pthread_sigmask (Depends-on): Update.
981         * modules/raise (Depends-on): Likewise.
982         * modules/sigaction (Depends-on): Likewise.
983         * modules/sigpipe (Depends-on): Likewise.
984         * modules/sigprocmask (Depends-on): Likewise.
985         * modules/sys_select (Depends-on): Likewise.
986         * modules/signal-h-tests: Renamed from modules/signal-tests.
987         (Files, Depends-on, Makefile.am): Update.
988         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
989         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
990         (Files, Makefile.am): Update.
991         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
992         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
993         * modules/signal: New placeholder file.
994         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
995         * doc/posix-headers/signal.texi: Update.
996         * NEWS: Mention the change.
997
998 2011-09-23  Bruno Haible  <bruno@clisp.org>
999
1000         sigprocmask: Avoid crashes through signal() on MSVC 9.
1001         * lib/sigprocmask.c: Include msvc-inval.h.
1002         (signal_nothrow): New function.
1003         (signal): Redefine it.
1004         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
1005         * modules/sigprocmask (Depends-on): Add msvc-inval.
1006         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
1007
1008 2011-09-23  Bruno Haible  <bruno@clisp.org>
1009
1010         Tests for module 'raise'.
1011         * modules/raise-tests: New file.
1012         * tests/test-raise.c: New file.
1013
1014         raise: Support for MSVC.
1015         * lib/signal.in.h (raise): New declaration.
1016         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
1017         for native Windows platforms.
1018         * m4/raise.m4: New file.
1019         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
1020         HAVE_RAISE, REPLACE_RAISE.
1021         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
1022         REPLACE_RAISE.
1023         * modules/raise (Status, Notice): Remove fields.
1024         (Files): Add m4/raise.m4.
1025         (Depends-on): Add signal, msvc-inval.
1026         (configure.ac): Use the common idioms.
1027         (Maintainer): Add me.
1028         * tests/test-signal-c++.cc: Check the signature of raise.
1029         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
1030
1031 2011-09-23  Bruno Haible  <bruno@clisp.org>
1032
1033         pipe2: Fix compilation on pre-C99 compilers.
1034         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
1035
1036 2011-09-23  Bruno Haible  <bruno@clisp.org>
1037
1038         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
1039         * lib/msvc-nothrow.h: New file.
1040         * lib/msvc-nothrow.c: New file.
1041         * m4/msvc-nothrow.m4: New file.
1042         * modules/msvc-nothrow: New file.
1043         * lib/dup2.c: Include msvc-nothrow.h.
1044         (rpl_dup2): No need to protect _get_osfhandle call here.
1045         * lib/accept4.c: Include msvc-nothrow.h.
1046         * lib/error.c: Likewise.
1047         * lib/fcntl.c: Likewise.
1048         * lib/lseek.c: Likewise.
1049         * lib/nonblocking.c: Likewise.
1050         * lib/poll.c: Likewise.
1051         * lib/read.c: Likewise.
1052         * lib/select.c: Likewise.
1053         * lib/sockets.h: Likewise.
1054         * lib/sockets.c: Likewise.
1055         * lib/stdio-read.c: Likewise.
1056         * lib/stdio-write.c: Likewise.
1057         * lib/write.c: Likewise.
1058         * lib/w32sock.h: Likewise.
1059         * lib/w32spawn.h: Likewise.
1060         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
1061         * lib/fsync.c: Likewise.
1062         * lib/isapipe.c: Likewise.
1063         * modules/dup2 (Depends-on): Add msvc-nothrow.
1064         * modules/accept4 (Depends-on): Likewise.
1065         * modules/error (Depends-on): Likewise.
1066         * modules/fcntl (Depends-on): Likewise.
1067         * modules/lseek (Depends-on): Likewise.
1068         * modules/nonblocking (Depends-on): Likewise.
1069         * modules/poll (Depends-on): Likewise.
1070         * modules/read (Depends-on): Likewise.
1071         * modules/select (Depends-on): Likewise.
1072         * modules/sockets (Depends-on): Likewise.
1073         * modules/sigpipe (Depends-on): Likewise.
1074         * modules/write (Depends-on): Likewise.
1075         * modules/accept (Depends-on): Likewise.
1076         * modules/bind (Depends-on): Likewise.
1077         * modules/connect (Depends-on): Likewise.
1078         * modules/gethostname (Depends-on): Likewise.
1079         * modules/getpeername (Depends-on): Likewise.
1080         * modules/getsockname (Depends-on): Likewise.
1081         * modules/getsockopt (Depends-on): Likewise.
1082         * modules/ioctl (Depends-on): Likewise.
1083         * modules/listen (Depends-on): Likewise.
1084         * modules/recv (Depends-on): Likewise.
1085         * modules/recvfrom (Depends-on): Likewise.
1086         * modules/send (Depends-on): Likewise.
1087         * modules/sendto (Depends-on): Likewise.
1088         * modules/setsockopt (Depends-on): Likewise.
1089         * modules/shutdown (Depends-on): Likewise.
1090         * modules/socket (Depends-on): Likewise.
1091         * modules/execute (Depends-on): Likewise.
1092         * modules/spawn-pipe (Depends-on): Likewise.
1093         * modules/flock (Depends-on): Likewise.
1094         * modules/fsync (Depends-on): Likewise.
1095         * modules/isapipe (Depends-on): Likewise.
1096         * tests/test-cloexec.c: Include msvc-nothrow.h.
1097         * tests/test-dup-safer.c: Likewise.
1098         * tests/test-dup2.c: Likewise.
1099         * tests/test-dup3.c: Likewise.
1100         * tests/test-fcntl.c: Likewise.
1101         * tests/test-pipe.c: Likewise.
1102         * tests/test-pipe2.c: Likewise.
1103         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
1104         * modules/unistd-safer-tests (Depends-on): Likewise.
1105         * modules/dup2-tests (Depends-on): Likewise.
1106         * modules/dup3-tests (Depends-on): Likewise.
1107         * modules/fcntl-tests (Depends-on): Likewise.
1108         * modules/pipe-posix-tests (Depends-on): Likewise.
1109         * modules/pipe2-tests (Depends-on): Likewise.
1110
1111 2011-09-23  Bruno Haible  <bruno@clisp.org>
1112
1113         dup2: Make code more maintainable.
1114         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
1115         (rpl_dup2): Use it.
1116         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
1117         * modules/dup2 (configure.ac): Invoke it.
1118         Reported by Paul Eggert.
1119
1120 2011-09-23  Bruno Haible  <bruno@clisp.org>
1121
1122         msvc-inval: Fix compilation error.
1123         * lib/msvc-inval.h: Include <excpt.h>.
1124
1125 2011-09-23  Bruno Haible  <bruno@clisp.org>
1126
1127         mkdir: Tweak for MSVC 9.
1128         * lib/sys_stat.in.h: Update comments.
1129         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
1130
1131         Tests for module 'chdir'.
1132         * modules/chdir-tests: New file.
1133         * tests/test-chdir.c: New file.
1134
1135         New module 'chdir'.
1136         * modules/chdir: New file.
1137         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
1138         (chdir): New declaration.
1139         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
1140         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
1141         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
1142         * tests/test-unistd-c++.cc: Check signature of chdir.
1143         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
1144         * modules/chdir-long (Depends-on): Add chdir.
1145         * modules/fchdir (Depends-on): Likewise.
1146         * modules/rename (Depends-on): Likewise.
1147         * modules/savewd (Depends-on): Likewise.
1148
1149         rmdir: Support for mingw, MSVC 9.
1150         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
1151         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
1152
1153         getcwd: Tweak for MSVC 9.
1154         * lib/unistd.in.h: Update comments.
1155         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
1156
1157 2011-09-22  Bruno Haible  <bruno@clisp.org>
1158
1159         strerror_r-posix: Avoid a link error on MSVC.
1160         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
1161         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
1162
1163 2011-09-22  Bruno Haible  <bruno@clisp.org>
1164
1165         select: Avoid link errors on MSVC.
1166         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
1167         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
1168         * modules/pselect (Link): Likewise.
1169         * NEWS: Mention the change.
1170         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
1171         test-select-stdin against $(LIB_SELECT).
1172         * modules/pselect-tests (Makefile.am): Link test-pselect against
1173         $(LIB_SELECT).
1174
1175 2011-09-22  Bruno Haible  <bruno@clisp.org>
1176
1177         select: Avoid compilation error on MSVC.
1178         * lib/select.c: Don't include <stdbool.h>.
1179
1180 2011-09-21  Bruno Haible  <bruno@clisp.org>
1181
1182         Consolidate all uses of PATH_MAX in *.m4 files.
1183         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
1184         macros.
1185         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
1186         and gl_PATHMAX_SNIPPET.
1187         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
1188         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1189         * modules/chdir-long (Files): Add m4/pathmax.m4.
1190         * modules/getcwd (Files): Likewise.
1191
1192 2011-09-21  Bruno Haible  <bruno@clisp.org>
1193
1194         ftruncate: Un-deprecate, concentrate on Win32 support.
1195         * modules/ftruncate (Status, Notice): Remove sections.
1196         (Depends-on): Add largefile.
1197         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
1198         non-mingw platforms.
1199         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
1200         include <io.h>.
1201         * modules/perror-tests (Depends-on): Add ftruncate.
1202         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
1203         'ftruncate' module.
1204
1205 2011-09-21  Bruno Haible  <bruno@clisp.org>
1206
1207         Add dependencies to new dirent related modules.
1208         * modules/opendir (Depends-on): Add closedir.
1209         * modules/getcwd (Depends-on): Add opendir, closedir.
1210         * modules/dirent-safer-tests (Depends-on): Likewise.
1211         * modules/fdopendir-tests (Depends-on): Likewise.
1212         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
1213         * modules/renameat-tests (Depends-on): Likewise.
1214
1215 2011-09-21  Bruno Haible  <bruno@clisp.org>
1216
1217         opendir: Avoid compilation error on mingw.
1218         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
1219         * modules/opendir (Depends-on): Add unistd.
1220
1221 2011-09-21  Bruno Haible  <bruno@clisp.org>
1222
1223         ftruncate tests: Avoid a test failure on mingw.
1224         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
1225
1226 2011-09-21  Bruno Haible  <bruno@clisp.org>
1227
1228         select tests: Avoid test failures on OSF/1 5.1 and mingw.
1229         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
1230         native Windows.
1231
1232 2011-09-21  Bruno Haible  <bruno@clisp.org>
1233
1234         New module 'fdopen'.
1235         * lib/stdio.in.h (fdopen): New declaration.
1236         * lib/fdopen.c: New file.
1237         * m4/fdopen.m4: New file.
1238         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
1239         REPLACE_FDOPEN.
1240         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
1241         REPLACE_FDOPEN.
1242         * modules/fdopen: New file.
1243         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
1244         * tests/test-stdio-c++.cc: Check signature of fdopen.
1245         * doc/posix-functions/fdopen.texi: Mention the new module.
1246
1247 2011-09-21  Bruno Haible  <bruno@clisp.org>
1248
1249         unlockpt tests: Avoid test failure on NetBSD 5.1.
1250         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
1251         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
1252
1253 2011-09-21  Bruno Haible  <bruno@clisp.org>
1254
1255         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
1256         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
1257         * tests/test-getlogin_r.c (main): Likewise.
1258
1259 2011-09-20  Bruno Haible  <bruno@clisp.org>
1260
1261         time tests: Don't require pid_t.
1262         * doc/posix-headers/time.texi: Revert last change.
1263         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
1264         * tests/test-time.c: Comment out the check for pid_t.
1265
1266 2011-09-20  Bruno Haible  <bruno@clisp.org>
1267
1268         fsync tests: Avoid a test failure on mingw.
1269         * tests/test-fsync.c (main): Allow a failure with EIO.
1270
1271 2011-09-20  Bruno Haible  <bruno@clisp.org>
1272
1273         euidaccess: Update comments.
1274         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
1275
1276 2011-09-20  Bruno Haible  <bruno@clisp.org>
1277
1278         Ensure EBADF returns for socket functions on mingw.
1279         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
1280         descriptor is invalid.
1281         * lib/bind.c (rpl_bind): Likewise.
1282         * lib/connect.c (rpl_connect): Likewise.
1283         * lib/getpeername.c (rpl_getpeername): Likewise.
1284         * lib/getsockname.c (rpl_getsockname): Likewise.
1285         * lib/getsockopt.c (rpl_getsockopt): Likewise.
1286         * lib/listen.c (rpl_listen): Likewise.
1287         * lib/recv.c (rpl_recv): Likewise.
1288         * lib/recvfrom.c (rpl_recvfrom): Likewise.
1289         * lib/send.c (rpl_send): Likewise.
1290         * lib/sendto.c (rpl_sendto): Likewise.
1291         * lib/setsockopt.c (rpl_setsockopt): Likewise.
1292         * lib/shutdown.c (rpl_shutdown): Likewise.
1293
1294 2011-09-20  Bruno Haible  <bruno@clisp.org>
1295
1296         select tests: EBADF tests.
1297         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
1298         test_bad_fd): New functions.
1299         (test_function): Invoke also test_bad_fd.
1300
1301 2011-09-20  Bruno Haible  <bruno@clisp.org>
1302
1303         Tests for module 'posix_spawn_file_actions_addopen.
1304         * modules/posix_spawn_file_actions_addopen-tests: New file.
1305         * tests/test-posix_spawn_file_actions_addopen.c: New file.
1306
1307         Tests for module 'posix_spawn_file_actions_adddup2'.
1308         * modules/posix_spawn_file_actions_adddup2-tests: New file.
1309         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
1310
1311         Tests for module 'posix_spawn_file_actions_addclose'.
1312         * modules/posix_spawn_file_actions_addclose-tests: New file.
1313         * tests/test-posix_spawn_file_actions_addclose.c: New file.
1314
1315 2011-09-20  Bruno Haible  <bruno@clisp.org>
1316
1317         Tests for module 'unlockpt'.
1318         * modules/unlockpt-tests: New file.
1319         * tests/test-unlockpt.c: New file.
1320         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
1321
1322         Tests for module 'grantpt'.
1323         * modules/grantpt-tests: New file.
1324         * tests/test-grantpt.c: New file.
1325         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
1326
1327 2011-09-20  Bruno Haible  <bruno@clisp.org>
1328
1329         freopen tests: EBADF tests.
1330         * tests/test-freopen.c: Include errno.h, unistd.h.
1331         (main): Add tests for EBADF, commented out for the moment.
1332
1333         fclose tests: EBADF tests.
1334         * tests/test-fclose.c (main): Add tests for EBADF.
1335
1336         fflush tests: EBADF tests.
1337         * tests/test-fflush.c: Include errno.h, macros.h.
1338         (main): Add tests for EBADF.
1339
1340         ftello tests: EBADF tests.
1341         * tests/test-ftello4.sh: New file.
1342         * tests/test-ftello4.c: New file.
1343         * modules/ftello-tests (Files): Add them.
1344         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
1345
1346         fseeko tests: EBADF tests.
1347         * tests/test-fseeko4.sh: New file.
1348         * tests/test-fseeko4.c: New file.
1349         * modules/fseeko-tests (Files): Add them.
1350         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
1351
1352         Tests for function fputc().
1353         * modules/fputc-tests: New file.
1354         * tests/test-fputc.c: New file.
1355         * modules/stdio-tests (Depends-on): Add fputc-tests.
1356
1357         Tests for function fgetc().
1358         * modules/fgetc-tests: New file.
1359         * tests/test-fgetc.c: New file.
1360         * modules/stdio-tests (Depends-on): Add fgetc-tests.
1361
1362         Tests for function fdopen().
1363         * modules/fdopen-tests: New file.
1364         * tests/test-fdopen.c: New file.
1365         * modules/stdio-tests (Depends-on): Add fdopen-tests.
1366
1367         Tests for module 'vdprintf'.
1368         * modules/vdprintf-tests: New file.
1369         * tests/test-vdprintf.c: New file.
1370
1371         Tests for module 'dprintf'.
1372         * modules/dprintf-tests: New file.
1373         * tests/test-dprintf.c: New file.
1374
1375 2011-09-20  Bruno Haible  <bruno@clisp.org>
1376
1377         Tests for module 'ioctl'.
1378         * modules/ioctl-tests: New file.
1379         * tests/test-ioctl.c: New file.
1380
1381 2011-09-20  Bruno Haible  <bruno@clisp.org>
1382
1383         fcntl tests: EBADF tests.
1384         * tests/test-fcntl.c (main): Add more tests for EBADF.
1385
1386 2011-09-20  Bruno Haible  <bruno@clisp.org>
1387
1388         utimensat tests: EBADF tests.
1389         * tests/test-utimensat.c (main): Add tests for EBADF.
1390
1391         renameat tests: EBADF tests.
1392         * tests/test-renameat.c (main): Add tests for EBADF.
1393
1394         mkfifoat tests: EBADF tests.
1395         * tests/test-mkfifoat.c (main): Add tests for EBADF.
1396
1397         readlinkat tests: EBADF tests.
1398         * tests/test-readlinkat.c (main): Add tests for EBADF.
1399
1400         symlinkat tests: EBADF tests.
1401         * tests/test-symlinkat.c (main): Add tests for EBADF.
1402
1403         linkat tests: EBADF tests.
1404         * tests/test-linkat.c (main): Add tests for EBADF.
1405
1406         Tests for module 'faccessat'.
1407         * modules/faccessat-tests: New file.
1408         * tests/test-faccessat.c: New file.
1409
1410         fdopendir tests: EBADF tests.
1411         * tests/test-fdopendir.c (main): Add more tests for EBADF.
1412
1413         openat tests: EBADF tests.
1414         * tests/test-fchownat.c (main): Add tests for EBADF.
1415         * tests/test-fstatat.c (main): Likewise.
1416         * tests/test-mkdirat.c (main): Likewise.
1417         * tests/test-openat.c (main): Likewise.
1418         * tests/test-unlinkat.c (main): Likewise.
1419         * tests/test-fchmodat.c: New file.
1420         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
1421         (Makefile.am): Also run 'test-fchmodat'.
1422
1423 2011-09-20  Bruno Haible  <bruno@clisp.org>
1424
1425         utimens, futimens, fdutimensat tests: EBADF tests.
1426         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
1427
1428         Tests for function fstat().
1429         * modules/fstat-tests: New file.
1430         * tests/test-fstat.c: New file.
1431         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
1432
1433 2011-09-20  Bruno Haible  <bruno@clisp.org>
1434
1435         test-ttyname_r tests: EBADF tests.
1436         * tests/test-ttyname_r.c (main): Add tests for EBADF.
1437
1438         Tests for module 'isatty'.
1439         * modules/isatty-tests: New file.
1440         * tests/test-isatty.c: New file.
1441
1442         Tests for module 'write'.
1443         * modules/write-tests: New file.
1444         * tests/test-write.c: New file.
1445
1446         Tests for module 'read'.
1447         * modules/read-tests: New file.
1448         * tests/test-read.c: New file.
1449
1450         pwrite tests: EBADF tests.
1451         * tests/test-pwrite.c (main): Add tests for EBADF.
1452
1453         pread tests: EBADF tests.
1454         * tests/test-pread.c (main): Add tests for EBADF.
1455
1456         lseek tests: EBADF tests.
1457         * tests/test-lseek.c (main): Add more tests for EBADF.
1458
1459         Tests for module 'ftruncate'.
1460         * modules/ftruncate-tests: New file.
1461         * tests/test-ftruncate.sh: New file.
1462         * tests/test-ftruncate.c: New file.
1463
1464         fsync tests: EBADF tests.
1465         * tests/test-fsync.c (main): Add more tests for EBADF.
1466
1467         fdatasync tests: EBADF tests.
1468         * tests/test-fdatasync.c (main): Add more tests for EBADF.
1469
1470         Tests for module 'fchown'.
1471         * modules/fchown-tests: New file.
1472         * tests/test-fchown.c: New file.
1473
1474         Tests for module 'fchmod'.
1475         * modules/fchmod-tests: New file.
1476         * tests/test-fchmod.c: New file.
1477
1478         fchdir tests: EBADF tests.
1479         * tests/test-fchdir.c (main): Add more tests for EBADF.
1480
1481         dup2 tests: EBADF tests.
1482         * tests/test-dup2.c (main): Add more tests for EBADF.
1483
1484         Tests for module 'dup'.
1485         * modules/dup-tests: New file.
1486         * tests/test-dup.c: New file.
1487
1488         Tests for module 'close'.
1489         * modules/close-tests: New file.
1490         * tests/test-close.c: New file.
1491
1492 2011-09-20  Bruno Haible  <bruno@clisp.org>
1493
1494         Tests for module 'shutdown'.
1495         * modules/shutdown-tests: New file.
1496         * tests/test-shutdown.c: New file.
1497
1498         Tests for module 'setsockopt'.
1499         * modules/setsockopt-tests: New file.
1500         * tests/test-setsockopt.c: New file.
1501
1502         Tests for module 'sendto'.
1503         * modules/sendto-tests: New file.
1504         * tests/test-sendto.c: New file.
1505
1506         Tests for module 'send'.
1507         * modules/send-tests: New file.
1508         * tests/test-send.c: New file.
1509
1510         Tests for module 'recvfrom'.
1511         * modules/recvfrom-tests: New file.
1512         * tests/test-recvfrom.c: New file.
1513
1514         Tests for module 'recv'.
1515         * modules/recv-tests: New file.
1516         * tests/test-recv.c: New file.
1517
1518         Tests for module 'listen'.
1519         * modules/listen-tests: New file.
1520         * tests/test-listen.c: New file.
1521
1522         Tests for module 'getsockopt'.
1523         * modules/getsockopt-tests: New file.
1524         * tests/test-getsockopt.c: New file.
1525
1526         Tests for module 'getsockname'.
1527         * modules/getsockname-tests: New file.
1528         * tests/test-getsockname.c: New file.
1529
1530         Tests for module 'getpeername'.
1531         * modules/getpeername-tests: New file.
1532         * tests/test-getpeername.c: New file.
1533
1534         Tests for module 'connect'.
1535         * modules/connect-tests: New file.
1536         * tests/test-connect.c: New file.
1537
1538         Tests for module 'bind'.
1539         * modules/bind-tests: New file.
1540         * tests/test-bind.c: New file.
1541
1542         accept4 tests: Fix for native Windows.
1543         * tests/test-accept4.c: Include sockets.h.
1544         (main): Invoke gl_sockets_startup.
1545         * modules/accept4-tests (Depends-on): Add sockets.
1546
1547         accept tests: Fix for native Windows.
1548         * tests/test-accept.c: Include sockets.h.
1549         (main): Invoke gl_sockets_startup.
1550         * modules/accept-tests (Depends-on): Add sockets.
1551
1552 2011-09-19  Bruno Haible  <bruno@clisp.org>
1553
1554         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
1555         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
1556         do...while(0).
1557         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
1558         Suggested by Paul Eggert.
1559
1560 2011-09-19  Bruno Haible  <bruno@clisp.org>
1561
1562         sched: Ensure pid_t is defined.
1563         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
1564         not define pid_t.
1565         * lib/sched.in.h: Include <sys/types.h>.
1566         * doc/posix-headers/sched.texi: Mention the pid_t problem.
1567         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1568
1569 2011-09-19  Bruno Haible  <bruno@clisp.org>
1570
1571         msvc-inval: Ensure the entire expansion is a single statement.
1572         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
1573         of braces.
1574
1575 2011-09-19  Jim Meyering  <meyering@redhat.com>
1576
1577         tests: use printf, not echo in init.sh's warn_ function
1578         * tests/init.sh (warn_): Use printf, not echo.  The latter would
1579         misbehave when given strings containing a backslash or starting
1580         with e.g., -n.  James Youngman suggested setting IFS.
1581
1582 2011-09-19  Eric Blake  <eblake@redhat.com>
1583
1584         futimens: enhance test
1585         * tests/test-futimens.h (test_futimens): Also check for EBADF on
1586         closed non-negative fd.
1587
1588         date: accept 'hence' as opposite of 'ago'
1589         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
1590         * tests/test-parse-datetime.c (main): Enhance test.
1591         Suggested by Jesse Wilson.
1592
1593 2011-09-19  Jim Meyering  <meyering@redhat.com>
1594
1595         getcwd: don't fail in a deep directory on a system without openat
1596         Before this change, getcwd would fail when called from a directory
1597         of depth PATH_MAX / 3 or greater.  That was due to the fact that
1598         the non-openat implementation used "..", "../..", "../../..", etc.
1599         to access ancestor directories.  With too many, that string would
1600         be longer than PATH_MAX.
1601         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
1602         using gnulib's openat replacement.
1603         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
1604         we're using the replacement function.
1605
1606 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
1607
1608         maint.mk: avoid warnings from perl about missing files
1609         * top/maint.mk (def_sym_regex): Ignore files listed in
1610         $(gl_other_headers_) that do not exist, say because a project
1611         does not use a corresponding module.
1612
1613 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1614
1615         stat: use pathmax.h only if needed
1616         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
1617         This is better for Emacs, which does not have a mingw port and
1618         therefore can avoid the pathmax module.
1619
1620         utimens: remove dependency on dup2
1621         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
1622         to work around the Linux kernel bug.
1623         * modules/utimens (Depends-on): Remove dup2.
1624
1625 2011-09-18  Bruno Haible  <bruno@clisp.org>
1626
1627         inet_ntop, inet_pton: Look for it also in libresolv.
1628         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
1629         libnsl, search for it in libresolv.
1630         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1631         Needed on Solaris 7.
1632
1633 2011-09-18  Bruno Haible  <bruno@clisp.org>
1634
1635         accept, accept4 tests: Avoid link error on Solaris.
1636         * modules/accept-tests (Makefile.am): Link test-accept against
1637         $(LIBSOCKET).
1638         * modules/accept4-tests (Makefile.am): Link test-accept4 against
1639         $(LIBSOCKET).
1640
1641         accept4: Avoid link error on Solaris.
1642         * modules/accept4 (Link): New section.
1643
1644         socket functions: Avoid link errors on Solaris.
1645         * modules/accept (Depends-on): Add socketlib.
1646         (Link): New section.
1647         * modules/bind (Depends-on): Add socketlib.
1648         (Link): New section.
1649         * modules/connect (Depends-on): Add socketlib.
1650         (Link): New section.
1651         * modules/getpeername (Depends-on): Add socketlib.
1652         (Link): New section.
1653         * modules/getsockname (Depends-on): Add socketlib.
1654         (Link): New section.
1655         * modules/getsockopt (Depends-on): Add socketlib.
1656         (Link): New section.
1657         * modules/listen (Depends-on): Add socketlib.
1658         (Link): New section.
1659         * modules/recv (Depends-on): Add socketlib.
1660         (Link): New section.
1661         * modules/recvfrom (Depends-on): Add socketlib.
1662         (Link): New section.
1663         * modules/send (Depends-on): Add socketlib.
1664         (Link): New section.
1665         * modules/sendto (Depends-on): Add socketlib.
1666         (Link): New section.
1667         * modules/setsockopt (Depends-on): Add socketlib.
1668         (Link): New section.
1669         * modules/shutdown (Depends-on): Add socketlib.
1670         (Link): New section.
1671         * modules/socket (Depends-on): Add socketlib.
1672         (Link): New section.
1673
1674 2011-09-18  Bruno Haible  <bruno@clisp.org>
1675
1676         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
1677         * tests/test-ptsname.c (main): Terminate the test if it takes longer
1678         than 5 seconds.
1679         * modules/ptsname-tests (configure.ac): Test for alarm.
1680
1681 2011-09-18  Bruno Haible  <bruno@clisp.org>
1682
1683         posix_spawn_file_actions_add*: Fix module dependencies.
1684         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
1685         posix_spawn_file_actions_init.
1686         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
1687         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
1688
1689 2011-09-18  Bruno Haible  <bruno@clisp.org>
1690
1691         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
1692         * tests/test-rename.h (test_rename): Allow error code EEXIST.
1693         * tests/test-renameat.c (main): Likewise.
1694
1695 2011-09-18  Bruno Haible  <bruno@clisp.org>
1696
1697         Tests for module 'accept4'.
1698         * modules/accept4-tests: New file.
1699         * tests/test-accept4.c: New file.
1700
1701 2011-09-18  Bruno Haible  <bruno@clisp.org>
1702
1703         Tests for module 'accept'.
1704         * modules/accept-tests: New file.
1705         * tests/test-accept.c: New file.
1706
1707 2011-09-18  Bruno Haible  <bruno@clisp.org>
1708
1709         dup2: Support for MSVC.
1710         * lib/dup2.c: Include msvc-inval.h.
1711         (rpl_dup2): Handle invalid parameter notifications during dup2 and
1712         _get_osfhandle calls.
1713         * modules/dup2 (Depends-on): Add msvc-inval.
1714         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
1715
1716         New module 'msvc-inval'.
1717         * lib/msvc-inval.h: New file.
1718         * lib/msvc-inval.c: New file.
1719         * m4/msvc-inval.m4: New file.
1720         * modules/msvc-inval: New file.
1721
1722 2011-09-17  Bruno Haible  <bruno@clisp.org>
1723
1724         Tests for module 'pclose'.
1725         * modules/pclose-tests: New file.
1726
1727         New module 'pclose'.
1728         * lib/stdio.in.h (pclose): New declaration.
1729         * lib/pclose.c: New file.
1730         * m4/pclose.m4: New file.
1731         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
1732         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
1733         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
1734         * modules/pclose: New file.
1735         * modules/popen-tests (Depends-on): Add pclose.
1736         * modules/popen-safer-tests (Depends-on): Likewise.
1737         * doc/posix-functions/pclose.texi: Mention the new module.
1738
1739 2011-09-17  Bruno Haible  <bruno@clisp.org>
1740
1741         popen: Support for MSVC.
1742         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
1743         * lib/popen.c (popen): Provide alternate definition for native Windows.
1744         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
1745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
1746         * modules/popen (Depends-on, configure.ac): Update condition.
1747         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
1748         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
1749         fixed.
1750
1751 2011-09-17  Bruno Haible  <bruno@clisp.org>
1752
1753         isnanl, isnand, isnanf: Work around MSVC bug.
1754         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
1755
1756 2011-09-17  Bruno Haible  <bruno@clisp.org>
1757
1758         sys_socket tests: Fix recent mistake.
1759         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
1760
1761 2011-09-17  Bruno Haible  <bruno@clisp.org>
1762
1763         putenv: Support for MSVC.
1764         * modules/putenv (Depends-on): Add environ.
1765         * lib/putenv.c (environ): Disable declaration.
1766         * lib/unistd.in.h: Update comment.
1767
1768 2011-09-17  Bruno Haible  <bruno@clisp.org>
1769
1770         math: Avoid macro redefinition warnings on MSVC.
1771         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
1772         Undefine before redefining.
1773
1774 2011-09-17  Bruno Haible  <bruno@clisp.org>
1775
1776         doc: Mention functions which are declared as macros.
1777         * doc/posix-functions/*[fl].texi: Mention that some functions are
1778         defined as macros with arguments only.
1779
1780 2011-09-17  Bruno Haible  <bruno@clisp.org>
1781
1782         Add dependencies to new dirent related modules.
1783         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
1784         * modules/fts (Depends-on): Likewise.
1785         * modules/glob (Depends-on): Likewise.
1786         * modules/savedir (Depends-on): Likewise.
1787         * modules/scandir (Depends-on): Likewise.
1788         * modules/dirent-safer (Depends-on): Add opendir, closedir.
1789         * modules/fdopendir (Depends-on): Add opendir.
1790
1791 2011-09-17  Bruno Haible  <bruno@clisp.org>
1792
1793         inet_pton: Support for MSVC on Windows Vista or newer.
1794         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
1795         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
1796         HAVE_DECL_INET_PTON is defined.
1797         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
1798         On platforms with <winsock2.h>, test whether inet_pton is declared in
1799         <ws2tcpip.h>. If so, arrange to replace it.
1800         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
1801         REPLACE_INET_PTON.
1802         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
1803         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
1804         (Depends-on, configure.ac): Update condition.
1805         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
1806
1807 2011-09-17  Bruno Haible  <bruno@clisp.org>
1808
1809         inet_ntop: Support for MSVC on Windows Vista or newer.
1810         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
1811         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
1812         HAVE_DECL_INET_NTOP is defined.
1813         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
1814         On platforms with <winsock2.h>, test whether inet_ntop is declared in
1815         <ws2tcpip.h>. If so, arrange to replace it.
1816         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
1817         REPLACE_INET_NTOP.
1818         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
1819         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
1820         (Depends-on, configure.ac): Update condition.
1821         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
1822
1823 2011-09-16  Eric Blake  <eblake@redhat.com>
1824
1825         test-fsync: yet another enhancement
1826         * tests/test-fsync.c (main): Also test behavior on read-only text
1827         file.
1828
1829 2011-09-16  Bruno Haible  <bruno@clisp.org>
1830
1831         Enhance fsync, fdatasync tests.
1832         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
1833         * tests/test-fdatasync.c (main): Likewise.
1834
1835 2011-09-16  Bruno Haible  <bruno@clisp.org>
1836
1837         Support for MSVC compiler: Ensure mode_t gets defined.
1838         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
1839         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1840         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1841         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
1842         * tests/test-fcntl-h.c: Check that mode_t is defined.
1843         * tests/test-sys_stat.c: Likewise.
1844         * tests/test-sys_types.c: Likewise.
1845         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
1846         * doc/posix-headers/sys_stat.texi: Likewise.
1847         * doc/posix-headers/sys_types.texi: Likewise.
1848
1849 2011-09-16  Bruno Haible  <bruno@clisp.org>
1850
1851         sys_stat: Support for MSVC.
1852         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
1853         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
1854         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
1855         MSVC.
1856
1857 2011-09-16  Bruno Haible  <bruno@clisp.org>
1858
1859         Support for MSVC compiler: Ensure off_t gets defined.
1860         * lib/unistd.in.h: Include <sys/types.h>.
1861         * tests/test-fcntl-h.c: Check that off_t is defined.
1862         * tests/test-sys_stat.c: Likewise.
1863         * tests/test-sys_types.c: Likewise.
1864
1865 2011-09-16  Eric Blake  <eblake@redhat.com>
1866
1867         fdatasync: port to Solaris
1868         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
1869         * modules/fdatasync (Link): Document it.
1870         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
1871
1872         fdatasync: port to MacOS X 10.7
1873         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
1874         declared.
1875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
1876         * modules/unistd (Makefile.am): Substitute it.
1877         * lib/unistd.in.h (fdatasync): Declare on MacOS.
1878         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
1879
1880         fdatasync: minor improvements
1881         * modules/fdatasync (Depends-on): Add condition for fsync.
1882         * lib/fdatasync.c (fdatasync): Add comment.
1883         * tests/test-unistd-c++.cc: Test fdatasync.
1884
1885         unistd: update refs to newer POSIX
1886         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
1887         Suggested by Bruno Haible.
1888
1889         fdatasync: new module
1890         * modules/fsync (Description): Document difference to fdatasync.
1891         * modules/fdatasync: New module.
1892         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
1893         * lib/fdatasync.c (fdatasync): Likewise.
1894         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
1895         defaults.
1896         * modules/unistd (Makefile.am): Set witnesses.
1897         * lib/unistd.in.h (fdatasync): Declare.
1898         * MODULES.html.sh: Document it.
1899         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
1900         * modules/fdatasync-tests: New test.
1901         * tests/test-fdatasync.c: Likewise.
1902
1903 2011-09-16  Eric Blake  <eblake@redhat.com>
1904
1905         test-fsync: enhance tests
1906         * modules/fsync-tests (Depends-on): Add errno, for mingw.
1907         * tests/test-fsync.c (main): Enhance test.
1908
1909 2011-09-15  Bruno Haible  <bruno@clisp.org>
1910
1911         Support for MSVC compiler: Ensure ssize_t gets defined.
1912         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
1913         * doc/posix-headers/stdio.texi: Likewise.
1914         * modules/stdio (Depends-on): Add ssize_t.
1915         * modules/sys_socket (Depends-on): Likewise.
1916         * modules/sys_types (Depends-on): Likewise.
1917         * modules/sys_uio (Depends-on): Likewise.
1918         * modules/unistd (Depends-on): Likewise.
1919         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
1920         * tests/test-sys_types.c: Check that ssize_t is defined.
1921
1922 2011-09-14  Bruno Haible  <bruno@clisp.org>
1923
1924         Avoid using #, the m4 comment starter character, near brackets.
1925         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
1926         delimiter character in sed expressions.
1927         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1928         Suggested by Eric Blake.
1929
1930         Properly quote AC_CHECK_DECLS' 4th argument.
1931         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
1932         argument.
1933         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1934         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
1935         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1936         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
1937         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
1938         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
1939         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
1940         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
1941         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
1942         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
1943         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
1944         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1945         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
1946         * m4/isinf.m4 (gl_ISINF): Likewise.
1947         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1948         * m4/readutmp.m4 (gl_READUTMP): Likewise.
1949         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1950         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1951         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1952         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1953         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
1954         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
1955         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
1956         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1957         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1958         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1959         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
1960         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1961         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1962         Reported by Eric Blake.
1963
1964         Properly quote AC_CHECK_DECL's 4th argument.
1965         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
1966         argument.
1967         * m4/argp.m4 (gl_ARGP): Likewise.
1968         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
1969         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1970         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
1971         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
1972         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
1973         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
1974         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1975         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
1976         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1977         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
1978         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
1979         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
1980         Reported by Eric Blake.
1981
1982 2011-09-14  Eric Blake  <eblake@redhat.com>
1983
1984         opendir: avoid compile warning
1985         * lib/opendir.c (includes): Always include errno.h.
1986         Reported by Tatsuro MATSUOKA.
1987
1988 2011-09-14  Jim Meyering  <meyering@redhat.com>
1989
1990         maint.mk: sc_tight_scope: propagate failure from sub-make
1991         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
1992         Reported by Martin von Gagern.
1993
1994 2011-09-13  Bruno Haible  <bruno@clisp.org>
1995
1996         tempname: Support for MSVC.
1997         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
1998         MSVC.
1999         * modules/tempname (Depends-on): Add fcntl-h.
2000
2001 2011-09-13  Bruno Haible  <bruno@clisp.org>
2002
2003         sys_time: Support for MSVC.
2004         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
2005         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
2006         include <winsock2.h>.
2007         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
2008         function declarations that collide with POSIX.
2009         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
2010         (Makefile.am): Substitute HAVE_WINSOCK2_H.
2011
2012 2011-09-13  Bruno Haible  <bruno@clisp.org>
2013
2014         stat: Support for MSVC.
2015         * lib/stat.c: Include pathmax.h.
2016         * modules/stat (Depends-on): Add pathmax.
2017
2018         pathmax: Support for native Windows.
2019         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
2020
2021 2011-09-12  Bruno Haible  <bruno@clisp.org>
2022
2023         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
2024         * lib/dirent.in.h (struct dirent): New type.
2025         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
2026         DT_WHT): New macros.
2027         (DIR): New type.
2028         (opendir, closedir): Declare only if the module 'opendir' is enabled.
2029         (readdir, rewinddir): New declarations.
2030         * lib/dirent-private.h: New file.
2031         * lib/opendir.c: New file.
2032         * lib/readdir.c: New file.
2033         * lib/rewinddir.c: New file.
2034         * lib/closedir.c: New file.
2035         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
2036         * m4/opendir.m4: New file.
2037         * m4/readdir.m4: New file.
2038         * m4/rewinddir.m4: New file.
2039         * m4/closedir.m4: New file.
2040         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
2041         REPLACE_CLOSEDIR here.
2042         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
2043         readdir, rewinddir are declared.
2044         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
2045         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
2046         HAVE_REWINDDIR, HAVE_CLOSEDIR.
2047         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
2048         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
2049         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
2050         * modules/opendir: New file.
2051         * modules/readdir: New file.
2052         * modules/rewinddir: New file.
2053         * modules/closedir: New file.
2054         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
2055         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
2056         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
2057         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
2058         * NEWS: Mention the 'fchdir' change.
2059
2060 2011-09-11  Bruno Haible  <bruno@clisp.org>
2061
2062         asm-underscore.m4: Support for MSVC.
2063         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
2064         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
2065
2066 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
2067
2068         Doc about crypt functions.
2069         * doc/posix-functions/crypt.texi: Expand range of glibc versions
2070         needing for _GNU_SOURCE to get crypt.
2071         * doc/posix-functions/encrypt.texi: Likewise.
2072         * doc/posix-functions/setkey.texi: Likewise.
2073
2074 2011-09-11  Bruno Haible  <bruno@clisp.org>
2075
2076         doc: Update regarding MSVC 9.
2077         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
2078         tested".
2079         * doc/posix-functions/*.texi: Update with info about MSVC 9.
2080         * doc/posix-headers/*.texi: Likewise.
2081         * doc/pastposix-functions/*.texi: Likewise.
2082         * doc/glibc-functions/*.texi: Likewise.
2083         * doc/glibc-headers/*.texi: Likewise.
2084
2085 2011-09-11  Bruno Haible  <bruno@clisp.org>
2086
2087         unistd et al.: Don't assume <unistd.h> exists.
2088         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
2089         does not exist.
2090         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
2091         exist. But include <stdlib.h>.
2092         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
2093         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
2094         symlink() does not exist.
2095         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
2096         include <io.h> instead.
2097         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
2098         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
2099         include <direct.h> instead.
2100         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2101         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2102         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
2103         <io.h> instead.
2104         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
2105         correctly if the system does not have hard links.
2106         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
2107         <direct.h> instead.
2108         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
2109         it when looking for function declarations.
2110         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
2111         <direct.h> and <io.h> instead.
2112         * doc/posix-headers/unistd.texi: More details about MSVC problem.
2113
2114 2011-09-11  Bruno Haible  <bruno@clisp.org>
2115
2116         strcase: Support for MSVC.
2117         * modules/strcase (Status, Notice): Remove obsoletion mark.
2118         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
2119         * doc/posix-functions/strncasecmp.texi: Likewise.
2120
2121         strings: Don't assume <strings.h> exists.
2122         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
2123         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
2124         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
2125         * doc/posix-headers/strings.texi: Mention the MSVC problem.
2126
2127 2011-09-11  Bruno Haible  <bruno@clisp.org>
2128
2129         dirent: Don't assume <dirent.h> exists.
2130         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
2131         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
2132         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
2133         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
2134
2135 2011-09-11  Bruno Haible  <bruno@clisp.org>
2136
2137         Fix wint_t on MSVC.
2138         * lib/wchar.in.h (wint_t): On MSVC, override it.
2139         * lib/wctype.in.h (wint_t): Likewise.
2140         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
2141         MSVC.
2142         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
2143         * doc/posix-headers/wctype.texi: Likewise.
2144
2145 2011-09-11  Bruno Haible  <bruno@clisp.org>
2146
2147         sys_types: Fix typo.
2148         * lib/sys_types.in.h: Fix typo in comment.
2149         Reported by Paul Eggert.
2150
2151         Support for MSVC compiler: Ensure size_t gets defined.
2152         * modules/strings (Depends-on): Add 'sys_types'.
2153         * modules/sys_uio (Depends-on): Likewise.
2154         * lib/sys_uio.in.h: Update comment.
2155
2156         C++ tests for module 'sys_types'.
2157         * modules/sys_types-c++-tests: New file.
2158         * tests/test-sys_types-c++.cc: New file.
2159
2160         Tests for module 'sys_types'.
2161         * modules/sys_types-tests: New file.
2162         * tests/test-sys_types.c: New file.
2163
2164         New module 'sys_types'.
2165         * lib/sys_types.in.h: New file.
2166         * m4/sys_types_h.m4: New file.
2167         * modules/sys_types: New file.
2168         * doc/posix-headers/sys_types.texi: Mention the new module and the
2169         size_t problem on MSVC 9.
2170
2171 2011-09-11  Bruno Haible  <bruno@clisp.org>
2172
2173         Support for MSVC compiler: Avoid division by a literal 0.
2174         * lib/math.in.h (NAN): Define through a function call also on MSVC.
2175         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
2176         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
2177         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
2178         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
2179         * tests/infinity.h: New file.
2180         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
2181         on MSVC.
2182         * tests/test-ceilf1.c: Include infinity.h.
2183         (main): Use Infinityf.
2184         * tests/test-ceil1.c: Include infinity.h.
2185         (main): Use Infinityd.
2186         * tests/test-ceill.c: Include infinity.h.
2187         (main): Use Infinityl.
2188         * tests/test-dprintf-posix.c: Include infinity.h.
2189         (test_function): Use Infinityd.
2190         * tests/test-floorf1.c: Include infinity.h.
2191         (main): Use Infinityf.
2192         * tests/test-floor1.c: Include infinity.h.
2193         (main): Use Infinityd.
2194         * tests/test-floorl.c: Include infinity.h.
2195         (main): Use Infinityl.
2196         * tests/test-fprintf-posix.c: Include infinity.h.
2197         (test_function): Use Infinityd.
2198         * tests/test-frexp.c: Include infinity.h.
2199         (main): Use Infinityd.
2200         * tests/test-frexpl.c: Include infinity.h.
2201         (main): Use Infinityl.
2202         * tests/test-isfinite.c: Include infinity.h.
2203         (test_isfinitef): Use Infinityf.
2204         (test_isfinited): Use Infinityd.
2205         (test_isfinitel): Use Infinityl.
2206         * tests/test-isinf.c: Include infinity.h.
2207         (test_isinff): Use Infinityf.
2208         (test_isinfd): Use Infinityd.
2209         (test_isinfl): Use Infinityl.
2210         * tests/test-isnan.c: Include infinity.h.
2211         (test_float): Use Infinityf.
2212         (test_double): Use Infinityd.
2213         (test_long_double): Use Infinityl.
2214         * tests/test-isnanf.h: Include infinity.h.
2215         (main): Use Infinityf.
2216         * tests/test-isnand.h: Include infinity.h.
2217         (main): Use Infinityd.
2218         * tests/test-isnanl.h: Include infinity.h.
2219         (main): Use Infinityl.
2220         * tests/test-ldexpl.c: Include infinity.h.
2221         (main): Use Infinityl.
2222         * tests/test-printf-posix.h: Include infinity.h.
2223         (test_function): Use Infinityd.
2224         * tests/test-roundf1.c: Include infinity.h.
2225         (main): Use Infinityf.
2226         * tests/test-round1.c: Include infinity.h.
2227         (main): Use Infinityd.
2228         * tests/test-roundl.c: Include infinity.h.
2229         (main): Use Infinityl.
2230         * tests/test-signbit.c: Include infinity.h.
2231         (test_signbitf): Use Infinityf.
2232         (test_signbitd): Use Infinityd.
2233         (test_signbitl): Use Infinityl.
2234         * tests/test-snprintf-posix.h: Include infinity.h.
2235         (test_function): Use Infinityd, Infinityl.
2236         * tests/test-sprintf-posix.h: Include infinity.h.
2237         (test_function): Use Infinityd, Infinityl.
2238         * tests/test-truncf1.c: Include infinity.h.
2239         (main): Use Infinityf.
2240         * tests/test-trunc1.c: Include infinity.h.
2241         (main): Use Infinityd.
2242         * tests/test-truncl.c: Include infinity.h.
2243         (main): Use Infinityl.
2244         * tests/test-vasnprintf-posix.c: Include infinity.h.
2245         (test_function): Use Infinityd, Infinityl.
2246         * tests/test-vasprintf-posix.c: Include infinity.h.
2247         (test_function): Use Infinityd, Infinityl.
2248         * modules/ceilf-tests (Files): Add tests/infinity.h.
2249         * modules/ceil-tests (Files): Likewise.
2250         * modules/ceill-tests (Files): Likewise.
2251         * modules/dprintf-posix-tests (Files): Likewise.
2252         * modules/floorf-tests (Files): Likewise.
2253         * modules/floor-tests (Files): Likewise.
2254         * modules/floorl-tests (Files): Likewise.
2255         * modules/fprintf-posix-tests (Files): Likewise.
2256         * modules/frexp-tests (Files): Likewise.
2257         * modules/frexp-nolibm-tests (Files): Likewise.
2258         * modules/frexpl-tests (Files): Likewise.
2259         * modules/frexpl-nolibm-tests (Files): Likewise.
2260         * modules/isfinite-tests (Files): Likewise.
2261         * modules/isinf-tests (Files): Likewise.
2262         * modules/isnan-tests (Files): Likewise.
2263         * modules/isnanf-tests (Files): Likewise.
2264         * modules/isnanf-nolibm-tests (Files): Likewise.
2265         * modules/isnand-tests (Files): Likewise.
2266         * modules/isnand-nolibm-tests (Files): Likewise.
2267         * modules/isnanl-tests (Files): Likewise.
2268         * modules/isnanl-nolibm-tests (Files): Likewise.
2269         * modules/ldexpl-tests (Files): Likewise.
2270         * modules/printf-posix-tests (Files): Likewise.
2271         * modules/roundf-tests (Files): Likewise.
2272         * modules/round-tests (Files): Likewise.
2273         * modules/roundl-tests (Files): Likewise.
2274         * modules/signbit-tests (Files): Likewise.
2275         * modules/snprintf-posix-tests (Files): Likewise.
2276         * modules/sprintf-posix-tests (Files): Likewise.
2277         * modules/truncf-tests (Files): Likewise.
2278         * modules/trunc-tests (Files): Likewise.
2279         * modules/truncl-tests (Files): Likewise.
2280         * modules/vasnprintf-posix-tests (Files): Likewise.
2281         * modules/vasprintf-posix-tests (Files): Likewise.
2282         * modules/vdprintf-posix-tests (Files): Likewise.
2283         * modules/vfprintf-posix-tests (Files): Likewise.
2284         * modules/vprintf-posix-tests (Files): Likewise.
2285         * modules/vsnprintf-posix-tests (Files): Likewise.
2286         * modules/vsprintf-posix-tests (Files): Likewise.
2287         * modules/xprintf-posix-tests (Files): Likewise.
2288
2289 2011-09-11  Bruno Haible  <bruno@clisp.org>
2290
2291         Ensure pid_t gets defined.
2292         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
2293         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
2294         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2295         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2296         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
2297         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
2298         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
2299         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2300         * tests/test-fcntl-h.c: Check that pid_t is defined.
2301         * tests/test-sched.c: Likewise.
2302         * tests/test-termios.c: Likewise.
2303         * tests/test-time.c: Likewise.
2304         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
2305         * doc/posix-headers/signal.texi: Likewise.
2306         * doc/posix-headers/sys_types.texi: Likewise.
2307         * doc/posix-headers/time.texi: Likewise.
2308
2309 2011-09-11  Bruno Haible  <bruno@clisp.org>
2310
2311         acl: Fix compilation on Solaris 10 (older version).
2312         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
2313         of ACE_EVERYONE.
2314         * lib/set-mode-acl.c (qset_acl): Likewise.
2315         Reported by Christian Jullien <eligis@orange.fr>.
2316
2317 2011-09-10  Bruno Haible  <bruno@clisp.org>
2318
2319         iconv, unsetenv: Add support for MSVC compiler.
2320         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
2321         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
2322
2323 2011-09-10  Bruno Haible  <bruno@clisp.org>
2324
2325         *printf: Add support for MSVC compiler.
2326         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
2327         handles the exception caused by the %n directive. When cross-compiling,
2328         guess no on native Windows.
2329         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
2330         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
2331         emulate it through vsnprintf.
2332         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
2333         * doc/posix-functions/dprintf.texi: Update documentation regarding
2334         MSVC 9.
2335         * doc/posix-functions/fprintf.texi: Likewise.
2336         * doc/posix-functions/printf.texi: Likewise.
2337         * doc/posix-functions/snprintf.texi: Likewise.
2338         * doc/posix-functions/sprintf.texi: Likewise.
2339         * doc/posix-functions/swprintf.texi: Likewise.
2340         * doc/posix-functions/vdprintf.texi: Likewise.
2341         * doc/posix-functions/vfprintf.texi: Likewise.
2342         * doc/posix-functions/vprintf.texi: Likewise.
2343         * doc/posix-functions/vsnprintf.texi: Likewise.
2344         * doc/posix-functions/vsprintf.texi: Likewise.
2345         * doc/glibc-functions/asprintf.texi: Likewise.
2346         * doc/glibc-functions/obstack_printf.texi: Likewise.
2347         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
2348         * doc/glibc-functions/vasprintf.texi: Likewise.
2349
2350 2011-09-10  Bruno Haible  <bruno@clisp.org>
2351
2352         nocrash: Add support for native Windows.
2353         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
2354
2355 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
2356             Bruno Haible  <bruno@clisp.org>
2357
2358         absolute-header, include-next: Add support for MSVC compiler.
2359         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
2360         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
2361         directory separator in #line directives.
2362         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
2363         recognize also backslash as directory separator in #line directives.
2364
2365 2011-09-08  Jim Meyering  <meyering@redhat.com>
2366
2367         maint.mk: mark the post-release commit log with "maint: " prefix
2368         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
2369         one-line commit-log summary.
2370
2371 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
2372             Bruno Haible  <bruno@clisp.org>
2373
2374         Doc about crypt functions.
2375         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
2376         systems.
2377         * doc/posix-functions/encrypt.texi: Likewise.
2378         * doc/posix-functions/setkey.texi: Likewise.
2379
2380 2011-09-08  Simon Josefsson  <simon@josefsson.org>
2381
2382         * lib/gc.h: Fix copyright header.
2383
2384 2011-09-07  Bruno Haible  <bruno@clisp.org>
2385
2386         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
2387         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
2388         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
2389
2390 2011-09-07  Bruno Haible  <bruno@clisp.org>
2391
2392         openat: Work around compilation error with OSF/1 5.1 DTK cc.
2393         * lib/fopen.c: Use different syntax for include of <stdio.h>.
2394         * lib/freopen.c: Likewise.
2395         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
2396         * lib/lstat.c: Likewise.
2397         * lib/stat.c: Likewise.
2398         * lib/open.c: Use different syntax for include of <fcntl.h>.
2399         * lib/openat.c: Include fcntl.h again, explicitly.
2400
2401 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
2402
2403         parse-datetime: document the newly accepted format
2404         * doc/parse-datetime.texi (Combined date and time of day items):
2405         New section.
2406
2407 2011-09-06  Bruno Haible  <bruno@clisp.org>
2408
2409         acl: Fix a test failure on newer Solaris 10 with ZFS.
2410         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
2411         ENOSYS as no ACL.
2412         Reported by Jim Meyering.
2413
2414 2011-09-06  Bruno Haible  <bruno@clisp.org>
2415
2416         acl: Update for AIX >= 5.3 with NFS.
2417         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
2418         ENOSYS as no ACL.
2419
2420         acl: Fix a test failure on AIX >= 5.3 with NFS.
2421         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
2422         as no ACL.
2423
2424 2011-09-06  Bruno Haible  <bruno@clisp.org>
2425
2426         acl: Fix a test failure on IRIX 6.5 with NFS.
2427         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
2428         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
2429         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
2430         * lib/copy-acl.c (qcopy_acl): Likewise.
2431
2432 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
2433
2434         openat: port to AIX 7.1 with large files
2435         AIX 7.1 does a "#define openat open64at" if large files are in use,
2436         so we can't simply #undef openat.  Use the orig_openat trick (similar
2437         to orig_open in lib/open.c) to work around the problem.  Problem
2438         reported by Kevin Brott for GNU tar, in the thread containing
2439         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
2440         * lib/openat.c (__need_system_fcntl_h): Define first.
2441         Include <fcntl.h> and <sys/types.h> before undefining.
2442         (orig_openat) [HAVE_OPENAT]: New inline function.
2443         (openat) [HAVE_OPENAT]: Do not undef.
2444         (rpl_openat): Use orig_openat, not openat.
2445
2446 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
2447             Bruno Haible  <bruno@clisp.org>
2448
2449         acl: Avoid errors on NonStop Kernel.
2450         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
2451         ENOTSUP errors.
2452
2453 2011-09-05  Bruno Haible  <bruno@clisp.org>
2454
2455         acl: Clean up Solaris code.
2456         * lib/acl-internal.h: Remove no-op #if.
2457         * lib/file-has-acl.c: Likewise.
2458         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
2459         * lib/copy-acl.c (qcopy_acl): Likewise.
2460
2461 2011-09-05  Bruno Haible  <bruno@clisp.org>
2462
2463         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
2464         binaries built on the original Solaris 10.
2465         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
2466         trivial.
2467
2468 2011-09-05  Bruno Haible  <bruno@clisp.org>
2469
2470         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
2471         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
2472         10.
2473         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
2474         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
2475         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
2476         instead of acl_get, facl_get, acl_set, facl_set.
2477
2478 2011-09-05  Bruno Haible  <bruno@clisp.org>
2479
2480         copy-file: Try unit tests on more file systems.
2481         * tests/test-copy-file-1.sh: New file.
2482         * tests/test-copy-file-2.sh: New file.
2483         * modules/copy-file-tests (Files): Add them.
2484         (Makefile.am): Add them to TESTS.
2485
2486         acl: Try unit tests on more file systems.
2487         * tests/test-file-has-acl-1.sh: New file.
2488         * tests/test-file-has-acl-2.sh: New file.
2489         * tests/test-set-mode-acl-1.sh: New file.
2490         * tests/test-set-mode-acl-2.sh: New file.
2491         * tests/test-copy-acl-1.sh: New file.
2492         * tests/test-copy-acl-2.sh: New file.
2493         * modules/acl-tests (Files): Add them.
2494         (Makefile.am): Add them to TESTS.
2495
2496 2011-09-04  Bruno Haible  <bruno@clisp.org>
2497
2498         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
2499         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
2500         10.
2501         (OLD_ALLOW, OLD_DENY): New macros.
2502         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
2503         ACE_ACCESS_ALLOWED_ACE_TYPE.
2504         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
2505         ACE_ACCESS_DENIED_ACE_TYPE.
2506         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
2507         (NEW_ACE_EXECUTE): Fix value.
2508         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
2509         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
2510         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
2511         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
2512         NEW_ACE_SYNCHRONIZE): New macros.
2513         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
2514         instead of acl_fromtext, acl_set, facl_set.
2515         Fixes a coreutils/tests/cp/perm failure.
2516
2517 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
2518
2519         openat: test for fstatat (..., 0) bug
2520         Further testing with tar suggests that fstatat (..., 0)
2521         does not work in general, on AIX 7.1; see
2522         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
2523         So, give up entirely on AIX 7.1's fstatat, and fall back on our
2524         replacement fstatat (which is what older AIX releases were using
2525         anyway).
2526         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
2527         use is now changed to orig_fstatat.  This was probably the right
2528         thing to do anyway.
2529         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
2530         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
2531         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
2532         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
2533         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
2534         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
2535         if the bug is found.
2536
2537         openat: test for fstatat (AT_FDCWD, ..., 0) bug
2538         This tests for another fstatat bug on AIX 7.1:
2539         fstatat (AT_FDCWD, ..., 0) does not work.  See
2540         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
2541         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
2542         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
2543         (rpl_fstatat): Adjust so that it works around either (or both)
2544         bugs if present.
2545         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
2546
2547 2011-09-03  Karl Berry  <karl@gnu.org>
2548
2549         * doc/regex.texi (Character Class Operators): Avoid literal ":"
2550         in index entries.
2551
2552 2011-09-02  Bruno Haible  <bruno@clisp.org>
2553
2554         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
2555         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
2556         values of AR, ARFLAGS, RANLIB.
2557         Reported by John W. Eaton <jwe@gnu.org> for Octave.
2558
2559 2011-09-02  Bruno Haible  <bruno@clisp.org>
2560
2561         Find 'ar' program that fits with --host argument.
2562         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
2563
2564 2011-09-02  Bruno Haible  <bruno@clisp.org>
2565
2566         tests: init.sh: Support any non-GNU diff.
2567         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
2568         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
2569         Solaris 8.
2570
2571 2011-09-02  Bruno Haible  <bruno@clisp.org>
2572
2573         tests: init.sh: work also with any non-GNU diff that supports -u
2574         * tests/init.sh: Relax check for diff -u support.
2575         Rather than checking for GNU diff via --version, simply check
2576         for support for -u itself.  Useful at least on OpenBSD 4.9,
2577         AIX 7.1, IRIX 6.5, and Solaris 10.
2578
2579 2011-09-01  Bruno Haible  <bruno@clisp.org>
2580
2581         strtoimax, strtoumax: Document problem on HP-UX 11.
2582         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
2583         * doc/posix-functions/strtoumax.texi: Likewise.
2584
2585 2011-09-01  Bruno Haible  <bruno@clisp.org>
2586
2587         strtoumax: Avoid link error on OSF/1 with DTK cc.
2588         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
2589         defined as a function.
2590         * modules/strtoumax (Depends-on, configure.ac): Test only whether
2591         strtoumax is defined, not whether it is declared.
2592
2593 2011-09-01  Bruno Haible  <bruno@clisp.org>
2594
2595         strtoimax: Avoid link error on OSF/1 with DTK cc.
2596         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
2597         defined as a function.
2598         * modules/strtoimax (Depends-on, configure.ac): Test only whether
2599         strtoimax is defined, not whether it is declared.
2600
2601 2011-09-01  Bruno Haible  <bruno@clisp.org>
2602
2603         imaxdiv: Avoid link error on OSF/1 with DTK cc.
2604         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
2605         as a function.
2606         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
2607         whether it is declared.
2608
2609 2011-09-01  Bruno Haible  <bruno@clisp.org>
2610
2611         imaxabs: Avoid link error on OSF/1 with DTK cc.
2612         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
2613         as a function.
2614         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
2615         whether it is declared.
2616
2617 2011-09-01  Bruno Haible  <bruno@clisp.org>
2618
2619         Tests for module 'strtoumax'.
2620         * modules/strtoumax-tests: New file.
2621         * tests/test-strtoumax.c: New file.
2622
2623         Tests for module 'strtoimax'.
2624         * modules/strtoimax-tests: New file.
2625         * tests/test-strtoimax.c: New file.
2626
2627         Tests for module 'imaxdiv'.
2628         * modules/imaxdiv-tests: New file.
2629         * tests/test-imaxdiv.c: New file.
2630
2631         Tests for module 'imaxabs'.
2632         * modules/imaxabs-tests: New file.
2633         * tests/test-imaxabs.c: New file.
2634
2635 2011-09-01  Bruno Haible  <bruno@clisp.org>
2636
2637         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
2638         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
2639         pthread_create.
2640
2641 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2642
2643         openat: work around AIX 7.1 fstatat issue
2644         This should fix the problem that was not properly fixed
2645         in the previous change, dated 2011-08-30.
2646         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
2647         __need_system_stat_h defined.
2648         (orig_fstatat) [HAVE_FSTATAT]: New function.
2649         (rpl_fstatat): Go back to the old way of doing things,
2650         except call orig_fstatat instead of fstatat.
2651         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
2652         Remove unnecessary check whether fstatat fills in st_size etc.
2653
2654 2011-09-01  Bruno Haible  <bruno@clisp.org>
2655
2656         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
2657         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
2658         just include the system's header.
2659
2660 2011-08-31  Jim Meyering  <meyering@redhat.com>
2661
2662         tests: avoid spurious assertion failure in test-float.c on ppc64
2663         * tests/test-float.c (test_long_double): Comment out an assertion,
2664         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
2665         with gcc-4.4.4.
2666
2667         maint: indent with spaces, not TABs
2668         I need to get in the habit of running gnulib's "make check".
2669         Both of these would have been caught.
2670         * m4/largefile.m4: Indent with spaces, not TABs.
2671         * lib/parse-datetime.y (iso_8601_time): Likewise.
2672         Spotted by Pádraig Brady.
2673
2674         test-parse-datetime.c: accommodate a relatively strict gcc warning
2675         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
2676         to avoid a warning from gcc's -Werror=missing-declarations.
2677         Insert a few spaces-before-funcall-parenthesis.
2678
2679 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
2680
2681         parse-datetime: accept ISO 8601 date and time rep with "T" separator
2682         The parser now accepts ISO 8601 date-time strings with "T" as the
2683         separator.  It has long parsed dates like "2004-02-29 16:21:42"
2684         with a space between the date and time strings.  Now it also parses
2685         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
2686         variants like "2004-02-29T16:21:42.333-07:00"
2687         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
2688         of day representation using the 'T' separator character.
2689         * doc/parse-datetime.texi (General date syntax): replace use of
2690         deprecated --iso-8601 option with --rfc-3339 in example of date
2691         command output formats that can be parsed.
2692         * tests/test-parse-datetime.c (tm_diff): New function, taken from
2693         lib/parse-datetime.y.
2694         (gmt_offset): New function.
2695         (main): Add additional test cases to validate ISO8601 extended
2696         date and time of day parsing.
2697
2698 2011-08-31  Bruno Haible  <bruno@clisp.org>
2699
2700         freopen: Documentation.
2701         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
2702         name.
2703         Reported by Claudio Bley <claudio.bley@gmail.com>.
2704
2705 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
2706
2707         freopen: Don't crash if the filename argument is NULL.
2708         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
2709         NULL.
2710
2711 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
2712
2713         openat: work around AIX 7.1 fstatat bug
2714         Problem reported by Kevin Brott for GNU tar, in the thread containing
2715         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
2716         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
2717         FSTATAT_ST_SIZE_ETC_BROKEN.
2718         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
2719         rpl_fstatat.
2720         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
2721         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
2722         AC_CHECK_FUNCS_ONCE for fstatat.
2723         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
2724         fchmodat, mkdirat, openat and unlinkat.
2725
2726 2011-08-30  Bruno Haible  <bruno@clisp.org>
2727
2728         Avoid endless recursions if config.h includes some header files.
2729         * lib/fopen.c (__need_FILE): Define already before including config.h.
2730         * lib/freopen.c (__need_FILE): Likewise.
2731         * lib/open.c (__need_system_fcntl_h): Likewise.
2732         * lib/stat.c (__need_system_sys_stat_h): Likewise.
2733         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
2734         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2735
2736 2011-08-25  Karl Berry  <karl@gnu.org>
2737
2738         * config/srclist.txt (ylwrap): new try.
2739         * build-aux/ylwrap: new file.
2740
2741 2011-08-23  Bruno Haible  <bruno@clisp.org>
2742
2743         tmpdir: Use a good default directory on native Windows.
2744         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
2745         (P_tmpdir): Default to _P_tmpdir on native Windows.
2746         (path_search): On native Windows, try the value returned by GetTempPath
2747         before trying P_tmpdir.
2748         * modules/tmpdir (Depends-on): Add pathmax.
2749         Suggested by John Darrington <john@darrington.wattle.id.au>.
2750
2751 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
2752
2753         doc: fix typo in README-release
2754         * top/README-release: Capitalize first word of a sentence.
2755
2756 2011-08-19  Jim Meyering  <meyering@redhat.com>
2757
2758         fts: do not exhaust memory when processing million-entry directories
2759         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
2760         directory would require about 256*N bytes of memory.  Thus, it was
2761         easy to construct a directory too large to be processed by any of
2762         those tools.  With this change, fts' maximum memory utilization is
2763         now limited to around 30MB.
2764         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
2765         (fts_read): When we've processed the final entry (i.e., when
2766         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
2767         using the parent entry to read any remaining entries.  Dispatch
2768         depending on what fts_build returns:
2769         - NULL+stop, aka failure: stop
2770         - NULL otherwise: move up in the dir hierarchy
2771         - non-NULL: handle this new entry
2772         (fts_build): Declare and use new local, continue_readdir.
2773         Prepare to be called from fts_read, when the entries
2774         from a partially-read directory have just been exhausted.
2775         In that case, we'll skip the opendir and instead use the parent's
2776         fts_dirp and derive dir_fd from that.
2777         Finally, in the readdir loop, if we read max_entries entries,
2778         exit the loop ensuring *not* to call closedir.  This is required
2779         so that fts_dirp can be reused on a subsequent call.
2780         Prompted by Ben England's report of memory exhaustion in find
2781         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
2782
2783         maint: fts: move decl of `dp' down into while loop; split a long line
2784         * lib/fts.c (fts_build): No semantic change.
2785
2786         fts: add/use new struct member, fts_dirp
2787         We are about to use this to manage any directory with
2788         too many entries to read all of them into memory at once.
2789         To do that, we'll need to save the DIR* pointer in each
2790         affected FTSENT struct.
2791         * lib/fts_.h: Include <dirent.h>.
2792         (struct FTSENT) [fts_dirp]: New member.
2793         * lib/fts.c (closedir_and_clear): Define.
2794         Use it in place of closedir so that we are sure to
2795         clear the new fts_dirp member when done with it.
2796         (fts_alloc): Initialize the new member.
2797         (fts_lfree): Free, if needed.
2798
2799         maint: fts: give __opendir2 a new parameter and rename
2800         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
2801         than surreptitiously using sole caller's "dir_fd".
2802         (fts_opendir): Rename from __opendir2.
2803
2804         maint: fts.c: remove __opendir2's now-unused parameter, oflag
2805         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
2806
2807         maint: fts.c: correct off-by-one indentation
2808         * lib/fts.c (fts_build): Correct indentation, change style
2809         of a couple of block comments, and bracing style.
2810
2811         maint: fts.c: move __opendir2 #define "up" out of function body
2812         * lib/fts.c (__opendir2): Move "up".  No semantic change.
2813
2814         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
2815         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
2816         out for a long time and besides was useful only on BSD systems.
2817
2818 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
2819
2820         regex: port to Stratus OpenVOS
2821         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
2822         define to empty, rather than attempting nonportable optimizations.
2823         Problem reported by Paul Green in:
2824         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
2825         and fix suggested by Eric Blake in:
2826         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
2827
2828 2011-08-17  Eric Blake  <eblake@redhat.com>
2829
2830         getcwd: fix test failures on mingw
2831         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
2832         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
2833         test if long directory cannot be created, and allow mingw errno.
2834
2835         getcwd-lgpl: fix m4 to match relaxed test for BSD
2836         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
2837         (gl_FUNC_GETCWD_SIGNATURE): New macro.
2838         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
2839         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
2840         signature problem.
2841
2842         getcwd: fix compilation on mingw64
2843         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
2844         getcwd.
2845         Reported by Marc-André Lureau.
2846
2847         pipe2: silence compiler warning
2848         * lib/pipe2.c (pipe2): Hide label if it is not used.
2849
2850 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
2851
2852         relocatable-prog: fix link error
2853         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
2854         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
2855         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
2856         into modules/relocatable-lib without noticing that
2857         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
2858         also needs to build relocatable.c.
2859
2860 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
2861
2862         getaddrinfo: fix sh typo in gai_strerrorA decl checking
2863         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
2864         shell code: it contained a 'break' that was not in a loop.
2865         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
2866         via a shell-language loop; this may have been true in old Autoconf
2867         versions, but it's not true in Autoconf 2.68.  I found this bug
2868         when testing coreutils git on Solaris 8, whose shell complains
2869         about the syntax error.
2870
2871 2011-08-12  Simon Josefsson  <simon@josefsson.org>
2872
2873         * lib/base64.c: Fix comment to reference RFC 4648.
2874         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
2875         <gvtulder@gmail.com>.
2876
2877 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
2878
2879         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
2880
2881         po/Makefile.in.in: fix make -q problem
2882         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
2883         rule, since there's no file named 'check-macro-version' and its
2884         use as a file breaks make -q.
2885         (all): Don't depend on check-macro-version.
2886         (CHECK_MACRO_VERSION): New macro.
2887         (stamp-po): Use it.
2888
2889         configmake: fix make -q problem
2890         * modules/configmake (configmake.h): Update configmake.h's time stamp
2891         even if the file does not change.  Otherwise, 'make -q' fails.
2892         Problem reported by Simon Josefsson in
2893         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
2894
2895 2011-08-11  Jim Meyering  <meyering@redhat.com>
2896
2897         git-version-gen: correct the advice in a comment
2898         * build-aux/git-version-gen: Correct comment.
2899         Don't recommend to list .tarball-version in .gitignore.
2900
2901 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2902
2903         base64: fix off-by-one buffer size bug
2904         Problem and (trivial) fix reported by Gijs van Tulder in
2905         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
2906         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
2907         * tests/test-base64.c (main): Catch the bug.
2908
2909 2011-08-10  Eric Blake  <eblake@redhat.com>
2910
2911         closein: correct comments
2912         * lib/closein.c (close_stdin): Improve comments.
2913
2914 2011-08-09  Bruno Haible  <bruno@clisp.org>
2915
2916         More tests for 'fseeko'.
2917         * tests/test-fseeko3.c: New file, from Eric Blake.
2918         * tests/test-fseeko3.sh: New file.
2919         * modules/fseeko-tests (Files): Add them.
2920         (TESTS): Add test-fseeko3.sh.
2921         (check_PROGRAMS): Add test-fseeko3.
2922
2923 2011-08-09  Eric Blake  <eblake@redhat.com>
2924
2925         fseeko: remove unneeded hack
2926         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
2927
2928         fseeko: fix bug on glibc
2929         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
2930         Reported by John W. Eaton.
2931
2932 2011-08-08  Bruno Haible  <bruno@clisp.org>
2933
2934         unictype/base: Fix interoperability with preinstalled libunistring.
2935         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
2936         Reported by Simon Josefsson.
2937
2938 2011-08-08  Bruno Haible  <bruno@clisp.org>
2939
2940         iswblank: Detect declaration correctly.
2941         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
2942         AC_CHECK_DECLS invocation.
2943
2944 2011-08-08  Bruno Haible  <bruno@clisp.org>
2945
2946         tcgetsid: Detect declaration correctly.
2947         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
2948         AC_CHECK_DECLS invocation.
2949         Reported by Simon Josefsson.
2950
2951 2011-08-08  Eric Blake  <eblake@redhat.com>
2952
2953         largefile: fix typo that regressed large file support
2954         * modules/largefile (configure.ac-early): Fix section name.
2955
2956 2011-08-06  Karl Berry  <karl@gnu.org>
2957
2958         * MODULES.html.sh (func_all_files): _Noreturn is no longer
2959         a separate module.
2960
2961 2011-08-05  Simon Josefsson  <simon@josefsson.org>
2962
2963         openat: Fix warnings and commens when building unlinkat.c on Hurd.
2964         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
2965         get prototype for free.
2966
2967 2011-08-04  Bruno Haible  <bruno@clisp.org>
2968
2969         Tests for module 'pathmax'.
2970         * modules/pathmax-tests: New file.
2971         * tests/test-pathmax.c: New file.
2972
2973         canonicalize-lgpl: Support larger filenames on the Hurd.
2974         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
2975         Reported by Paul Eggert.
2976
2977         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
2978         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
2979         * lib/chdir-long.h: Include pathmax.h.
2980         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
2981         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
2982         (PATH_MAX): Remove code that is done by pathmax.h.
2983         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
2984         * lib/tmpfile.c: Add a comment.
2985         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
2986         * modules/chdir-long (Depends-on): Add pathmax.
2987         * modules/getcwd (Depends-on): Add pathmax.
2988         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
2989         is not defined.
2990         * doc/posix-headers/limits.texi: Mention the pathmax module.
2991         * NEWS: Mention the change.
2992
2993 2011-08-02  Bruno Haible  <bruno@clisp.org>
2994
2995         pthread_sigmask: Actually use results of gl_THREADLIB.
2996         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
2997         gl_THREADLIB, not gl_[]THREADLIB.
2998         Reported by Eric Blake.
2999
3000 2011-08-02  Jim Meyering  <meyering@redhat.com>
3001
3002         maint.mk: relax the default _gl_TS_function_match regexp
3003         * top/maint.mk (_gl_TS_function_match): Don't require at least one
3004         space between function name and "(" in an "extern" declaration.
3005         That would fail to match a decl with no space there: extern void foo();
3006
3007 2011-07-31  Iain Nicol  <iain@thenicols.net>
3008
3009         git-version-gen: document that EXTRA_DIST must include .version
3010         * build-aux/git-version-gen: In the how-to-use comment, document
3011         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
3012         will fail when run from an unpacked distribution tarball.
3013
3014 2011-08-01  Bruno Haible  <bruno@clisp.org>
3015
3016         wctype-h: Fix last change.
3017         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
3018         REPLACE_TOWLOWER to 0.
3019         Reported by Sam Steingold <sds@gnu.org>.
3020
3021 2011-07-31  Bruno Haible  <bruno@clisp.org>
3022
3023         frexpl: Update autoconf test.
3024         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
3025         according to changes of 2011-06-20.
3026
3027 2011-07-31  Bruno Haible  <bruno@clisp.org>
3028
3029         sys_utsname: Add support for Minix.
3030         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
3031         <sys/utsname.h>.
3032         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3033         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
3034
3035 2011-07-31  Bruno Haible  <bruno@clisp.org>
3036
3037         strings: Add support for Minix.
3038         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
3039         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3040         * doc/posix-headers/strings.texi: Document the Minix problem.
3041
3042 2011-07-31  Bruno Haible  <bruno@clisp.org>
3043
3044         wctype-h: Add support for Minix.
3045         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
3046         REPLACE_TOWLOWER.
3047         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
3048         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
3049         REPLACE_ISWCNTRL.
3050
3051 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
3052
3053         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
3054         This is a performance improvement for 64-bit hosts: it causes the
3055         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
3056
3057 2011-07-31  Bruno Haible  <bruno@clisp.org>
3058
3059         stdioext: Add support for Minix.
3060         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
3061         * lib/fpurge.c (fpurge): Likewise.
3062         * lib/freadahead.c (freadahead): Likewise.
3063         * lib/freadable.c (freadable): Likewise.
3064         * lib/freading.c (freading): Likewise.
3065         * lib/freadptr.c (freadptr): Likewise.
3066         * lib/freadseek.c (freadptrinc): Likewise.
3067         * lib/fseeko.c (rpl_fseeko): Likewise.
3068         * lib/fseterr.c (fseterr): Likewise.
3069         * lib/fwritable.c (fwritable): Likewise.
3070         * lib/fwriting.c (fwriting): Likewise.
3071         * lib/fflush.c (clear_ungetc_buffer): Update comment.
3072         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
3073
3074 2011-07-31  Bruno Haible  <bruno@clisp.org>
3075
3076         errno: Port to Minix.
3077         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
3078         ECONNABORTED are defined.
3079         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
3080         GNULIB_defined_ECONNABORTED): New macros.
3081         * lib/strerror-override.h (strerror_override): Test also
3082         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
3083         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
3084         ECONNABORTED.
3085         * doc/posix-headers/errno.texi: Mention the Minix problem.
3086
3087 2011-07-31  Bruno Haible  <bruno@clisp.org>
3088
3089         Work around declaration collisions on Minix.
3090         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
3091         defined, set REPLACE_MBSINIT.
3092         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
3093         defined, set REPLACE_MBRTOWC.
3094         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
3095         set REPLACE_MBRLEN.
3096         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
3097         defined, set REPLACE_MBSRTOWCS.
3098         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
3099         defined, set REPLACE_WCRTOMB.
3100         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
3101         defined, set REPLACE_WCSRTOMBS.
3102
3103 2011-07-31  Bruno Haible  <bruno@clisp.org>
3104
3105         Add support for Minix with ACK compiler.
3106         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
3107         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
3108         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
3109
3110 2011-07-31  Bruno Haible  <bruno@clisp.org>
3111
3112         Documentation about Minix.
3113         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
3114         * doc/glibc-headers/*.texi: Likewise.
3115         * doc/posix-functions/*.texi: Likewise.
3116         * doc/glibc-functions/*.texi: Likewise.
3117
3118 2011-07-31  Bruno Haible  <bruno@clisp.org>
3119
3120         snippet/warn-on-use: Fix indentation.
3121         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
3122
3123 2011-07-25  Jim Meyering  <meyering@redhat.com>
3124
3125         tests: test-update-copyright.sh: remove unnecessary "rm" commands
3126         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
3127         commands.
3128
3129 2011-07-27  Jim Meyering  <meyering@redhat.com>
3130
3131         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
3132         * top/maint.mk (gl_extract_significant_defines_): Now that
3133         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
3134         gnulib/lib/signal.in.h, and now that we recommend to
3135         define-if-undefined those two symbols in application code,
3136         we must filter them out of the "significant" list.
3137         This avoids a "make syntax-check" failure in coreutils.
3138
3139 2011-07-26  Eric Blake  <eblake@redhat.com>
3140
3141         warnings: add comments about previous patch
3142         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
3143         * m4/include_next.m4: Likewise.
3144         * m4/warn-on-use.m4: Likewise.
3145         * m4/warnings.m4: Likewise, and simplify use.
3146         Suggested by Stefano Lattarini.
3147
3148         include-next, warnings: support older autoconf
3149         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
3150         AS_VAR_PUSHDEF in a way that works with older autoconf.
3151         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
3152         Reported by Daniel P. Berrange.
3153
3154 2011-07-25  Bruno Haible  <bruno@clisp.org>
3155
3156         fseek, ftell: Fix doc.
3157         * doc/posix-functions/fseek.texi: Reword statement about
3158         AC_SYS_LARGEFILE.
3159         * doc/posix-functions/ftell.texi: Likewise.
3160
3161 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
3162             Bruno Haible  <bruno@clisp.org>
3163
3164         Add dependencies to the 'largefile' module.
3165         * modules/fopen (Depends-on): Add 'largefile'.
3166         * modules/freopen (Depends-on): Likewise.
3167         * modules/fseeko (Depends-on): Likewise.
3168         * modules/ftello (Depends-on): Likewise.
3169         * modules/glob (Depends-on): Likewise.
3170         * modules/lseek (Depends-on): Likewise.
3171         * modules/lstat (Depends-on): Likewise.
3172         * modules/mkostemp (Depends-on): Likewise.
3173         * modules/mkostemps (Depends-on): Likewise.
3174         * modules/mkstemp (Depends-on): Likewise.
3175         * modules/mkstemps (Depends-on): Likewise.
3176         * modules/open (Depends-on): Likewise.
3177         * modules/openat (Depends-on): Likewise.
3178         * modules/pread (Depends-on): Likewise.
3179         * modules/pwrite (Depends-on): Likewise.
3180         * modules/scandir (Depends-on): Likewise.
3181         * modules/stat (Depends-on): Likewise.
3182         * modules/tmpfile (Depends-on): Likewise.
3183         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
3184         since the containing module now depends on the largefile module.
3185         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
3186         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
3187         off_t is fixed by gnulib.
3188         * doc/posix-functions/freopen.texi: Likewise.
3189         * doc/posix-functions/fseeko.texi: Likewise.
3190         * doc/posix-functions/fstatat.texi: Likewise.
3191         * doc/posix-functions/ftello.texi: Likewise.
3192         * doc/posix-functions/glob.texi: Likewise.
3193         * doc/posix-functions/lseek.texi: Likewise.
3194         * doc/posix-functions/lstat.texi: Likewise.
3195         * doc/posix-functions/mkstemp.texi: Likewise.
3196         * doc/posix-functions/open.texi: Likewise.
3197         * doc/posix-functions/openat.texi: Likewise.
3198         * doc/posix-functions/pread.texi: Likewise.
3199         * doc/posix-functions/pwrite.texi: Likewise.
3200         * doc/posix-functions/scandir.texi: Likewise.
3201         * doc/posix-functions/stat.texi: Likewise.
3202         * doc/posix-functions/tmpfile.texi: Likewise.
3203         * doc/glibc-functions/mkostemp.texi: Likewise.
3204         * doc/glibc-functions/mkostemps.texi: Likewise.
3205         * doc/glibc-functions/mkstemps.texi: Likewise.
3206
3207 2011-07-25  Bruno Haible  <bruno@clisp.org>
3208
3209         fcntl: Move AC_LIBOBJ invocation to module description.
3210         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
3211         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
3212
3213         fcntl: Remove call-in from fchdir.m4.
3214         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
3215         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
3216
3217         dup3: Remove potential call-in from fchdir.m4.
3218         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
3219         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
3220
3221         dup2: Move AC_LIBOBJ invocation to module description.
3222         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
3223         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
3224         Don't invoke AC_LIBOBJ.
3225         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
3226
3227         dup2: Remove call-in from fchdir.m4.
3228         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
3229         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
3230
3231         fclose: Move AC_LIBOBJ invocation to module description.
3232         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
3233         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
3234         to 1.
3235         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
3236
3237         fclose: Remove call-in from close.m4.
3238         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
3239         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
3240
3241         close: Move AC_LIBOBJ invocation to module description.
3242         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
3243         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
3244         1.
3245         * modules/close (configure.ac): Invoke AC_LIBOBJ.
3246
3247         close: Remove call-in from fchdir.m4.
3248         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
3249         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
3250
3251         open: Move AC_LIBOBJ invocation to module description.
3252         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
3253         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
3254         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
3255
3256         open: Remove call-in from fchdir.m4.
3257         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
3258         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
3259
3260         fchdir: Start to remove gl_REPLACE_* idiom.
3261         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
3262         (gl_FUNC_FCHDIR): Invoke it.
3263
3264 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
3265
3266         * lib/ftell.c (ftell): Comment out cast.
3267
3268         close: use gl_REPLACE_FCLOSE only if defined
3269         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
3270         is defined.  The close module doesn't depend on the fclose module
3271         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
3272         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
3273         I reproduced the problem with "./gnulib-tool --test close sys_socket".
3274
3275 2011-07-24  Jim Meyering  <meyering@redhat.com>
3276
3277         test-select.h: avoid warning when using gcc's -Wmissing-declarations
3278         * tests/test-select.h (test_function): Declare as "static".
3279
3280 2011-07-24  Bruno Haible  <bruno@clisp.org>
3281
3282         doc: Mention the effects of AC_SYS_LARGEFILE.
3283         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
3284         on this function.
3285         * doc/posix-functions/aio_error.texi: Likewise.
3286         * doc/posix-functions/aio_fsync.texi: Likewise.
3287         * doc/posix-functions/aio_read.texi: Likewise.
3288         * doc/posix-functions/aio_return.texi: Likewise.
3289         * doc/posix-functions/aio_suspend.texi: Likewise.
3290         * doc/posix-functions/aio_write.texi: Likewise.
3291         * doc/posix-functions/fgetpos.texi: Likewise.
3292         * doc/posix-functions/fopen.texi: Likewise.
3293         * doc/posix-functions/freopen.texi: Likewise.
3294         * doc/posix-functions/fsetpos.texi: Likewise.
3295         * doc/posix-functions/fstatvfs.texi: Likewise.
3296         * doc/posix-functions/ftruncate.texi: Likewise.
3297         * doc/posix-functions/ftw.texi: Likewise.
3298         * doc/posix-functions/getrlimit.texi: Likewise.
3299         * doc/posix-functions/glob.texi: Likewise.
3300         * doc/posix-functions/lio_listio.texi: Likewise.
3301         * doc/posix-functions/lockf.texi: Likewise.
3302         * doc/posix-functions/mkstemp.texi: Likewise.
3303         * doc/posix-functions/mmap.texi: Likewise.
3304         * doc/posix-functions/nftw.texi: Likewise.
3305         * doc/posix-functions/openat.texi: Likewise.
3306         * doc/posix-functions/opendir.texi: Likewise.
3307         * doc/posix-functions/posix_fadvise.texi: Likewise.
3308         * doc/posix-functions/posix_fallocate.texi: Likewise.
3309         * doc/posix-functions/pread.texi: Likewise.
3310         * doc/posix-functions/pwrite.texi: Likewise.
3311         * doc/posix-functions/readdir.texi: Likewise.
3312         * doc/posix-functions/readdir_r.texi: Likewise.
3313         * doc/posix-functions/rewinddir.texi: Likewise.
3314         * doc/posix-functions/scandir.texi: Likewise.
3315         * doc/posix-functions/seekdir.texi: Likewise.
3316         * doc/posix-functions/setrlimit.texi: Likewise.
3317         * doc/posix-functions/statvfs.texi: Likewise.
3318         * doc/posix-functions/telldir.texi: Likewise.
3319         * doc/posix-functions/tmpfile.texi: Likewise.
3320         * doc/posix-functions/truncate.texi: Likewise.
3321         * doc/glibc-functions/fallocate.texi: Likewise.
3322         * doc/glibc-functions/fstatfs.texi: Likewise.
3323         * doc/glibc-functions/fts_children.texi: Likewise.
3324         * doc/glibc-functions/fts_read.texi: Likewise.
3325         * doc/glibc-functions/getdirentries.texi: Likewise.
3326         * doc/glibc-functions/mkostemp.texi: Likewise.
3327         * doc/glibc-functions/mkostemps.texi: Likewise.
3328         * doc/glibc-functions/mkstemps.texi: Likewise.
3329         * doc/glibc-functions/preadv.texi: Likewise.
3330         * doc/glibc-functions/pwritev.texi: Likewise.
3331         * doc/glibc-functions/sendfile.texi: Likewise.
3332         * doc/glibc-functions/statfs.texi: Likewise.
3333
3334 2011-07-24  Bruno Haible  <bruno@clisp.org>
3335
3336         doc: Fix typo.
3337         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
3338
3339 2011-07-24  Bruno Haible  <bruno@clisp.org>
3340
3341         doc: Mention fsusage.
3342         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
3343
3344 2011-07-24  Bruno Haible  <bruno@clisp.org>
3345
3346         doc: Mention new glibc headers and functions.
3347         * doc/glibc-headers/gshadow.texi: New file.
3348         * doc/glibc-functions/endsgent.texi: New file.
3349         * doc/glibc-functions/fgetsgent.texi: New file.
3350         * doc/glibc-functions/fgetsgent_r.texi: New file.
3351         * doc/glibc-functions/getsgent.texi: New file.
3352         * doc/glibc-functions/getsgent_r.texi: New file.
3353         * doc/glibc-functions/getsgnam.texi: New file.
3354         * doc/glibc-functions/getsgnam_r.texi: New file.
3355         * doc/glibc-functions/putsgent.texi: New file.
3356         * doc/glibc-functions/setsgent.texi: New file.
3357         * doc/glibc-functions/sgetsgent.texi: New file.
3358         * doc/glibc-functions/sgetsgent_r.texi: New file.
3359         * doc/glibc-functions/malloc_info.texi: New file.
3360         * doc/glibc-functions/preadv.texi: New file.
3361         * doc/glibc-functions/pwritev.texi: New file.
3362         * doc/glibc-functions/register_printf_modifier.texi: New file.
3363         * doc/glibc-functions/register_printf_specifier.texi: New file.
3364         * doc/glibc-functions/register_printf_type.texi: New file.
3365         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
3366         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
3367         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
3368         * doc/glibc-functions/pthread_getname_np.texi: New file.
3369         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
3370         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
3371         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
3372         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
3373         * doc/glibc-functions/pthread_setname_np.texi: New file.
3374         * doc/glibc-functions/pthread_sigqueue.texi: New file.
3375         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
3376         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
3377         * doc/glibc-functions/qsort_r.texi: New file.
3378         * doc/glibc-functions/quick_exit.texi: New file.
3379         * doc/glibc-functions/syncfs.texi: New file.
3380         * doc/gnulib.texi: Include them.
3381         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
3382         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
3383         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
3384         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
3385         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
3386         * doc/glibc-functions/execvpe.texi: Likewise.
3387
3388 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
3389
3390         ftell: don't include <unistd.h>
3391         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
3392         guaranteed to define off_t, and the ftell module depends on the
3393         stdio module.
3394
3395         ftell: do not assume wraparound signed arithmetic
3396         * lib/ftell.c: Include <limits.h>.
3397         (ftell): Don't assume wraparound signed arithmetic.
3398
3399 2011-07-24  Bruno Haible  <bruno@clisp.org>
3400
3401         close: No longer depend on module 'fclose'.
3402         * modules/close (Depends-on): Remove fclose.
3403         * NEWS: Mention the change.
3404         Suggested by Sam Steingold <sds@gnu.org>.
3405
3406 2011-07-24  Bruno Haible  <bruno@clisp.org>
3407
3408         fsusage: Enable large volume support on AIX >= 5.2.
3409         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
3410         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
3411         instead of STAT_STATVFS.
3412         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
3413
3414         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
3415         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
3416         f_blocks field only on MacOS X.
3417
3418         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
3419         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
3420         * modules/fsusage (Depends-on): Add largefile.
3421
3422 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
3423
3424         * README: Modernize discussion of signed integers.
3425         Assuming overflow wraparound is no longer safe.
3426         Mention ones' complement and signed magnitude.
3427
3428 2011-07-22  Bruno Haible  <bruno@clisp.org>
3429
3430         select tests, pselect tests: Refactor.
3431         * tests/test-select.h: New file, extracted from tests/test-select.c.
3432         (select_fn): New type.
3433         (test, do_select, do_select_nowait, do_select_wait, test_tty,
3434         test_connect_first, test_accept_first, test_pair, test_socket_pair,
3435         test_pipe): Add my_select argument.
3436         (test_function): Renamed from main. Add my_select argument.
3437         * tests/test-select.c: Move most code to tests/test-select.h. Include
3438         test-select.h.
3439         * modules/select-tests (Files): Add tests/test-select.h.
3440         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
3441         (my_select, main): New functions.
3442         * modules/pselect-tests (Files): Add tests/test-select.h,
3443         tests/macros.h, tests/signature.h.
3444         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
3445         (configure.ac): Check for <sys/wait.h>.
3446
3447 2011-07-22  Bruno Haible  <bruno@clisp.org>
3448
3449         sys_select tests: Check the signature of FD_*.
3450         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
3451         signature tests from here...
3452         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
3453         here.
3454         * modules/sys_select-tests (Files): Add tests/signature.h.
3455
3456 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
3457
3458         largefile: new module, replacing large-inode
3459         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
3460         * MODULES.html.sh: Add largefile, remove large-inode.
3461         * modules/largefile, m4/largefile.m4: New files.
3462         * modules/large-inode, m4/large-inode.m4: Remove.
3463
3464         fsusage: port to MacOS X 10.7 with 4 TiB file systems
3465         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
3466         implementations that use only 32 bits to count blocks.
3467         On typical hosts with 1024-byte blocks, this fails with file
3468         systems as small as 4 TiB.  Problem reported by Herb Wartens
3469         <http://debbugs.gnu.org/9140> and this should also fix a similar
3470         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
3471
3472         large-inode: New module
3473         * MODULES.html.sh: Add it.
3474         * modules/large-inode, m4/large-inode.m4: New files.
3475
3476         extensions: Enable extensions on MacOS X 10.5 and later.
3477         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
3478
3479 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
3480
3481         file-has-acl: use acl_extended_file_nofollow if available
3482         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
3483         (acl_extended_file): New macro.
3484         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
3485         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
3486
3487 2011-07-21  Bruno Haible  <bruno@clisp.org>
3488
3489         Declare system functions in a way that works with C++.
3490         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
3491         declare fdopendir as extern "C".
3492         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
3493         declare frexpl as extern "C".
3494         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
3495         declare gai_strerror as extern "C".
3496         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
3497         programs, declare gai_strerror as extern "C".
3498         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
3499         declare getlogin_r as extern "C".
3500         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
3501         as extern "C".
3502         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
3503         declare ldexpl as extern "C".
3504         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
3505         as extern "C".
3506         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
3507         program, declare getmntinfo as extern "C".
3508         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
3509         stpncpy as extern "C".
3510         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
3511         program, declare __xpg_strerror_r as extern "C".
3512         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
3513         strndup as extern "C".
3514         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
3515         declare memset and bzero as extern "C".
3516         Reported by Sam Steingold <sds@gnu.org>.
3517
3518 2011-07-12  Jim Meyering  <meyering@redhat.com>
3519
3520         maint.mk: prohibit inclusion of "verify.h" without use
3521         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
3522
3523 2011-07-19  Pádraig Brady  <P@draigBrady.com>
3524
3525         timer-time: A new module to check for timer_settime()
3526         * m4/timer_time.m4: Check for the posix function.
3527         * modules/timer-time: Add the new module.
3528         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
3529         Mention it.
3530
3531 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
3532             Bruno Haible  <bruno@clisp.org>
3533
3534         pthread_sigmask: assume POSIX threads if --avoid=threadlib
3535         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
3536         not defined, assume POSIX threads and look for pthread_sigmask in
3537         $LIBS, without changing $CPPFLAGS.
3538
3539 2011-07-19  Bruno Haible  <bruno@clisp.org>
3540
3541         strstr: Update cross-compilation guess.
3542         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
3543         CPUs, guess no, in view of glibc
3544         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
3545         Suggested by Eric Blake. Reported by Reuben Thomas.
3546
3547 2011-07-19  Pádraig Brady  <P@draigBrady.com>
3548
3549         getopt-gnu: suppress core dumps from detection code
3550         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
3551         to suppress core dumps that may well occur on glibc systems.
3552         * modules/getopt-gnu: Depend on nocrash.
3553
3554 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
3555
3556         pthread_sigmask: ensure usleep is declared
3557         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
3558         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
3559
3560 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3561
3562         doc: Document NonStop portability issues.
3563         * doc/posix-functions/sigaction.texi (sigaction):
3564         * doc/posix-headers/signal.texi (signal.h):
3565         Document NonStop.  See Joachim Schmitz in
3566         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
3567
3568 2011-07-15  Bruno Haible  <bruno@clisp.org>
3569
3570         ffsl, ffsll: Avoid unportable behaviour.
3571         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
3572
3573 2011-07-15  Bruno Haible  <bruno@clisp.org>
3574
3575         ffs: More tests.
3576         * tests/test-ffs.c (NBITS): New macro.
3577         (main): Add more tests.
3578         * tests/test-ffsl.c (NBITS): New macro.
3579         (main): Add more tests.
3580         * tests/test-ffsll.c (NBITS): New macro.
3581         (main): Add more tests.
3582
3583 2011-07-15  Eric Blake  <eblake@redhat.com>
3584
3585         ffsl, ffsll: new modules
3586         * modules/ffsl: New file.
3587         * modules/ffsll: Likewise.
3588         * m4/ffsl.m4: Likewise.
3589         * m4/ffsll.m4: Likewise.
3590         * lib/ffsl.c: Likewise.
3591         * lib/ffsl.h: Likewise.
3592         * lib/ffsll.c: Likewise.
3593         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
3594         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
3595         * modules/string (Makefile.am): Substitute witnesses.
3596         * lib/strings.in.h (ffsl, ffsll): Declare.
3597         * modules/ffsl-tests: New test file.
3598         * modules/ffsll-tests: Likewise.
3599         * tests/test-ffsl.c: Likewise.
3600         * tests/test-ffsll.c: Likewise.
3601         * MODULES.html.sh (Integer arithmetic functions): Mention it.
3602         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
3603         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
3604
3605         ffs: fix m4 prerequisite
3606         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
3607
3608         ffs: avoid undefined behavior
3609         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
3610         * tests/test-ffs.c (naive, main): Avoid signed shifts.
3611         Reported by Bruno Haible.
3612
3613 2011-07-12  Bruno Haible  <bruno@clisp.org>
3614
3615         pthread_sigmask: Rely on module 'threadlib'.
3616         * modules/pthread_sigmask (Depends-on): Add threadlib.
3617         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
3618         is defined.
3619
3620 2011-07-12  Bruno Haible  <bruno@clisp.org>
3621
3622         regex: Depend on module 'strcase'.
3623         * modules/regex (Depends-on): Add strcase, for strcasecmp().
3624
3625 2011-07-12  Jim Meyering  <meyering@redhat.com>
3626
3627         warn-on-use: fix typo in file name
3628         * modules/snippet/warn-on-use (Files): Correct file name:
3629         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
3630
3631 2011-07-12  Bruno Haible  <bruno@clisp.org>
3632
3633         strings: Document module.
3634         * doc/posix-headers/strings.texi: Mention module 'strings'.
3635
3636 2011-07-12  Bruno Haible  <bruno@clisp.org>
3637
3638         Rename module '_Noreturn' to 'snippet/_Noreturn'.
3639         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
3640         (Files, Makefile.am): Update.
3641         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
3642         * modules/stdlib (Depends-on): Update.
3643
3644 2011-07-12  Bruno Haible  <bruno@clisp.org>
3645
3646         * NEWS: Mention the changes.
3647
3648         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
3649         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
3650         (Files, Makefile.am): Update.
3651         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
3652         * modules/arpa_inet (Depends-on): Update.
3653         * modules/ctype (Depends-on): Update.
3654         * modules/dirent (Depends-on): Update.
3655         * modules/fcntl-h (Depends-on): Update.
3656         * modules/glob (Depends-on): Update.
3657         * modules/iconv-h (Depends-on): Update.
3658         * modules/inttypes-incomplete (Depends-on): Update.
3659         * modules/langinfo (Depends-on): Update.
3660         * modules/locale (Depends-on): Update.
3661         * modules/math (Depends-on): Update.
3662         * modules/netdb (Depends-on): Update.
3663         * modules/poll-h (Depends-on): Update.
3664         * modules/pty (Depends-on): Update.
3665         * modules/search (Depends-on): Update.
3666         * modules/signal (Depends-on): Update.
3667         * modules/spawn (Depends-on): Update.
3668         * modules/stdio (Depends-on): Update.
3669         * modules/stdlib (Depends-on): Update.
3670         * modules/string (Depends-on): Update.
3671         * modules/strings (Depends-on): Update.
3672         * modules/sys_file (Depends-on): Update.
3673         * modules/sys_ioctl (Depends-on): Update.
3674         * modules/sys_select (Depends-on): Update.
3675         * modules/sys_socket (Depends-on): Update.
3676         * modules/sys_stat (Depends-on): Update.
3677         * modules/sys_time (Depends-on): Update.
3678         * modules/sys_times (Depends-on): Update.
3679         * modules/sys_utsname (Depends-on): Update.
3680         * modules/sys_wait (Depends-on): Update.
3681         * modules/termios (Depends-on): Update.
3682         * modules/time (Depends-on): Update.
3683         * modules/unistd (Depends-on): Update.
3684         * modules/wchar (Depends-on): Update.
3685         * modules/wctype-h (Depends-on): Update.
3686         * MODULES.html.sh (Support for building libraries and executables):
3687         Update.
3688
3689         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
3690         * modules/snippet/unused-parameter: Renamed from
3691         modules/unused-parameter.
3692         (Files, Makefile.am): Update.
3693         * build-aux/snippet/unused-parameter.h: Renamed from
3694         build-aux/unused-parameter.h.
3695         * modules/selinux-h (Depends-on): Update.
3696         * modules/unistr/base (Depends-on): Update.
3697         * MODULES.html.sh (Core language properties): Update.
3698
3699         Rename module 'link-warning' to 'snippet/link-warning'.
3700         * modules/snippet/link-warning: Renamed from modules/link-warning.
3701         (Files, Makefile.am): Update.
3702         * build-aux/snippet/link-warning.h: Renamed from
3703         build-aux/link-warning.h.
3704         * MODULES.html.sh (Support for building libraries and executables):
3705         Update.
3706
3707         Rename module 'c++defs' to 'snippet/c++defs'.
3708         * modules/snippet/c++defs: Renamed from modules/c++defs.
3709         (Files, Makefile.am): Update.
3710         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
3711         * modules/arpa_inet (Depends-on): Update.
3712         * modules/ctype (Depends-on): Update.
3713         * modules/dirent (Depends-on): Update.
3714         * modules/fcntl-h (Depends-on): Update.
3715         * modules/glob (Depends-on): Update.
3716         * modules/iconv-h (Depends-on): Update.
3717         * modules/langinfo (Depends-on): Update.
3718         * modules/locale (Depends-on): Update.
3719         * modules/math (Depends-on): Update.
3720         * modules/netdb (Depends-on): Update.
3721         * modules/poll-h (Depends-on): Update.
3722         * modules/pty (Depends-on): Update.
3723         * modules/search (Depends-on): Update.
3724         * modules/signal (Depends-on): Update.
3725         * modules/spawn (Depends-on): Update.
3726         * modules/stdio (Depends-on): Update.
3727         * modules/stdlib (Depends-on): Update.
3728         * modules/string (Depends-on): Update.
3729         * modules/strings (Depends-on): Update.
3730         * modules/sys_ioctl (Depends-on): Update.
3731         * modules/sys_select (Depends-on): Update.
3732         * modules/sys_socket (Depends-on): Update.
3733         * modules/sys_stat (Depends-on): Update.
3734         * modules/sys_time (Depends-on): Update.
3735         * modules/sys_wait (Depends-on): Update.
3736         * modules/termios (Depends-on): Update.
3737         * modules/time (Depends-on): Update.
3738         * modules/unistd (Depends-on): Update.
3739         * modules/wchar (Depends-on): Update.
3740         * modules/wctype-h (Depends-on): Update.
3741
3742         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
3743         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
3744         (Files, Makefile.am): Update.
3745         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
3746         * modules/argv-iter (Depends-on): Update.
3747         * modules/arpa_inet (Depends-on): Update.
3748         * modules/dirent (Depends-on): Update.
3749         * modules/fcntl-h (Depends-on): Update.
3750         * modules/fnmatch (Depends-on): Update.
3751         * modules/getopt-posix (Depends-on): Update.
3752         * modules/glob (Depends-on): Update.
3753         * modules/iconv-h (Depends-on): Update.
3754         * modules/inttypes-incomplete (Depends-on): Update.
3755         * modules/locale (Depends-on): Update.
3756         * modules/math (Depends-on): Update.
3757         * modules/netdb (Depends-on): Update.
3758         * modules/search (Depends-on): Update.
3759         * modules/signal (Depends-on): Update.
3760         * modules/spawn (Depends-on): Update.
3761         * modules/stdio (Depends-on): Update.
3762         * modules/stdlib (Depends-on): Update.
3763         * modules/string (Depends-on): Update.
3764         * modules/strings (Depends-on): Update.
3765         * modules/sys_socket (Depends-on): Update.
3766         * modules/sys_stat (Depends-on): Update.
3767         * modules/sys_time (Depends-on): Update.
3768         * modules/sys_times (Depends-on): Update.
3769         * modules/sys_utsname (Depends-on): Update.
3770         * modules/time (Depends-on): Update.
3771         * modules/unistd (Depends-on): Update.
3772         * modules/wchar (Depends-on): Update.
3773         * MODULES.html.sh (Support for building libraries and executables):
3774         Update.
3775
3776 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
3777
3778         Improvements on _Noreturn and related modules.
3779
3780         modules/_Exit-tests: test _Noreturn too
3781         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
3782         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
3783         (main): Use them.
3784
3785         stdnoreturn, stdnoreturn-tests: remove modules
3786         They're not needed here and a bit premature for use elsewhere.  See
3787         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
3788         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3789         * tests/test-stdnoreturn.c: Remove files.
3790         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
3791         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
3792         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
3793         and using noreturn.
3794         * modules/openat, modules/sigpipe-die, modules/xalloc:
3795         * modules/xmemdup0, modules/xstrtol:
3796         Remove dependency on stdnoreturn.
3797
3798         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
3799         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
3800         Reparenthesize to avoid GCC warning.
3801         Support Microsoft's syntax.
3802         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
3803
3804         _Noreturn-tests: remove module
3805         * modules/_Noreturn-tests: Remove.
3806         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
3807         * tests/test-_Noreturn.c: Remove.
3808         * tests/test-stdnoreturn.c: Merge from the old
3809         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
3810
3811 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
3812
3813         _Noreturn, stdnoreturn, and related modules.
3814
3815         * top/maint.mk: Adjust to new noreturn support.
3816         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
3817         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
3818
3819         xalloc: use stdnoreturn.h
3820         * lib/xalloc.h: Include <stdnoreturn.h>.
3821         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3822         * modules/xalloc (Depends-on): Add stdnoreturn.
3823
3824         xstrtol: use stdnoreturn.h
3825         * lib/xstrtol.h: Include <stdnoreturn.h>.
3826         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3827         * modules/xstrtol (Depends-on): Add stdnoreturn.
3828
3829         xmemdup0: use stdnoreturn.h
3830         * lib/xmemdup0.h: Include <stdnoreturn.h>.
3831         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3832         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
3833
3834         sigpipe-die: use stdnoreturn.h
3835         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
3836         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3837         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
3838
3839         openat: use stdnoreturn.h
3840         * lib/openat.h: Include <stdnoreturn.h>.
3841         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3842         * modules/openat (Depends-on): Add stdnoreturn.
3843
3844         * lib/openat-die.c (openat_save_fail): Modernize comment.
3845
3846         * lib/xalloc-die.c (xalloc_die): Modernize comment.
3847
3848         * lib/glthread/thread.h: Modernize comment.
3849
3850         obstack: use _Noreturn
3851         * lib/obstack.c (__attribute__): Remove macro.
3852         (print_and_abort): Use _Noreturn.
3853
3854         c-stack: use _Noreturn
3855         * lib/c-stack.c (die, overflow_handler, segv_handler):
3856         Use _Noreturn rather than __attribute__((noreturn)).
3857
3858         argmatch-tests, exclude_tests: use _Noreturn
3859         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
3860         Remove.
3861         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
3862
3863         stdlib: use _Noreturn
3864         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
3865         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
3866         * modules/stdlib (Depends-on): Add _Noreturn.
3867         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
3868
3869         stdnoreturn-tests: new module
3870         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
3871
3872         stdnoreturn: new module
3873         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
3874         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
3875
3876         _Noreturn-tests: new module
3877         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
3878
3879         _Noreturn: new module
3880         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
3881         New section, mentioning it.
3882         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
3883
3884         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
3885
3886 2011-07-11  Eric Blake  <eblake@redhat.com>
3887
3888         ffs: new module
3889         * modules/ffs: New file.
3890         * m4/ffs.m4: Likewise.
3891         * lib/ffs.c: Likewise.
3892         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
3893         * modules/strings (Makefile.am): Substitute witness.
3894         (Depends-on): Add c++defs.
3895         * lib/strings.in.h (ffs): Declare.
3896         * modules/ffs-tests: New test file.
3897         * tests/test-ffs.c: Test new module.
3898         * MODULES.html.sh (Integer arithmetic functions): Mention it.
3899         * doc/posix-functions/ffs.texi (ffs): Likewise.
3900
3901         regex: avoid compiler warning
3902         * lib/regex.c (includes): Include <strings.h>, for use of
3903         strcasecmp in regcomp.c.
3904         Reported by Joachim Schmitz.
3905
3906 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
3907
3908         stdint: respect system's intmax_t if INTMAX_MAX
3909         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
3910         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
3911         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
3912         long but int64_t is long long, and where we will clash with the
3913         system intmax_t if we override it.  See
3914         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
3915         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
3916         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
3917         similarly for UINTMAX_C.
3918
3919 2011-07-08  Bruno Haible  <bruno@clisp.org>
3920
3921         pthread_sigmask tests: Avoid a compiler warning.
3922         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
3923         non-zero.
3924
3925         sigprocmask tests: A better way to avoid a compiler warning.
3926         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
3927         (main): Complain if system() returns non-zero.
3928         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
3929
3930 2011-07-08  Bruno Haible  <bruno@clisp.org>
3931
3932         pthread_sigmask: Work around IRIX bug.
3933         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
3934         bug.
3935         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
3936         there may be unblocked pending signals.
3937         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
3938
3939 2011-07-08  Bruno Haible  <bruno@clisp.org>
3940
3941         pthread_sigmask: Work around Cygwin bug.
3942         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
3943         bug.
3944         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
3945         the system's pthread_sigmask function.
3946         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
3947
3948 2011-07-08  Bruno Haible  <bruno@clisp.org>
3949
3950         pthread_sigmask: Work around bug in single-threaded implementation.
3951         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
3952         FreeBSD, HP-UX, Solaris bug.
3953         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
3954         * lib/pthread_sigmask.c: Include <stddef.h>.
3955         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
3956         the system's pthread_sigmask function.
3957         * modules/pthread_sigmask (configure.ac): Invoke
3958         gl_PREREQ_PTHREAD_SIGMASK.
3959         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
3960         HP-UX, Solaris.
3961
3962 2011-07-08  Eric Blake  <eblake@redhat.com>
3963
3964         test-sigprocmask: avoid compiler warning
3965         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
3966         * tests/test-sigprocmask.c (main): Use it to silence warning.
3967         Reported by Jim Meyering.
3968
3969         test-snprintf: avoid compiler warning
3970         * tests/test-snprintf.c (main): Avoid shadowed declaration.
3971         * tests/test-vsnprintf.c (main): Likewise.
3972         Reported by Jim Meyering.
3973
3974 2011-07-08  Bruno Haible  <bruno@clisp.org>
3975
3976         Tests for module 'pthread_sigmask'.
3977         * modules/pthread_sigmask-tests: New file.
3978         * tests/test-pthread_sigmask1.c: New file, based on
3979         tests/test-sigprocmask.c.
3980         * tests/test-pthread_sigmask2.c: New file.
3981
3982 2011-07-08  Jim Meyering  <meyering@redhat.com>
3983
3984         test-getopt.h: avoid warning about an unused variable
3985         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
3986
3987 2011-07-07  Jim Meyering  <meyering@redhat.com>
3988
3989         maint: reduce list of files exempt from sc_prohibit_leading_TABs
3990         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
3991         now that it no longer contains leading TABs.
3992         Remove unused "url=FIXME" statement.
3993
3994 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
3995
3996         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
3997         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
3998         When gl_THREADLIB is not in use, assume that the POSIX sematics
3999         are desired.  This is better for Emacs, which uses POSIX semantics
4000         on GNUish and/or POSIXish platforms, and does not use threads at
4001         all otherwise.
4002
4003         pthread_sigmask: fix typo when testing for libraries
4004         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4005         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
4006
4007 2011-07-08  Eric Blake  <eblake@redhat.com>
4008
4009         fts: introduce FTS_NOATIME
4010         * lib/fts_.h (FTS_NOATIME): New bit flag.
4011         (FTS_OPTIONMASK): Adjust.
4012         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
4013         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
4014
4015 2011-07-08  Bruno Haible  <bruno@clisp.org>
4016
4017         Tests for module 'thread'.
4018         * modules/thread-tests: New file.
4019         * tests/test-thread_self.c: New file.
4020         * tests/test-thread_create.cc: New file.
4021
4022 2011-07-08  Bruno Haible  <bruno@clisp.org>
4023
4024         thread: Avoid gcc warnings when using gl_thread_self().
4025         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
4026         'void *'.
4027         (gl_thread_self_pointer): Update.
4028
4029 2011-07-07  Bruno Haible  <bruno@clisp.org>
4030
4031         signal-c++-tests: Check declaration of pthread_sigmask.
4032         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
4033         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
4034         $(LIB_PTHREAD_SIGMASK).
4035
4036 2011-07-07  Bruno Haible  <bruno@clisp.org>
4037
4038         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
4039         * lib/signal.in.h (pthread_sigmask): Override if
4040         REPLACE_PTHREAD_SIGMASK is 1.
4041         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4042         REPLACE_PTHREAD_SIGMASK.
4043         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
4044         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
4045         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
4046         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4047         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
4048
4049 2011-07-07  Bruno Haible  <bruno@clisp.org>
4050
4051         pthread_sigmask: Ensure declaration in <signal.h>.
4052         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
4053         include <pthread.h>.
4054         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
4055         problem.
4056
4057 2011-07-07  Bruno Haible  <bruno@clisp.org>
4058
4059         pthread_sigmask: Document the module.
4060         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
4061
4062 2011-07-07  Bruno Haible  <bruno@clisp.org>
4063
4064         pthread_sigmask: Follow gnulib conventions.
4065         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
4066         gl_PTHREAD_SIGMASK.
4067         * modules/pthread_sigmask (configure.ac): Update.
4068
4069 2011-07-07  Bruno Haible  <bruno@clisp.org>
4070
4071         pthread_sigmask: Make declaration C++ safe.
4072         * lib/signal.in.h: In two special conditions, just do an #include_next.
4073         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
4074         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
4075         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4076         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
4077         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
4078         not REPLACE_PTHREAD_MASK.
4079         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
4080         not REPLACE_PTHREAD_MASK.
4081         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4082
4083 2011-07-07  Bruno Haible  <bruno@clisp.org>
4084
4085         pthread_sigmask: Fix return value.
4086         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
4087         * lib/pthread_sigmask.c: New file.
4088         * modules/pthread_sigmask (Files): Add it.
4089         (configure.ac): Invoke AC_LIBOBJ.
4090
4091 2011-07-07  Eric Blake  <eblake@redhat.com>
4092
4093         getopt: more portable argv creation
4094         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
4095         const, use char arrays rather than strings.
4096         Suggested by Paul Eggert.
4097
4098 2011-07-07  Bruno Haible  <bruno@clisp.org>
4099
4100         Tests for module 'sigprocmask'.
4101         * modules/sigprocmask-tests: New file.
4102         * tests/test-sigprocmask.c: New file.
4103
4104 2011-07-07  Bruno Haible  <bruno@clisp.org>
4105
4106         float tests: Tweak.
4107         * tests/test-float.c (main): Tweak skip message.
4108
4109 2011-07-07  Eric Blake  <eblake@redhat.com>
4110
4111         getopt: avoid compiler warning during configure
4112         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
4113         assigning string literals to non-const pointer.
4114
4115         getopt-gnu: avoid crash in glibc getopt
4116         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
4117         * tests/test-getopt.h (test_getopt): Enhance test.
4118         * tests/test-getopt_long.h (test_getopt_long): Likewise.
4119         * doc/posix-functions/getopt.texi (getopt): Document it.
4120         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4121         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4122         Likewise.
4123
4124 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
4125
4126         getopt: handle W; without long options in getopt [BZ #12922]
4127         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
4128         but no long options are defined, just return 'W'.
4129
4130 2011-07-07  Bruno Haible  <bruno@clisp.org>
4131
4132         Avoid literal tabs.
4133         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
4134         variable containing a tab instead of a literal tab.
4135         Reported by Jim Meyering.
4136
4137 2011-07-07  Bruno Haible  <bruno@clisp.org>
4138
4139         Comments.
4140         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
4141
4142 2011-07-06  Bruno Haible  <bruno@clisp.org>
4143
4144         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
4145         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
4146         <winsock2.h>.
4147         (rpl_fd_isset, FD_ISSET): New definitions, copied from
4148         lib/sys_socket.in.h.
4149         (close, gethostname): Hide declarations from <winsock2.h>.
4150         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
4151         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
4152         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
4153         (select): Don't override if gnulib's <sys/select.h> was already
4154         included.
4155         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
4156         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
4157         setsockopt, shutdown, select): Tweak indentation.
4158
4159 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4160
4161         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
4162         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
4163         in an application that does not use the sys_select module.
4164
4165 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
4166
4167         poll: do not return 0 on timeout=-1
4168         * lib/poll.c: Loop with yield if no events occured
4169
4170 2011-07-06  Eric Blake  <eblake@redhat.com>
4171
4172         pthread_sigmask: always replace when not using pthread
4173         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
4174         replacement when using some threading other than pthread.  Fix
4175         logic bug.
4176
4177 2011-07-06  Bruno Haible  <bruno@clisp.org>
4178
4179         Comments.
4180         * m4/printf.m4: Update comments about mingw.
4181
4182 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4183
4184         sys_select: define sigset_t more portably
4185         * lib/sys_select.in.h: Always include <sys/types.h>, since
4186         we now need sigset_t and mingw defines it there.
4187         Include <signal.h> before split inclusion guard, to avoid
4188         mishaps on Solaris, whose <signal.h> eventually includes us.
4189         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
4190         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
4191         which come from ...
4192         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
4193         gl_CHECK_TYPE_SIGSET_T.
4194         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
4195         does the real work.
4196         * modules/sys_select (Depends-on): Add 'signal'.
4197
4198         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
4199         Suggested by Bruno Haible.
4200
4201         pselect: Use pthread_sigmask, not sigprocmask.
4202         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
4203         multithreaded apps better than sigprocmask does.
4204         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
4205         sigprocmask directly.
4206
4207 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4208
4209         * lib/pselect.c (pselect): Use plain name, without "rpl_".
4210         Don't #undef,  since we don't need any underlying pselect.
4211         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
4212         (Depends-on): Add select.
4213         (Link): Add $(LIBSOCKET).
4214         These changes suggested by Bruno Haible.
4215
4216         pselect: document better
4217         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
4218         * doc/posix-functions/pselect.texi (pselect): Document new module.
4219
4220         pthread_sigmask: new module
4221         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
4222         * doc/posix-functions/pthread_sigmask.texi: Document new module.
4223         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
4224         This is done only as a macro; I don't know how well that'll
4225         work for C++.  Move <sys/types.h> include before the include_next,
4226         to avoid mishap on Solaris.
4227         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
4228         * modules/signal (Makefile.am): Substitute the check's results.
4229         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
4230
4231         test-pselect: new module
4232         * modules/pselect-tests, tests/test-pselect.c: New files.
4233         * tests/test-select.c, tests/test-sys_select-c++.cc:
4234         If TEST_PSELECT is defined, test pselect instead of testing select.
4235
4236         * tests/test-sys_select.c (sigset_t): Test for it, too.
4237         Suggested by Bruno Haible.
4238
4239 2011-07-05  Eric Blake  <eblake@redhat.com>
4240
4241         snprintf: guarantee %1$d, for libintl
4242         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
4243         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
4244         * doc/posix-functions/snprintf.texi (snprintf): Update.
4245         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
4246         * tests/test-snprintf.c (main): Enhance test.
4247         * tests/test-vsnprintf.c (main): Likewise.
4248
4249 2011-07-05  Jim Meyering  <meyering@redhat.com>
4250
4251         maint: exempt stdio-read.c and stdio-write.c from the cppi check
4252         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
4253         per Bruno's request, to accommodate this idiom (no space after "#")
4254         even when the function is inside an #if block:
4255         char *
4256         gets (char *s)
4257         #undef gets
4258         {
4259           ...
4260         }
4261
4262 2011-07-04  Jim Meyering  <meyering@redhat.com>
4263
4264         maint: indent with spaces, not TABs, and add a rule to check this
4265         * tests/test-userspec.c: Indent with spaces, not TABs.
4266         * tests/test-argp.c: Likewise.
4267         * tests/test-c-stack2.sh: Likewise.
4268         * tests/test-parse-duration.sh: Likewise
4269         * m4/strtod.m4: Likewise.
4270         * m4/alloca.m4: Likewise.
4271         * m4/pselect.m4: Likewise.
4272         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
4273
4274 2011-07-03  Jim Meyering  <meyering@redhat.com>
4275
4276         maint.mk: correct omissions in prohibit_argmatch_without_use check
4277         This rule would mistakenly report that argmatch.h is included without
4278         use even when both the argmatch and invalid_arg macro were used.
4279         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
4280         of argmatch and invalid_arg.
4281
4282 2011-07-03  Bruno Haible  <bruno@clisp.org>
4283
4284         Comments about EINTR.
4285         * lib/safe-read.h: Explain the purpose of this module.
4286         * lib/safe-write.h: Likewise.
4287         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
4288         module.
4289         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
4290         module.
4291         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4292
4293 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
4294
4295         xnanosleep: Rewrite to use new dtotimespec module.
4296         It has the conversion code that used to be in xnanosleep.
4297         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
4298         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
4299         (TIME_T_MAX): Remove.
4300         (xnanosleep): Rewrite in terms of dtotimespec.
4301         * modules/xnanosleep (Depends-on): Add dtotimespec.
4302         Remove intprops, stdbool.
4303
4304         timespec-add, timespec-sub: new modules
4305         * lib/timespec.h (timespec_add, timespec_sub): New decls.
4306         * lib/timespec-add.c, lib/timespec-sub.c:
4307         * modules/timespec-add, modules/timespec-sub: New files.
4308
4309         dtotimespec: new module
4310         * lib/timespec.h (dtotimespec): New decl.
4311         * lib/dtotimespec.c, modules/dtotimespec: New files.
4312
4313         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
4314
4315         pselect: new module
4316         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
4317         (pselect): New decls.
4318         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
4319         since the standard pselect decl uses 'restrict'.
4320         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
4321         HAVE_PSELECT, REPLACE_PSELECT.
4322         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
4323         HAVE_PSELECT, REPLACE_PSELECT.
4324         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
4325
4326         sys_select: don't depend on sys_socket
4327         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
4328         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
4329         This fix works on GNU and GNU-like platforms, but has not been tested
4330         on native Windows.
4331         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
4332         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
4333         gl_HEADER_SYS_SOCKET.
4334         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
4335         gl_PREREQ_SYS_H_WINSOCK2.
4336
4337 2011-06-29  Eric Blake  <eblake@redhat.com>
4338
4339         pipe2: fix C89 compile problem
4340         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
4341         Reported by Bruno Haible.
4342
4343         pipe, pipe2: don't corrupt fd on error
4344         * lib/pipe.c (pipe): Leave fd unchanged on error.
4345         * lib/pipe2.c (pipe2): Likewise.
4346         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
4347         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
4348
4349 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
4350
4351         mmap-anon: do not use regular expressions inadvertently
4352         * m4/mmap-anon.m4: Remove trailing period from strings sought
4353         in the output.
4354
4355 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
4356
4357         nanosleep: fix integer overflow problem
4358         * lib/nanosleep.c (my_usleep): Don't assume signed integer
4359         arithmetic wraps around on overflow.
4360
4361         nanosleep: simplify carrying
4362         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
4363         first call to the underyling nanosleep, not for the last one.
4364         This doesn't fix any bugs, but it simplifies the computation of
4365         the remaining delay.  Found while auditing integer overflow issues.
4366
4367         dup2: remove test for existence of fcntl
4368         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
4369         "#if HAVE_FCNTL", in the configure-time test program.
4370         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
4371         and therefore speeds up "configure" a bit.  Found while
4372         adding the dup2 module to Emacs.
4373
4374 2011-06-24  Eric Blake  <eblake@redhat.com>
4375
4376         maint.mk: enhance useless header checks
4377         * top/maint.mk (_sc_header_without_use): Check both include
4378         styles.
4379         (sc_prohibit_assert_without_use)
4380         (sc_prohibit_close_stream_without_use)
4381         (sc_prohibit_getopt_without_use)
4382         (sc_prohibit_quotearg_without_use)
4383         (sc_prohibit_quote_without_use)
4384         (sc_prohibit_long_options_without_use)
4385         (sc_prohibit_inttostr_without_use)
4386         (sc_prohibit_ignore_value_without_use)
4387         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
4388         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
4389         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
4390         (sc_prohibit_hash_pjw_without_use)
4391         (sc_prohibit_safe_read_without_use)
4392         (sc_prohibit_argmatch_without_use)
4393         (sc_prohibit_canonicalize_without_use)
4394         (sc_prohibit_root_dev_ino_without_use)
4395         (sc_prohibit_openat_without_use)
4396         (sc_prohibit_c_ctype_without_use)
4397         (sc_prohibit_signal_without_use)
4398         (sc_prohibit_stdio--_without_use)
4399         (sc_prohibit_stdio-safer_without_use)
4400         (sc_prohibit_strings_without_use)
4401         (sc_prohibit_intprops_without_use)
4402         (sc_prohibit_stddef_without_use)
4403         (sc_prohibit_xfreopen_without_use): Update clients.
4404
4405 2011-06-24  Jim Meyering  <meyering@redhat.com>
4406
4407         syntax-check: keep one maint.mk rule in sync with its header
4408         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
4409         of the bug Eric has just fixed, with today's commit 25e4c2ec.
4410         I prefer to avoid temporary files here, so use <(...), but that
4411         is not supported by /bin/sh, so...
4412         (SHELL): Define to /bin/bash.
4413
4414 2011-06-24  Eric Blake  <eblake@redhat.com>
4415
4416         maint.mk: update sc_prohibit_intprops_without_use
4417         * top/maint.mk (_intprops_names): Match recent changes.
4418
4419 2011-06-24  Bruno Haible  <bruno@clisp.org>
4420
4421         strerror-override: No-op tweak.
4422         * lib/strerror-override.h (strerror_override): Reorder conditions,
4423         for consistency with lib/strerror-override.c.
4424
4425 2011-06-23  Eric Blake  <eblake@redhat.com>
4426
4427         maint.mk: test further PATH_MAX issues
4428         * top/maint.mk (sc_prohibit_path_max_array): Rename...
4429         (sc_prohibit_path_max_allocation): ...and also test alloca.
4430         Suggested by Jim Meyering.
4431
4432 2011-06-22  Eric Blake  <eblake@redhat.com>
4433
4434         maint.mk: add syntax-check to avoid char[PATH_MAX]
4435         * top/maint.mk (sc_prohibit_path_max_array): New rule.
4436
4437         stat: be robust to PATH_MAX definition
4438         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
4439         * modules/stat (Depends-on): Add verify.
4440
4441         link: work around IRIX bug
4442         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
4443         * lib/link.c (rpl_link): Work around it.
4444         * tests/test-link.h (test_link): Enhance test.
4445         * doc/posix-functions/link.texi (link): Document the bug.
4446
4447         getopt: silence clang warning
4448         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
4449         dereference.
4450         Reported by Gustavo Martin Domato.
4451
4452 2011-06-22  Jim Meyering  <meyering@redhat.com>
4453
4454         bootstrap: do not insert a blank line into each .gitignore file
4455         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
4456
4457 2011-06-21  Eric Blake  <eblake@redhat.com>
4458
4459         perror: test for output mismatch
4460         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
4461         perror on IRIX.
4462
4463         strerror_r: fix OpenBSD behavior on out-of-range
4464         * lib/strerror_r.c (strerror_r): Always use maximal string.
4465         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4466
4467         strerror_r: fix OpenBSD behavior on 0
4468         * lib/strerror-override.c (strerror_override): Also override 0
4469         when needed.
4470         * lib/strerror-override.h (strerror_override): Likewise.
4471         * lib/strerror.c (strerror): Simplify, now that 0 override is done
4472         earlier.
4473         * lib/strerror_r.c (strerror_r): Likewise.
4474         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
4475         behavior...
4476         (gl_FUNC_STRERROR_0): ...into new macro.
4477         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
4478         is overridden.
4479         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
4480         * modules/strerror-override (Files): Add strerror.m4.
4481         (configure.ac): Also provide override for 0 when needed.
4482         * doc/posix-functions/strerror.texi (strerror): Document this.
4483         * doc/posix-functions/perror.texi (perror): Likewise.
4484
4485         perror: adjust array size
4486         * modules/perror (Depends-on): Add strerror-override.
4487         * lib/perror.c (perror): Use it to avoid magic number.
4488
4489         strerror-override: reduce size
4490         * lib/strerror-override.c (strerror_override): Use fewer lines.
4491
4492 2011-06-20  Bruno Haible  <bruno@clisp.org>
4493
4494         pathmax: Ensure correct value for PATH_MAX on HP-UX.
4495         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
4496
4497 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4498
4499         alloca: port to compilers that can optimize like GCC 4.6.0
4500         * lib/alloca.c (find_stack_direction): New signature, taken from
4501         Autoconf git.  This works with GCC 4.6.0.  This code should never
4502         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
4503         be used with other compilers that optimize as well as GCC 4.6.0 does.
4504         (alloca): Adjust to new signature.
4505         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
4506         New macro, which patches Autoconf in a similar way.
4507
4508         c-stack: stop worrying about stack direction
4509         * lib/c-stack.c (find_stack_direction): Remove.
4510         (segv_handler): Don't worry about stack direction growth, as it's
4511         too much of a pain to configure this correctly, given how compilers
4512         are optimizing-away our stack-growth detection code.  Instead, assume
4513         that any access to just before or just after the stack is OK.
4514         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
4515         Don't require AC_FUNC_ALLOCA; no longer needed.
4516
4517 2011-06-20  Eric Blake  <eblake@redhat.com>
4518
4519         test-stat: don't allocate PATH_MAX bytes
4520         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
4521         PATH_MAX-sized buffer.
4522         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
4523         * modules/stat-tests (Depends-on): Likewise.
4524         * tests/test-fstatat.c (includes): Drop pathmax.h.
4525         * tests/test-stat.c (includes): Likewise.
4526         Reported by Bruno Haible.
4527
4528 2011-06-20  Bruno Haible  <bruno@clisp.org>
4529
4530         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
4531         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
4532         * lib/float.c: New file.
4533         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
4534         REPLACE_FLOAT_LDBL.
4535         * modules/float (Files): Add lib/float.c.
4536         (configure.ac): Invoke AC_LIBOBJ.
4537         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
4538
4539 2011-06-20  Bruno Haible  <bruno@clisp.org>
4540
4541         Tests for module 'float'.
4542         * modules/float-tests: New file.
4543         * tests/test-float.c: New file.
4544
4545 2011-06-19  Bruno Haible  <bruno@clisp.org>
4546
4547         isinf: Coding style.
4548         * lib/isinf.c: Use GNU coding style.
4549
4550 2011-06-19  Bruno Haible  <bruno@clisp.org>
4551
4552         linkat test: Avoid test failure on AIX 7.1.
4553         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
4554         * tests/test-link.h (test_link): Likewise.
4555
4556 2011-06-19  Bruno Haible  <bruno@clisp.org>
4557
4558         pread test: Avoid test failure on OpenBSD 4.9.
4559         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
4560
4561 2011-06-19  Bruno Haible  <bruno@clisp.org>
4562
4563         sprintf-posix: Fix test failure on AIX 7.1.
4564         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
4565         * doc/posix-functions/dprintf.texi: Mention limited precision problem
4566         on AIX.
4567         * doc/posix-functions/fprintf.texi: Likewise.
4568         * doc/posix-functions/printf.texi: Likewise.
4569         * doc/posix-functions/snprintf.texi: Likewise.
4570         * doc/posix-functions/sprintf.texi: Likewise.
4571         * doc/posix-functions/vdprintf.texi: Likewise.
4572         * doc/posix-functions/vfprintf.texi: Likewise.
4573         * doc/posix-functions/vprintf.texi: Likewise.
4574         * doc/posix-functions/vsnprintf.texi: Likewise.
4575         * doc/posix-functions/vsprintf.texi: Likewise.
4576
4577 2011-06-19  Bruno Haible  <bruno@clisp.org>
4578
4579         roundl-ieee: Fix test failure on AIX 7.1.
4580         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
4581         * doc/posix-functions/roundl.texi: Mention problem with negative
4582         arguments.
4583
4584 2011-06-19  Bruno Haible  <bruno@clisp.org>
4585
4586         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
4587         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
4588         * doc/posix-functions/round.texi: Mention problem with negative
4589         arguments.
4590         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
4591
4592 2011-06-19  Bruno Haible  <bruno@clisp.org>
4593
4594         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
4595         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
4596         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
4597         * doc/posix-functions/roundf.texi: Mention problem with negative
4598         arguments.
4599         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
4600
4601 2011-06-19  Bruno Haible  <bruno@clisp.org>
4602
4603         ceilf-ieee: Work around bug on MacOS X 10.5.
4604         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
4605
4606         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
4607         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
4608         IEEE compliant, avoid compiler optimizations.
4609         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
4610         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4611         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
4612         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4613         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4614         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4615         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4616         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4617         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4618         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4619
4620 2011-06-19  Bruno Haible  <bruno@clisp.org>
4621
4622         ceilf-ieee: Work around bug on AIX 7.1.
4623         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
4624         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
4625
4626 2011-06-19  Bruno Haible  <bruno@clisp.org>
4627
4628         ceil-ieee: Work around bug on AIX 7.1.
4629         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
4630         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
4631
4632 2011-06-18  Bruno Haible  <bruno@clisp.org>
4633
4634         fsync test: Avoid test failure on MacOS X and AIX.
4635         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
4636         EINVAL.
4637
4638 2011-06-18  Bruno Haible  <bruno@clisp.org>
4639
4640         openat, fdopendir tests: Fix link errors.
4641         * modules/openat-tests (Depends-on): Add progname.
4642         * modules/fdopendir-tests (Depends-on): Likewise.
4643         * tests/test-fchownat.c: Include progname.h.
4644         (main): Call set_program_name.
4645         * tests/test-fstatat.c: Include progname.h.
4646         (main): Call set_program_name.
4647         * tests/test-mkdirat.c: Include progname.h.
4648         (main): Call set_program_name.
4649         * tests/test-openat.c: Include progname.h.
4650         (main): Call set_program_name.
4651         * tests/test-unlinkat.c: Include progname.h.
4652         (main): Call set_program_name.
4653         * tests/test-fdopendir.c: Include progname.h.
4654         (main): Call set_program_name.
4655
4656 2011-06-18  Bruno Haible  <bruno@clisp.org>
4657
4658         Doc update.
4659         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
4660         HP-UX.
4661         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
4662
4663 2011-06-18  Bruno Haible  <bruno@clisp.org>
4664
4665         getcwd tests: Avoid compilation error on HP-UX 11.31.
4666         * modules/getcwd-tests (Depends-on): Add pathmax.
4667         * tests/test-getcwd.c: Include pathmax.h.
4668
4669 2011-06-18  Bruno Haible  <bruno@clisp.org>
4670
4671         isfinite, isinf: Fix link error on AIX 6 and 7.
4672         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
4673         needed, also test the macro with a 'float' argument.
4674         * m4/isinf.m4 (gl_ISINF): Likewise.
4675
4676 2011-06-18  Bruno Haible  <bruno@clisp.org>
4677
4678         getloadavg: Don't clobber LIBS. Regression from previous commit.
4679         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
4680         AC_CHECK_LIB from here...
4681         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
4682         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
4683         gl_func_getloadavg_done.
4684         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4685
4686 2011-06-18  Bruno Haible  <bruno@clisp.org>
4687
4688         clean-temp: Improve documentation.
4689         * lib/clean-temp.h: Explain better how to use this module.
4690         Reported by John Darrington <john@darrington.wattle.id.au>.
4691
4692 2011-06-17  Bruno Haible  <bruno@clisp.org>
4693
4694         pread, pwrite: Avoid cc warning on AIX.
4695         * lib/unistd.in.h (pread): Undefine before defining as a macro.
4696         (pwrite): Likewise.
4697
4698 2011-06-17  Bruno Haible  <bruno@clisp.org>
4699
4700         spawn-pipe tests: Fix link error.
4701         * tests/test-spawn-pipe-child.c: Undefine fprintf.
4702         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4703
4704 2011-06-17  Bruno Haible  <bruno@clisp.org>
4705
4706         Tests: Remove unnecessary dependency.
4707         * modules/canonicalize-tests (Depends-on): Remove progname.
4708         * modules/chown-tests (Depends-on): Likewise.
4709         * modules/dirname-tests (Depends-on): Likewise.
4710         * modules/fdopendir-tests (Depends-on): Likewise.
4711         * modules/fdutimensat-tests (Depends-on): Likewise.
4712         * modules/hash-tests (Depends-on): Likewise.
4713         * modules/lchown-tests (Depends-on): Likewise.
4714         * modules/linkat-tests (Depends-on): Likewise.
4715         * modules/renameat-tests (Depends-on): Likewise.
4716         * modules/spawn-pipe-tests (Depends-on): Likewise.
4717         * modules/utimensat-tests (Depends-on): Likewise.
4718
4719 2011-06-17  Bruno Haible  <bruno@clisp.org>
4720
4721         spawn-pipe tests: Fix link error.
4722         * tests/test-spawn-pipe-child.c: Undefine fflush.
4723
4724 2011-06-17  Bruno Haible  <bruno@clisp.org>
4725
4726         Fix tests link errors.
4727         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
4728         * modules/chown-tests (Makefile.am): Don't link test-chown with
4729         LIBINTL.
4730         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
4731         LIBINTL.
4732         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
4733         LIBINTL.
4734         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
4735         LIBINTL.
4736
4737 2011-06-16  Bruno Haible  <bruno@clisp.org>
4738
4739         crypto/gc-sha1: Fix recent regression.
4740         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
4741         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
4742
4743         crypto/gc-md5: Fix recent regression.
4744         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
4745
4746         crypto/gc-md4: Fix recent regression.
4747         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
4748         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
4749
4750         crypto/gc-arctwo: Fix recent regression.
4751         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
4752         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
4753
4754         crypto/gc-rijndael: Fix recent regression.
4755         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
4756         (configure.ac): Invoke AC_LIBOBJ here.
4757         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
4758         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4759
4760         crypto/gc-hmac-sha1: Fix recent regression.
4761         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
4762         (configure.ac): Invoke AC_LIBOBJ here.
4763         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
4764         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4765
4766         crypto/gc-hmac-md5: Fix recent regression.
4767         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
4768         (configure.ac): Invoke AC_LIBOBJ here.
4769         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
4770         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4771
4772         crypto/gc-des: Fix recent regression.
4773         * modules/crypto/gc-des (Files): Remove m4/des.m4.
4774         (configure.ac): Invoke AC_LIBOBJ here.
4775         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
4776         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4777
4778         crypto/gc-arcfour: Fix recent regression.
4779         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
4780         (configure.ac): Invoke AC_LIBOBJ here.
4781         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
4782         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4783
4784 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
4785
4786         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
4787         After the 2011-05-21 change, this macro requires
4788         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
4789         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
4790
4791 2011-06-16  Bruno Haible  <bruno@clisp.org>
4792
4793         fprintftime: Move AC_LIBOBJ invocations to module description.
4794         * m4/fprintftime.m4: Remove file.
4795         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
4796         (configure.ac): Remove gl_FPRINTFTIME call.
4797         (Makefile.am): Augment lib_SOURCES.
4798         Reported by Jim Meyering.
4799
4800 2011-06-16  Bruno Haible  <bruno@clisp.org>
4801
4802         tmpfile-safer: Finish 2011-05-23 commit.
4803         * m4/stdio-safer.m4: Really remove file.
4804         Reported by Jim Meyering.
4805
4806 2011-06-16  Bruno Haible  <bruno@clisp.org>
4807
4808         syntax-check: Fix typo.
4809         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
4810         printf-posix.m4.
4811         Reported by Jim Meyering.
4812
4813 2011-06-13  Jim Meyering  <meyering@redhat.com>
4814
4815         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
4816         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
4817
4818 2011-05-23  Bruno Haible  <bruno@clisp.org>
4819
4820         yesno: Move AC_LIBOBJ invocations to module description.
4821         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
4822         * modules/yesno (Makefile.am): Augment lib_SOURCES.
4823
4824 2011-05-23  Bruno Haible  <bruno@clisp.org>
4825
4826         xstrtol: Move AC_LIBOBJ invocations to module description.
4827         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
4828         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
4829
4830 2011-05-23  Bruno Haible  <bruno@clisp.org>
4831
4832         xstrtold: Move AC_LIBOBJ invocations to module description.
4833         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
4834         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
4835
4836 2011-05-23  Bruno Haible  <bruno@clisp.org>
4837
4838         xstrtod: Move AC_LIBOBJ invocations to module description.
4839         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
4840         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
4841
4842 2011-05-23  Bruno Haible  <bruno@clisp.org>
4843
4844         xnanosleep: Move AC_LIBOBJ invocations to module description.
4845         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
4846         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
4847
4848 2011-05-23  Bruno Haible  <bruno@clisp.org>
4849
4850         xgetcwd: Move AC_LIBOBJ invocations to module description.
4851         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
4852         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
4853
4854 2011-05-23  Bruno Haible  <bruno@clisp.org>
4855
4856         xalloc: Move AC_LIBOBJ invocations to module description.
4857         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
4858         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
4859
4860 2011-05-23  Bruno Haible  <bruno@clisp.org>
4861
4862         write-any-file: Move AC_LIBOBJ invocations to module description.
4863         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
4864         invocation.
4865         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
4866
4867 2011-05-23  Bruno Haible  <bruno@clisp.org>
4868
4869         utimens: Move AC_LIBOBJ invocations to module description.
4870         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
4871         * modules/utimens (Makefile.am): Augment lib_SOURCES.
4872
4873 2011-05-23  Bruno Haible  <bruno@clisp.org>
4874
4875         utimecmp: Move AC_LIBOBJ invocations to module description.
4876         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
4877         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
4878
4879 2011-05-23  Bruno Haible  <bruno@clisp.org>
4880
4881         userspec: Move AC_LIBOBJ invocations to module description.
4882         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
4883         * modules/userspec (Makefile.am): Augment lib_SOURCES.
4884
4885 2011-05-23  Bruno Haible  <bruno@clisp.org>
4886
4887         unlinkdir: Move AC_LIBOBJ invocations to module description.
4888         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
4889         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
4890
4891 2011-05-23  Bruno Haible  <bruno@clisp.org>
4892
4893         unistd-safer: Move AC_LIBOBJ invocations to module description.
4894         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
4895         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
4896
4897 2011-05-23  Bruno Haible  <bruno@clisp.org>
4898
4899         tempname: Move AC_LIBOBJ invocations to module description.
4900         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
4901         * modules/tempname (Makefile.am): Augment lib_SOURCES.
4902
4903 2011-05-23  Bruno Haible  <bruno@clisp.org>
4904
4905         strftime: Move AC_LIBOBJ invocations to module description.
4906         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
4907         * modules/strftime (Makefile.am): Augment lib_SOURCES.
4908
4909 2011-05-23  Bruno Haible  <bruno@clisp.org>
4910
4911         stdlib-safer: Move AC_LIBOBJ invocations to module description.
4912         * m4/stdlib-safer.m4: Remove file.
4913         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
4914         (configure.ac): Remove gl_STDLIB_SAFER call.
4915         (Makefile.am): Augment lib_SOURCES.
4916
4917 2011-05-23  Bruno Haible  <bruno@clisp.org>
4918
4919         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
4920         * m4/stdio-safer.m4: Remove file.
4921         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
4922         (configure.ac): Remove gl_TMPFILE_SAFER call.
4923         (Makefile.am): Augment lib_SOURCES.
4924
4925 2011-05-23  Bruno Haible  <bruno@clisp.org>
4926
4927         popen-safer: Move AC_LIBOBJ invocations to module description.
4928         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
4929         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
4930         (configure.ac): Remove gl_POPEN_SAFER call.
4931         (Makefile.am): Augment lib_SOURCES.
4932
4933 2011-05-23  Bruno Haible  <bruno@clisp.org>
4934
4935         freopen-safer: Move AC_LIBOBJ invocations to module description.
4936         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
4937         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
4938         (configure.ac): Remove gl_FREOPEN_SAFER call.
4939         (Makefile.am): Augment lib_SOURCES.
4940
4941 2011-05-23  Bruno Haible  <bruno@clisp.org>
4942
4943         fopen-safer: Move AC_LIBOBJ invocations to module description.
4944         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
4945         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
4946         (configure.ac): Remove gl_FOPEN_SAFER call.
4947         (Makefile.am): Augment lib_SOURCES.
4948
4949 2011-05-23  Bruno Haible  <bruno@clisp.org>
4950
4951         crypto/sha512: Move AC_LIBOBJ invocations to module description.
4952         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
4953         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
4954
4955 2011-05-23  Bruno Haible  <bruno@clisp.org>
4956
4957         crypto/sha256: Move AC_LIBOBJ invocations to module description.
4958         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
4959         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
4960
4961 2011-05-23  Bruno Haible  <bruno@clisp.org>
4962
4963         crypto/sha1: Move AC_LIBOBJ invocations to module description.
4964         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
4965         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
4966
4967 2011-05-23  Bruno Haible  <bruno@clisp.org>
4968
4969         settime: Move AC_LIBOBJ invocations to module description.
4970         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
4971         * modules/settime (Makefile.am): Augment lib_SOURCES.
4972
4973 2011-05-23  Bruno Haible  <bruno@clisp.org>
4974
4975         savedir: Move AC_LIBOBJ invocations to module description.
4976         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
4977         * modules/savedir (Makefile.am): Augment lib_SOURCES.
4978
4979 2011-05-23  Bruno Haible  <bruno@clisp.org>
4980
4981         save-cwd: Move AC_LIBOBJ invocations to module description.
4982         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
4983         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
4984
4985 2011-05-23  Bruno Haible  <bruno@clisp.org>
4986
4987         same: Move AC_LIBOBJ invocations to module description.
4988         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
4989         * modules/same (Makefile.am): Augment lib_SOURCES.
4990
4991 2011-05-23  Bruno Haible  <bruno@clisp.org>
4992
4993         safe-write: Move AC_LIBOBJ invocations to module description.
4994         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
4995         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
4996         instead of gl_SAFE_WRITE.
4997         (Makefile.am): Augment lib_SOURCES.
4998
4999 2011-05-23  Bruno Haible  <bruno@clisp.org>
5000
5001         safe-read: Move AC_LIBOBJ invocations to module description.
5002         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
5003         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
5004         of gl_SAFE_READ.
5005         (Makefile.am): Augment lib_SOURCES.
5006
5007 2011-05-23  Bruno Haible  <bruno@clisp.org>
5008
5009         safe-alloc: Move AC_LIBOBJ invocations to module description.
5010         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
5011         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
5012
5013 2011-05-23  Bruno Haible  <bruno@clisp.org>
5014
5015         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
5016         * m4/rijndael.m4: Remove file.
5017         * modules/crypto/rijndael (Files): Remove it.
5018         (configure.ac): Remove gl_RIJNDAEL call.
5019         (Makefile.am): Augment lib_SOURCES.
5020
5021 2011-05-23  Bruno Haible  <bruno@clisp.org>
5022
5023         readtokens: Move AC_LIBOBJ invocations to module description.
5024         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
5025         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
5026
5027 2011-05-23  Bruno Haible  <bruno@clisp.org>
5028
5029         read-file: Move AC_LIBOBJ invocations to module description.
5030         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
5031         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
5032         of gl_FUNC_READ_FILE.
5033         (Makefile.am): Augment lib_SOURCES.
5034
5035 2011-05-23  Bruno Haible  <bruno@clisp.org>
5036
5037         quotearg: Move AC_LIBOBJ invocations to module description.
5038         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
5039         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
5040
5041 2011-05-23  Bruno Haible  <bruno@clisp.org>
5042
5043         quote: Move AC_LIBOBJ invocations to module description.
5044         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
5045         * modules/quote (Makefile.am): Augment lib_SOURCES.
5046
5047 2011-05-23  Bruno Haible  <bruno@clisp.org>
5048
5049         posixver: Move AC_LIBOBJ invocations to module description.
5050         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
5051         * modules/posixver (Makefile.am): Augment lib_SOURCES.
5052
5053 2011-05-23  Bruno Haible  <bruno@clisp.org>
5054
5055         posixtm: Move AC_LIBOBJ invocations to module description.
5056         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
5057         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
5058
5059 2011-05-23  Bruno Haible  <bruno@clisp.org>
5060
5061         physmem: Move AC_LIBOBJ invocations to module description.
5062         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
5063         * modules/physmem (Makefile.am): Augment lib_SOURCES.
5064
5065 2011-05-23  Bruno Haible  <bruno@clisp.org>
5066
5067         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
5068         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
5069         invocation.
5070         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
5071
5072 2011-05-23  Bruno Haible  <bruno@clisp.org>
5073
5074         mpsort: Move AC_LIBOBJ invocations to module description.
5075         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
5076         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
5077
5078 2011-05-23  Bruno Haible  <bruno@clisp.org>
5079
5080         modechange: Move AC_LIBOBJ invocations to module description.
5081         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
5082         * modules/modechange (Makefile.am): Augment lib_SOURCES.
5083
5084 2011-05-23  Bruno Haible  <bruno@clisp.org>
5085
5086         mkdir-p: Move AC_LIBOBJ invocations to module description.
5087         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
5088         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
5089
5090 2011-05-23  Bruno Haible  <bruno@clisp.org>
5091
5092         mkancesdirs: Move AC_LIBOBJ invocations to module description.
5093         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
5094         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
5095
5096 2011-05-23  Bruno Haible  <bruno@clisp.org>
5097
5098         mgetgroups: Move AC_LIBOBJ invocations to module description.
5099         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
5100         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
5101
5102 2011-05-23  Bruno Haible  <bruno@clisp.org>
5103
5104         memxor: Move AC_LIBOBJ invocations to module description.
5105         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
5106         * modules/memxor (Makefile.am): Augment lib_SOURCES.
5107
5108 2011-05-23  Bruno Haible  <bruno@clisp.org>
5109
5110         memcoll: Move AC_LIBOBJ invocations to module description.
5111         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
5112         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
5113
5114 2011-05-23  Bruno Haible  <bruno@clisp.org>
5115
5116         memcasecmp: Move AC_LIBOBJ invocations to module description.
5117         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
5118         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
5119
5120 2011-05-23  Bruno Haible  <bruno@clisp.org>
5121
5122         crypto/md5: Move AC_LIBOBJ invocations to module description.
5123         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
5124         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
5125
5126 2011-05-23  Bruno Haible  <bruno@clisp.org>
5127
5128         crypto/md4: Move AC_LIBOBJ invocations to module description.
5129         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
5130         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
5131
5132 2011-05-23  Bruno Haible  <bruno@clisp.org>
5133
5134         crypto/md2: Move AC_LIBOBJ invocations to module description.
5135         * m4/md2.m4: Remove file.
5136         * modules/crypto/md2 (Files): Remove it.
5137         (configure.ac): Remove gl_MD2 call.
5138         (Makefile.am): Augment lib_SOURCES.
5139
5140 2011-05-23  Bruno Haible  <bruno@clisp.org>
5141
5142         long-options: Move AC_LIBOBJ invocations to module description.
5143         * m4/long-options.m4: Remove file.
5144         * modules/long-options (Files): Remove it.
5145         (configure.ac): Remove gl_LONG_OPTIONS call.
5146         (Makefile.am): Augment lib_SOURCES.
5147
5148 2011-05-23  Bruno Haible  <bruno@clisp.org>
5149
5150         i-ring: Move AC_LIBOBJ invocations to module description.
5151         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
5152         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
5153
5154 2011-05-23  Bruno Haible  <bruno@clisp.org>
5155
5156         idcache: Move AC_LIBOBJ invocations to module description.
5157         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
5158         * modules/idcache (Makefile.am): Augment lib_SOURCES.
5159
5160 2011-05-23  Bruno Haible  <bruno@clisp.org>
5161
5162         human: Move AC_LIBOBJ invocations to module description.
5163         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
5164         * modules/human (Makefile.am): Augment lib_SOURCES.
5165
5166 2011-05-23  Bruno Haible  <bruno@clisp.org>
5167
5168         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
5169         * m4/hmac-sha1.m4: Remove file.
5170         * modules/crypto/hmac-sha1 (Files): Remove it.
5171         (configure.ac): Remove gl_HMAC_SHA1 call.
5172         (Makefile.am): Augment lib_SOURCES.
5173
5174 2011-05-23  Bruno Haible  <bruno@clisp.org>
5175
5176         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
5177         * m4/hmac-md5.m4: Remove file.
5178         * modules/crypto/hmac-md5 (Files): Remove it.
5179         (configure.ac): Remove gl_HMAC_MD5 call.
5180         (Makefile.am): Augment lib_SOURCES.
5181
5182 2011-05-23  Bruno Haible  <bruno@clisp.org>
5183
5184         hash: Move AC_LIBOBJ invocations to module description.
5185         * m4/hash.m4: Remove file.
5186         * modules/hash (Files): Remove it.
5187         (configure.ac): Remove gl_HASH call.
5188         (Makefile.am): Augment lib_SOURCES.
5189
5190 2011-05-23  Bruno Haible  <bruno@clisp.org>
5191
5192         hard-locale: Move AC_LIBOBJ invocations to module description.
5193         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
5194         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
5195
5196 2011-05-23  Bruno Haible  <bruno@clisp.org>
5197
5198         getugroups: Move AC_LIBOBJ invocations to module description.
5199         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
5200         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
5201
5202 2011-05-23  Bruno Haible  <bruno@clisp.org>
5203
5204         gettime: Move AC_LIBOBJ invocations to module description.
5205         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
5206         * modules/gettime (Makefile.am): Augment lib_SOURCES.
5207
5208 2011-05-23  Bruno Haible  <bruno@clisp.org>
5209
5210         getndelim2: Move AC_LIBOBJ invocations to module description.
5211         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
5212         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
5213
5214 2011-05-23  Bruno Haible  <bruno@clisp.org>
5215
5216         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
5217         * m4/gc-pbkdf2-sha1.m4: Remove file.
5218         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
5219         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
5220         (Makefile.am): Augment lib_SOURCES.
5221
5222 2011-05-23  Bruno Haible  <bruno@clisp.org>
5223
5224         fts: Move AC_LIBOBJ invocations to module description.
5225         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
5226         * modules/fts (configure.ac): ... to here.
5227
5228 2011-05-23  Bruno Haible  <bruno@clisp.org>
5229
5230         file-type: Move AC_LIBOBJ invocations to module description.
5231         * m4/file-type.m4: Remove file.
5232         * modules/file-type (Files): Remove it.
5233         (configure.ac): Remove gl_FILE_TYPE call.
5234         (Makefile.am): Augment lib_SOURCES.
5235
5236 2011-05-23  Bruno Haible  <bruno@clisp.org>
5237
5238         filenamecat*: Respect rules for use of AC_LIBOBJ.
5239         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
5240         Remove AC_LIBOBJ invocation.
5241         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
5242         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
5243
5244 2011-05-23  Bruno Haible  <bruno@clisp.org>
5245
5246         filemode: Move AC_LIBOBJ invocations to module description.
5247         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
5248         * modules/filemode (Makefile.am): Augment lib_SOURCES.
5249
5250 2011-05-23  Bruno Haible  <bruno@clisp.org>
5251
5252         openat-safer: Move AC_LIBOBJ invocations to module description.
5253         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
5254         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
5255
5256 2011-05-23  Bruno Haible  <bruno@clisp.org>
5257
5258         fcntl-safer: Move AC_LIBOBJ invocations to module description.
5259         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
5260         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
5261
5262 2011-05-23  Bruno Haible  <bruno@clisp.org>
5263
5264         exclude: Move AC_LIBOBJ invocations to module description.
5265         * m4/exclude.m4: Remove file.
5266         * modules/exclude (Files): Remove it.
5267         (configure.ac): Remove gl_EXCLUDE call.
5268         (Makefile.am): Augment lib_SOURCES.
5269
5270 2011-05-23  Bruno Haible  <bruno@clisp.org>
5271
5272         dirname*: Respect rules for use of AC_LIBOBJ.
5273         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
5274         invocations.
5275         * modules/dirname (Makefile.am): Augment lib_SOURCES.
5276         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
5277
5278 2011-05-23  Bruno Haible  <bruno@clisp.org>
5279
5280         dirent-safer: Move AC_LIBOBJ invocations to module description.
5281         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
5282         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
5283
5284 2011-05-23  Bruno Haible  <bruno@clisp.org>
5285
5286         crypto/des: Move AC_LIBOBJ invocations to module description.
5287         * m4/des.m4: Remove file.
5288         * modules/crypto/des (Files): Remove it.
5289         (configure.ac): Remove gl_DES call.
5290         (Makefile.am): Augment lib_SOURCES.
5291
5292 2011-05-23  Bruno Haible  <bruno@clisp.org>
5293
5294         cycle-check: Move AC_LIBOBJ invocations to module description.
5295         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
5296         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
5297
5298 2011-05-23  Bruno Haible  <bruno@clisp.org>
5299
5300         c-strtold: Move AC_LIBOBJ invocations to module description.
5301         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
5302         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
5303
5304 2011-05-23  Bruno Haible  <bruno@clisp.org>
5305
5306         c-strtod: Move AC_LIBOBJ invocations to module description.
5307         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
5308         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
5309
5310 2011-05-23  Bruno Haible  <bruno@clisp.org>
5311
5312         crc: Move AC_LIBOBJ invocations to module description.
5313         * m4/crc.m4: Remove file.
5314         * modules/crc (Files): Remove it.
5315         (configure.ac): Remove gl_CRC call.
5316         (Makefile.am): Augment lib_SOURCES.
5317
5318 2011-05-23  Bruno Haible  <bruno@clisp.org>
5319
5320         close-stream: Move AC_LIBOBJ invocations to module description.
5321         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
5322         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
5323
5324 2011-05-23  Bruno Haible  <bruno@clisp.org>
5325
5326         closeout: Move AC_LIBOBJ invocations to module description.
5327         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
5328         * modules/closeout (Makefile.am): Augment lib_SOURCES.
5329
5330 2011-05-23  Bruno Haible  <bruno@clisp.org>
5331
5332         closein: Move AC_LIBOBJ invocations to module description.
5333         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
5334         * modules/closein (Makefile.am): Augment lib_SOURCES.
5335
5336 2011-05-23  Bruno Haible  <bruno@clisp.org>
5337
5338         cloexec: Move AC_LIBOBJ invocations to module description.
5339         * m4/cloexec.m4: Remove file.
5340         * modules/cloexec (Files): Remove it.
5341         (configure.ac): Remove gl_CLOEXEC call.
5342         (Makefile.am): Augment lib_SOURCES.
5343
5344 2011-05-23  Bruno Haible  <bruno@clisp.org>
5345
5346         check-version: Move AC_LIBOBJ invocations to module description.
5347         * m4/check-version.m4: Remove file.
5348         * modules/check-version (Files): Remove it.
5349         (configure.ac): Remove gl_CHECK_VERSION call.
5350         (Makefile.am): Augment lib_SOURCES.
5351
5352 2011-05-23  Bruno Haible  <bruno@clisp.org>
5353
5354         chdir-safer: Move AC_LIBOBJ invocations to module description.
5355         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
5356         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
5357
5358 2011-05-23  Bruno Haible  <bruno@clisp.org>
5359
5360         canonicalize: Move AC_LIBOBJ invocations to module description.
5361         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
5362         AC_LIBOBJ invocation.
5363         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
5364
5365 2011-05-23  Bruno Haible  <bruno@clisp.org>
5366
5367         canon-host: Move AC_LIBOBJ invocations to module description.
5368         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
5369         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
5370         instead of gl_CANON_HOST.
5371         (Makefile.am): Augment lib_SOURCES.
5372
5373 2011-05-23  Bruno Haible  <bruno@clisp.org>
5374
5375         backupfile: Move AC_LIBOBJ invocations to module description.
5376         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
5377         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
5378
5379 2011-05-23  Bruno Haible  <bruno@clisp.org>
5380
5381         argmatch: Move AC_LIBOBJ invocations to module description.
5382         * m4/argmatch.m4: Remove file.
5383         * modules/argmatch (Files): Remove it.
5384         (configure.ac): Remove gl_ARGMATCH call.
5385         (Makefile.am): Augment lib_SOURCES.
5386
5387 2011-05-23  Bruno Haible  <bruno@clisp.org>
5388
5389         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
5390         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
5391         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
5392
5393 2011-05-23  Bruno Haible  <bruno@clisp.org>
5394
5395         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
5396         * m4/arcfour.m4: Remove file.
5397         * modules/crypto/arcfour (Files): Remove it.
5398         (configure.ac): Remove gl_ARCFOUR call.
5399         (Makefile.am): Augment lib_SOURCES.
5400
5401 2011-05-22  Bruno Haible  <bruno@clisp.org>
5402
5403         write: Move AC_LIBOBJ invocations to module description.
5404         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
5405         * modules/write (configure.ac): ... to here.
5406
5407 2011-05-22  Bruno Haible  <bruno@clisp.org>
5408
5409         wmemset: Move AC_LIBOBJ invocations to module description.
5410         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
5411         here...
5412         * modules/wmemset (configure.ac): ... to here.
5413
5414 2011-05-22  Bruno Haible  <bruno@clisp.org>
5415
5416         wmemmove: Move AC_LIBOBJ invocations to module description.
5417         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
5418         here...
5419         * modules/wmemmove (configure.ac): ... to here.
5420
5421 2011-05-22  Bruno Haible  <bruno@clisp.org>
5422
5423         wmemcpy: Move AC_LIBOBJ invocations to module description.
5424         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
5425         here...
5426         * modules/wmemcpy (configure.ac): ... to here.
5427
5428 2011-05-22  Bruno Haible  <bruno@clisp.org>
5429
5430         wmemcmp: Move AC_LIBOBJ invocations to module description.
5431         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
5432         here...
5433         * modules/wmemcmp (configure.ac): ... to here.
5434
5435 2011-05-22  Bruno Haible  <bruno@clisp.org>
5436
5437         wmemchr: Move AC_LIBOBJ invocations to module description.
5438         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
5439         here...
5440         * modules/wmemchr (configure.ac): ... to here.
5441
5442 2011-05-22  Bruno Haible  <bruno@clisp.org>
5443
5444         wcswidth: Move AC_LIBOBJ invocations to module description.
5445         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
5446         here...
5447         * modules/wcswidth (configure.ac): ... to here.
5448
5449 2011-05-22  Bruno Haible  <bruno@clisp.org>
5450
5451         wcwidth: Respect rules for use of AC_LIBOBJ.
5452         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
5453         invocation from here...
5454         * modules/wcwidth (configure.ac): ... to here.
5455         (Depends-on): Update conditions.
5456
5457 2011-05-22  Bruno Haible  <bruno@clisp.org>
5458
5459         wctype: Move AC_LIBOBJ invocations to module description.
5460         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
5461         invocation from here...
5462         * modules/wctype (configure.ac): ... to here.
5463         (Depends-on): Update conditions.
5464
5465 2011-05-22  Bruno Haible  <bruno@clisp.org>
5466
5467         wctrans: Move AC_LIBOBJ invocations to module description.
5468         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
5469         invocation from here...
5470         * modules/wctrans (configure.ac): ... to here.
5471
5472 2011-05-22  Bruno Haible  <bruno@clisp.org>
5473
5474         wctomb: Move AC_LIBOBJ invocations to module description.
5475         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
5476         invocations from here...
5477         * modules/wctomb (configure.ac): ... to here.
5478
5479 2011-05-22  Bruno Haible  <bruno@clisp.org>
5480
5481         wctob: Move AC_LIBOBJ invocations to module description.
5482         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
5483         gl_PREREQ_WCTOB invocations from here...
5484         * modules/wctob (configure.ac): ... to here.
5485         (Depends-on): Update conditions.
5486
5487 2011-05-22  Bruno Haible  <bruno@clisp.org>
5488
5489         wcsxfrm: Move AC_LIBOBJ invocations to module description.
5490         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
5491         here...
5492         * modules/wcsxfrm (configure.ac): ... to here.
5493
5494 2011-05-22  Bruno Haible  <bruno@clisp.org>
5495
5496         wcstok: Move AC_LIBOBJ invocations to module description.
5497         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
5498         * modules/wcstok (configure.ac): ... to here.
5499
5500 2011-05-22  Bruno Haible  <bruno@clisp.org>
5501
5502         wcsstr: Move AC_LIBOBJ invocations to module description.
5503         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
5504         * modules/wcsstr (configure.ac): ... to here.
5505
5506 2011-05-22  Bruno Haible  <bruno@clisp.org>
5507
5508         wcsspn: Move AC_LIBOBJ invocations to module description.
5509         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
5510         * modules/wcsspn (configure.ac): ... to here.
5511
5512 2011-05-22  Bruno Haible  <bruno@clisp.org>
5513
5514         wcsrtombs: Move AC_LIBOBJ invocations to module description.
5515         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
5516         gl_PREREQ_WCSRTOMBS invocations from here...
5517         * modules/wcsrtombs (configure.ac): ... to here.
5518
5519 2011-05-22  Bruno Haible  <bruno@clisp.org>
5520
5521         wcsrchr: Move AC_LIBOBJ invocations to module description.
5522         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
5523         here...
5524         * modules/wcsrchr (configure.ac): ... to here.
5525
5526 2011-05-22  Bruno Haible  <bruno@clisp.org>
5527
5528         wcspbrk: Move AC_LIBOBJ invocations to module description.
5529         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
5530         here...
5531         * modules/wcspbrk (configure.ac): ... to here.
5532
5533 2011-05-22  Bruno Haible  <bruno@clisp.org>
5534
5535         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
5536         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
5537         gl_PREREQ_WCSNRTOMBS invocations from here...
5538         * modules/wcsnrtombs (configure.ac): ... to here.
5539
5540 2011-05-22  Bruno Haible  <bruno@clisp.org>
5541
5542         wcsnlen: Move AC_LIBOBJ invocations to module description.
5543         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
5544         here...
5545         * modules/wcsnlen (configure.ac): ... to here.
5546
5547 2011-05-22  Bruno Haible  <bruno@clisp.org>
5548
5549         wcsncpy: Move AC_LIBOBJ invocations to module description.
5550         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
5551         here...
5552         * modules/wcsncpy (configure.ac): ... to here.
5553
5554 2011-05-22  Bruno Haible  <bruno@clisp.org>
5555
5556         wcsncmp: Move AC_LIBOBJ invocations to module description.
5557         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
5558         here...
5559         * modules/wcsncmp (configure.ac): ... to here.
5560
5561 2011-05-22  Bruno Haible  <bruno@clisp.org>
5562
5563         wcsncat: Move AC_LIBOBJ invocations to module description.
5564         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
5565         here...
5566         * modules/wcsncat (configure.ac): ... to here.
5567
5568 2011-05-22  Bruno Haible  <bruno@clisp.org>
5569
5570         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
5571         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
5572         from here...
5573         * modules/wcsncasecmp (configure.ac): ... to here.
5574
5575 2011-05-22  Bruno Haible  <bruno@clisp.org>
5576
5577         wcslen: Move AC_LIBOBJ invocations to module description.
5578         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
5579         * modules/wcslen (configure.ac): ... to here.
5580
5581 2011-05-22  Bruno Haible  <bruno@clisp.org>
5582
5583         wcsdup: Move AC_LIBOBJ invocations to module description.
5584         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
5585         * modules/wcsdup (configure.ac): ... to here.
5586
5587 2011-05-22  Bruno Haible  <bruno@clisp.org>
5588
5589         wcscspn: Move AC_LIBOBJ invocations to module description.
5590         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
5591         here...
5592         * modules/wcscspn (configure.ac): ... to here.
5593
5594 2011-05-22  Bruno Haible  <bruno@clisp.org>
5595
5596         wcscpy: Move AC_LIBOBJ invocations to module description.
5597         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
5598         * modules/wcscpy (configure.ac): ... to here.
5599
5600 2011-05-22  Bruno Haible  <bruno@clisp.org>
5601
5602         wcscoll: Move AC_LIBOBJ invocations to module description.
5603         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
5604         here...
5605         * modules/wcscoll (configure.ac): ... to here.
5606
5607 2011-05-22  Bruno Haible  <bruno@clisp.org>
5608
5609         wcscmp: Move AC_LIBOBJ invocations to module description.
5610         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
5611         * modules/wcscmp (configure.ac): ... to here.
5612
5613 2011-05-22  Bruno Haible  <bruno@clisp.org>
5614
5615         wcschr: Move AC_LIBOBJ invocations to module description.
5616         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
5617         * modules/wcschr (configure.ac): ... to here.
5618
5619 2011-05-22  Bruno Haible  <bruno@clisp.org>
5620
5621         wcscat: Move AC_LIBOBJ invocations to module description.
5622         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
5623         * modules/wcscat (configure.ac): ... to here.
5624
5625 2011-05-22  Bruno Haible  <bruno@clisp.org>
5626
5627         wcscasecmp: Move AC_LIBOBJ invocations to module description.
5628         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
5629         here...
5630         * modules/wcscasecmp (configure.ac): ... to here.
5631
5632 2011-05-22  Bruno Haible  <bruno@clisp.org>
5633
5634         wcrtomb: Move AC_LIBOBJ invocations to module description.
5635         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
5636         invocations from here...
5637         * modules/wcrtomb (configure.ac): ... to here.
5638
5639 2011-05-22  Bruno Haible  <bruno@clisp.org>
5640
5641         wcpncpy: Move AC_LIBOBJ invocations to module description.
5642         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
5643         here...
5644         * modules/wcpncpy (configure.ac): ... to here.
5645
5646 2011-05-22  Bruno Haible  <bruno@clisp.org>
5647
5648         wcpcpy: Move AC_LIBOBJ invocations to module description.
5649         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
5650         * modules/wcpcpy (configure.ac): ... to here.
5651
5652 2011-05-22  Bruno Haible  <bruno@clisp.org>
5653
5654         waitpid: Move AC_LIBOBJ invocations to module description.
5655         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
5656         invocation from here...
5657         * modules/waitpid (configure.ac): ... to here.
5658
5659 2011-05-22  Bruno Haible  <bruno@clisp.org>
5660
5661         utimensat: Move AC_LIBOBJ invocations to module description.
5662         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
5663         here...
5664         * modules/utimensat (configure.ac): ... to here.
5665
5666 2011-05-22  Bruno Haible  <bruno@clisp.org>
5667
5668         usleep: Move AC_LIBOBJ invocations to module description.
5669         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
5670         here...
5671         * modules/usleep (configure.ac): ... to here.
5672
5673 2011-05-22  Bruno Haible  <bruno@clisp.org>
5674
5675         unlockpt: Move AC_LIBOBJ invocations to module description.
5676         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
5677         gl_PREREQ_UNLOCKPT invocations from here...
5678         * modules/unlockpt (configure.ac): ... to here.
5679
5680 2011-05-22  Bruno Haible  <bruno@clisp.org>
5681
5682         unlink: Respect rules for use of AC_LIBOBJ.
5683         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
5684         * modules/unlink (configure.ac): ... to here.
5685
5686 2011-05-22  Bruno Haible  <bruno@clisp.org>
5687
5688         uname: Move AC_LIBOBJ invocations to module description.
5689         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
5690         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
5691         here...
5692         * modules/uname (configure.ac): ... to here.
5693
5694 2011-05-22  Bruno Haible  <bruno@clisp.org>
5695
5696         ttyname_r: Move AC_LIBOBJ invocations to module description.
5697         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
5698         gl_PREREQ_TTYNAME_R invocations from here...
5699         * modules/ttyname_r (configure.ac): ... to here.
5700
5701 2011-05-22  Bruno Haible  <bruno@clisp.org>
5702
5703         tsearch: Move AC_LIBOBJ invocations to module description.
5704         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
5705         invocations from here...
5706         * modules/tsearch (configure.ac): ... to here.
5707
5708 2011-05-22  Bruno Haible  <bruno@clisp.org>
5709
5710         towctrans: Move AC_LIBOBJ invocations to module description.
5711         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
5712         AC_LIBOBJ invocation from here...
5713         * modules/towctrans (configure.ac): ... to here.
5714
5715 2011-05-22  Bruno Haible  <bruno@clisp.org>
5716
5717         tmpfile: Move AC_LIBOBJ invocations to module description.
5718         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
5719         invocations from here...
5720         * modules/tmpfile (configure.ac): ... to here.
5721
5722 2011-05-22  Bruno Haible  <bruno@clisp.org>
5723
5724         times: Move AC_LIBOBJ invocations to module description.
5725         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
5726         * modules/times (configure.ac): ... to here.
5727
5728 2011-05-22  Bruno Haible  <bruno@clisp.org>
5729
5730         time_r: Move AC_LIBOBJ invocations to module description.
5731         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
5732         invocations from here...
5733         * modules/time_r (configure.ac): ... to here.
5734
5735 2011-05-22  Bruno Haible  <bruno@clisp.org>
5736
5737         timegm: Move AC_LIBOBJ invocations to module description.
5738         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
5739         invocations from here...
5740         * modules/timegm (configure.ac): ... to here.
5741
5742 2011-05-22  Bruno Haible  <bruno@clisp.org>
5743
5744         tcgetsid: Move AC_LIBOBJ invocations to module description.
5745         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
5746         and gl_PREREQ_TCGETSID invocations from here...
5747         * modules/tcgetsid (configure.ac): ... to here.
5748         (Depends-on): Update conditions.
5749
5750 2011-05-22  Bruno Haible  <bruno@clisp.org>
5751
5752         symlinkat: Move AC_LIBOBJ invocations to module description.
5753         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
5754         here...
5755         * modules/symlinkat (configure.ac): ... to here.
5756
5757 2011-05-22  Bruno Haible  <bruno@clisp.org>
5758
5759         symlink: Move AC_LIBOBJ invocations to module description.
5760         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
5761         here...
5762         * modules/symlink (configure.ac): ... to here.
5763
5764 2011-05-22  Bruno Haible  <bruno@clisp.org>
5765
5766         strverscmp: Move AC_LIBOBJ invocations to module description.
5767         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
5768         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
5769         from here...
5770         * modules/strverscmp (configure.ac): ... to here.
5771
5772 2011-05-22  Bruno Haible  <bruno@clisp.org>
5773
5774         strtok_r: Move AC_LIBOBJ invocations to module description.
5775         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
5776         and gl_PREREQ_STRTOK_R invocations from here...
5777         * modules/strtok_r (configure.ac): ... to here.
5778         (Depends-on): Update conditions.
5779
5780 2011-05-22  Bruno Haible  <bruno@clisp.org>
5781
5782         strtoumax: Move AC_LIBOBJ invocations to module description.
5783         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
5784         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
5785         from here...
5786         * modules/strtoumax (configure.ac): ... to here.
5787
5788 2011-05-22  Bruno Haible  <bruno@clisp.org>
5789
5790         strtoimax: Move AC_LIBOBJ invocations to module description.
5791         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
5792         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
5793         from here...
5794         * modules/strtoimax (configure.ac): ... to here.
5795
5796 2011-05-22  Bruno Haible  <bruno@clisp.org>
5797
5798         strtoull: Move AC_LIBOBJ invocations to module description.
5799         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
5800         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
5801         from here...
5802         * modules/strtoull (configure.ac): ... to here.
5803
5804 2011-05-22  Bruno Haible  <bruno@clisp.org>
5805
5806         strtoll: Move AC_LIBOBJ invocations to module description.
5807         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
5808         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
5809         here...
5810         * modules/strtoll (configure.ac): ... to here.
5811
5812 2011-05-22  Bruno Haible  <bruno@clisp.org>
5813
5814         strtoul: Move AC_LIBOBJ invocations to module description.
5815         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
5816         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
5817         * modules/strtoul (configure.ac): ... to here.
5818
5819 2011-05-22  Bruno Haible  <bruno@clisp.org>
5820
5821         strtol: Move AC_LIBOBJ invocations to module description.
5822         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
5823         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
5824         * modules/strtol (configure.ac): ... to here.
5825
5826 2011-05-22  Bruno Haible  <bruno@clisp.org>
5827
5828         strtod: Move AC_LIBOBJ invocations to module description.
5829         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
5830         invocations from here...
5831         * modules/strtod (configure.ac): ... to here.
5832
5833 2011-05-22  Bruno Haible  <bruno@clisp.org>
5834
5835         strstr*: Move AC_LIBOBJ invocations to module description.
5836         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
5837         invocations from here...
5838         * modules/strstr-simple (configure.ac): ... to here.
5839         * modules/strstr (configure.ac): ... and here.
5840
5841 2011-05-22  Bruno Haible  <bruno@clisp.org>
5842
5843         strsignal: Move AC_LIBOBJ invocations to module description.
5844         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
5845         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
5846         * modules/strsignal (configure.ac): ... to here.
5847         (Depends-on): Update conditions.
5848
5849 2011-05-22  Bruno Haible  <bruno@clisp.org>
5850
5851         strsep: Move AC_LIBOBJ invocations to module description.
5852         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
5853         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
5854         here...
5855         * modules/strsep (configure.ac): ... to here.
5856
5857 2011-05-22  Bruno Haible  <bruno@clisp.org>
5858
5859         strptime: Move AC_LIBOBJ invocations to module description.
5860         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
5861         gl_PREREQ_STRPTIME invocations from here...
5862         * modules/strptime (configure.ac): ... to here.
5863
5864 2011-05-22  Bruno Haible  <bruno@clisp.org>
5865
5866         strpbrk: Move AC_LIBOBJ invocations to module description.
5867         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
5868         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
5869         here...
5870         * modules/strpbrk (configure.ac): ... to here.
5871
5872 2011-05-22  Bruno Haible  <bruno@clisp.org>
5873
5874         strnlen: Move AC_LIBOBJ invocations to module description.
5875         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
5876         invocations from here...
5877         * modules/strnlen (configure.ac): ... to here.
5878
5879 2011-05-22  Bruno Haible  <bruno@clisp.org>
5880
5881         strndup: Move AC_LIBOBJ invocations to module description.
5882         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
5883         invocations from here...
5884         * modules/strndup (configure.ac): ... to here.
5885         (Depends-on): Update conditions.
5886
5887 2011-05-22  Bruno Haible  <bruno@clisp.org>
5888
5889         strncat: Move AC_LIBOBJ invocations to module description.
5890         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
5891         invocations from here...
5892         * modules/strncat (configure.ac): ... to here.
5893
5894 2011-05-22  Bruno Haible  <bruno@clisp.org>
5895
5896         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
5897         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
5898         invocations from here...
5899         * modules/strdup (configure.ac): ... to here.
5900         * modules/strdup-posix (configure.ac): ... and here.
5901
5902 2011-05-22  Bruno Haible  <bruno@clisp.org>
5903
5904         strcspn: Move AC_LIBOBJ invocations to module description.
5905         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
5906         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
5907         here...
5908         * modules/strcspn (configure.ac): ... to here.
5909
5910 2011-05-22  Bruno Haible  <bruno@clisp.org>
5911
5912         strchrnul: Move AC_LIBOBJ invocations to module description.
5913         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
5914         gl_PREREQ_STRCHRNUL invocations from here...
5915         * modules/strchrnul (configure.ac): ... to here.
5916
5917 2011-05-22  Bruno Haible  <bruno@clisp.org>
5918
5919         strcasestr*: Move AC_LIBOBJ invocations to module description.
5920         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
5921         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
5922         * modules/strcasestr-simple (configure.ac): ... to here.
5923         * modules/strcasestr (configure.ac): ... and here.
5924
5925 2011-05-22  Bruno Haible  <bruno@clisp.org>
5926
5927         strcase: Move AC_LIBOBJ invocations to module description.
5928         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
5929         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
5930         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
5931         gl_PREREQ_STRNCASECMP invocations from here...
5932         * modules/strcase (configure.ac): ... to here.
5933
5934 2011-05-22  Bruno Haible  <bruno@clisp.org>
5935
5936         stpncpy: Move AC_LIBOBJ invocations to module description.
5937         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
5938         here...
5939         * modules/stpncpy (configure.ac): ... to here.
5940
5941 2011-05-22  Bruno Haible  <bruno@clisp.org>
5942
5943         stpcpy: Move AC_LIBOBJ invocations to module description.
5944         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
5945         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
5946         here...
5947         * modules/stpcpy (configure.ac): ... to here.
5948
5949 2011-05-21  Bruno Haible  <bruno@clisp.org>
5950
5951         stat: Move AC_LIBOBJ invocations to module description.
5952         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
5953         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
5954         here...
5955         * modules/stat (configure.ac): ... to here.
5956
5957 2011-05-21  Bruno Haible  <bruno@clisp.org>
5958
5959         sleep: Move AC_LIBOBJ invocations to module description.
5960         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
5961         * modules/sleep (configure.ac): ... to here.
5962
5963 2011-05-21  Bruno Haible  <bruno@clisp.org>
5964
5965         signbit: Move AC_LIBOBJ invocations to module description.
5966         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
5967         * modules/signbit (configure.ac): ... to here.
5968
5969 2011-05-21  Bruno Haible  <bruno@clisp.org>
5970
5971         sigprocmask: Move AC_LIBOBJ invocations to module description.
5972         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
5973         gl_PREREQ_SIGPROMASK invocations from here...
5974         * modules/sigprocmask (configure.ac): ... to here.
5975
5976 2011-05-21  Bruno Haible  <bruno@clisp.org>
5977
5978         sigaction: Move AC_LIBOBJ invocations to module description.
5979         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
5980         gl_PREREQ_SIGACTION invocations from here...
5981         * modules/sigaction (configure.ac): ... to here.
5982
5983 2011-05-21  Bruno Haible  <bruno@clisp.org>
5984
5985         sig2str: Move AC_LIBOBJ invocations to module description.
5986         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
5987         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
5988         here...
5989         * modules/sig2str (configure.ac): ... to here.
5990
5991 2011-05-21  Bruno Haible  <bruno@clisp.org>
5992
5993         setlocale: Move AC_LIBOBJ invocations to module description.
5994         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
5995         gl_PREREQ_SETLOCALE invocations from here...
5996         * modules/setlocale (configure.ac): ... to here.
5997
5998 2011-05-21  Bruno Haible  <bruno@clisp.org>
5999
6000         unsetenv: Move AC_LIBOBJ invocations to module description.
6001         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
6002         and gl_PREREQ_UNSETENV invocations from here...
6003         * modules/unsetenv (configure.ac): ... to here.
6004         (Depends-on): Update.
6005
6006 2011-05-21  Bruno Haible  <bruno@clisp.org>
6007
6008         setenv: Move AC_LIBOBJ invocations to module description.
6009         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
6010         here...
6011         * modules/setenv (configure.ac): ... to here.
6012
6013 2011-05-21  Bruno Haible  <bruno@clisp.org>
6014
6015         selinux-h: Move AC_LIBOBJ invocations to module description.
6016         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
6017         AC_LIBOBJ invocation from here...
6018         * modules/selinux-h (configure.ac): ... to here.
6019
6020 2011-05-21  Bruno Haible  <bruno@clisp.org>
6021
6022         select: Respect rules for use of AC_LIBOBJ.
6023         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
6024         here...
6025         * modules/select (configure.ac): ... to here.
6026
6027 2011-05-21  Bruno Haible  <bruno@clisp.org>
6028
6029         scandir: Move AC_LIBOBJ invocations to module description.
6030         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
6031         invocations from here...
6032         * modules/scandir (configure.ac): ... to here.
6033
6034 2011-05-21  Bruno Haible  <bruno@clisp.org>
6035
6036         rpmatch: Move AC_LIBOBJ invocations to module description.
6037         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
6038         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
6039         here...
6040         * modules/rpmatch (configure.ac): ... to here.
6041
6042 2011-05-21  Bruno Haible  <bruno@clisp.org>
6043
6044         rmdir: Respect rules for use of AC_LIBOBJ.
6045         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
6046         * modules/rmdir (configure.ac): ... to here.
6047
6048 2011-05-21  Bruno Haible  <bruno@clisp.org>
6049
6050         renameat: Move AC_LIBOBJ invocations to module description.
6051         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
6052         here...
6053         * modules/renameat (configure.ac): ... to here.
6054
6055 2011-05-21  Bruno Haible  <bruno@clisp.org>
6056
6057         rename: Respect rules for use of AC_LIBOBJ.
6058         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
6059         here...
6060         * modules/rename (configure.ac): ... to here.
6061
6062 2011-05-21  Bruno Haible  <bruno@clisp.org>
6063
6064         remove: Move AC_LIBOBJ invocations to module description.
6065         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
6066         here...
6067         * modules/remove (configure.ac): ... to here.
6068
6069 2011-05-21  Bruno Haible  <bruno@clisp.org>
6070
6071         relocatable-lib: Move AC_LIBOBJ invocations to module description.
6072         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
6073         macro.
6074         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
6075         * modules/relocatable-lib (configure.ac): ... to here.
6076         * modules/relocatable-prog-wrapper (configure.ac): Invoke
6077         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
6078
6079 2011-05-21  Bruno Haible  <bruno@clisp.org>
6080
6081         relocatable-prog: Move AC_LIBOBJ invocations to module description.
6082         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
6083         here...
6084         * modules/relocatable-prog (configure.ac): ... to here.
6085
6086 2011-05-21  Bruno Haible  <bruno@clisp.org>
6087
6088         regex: Move AC_LIBOBJ invocations to module description.
6089         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
6090         invocations from here...
6091         * modules/regex (configure.ac): ... to here.
6092
6093 2011-05-21  Bruno Haible  <bruno@clisp.org>
6094
6095         realloc-*: Move AC_LIBOBJ invocations to module description.
6096         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
6097         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
6098         AC_LIBOBJ invocations from here...
6099         * modules/realloc-gnu (configure.ac): ... to here.
6100         * modules/realloc-posix (configure.ac): ... and here.
6101
6102 2011-05-21  Bruno Haible  <bruno@clisp.org>
6103
6104         readutmp: Move AC_LIBOBJ invocations to module description.
6105         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
6106         * modules/readutmp (configure.ac): ... to here.
6107
6108 2011-05-21  Bruno Haible  <bruno@clisp.org>
6109
6110         readlinkat: Move AC_LIBOBJ invocations to module description.
6111         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
6112         here...
6113         * modules/readlinkat (configure.ac): ... to here.
6114
6115 2011-05-21  Bruno Haible  <bruno@clisp.org>
6116
6117         readlink: Move AC_LIBOBJ invocations to module description.
6118         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
6119         gl_PREREQ_READLINK invocations from here...
6120         * modules/readlink (configure.ac): ... to here.
6121
6122 2011-05-21  Bruno Haible  <bruno@clisp.org>
6123
6124         readline: Move AC_LIBOBJ invocations to module description.
6125         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
6126         gl_PREREQ_READLINE invocations from here...
6127         * modules/readline (configure.ac): ... to here.
6128
6129 2011-05-21  Bruno Haible  <bruno@clisp.org>
6130
6131         read: Move AC_LIBOBJ invocations to module description.
6132         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
6133         * modules/read (configure.ac): ... to here.
6134
6135 2011-05-21  Bruno Haible  <bruno@clisp.org>
6136
6137         rawmemchr: Move AC_LIBOBJ invocations to module description.
6138         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
6139         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
6140         from here...
6141         * modules/rawmemchr (configure.ac): ... to here.
6142
6143 2011-05-21  Bruno Haible  <bruno@clisp.org>
6144
6145         random_r: Move AC_LIBOBJ invocations to module description.
6146         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
6147         gl_PREREQ_RANDOM_R invocations from here...
6148         * modules/random_r (configure.ac): ... to here.
6149
6150 2011-05-21  Bruno Haible  <bruno@clisp.org>
6151
6152         pwrite: Move AC_LIBOBJ invocations to module description.
6153         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
6154         * modules/pwrite (configure.ac): ... to here.
6155
6156 2011-05-21  Bruno Haible  <bruno@clisp.org>
6157
6158         putenv: Move AC_LIBOBJ invocations to module description.
6159         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
6160         * modules/putenv (configure.ac): ... to here.
6161
6162 2011-05-21  Bruno Haible  <bruno@clisp.org>
6163
6164         login_tty: Move AC_LIBOBJ invocations to module description.
6165         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
6166         * modules/login_tty (configure.ac): ... to here.
6167
6168 2011-05-21  Bruno Haible  <bruno@clisp.org>
6169
6170         openpty: Move AC_LIBOBJ invocations to module description.
6171         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
6172         * modules/openpty (configure.ac): ... to here.
6173
6174 2011-05-21  Bruno Haible  <bruno@clisp.org>
6175
6176         forkpty: Move AC_LIBOBJ invocations to module description.
6177         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
6178         * modules/forkpty (configure.ac): ... to here.
6179
6180 2011-05-21  Bruno Haible  <bruno@clisp.org>
6181
6182         ptsname: Move AC_LIBOBJ invocations to module description.
6183         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
6184         invocations from here...
6185         * modules/ptsname (configure.ac): ... to here.
6186
6187 2011-05-21  Bruno Haible  <bruno@clisp.org>
6188
6189         pread: Move AC_LIBOBJ invocations to module description.
6190         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
6191         * modules/pread (configure.ac): ... to here.
6192
6193 2011-05-21  Bruno Haible  <bruno@clisp.org>
6194
6195         posix_spawn*: Move AC_LIBOBJ invocations to module description.
6196         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
6197         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
6198         * modules/posix_spawn (configure.ac): ... to here.
6199         * modules/posix_spawnp (configure.ac): ... and here.
6200
6201 2011-05-21  Bruno Haible  <bruno@clisp.org>
6202
6203         popen: Move AC_LIBOBJ invocations to module description.
6204         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
6205         invocations from here...
6206         * modules/popen (configure.ac): ... to here.
6207
6208 2011-05-21  Bruno Haible  <bruno@clisp.org>
6209
6210         poll: Move AC_LIBOBJ invocations to module description.
6211         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
6212         invocations from here...
6213         * modules/poll (configure.ac): ... to here.
6214
6215 2011-05-21  Bruno Haible  <bruno@clisp.org>
6216
6217         pipe-posix: Move AC_LIBOBJ invocations to module description.
6218         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
6219         * modules/pipe-posix (configure.ac): ... to here.
6220
6221 2011-05-21  Bruno Haible  <bruno@clisp.org>
6222
6223         openat: Respect rules for use of AC_LIBOBJ.
6224         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
6225         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
6226         * modules/openat (configure.ac): ... to here.
6227
6228 2011-05-21  Bruno Haible  <bruno@clisp.org>
6229
6230         obstack-printf*: Move AC_LIBOBJ invocations to module description.
6231         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
6232         invocation from here...
6233         * modules/obstack-printf (configure.ac): ... to here.
6234         * modules/obstack-printf-posix (configure.ac): ... and here.
6235
6236 2011-05-21  Bruno Haible  <bruno@clisp.org>
6237
6238         nl_langinfo: Move AC_LIBOBJ invocations to module description.
6239         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
6240         from here...
6241         * modules/nl_langinfo (configure.ac): ... to here.
6242
6243 2011-05-21  Bruno Haible  <bruno@clisp.org>
6244
6245         nanosleep: Move AC_LIBOBJ invocations to module description.
6246         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
6247         gl_PREREQ_NANOSLEEP invocations from here...
6248         * modules/nanosleep (configure.ac): ... to here.
6249
6250 2011-05-21  Bruno Haible  <bruno@clisp.org>
6251
6252         mountlist: Move AC_LIBOBJ invocations to module description.
6253         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
6254         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
6255         * modules/mountlist (configure.ac): ... to here.
6256
6257 2011-05-21  Bruno Haible  <bruno@clisp.org>
6258
6259         mktime: Respect rules for use of AC_LIBOBJ.
6260         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
6261         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
6262         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
6263         (gl_FUNC_MKTIME_INTERNAL): ... and here...
6264         * modules/mktime (configure.ac): ... to here.
6265         * modules/mktime-internal (configure.ac): ... and here.
6266         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
6267
6268 2011-05-21  Bruno Haible  <bruno@clisp.org>
6269
6270         mkstemps: Move AC_LIBOBJ invocations to module description.
6271         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
6272         here...
6273         * modules/mkstemps (configure.ac): ... to here.
6274
6275 2011-05-21  Bruno Haible  <bruno@clisp.org>
6276
6277         mkstemp: Move AC_LIBOBJ invocations to module description.
6278         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
6279         gl_PREREQ_MKSTEMP invocations from here...
6280         * modules/mkstemp (configure.ac): ... to here.
6281
6282 2011-05-21  Bruno Haible  <bruno@clisp.org>
6283
6284         mkostemps: Move AC_LIBOBJ invocations to module description.
6285         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
6286         here...
6287         * modules/mkostemps (configure.ac): ... to here.
6288
6289 2011-05-21  Bruno Haible  <bruno@clisp.org>
6290
6291         mkostemp: Move AC_LIBOBJ invocations to module description.
6292         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
6293         gl_PREREQ_MKOSTEMP invocations from here...
6294         * modules/mkostemp (configure.ac): ... to here.
6295
6296 2011-05-21  Bruno Haible  <bruno@clisp.org>
6297
6298         mknod: Move AC_LIBOBJ invocations to module description.
6299         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
6300         * modules/mknod (configure.ac): ... to here.
6301
6302 2011-05-21  Bruno Haible  <bruno@clisp.org>
6303
6304         mkfifoat: Move AC_LIBOBJ invocations to module description.
6305         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
6306         here...
6307         * modules/mkfifoat (configure.ac): ... to here.
6308
6309 2011-05-21  Bruno Haible  <bruno@clisp.org>
6310
6311         mkfifo: Respect rules for use of AC_LIBOBJ.
6312         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
6313         here...
6314         * modules/mkfifo (configure.ac): ... to here.
6315
6316 2011-05-21  Bruno Haible  <bruno@clisp.org>
6317
6318         mkdtemp: Move AC_LIBOBJ invocations to module description.
6319         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
6320         invocations from here...
6321         * modules/mkdtemp (configure.ac): ... to here.
6322
6323 2011-05-21  Bruno Haible  <bruno@clisp.org>
6324
6325         mkdir: Move AC_LIBOBJ invocations to module description.
6326         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
6327         * modules/mkdir (configure.ac): ... to here.
6328
6329 2011-05-21  Bruno Haible  <bruno@clisp.org>
6330
6331         memset: Move AC_LIBOBJ invocations to module description.
6332         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
6333         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
6334         here...
6335         * modules/memset (configure.ac): ... to here.
6336
6337 2011-05-21  Bruno Haible  <bruno@clisp.org>
6338
6339         memrchr: Move AC_LIBOBJ invocations to module description.
6340         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
6341         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
6342         here...
6343         * modules/memrchr (configure.ac): ... to here.
6344
6345 2011-05-21  Bruno Haible  <bruno@clisp.org>
6346
6347         mempcpy: Move AC_LIBOBJ invocations to module description.
6348         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
6349         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
6350         here...
6351         * modules/mempcpy (configure.ac): ... to here.
6352
6353 2011-05-21  Bruno Haible  <bruno@clisp.org>
6354
6355         memmove: Move AC_LIBOBJ invocations to module description.
6356         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
6357         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
6358         here...
6359         * modules/memmove (configure.ac): ... to here.
6360
6361 2011-05-21  Bruno Haible  <bruno@clisp.org>
6362
6363         memmem*: Move AC_LIBOBJ invocations to module description.
6364         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
6365         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
6366         here...
6367         (gl_FUNC_MEMMEM): ... and here...
6368         * modules/memmem-simple (configure.ac): ... to here.
6369         * modules/memmem (configure.ac): ... and here.
6370
6371 2011-05-21  Bruno Haible  <bruno@clisp.org>
6372
6373         memcpy: Move AC_LIBOBJ invocations to module description.
6374         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
6375         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
6376         here...
6377         * modules/memcpy (configure.ac): ... to here.
6378
6379 2011-05-21  Bruno Haible  <bruno@clisp.org>
6380
6381         memcmp: Simplify autoconf macro.
6382         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
6383         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
6384         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
6385
6386 2011-05-21  Bruno Haible  <bruno@clisp.org>
6387
6388         memcmp: Move AC_LIBOBJ invocations to module description.
6389         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
6390         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
6391         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
6392         * modules/memcmp (configure.ac): ... to here.
6393         (Depends-on): Update conditions.
6394
6395 2011-05-21  Bruno Haible  <bruno@clisp.org>
6396
6397         memchr: Respect rules for use of AC_LIBOBJ.
6398         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
6399         invocations from here...
6400         * modules/memchr (configure.ac): ... to here.
6401
6402 2011-05-21  Bruno Haible  <bruno@clisp.org>
6403
6404         mbtowc: Move AC_LIBOBJ invocations to module description.
6405         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
6406         invocations from here...
6407         * modules/mbtowc (configure.ac): ... to here.
6408
6409 2011-05-21  Bruno Haible  <bruno@clisp.org>
6410
6411         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
6412         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
6413         gl_PREREQ_MBSRTOWCS invocations from here...
6414         * modules/mbsrtowcs (configure.ac): ... to here.
6415
6416 2011-05-21  Bruno Haible  <bruno@clisp.org>
6417
6418         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
6419         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
6420         gl_PREREQ_MBSNRTOWCS invocations from here...
6421         * modules/mbsnrtowcs (configure.ac): ... to here.
6422
6423 2011-05-21  Bruno Haible  <bruno@clisp.org>
6424
6425         mbsinit: Move AC_LIBOBJ invocations to module description.
6426         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
6427         invocations from here...
6428         * modules/mbsinit (configure.ac): ... to here.
6429
6430 2011-05-21  Bruno Haible  <bruno@clisp.org>
6431
6432         mbrlen: Move AC_LIBOBJ invocations to module description.
6433         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
6434         invocations from here...
6435         * modules/mbrlen (configure.ac): ... to here.
6436
6437 2011-05-21  Bruno Haible  <bruno@clisp.org>
6438
6439         mbrtowc: Respect rules for use of AC_LIBOBJ.
6440         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
6441         invocations from here...
6442         * modules/mbrtowc (configure.ac): ... to here.
6443
6444 2011-05-21  Bruno Haible  <bruno@clisp.org>
6445
6446         malloc-*: Move AC_LIBOBJ invocations to module description.
6447         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
6448         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
6449         AC_LIBOBJ invocations from here...
6450         * modules/malloc-gnu (configure.ac): ... to here.
6451         * modules/malloc-posix (configure.ac): ... and here.
6452
6453 2011-05-21  Bruno Haible  <bruno@clisp.org>
6454
6455         lstat, openat: Respect rules for use of AC_LIBOBJ.
6456         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
6457         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
6458         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
6459         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
6460         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
6461         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
6462         here.
6463         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
6464
6465 2011-05-21  Bruno Haible  <bruno@clisp.org>
6466
6467         lseek: Move AC_LIBOBJ invocations to module description.
6468         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
6469         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
6470         * modules/lseek (configure.ac): ... to here.
6471
6472 2011-05-21  Bruno Haible  <bruno@clisp.org>
6473
6474         linkat: Move AC_LIBOBJ invocations to module description.
6475         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
6476         here...
6477         * modules/linkat (configure.ac): ... to here.
6478
6479 2011-05-21  Bruno Haible  <bruno@clisp.org>
6480
6481         link: Respect rules for use of AC_LIBOBJ.
6482         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
6483         * modules/link (configure.ac): ... to here.
6484
6485 2011-05-21  Bruno Haible  <bruno@clisp.org>
6486
6487         lchown: Move AC_LIBOBJ invocations to module description.
6488         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
6489         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
6490         * modules/lchown (configure.ac): ... to here.
6491
6492 2011-05-21  Bruno Haible  <bruno@clisp.org>
6493
6494         iswctype: Move AC_LIBOBJ invocations to module description.
6495         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
6496         here...
6497         * modules/iswctype (configure.ac): ... to here.
6498
6499 2011-05-21  Bruno Haible  <bruno@clisp.org>
6500
6501         iswblank: Move AC_LIBOBJ invocations to module description.
6502         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
6503         here...
6504         * modules/iswblank (configure.ac): ... to here.
6505
6506 2011-05-21  Bruno Haible  <bruno@clisp.org>
6507
6508         atanl: Move AC_LIBOBJ invocations to module description.
6509         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
6510         * modules/atanl (configure.ac): ... to here.
6511
6512 2011-05-21  Bruno Haible  <bruno@clisp.org>
6513
6514         acosl: Move AC_LIBOBJ invocations to module description.
6515         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
6516         * modules/acosl (configure.ac): ... to here.
6517
6518 2011-05-21  Bruno Haible  <bruno@clisp.org>
6519
6520         asinl: Respect rules for use of AC_LIBOBJ.
6521         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
6522         * modules/asinl (configure.ac): ... to here.
6523
6524 2011-05-21  Bruno Haible  <bruno@clisp.org>
6525
6526         tanl: Move AC_LIBOBJ invocations to module description.
6527         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
6528         * modules/tanl (configure.ac): ... to here.
6529
6530 2011-05-21  Bruno Haible  <bruno@clisp.org>
6531
6532         cosl: Move AC_LIBOBJ invocations to module description.
6533         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
6534         * modules/cosl (configure.ac): ... to here.
6535
6536 2011-05-21  Bruno Haible  <bruno@clisp.org>
6537
6538         sinl: Move AC_LIBOBJ invocations to module description.
6539         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
6540         * modules/sinl (configure.ac): ... to here.
6541
6542 2011-05-21  Bruno Haible  <bruno@clisp.org>
6543
6544         logl: Move AC_LIBOBJ invocations to module description.
6545         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
6546         * modules/logl (configure.ac): ... to here.
6547
6548 2011-05-21  Bruno Haible  <bruno@clisp.org>
6549
6550         expl: Move AC_LIBOBJ invocations to module description.
6551         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
6552         * modules/expl (configure.ac): ... to here.
6553
6554 2011-05-21  Bruno Haible  <bruno@clisp.org>
6555
6556         roundl: Move AC_LIBOBJ invocations to module description.
6557         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
6558         * modules/roundl (configure.ac): ... to here.
6559
6560 2011-05-21  Bruno Haible  <bruno@clisp.org>
6561
6562         round: Move AC_LIBOBJ invocations to module description.
6563         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
6564         * modules/round (configure.ac): ... to here.
6565
6566 2011-05-21  Bruno Haible  <bruno@clisp.org>
6567
6568         roundf: Move AC_LIBOBJ invocations to module description.
6569         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
6570         * modules/roundf (configure.ac): ... to here.
6571
6572 2011-05-21  Bruno Haible  <bruno@clisp.org>
6573
6574         truncl: Move AC_LIBOBJ invocations to module description.
6575         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
6576         * modules/truncl (configure.ac): ... to here.
6577
6578 2011-05-21  Bruno Haible  <bruno@clisp.org>
6579
6580         trunc: Move AC_LIBOBJ invocations to module description.
6581         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
6582         * modules/trunc (configure.ac): ... to here.
6583
6584 2011-05-21  Bruno Haible  <bruno@clisp.org>
6585
6586         truncf: Move AC_LIBOBJ invocations to module description.
6587         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
6588         * modules/truncf (configure.ac): ... to here.
6589
6590 2011-05-21  Bruno Haible  <bruno@clisp.org>
6591
6592         ceill: Move AC_LIBOBJ invocations to module description.
6593         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
6594         * modules/ceill (configure.ac): ... to here.
6595
6596 2011-05-21  Bruno Haible  <bruno@clisp.org>
6597
6598         ceil: Move AC_LIBOBJ invocations to module description.
6599         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
6600         * modules/ceil (configure.ac): ... to here.
6601
6602 2011-05-21  Bruno Haible  <bruno@clisp.org>
6603
6604         ceilf: Move AC_LIBOBJ invocations to module description.
6605         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
6606         * modules/ceilf (configure.ac): ... to here.
6607
6608 2011-05-21  Bruno Haible  <bruno@clisp.org>
6609
6610         floorl: Respect rules for use of AC_LIBOBJ.
6611         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
6612         * modules/floorl (configure.ac): ... to here.
6613
6614 2011-05-21  Bruno Haible  <bruno@clisp.org>
6615
6616         floor: Respect rules for use of AC_LIBOBJ.
6617         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
6618         * modules/floor (configure.ac): ... to here.
6619
6620 2011-05-21  Bruno Haible  <bruno@clisp.org>
6621
6622         floorf: Move AC_LIBOBJ invocations to module description.
6623         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
6624         * modules/floorf (configure.ac): ... to here.
6625
6626 2011-05-20  Bruno Haible  <bruno@clisp.org>
6627
6628         sqrtl: Respect rules for use of AC_LIBOBJ.
6629         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
6630         * modules/sqrtl (configure.ac): ... to here.
6631
6632 2011-05-20  Bruno Haible  <bruno@clisp.org>
6633
6634         ldexpl: Respect rules for use of AC_LIBOBJ.
6635         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
6636         * modules/ldexpl (configure.ac): ... to here.
6637
6638 2011-05-20  Bruno Haible  <bruno@clisp.org>
6639
6640         frexpl*: Respect rules for use of AC_LIBOBJ.
6641         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
6642         invocation from here...
6643         * modules/frexpl (configure.ac): ... to here.
6644         * modules/frexpl-nolibm (configure.ac): ... and here.
6645
6646 2011-05-20  Bruno Haible  <bruno@clisp.org>
6647
6648         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
6649         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
6650         invocation from here...
6651         * modules/frexp (configure.ac): ... to here.
6652         * modules/frexp-nolibm (configure.ac): ... and here.
6653
6654 2011-05-20  Bruno Haible  <bruno@clisp.org>
6655
6656         isnan: Respect rules for use of AC_LIBOBJ.
6657         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
6658         invocations here.
6659         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
6660         REPLACE_ISNAN.
6661         * modules/isnand (configure.ac): Likewise.
6662         * modules/isnanl (configure.ac): Likewise.
6663
6664 2011-05-20  Bruno Haible  <bruno@clisp.org>
6665
6666         isnanl*: Respect rules for use of AC_LIBOBJ.
6667         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
6668         invocation from here...
6669         * modules/isnanl (configure.ac): ... to here.
6670         * modules/isnanl-nolibm (configure.ac): ... and here.
6671
6672 2011-05-20  Bruno Haible  <bruno@clisp.org>
6673
6674         isnand*: Move AC_LIBOBJ invocations to module description.
6675         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
6676         invocation from here...
6677         * modules/isnand (configure.ac): ... to here.
6678         * modules/isnand-nolibm (configure.ac): ... and here.
6679
6680 2011-05-20  Bruno Haible  <bruno@clisp.org>
6681
6682         isnanf*: Move AC_LIBOBJ invocations to module description.
6683         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
6684         invocation from here...
6685         * modules/isnanf (configure.ac): ... to here.
6686         * modules/isnanf-nolibm (configure.ac): ... and here.
6687
6688 2011-05-20  Bruno Haible  <bruno@clisp.org>
6689
6690         isnan*: Separate the AC_LIBOBJ invocations.
6691         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
6692         AC_LIBOBJ invocation.
6693         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
6694         here.
6695         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
6696         AC_LIBOBJ invocation.
6697         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
6698         here.
6699         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
6700         AC_LIBOBJ invocation.
6701         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
6702         here.
6703         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
6704
6705 2011-05-08  Bruno Haible  <bruno@clisp.org>
6706
6707         isinf: Move AC_LIBOBJ invocations to module description.
6708         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
6709         * modules/isinf (configure.ac): ... to here.
6710
6711 2011-05-08  Bruno Haible  <bruno@clisp.org>
6712
6713         isfinite: Move AC_LIBOBJ invocations to module description.
6714         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
6715         * modules/isfinite (configure.ac): ... to here.
6716
6717 2011-05-08  Bruno Haible  <bruno@clisp.org>
6718
6719         isblank: Move AC_LIBOBJ invocations to module description.
6720         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
6721         here...
6722         * modules/isblank (configure.ac): ... to here.
6723
6724 2011-05-08  Bruno Haible  <bruno@clisp.org>
6725
6726         isapipe: Move AC_LIBOBJ invocations to module description.
6727         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
6728         gl_PREREQ_ISAPIPE invocations from here...
6729         * modules/isapipe (configure.ac): ... to here.
6730         (Depends-on): Update condition.
6731
6732 2011-05-08  Bruno Haible  <bruno@clisp.org>
6733
6734         ioctl: Move AC_LIBOBJ invocations to module description.
6735         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
6736         invocations from here...
6737         * modules/ioctl (configure.ac): ... to here.
6738         (Depends-on): Update condition.
6739
6740 2011-05-08  Bruno Haible  <bruno@clisp.org>
6741
6742         imaxdiv: Move AC_LIBOBJ invocations to module description.
6743         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
6744         invocations from here...
6745         * modules/imaxdiv (configure.ac): ... to here.
6746
6747 2011-05-08  Bruno Haible  <bruno@clisp.org>
6748
6749         imaxabs: Move AC_LIBOBJ invocations to module description.
6750         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
6751         invocations from here...
6752         * modules/imaxabs (configure.ac): ... to here.
6753
6754 2011-05-08  Bruno Haible  <bruno@clisp.org>
6755
6756         getaddrinfo: Move AC_LIBOBJ invocations to module description.
6757         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
6758         AC_LIBOBJ invocations from here...
6759         * modules/getaddrinfo (configure.ac): ... to here.
6760         (Depends-on): Add conditions.
6761
6762 2011-05-08  Bruno Haible  <bruno@clisp.org>
6763
6764         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
6765         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
6766         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
6767         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
6768         (gl_PREREQ_INET_PTON): ... from here.
6769         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
6770         gl_PREREQ_INET_PTON here.
6771         (Depends-on): Update condition.
6772
6773 2011-05-08  Bruno Haible  <bruno@clisp.org>
6774
6775         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
6776         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
6777         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
6778         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
6779         (gl_PREREQ_INET_NTOP): ... from here.
6780         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
6781         gl_PREREQ_INET_NTOP here.
6782         (Depends-on): Update condition.
6783
6784 2011-05-08  Bruno Haible  <bruno@clisp.org>
6785
6786         iconv_open: Move AC_LIBOBJ invocations to module description.
6787         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
6788         AC_LIBOBJ invocations from here...
6789         * modules/iconv_open (configure.ac): ... to here.
6790
6791 2011-05-08  Bruno Haible  <bruno@clisp.org>
6792
6793         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
6794         If module 'iconv_open' is among the main modules and module
6795         'iconv_open-utf' is among the tests dependencies, then
6796         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
6797         return the special iconv_t values. Therefore iconv() and iconv_close()
6798         must support these special iconv_t values, already in lib, not only in
6799         tests.
6800         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
6801         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
6802         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
6803         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
6804         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
6805         (Depends-on): Add the dependencies of iconv_open-utf.
6806         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
6807         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
6808         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
6809
6810 2011-05-08  Bruno Haible  <bruno@clisp.org>
6811
6812         group-member: Move AC_LIBOBJ invocations to module description.
6813         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
6814         gl_PREREQ_GROUP_MEMBER invocations from here...
6815         * modules/group-member (configure.ac): ... to here.
6816
6817 2011-05-08  Bruno Haible  <bruno@clisp.org>
6818
6819         grantpt: Move AC_LIBOBJ invocations to module description.
6820         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
6821         invocations from here...
6822         * modules/grantpt (configure.ac): ... to here.
6823
6824 2011-05-08  Bruno Haible  <bruno@clisp.org>
6825
6826         glob: Move AC_LIBOBJ invocations to module description.
6827         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
6828         from here...
6829         * modules/glob (configure.ac): ... to here.
6830
6831 2011-05-08  Bruno Haible  <bruno@clisp.org>
6832
6833         getusershell: Move AC_LIBOBJ invocations to module description.
6834         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
6835         Move AC_LIBOBJ invocation from here...
6836         * modules/getusershell (configure.ac): ... to here.
6837         (Depends-on): Update condition.
6838
6839 2011-05-08  Bruno Haible  <bruno@clisp.org>
6840
6841         gettimeofday: Move AC_LIBOBJ invocations to module description.
6842         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
6843         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
6844         gl_PREREQ_GETTIMEOFDAY invocations from here...
6845         * modules/gettimeofday (configure.ac): ... to here.
6846
6847 2011-05-08  Bruno Haible  <bruno@clisp.org>
6848
6849         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
6850         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
6851         just gl_FUNC_TZSET.
6852         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
6853         (gl_FUNC_TZSET_CLOBBER): Remove actions.
6854         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
6855         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
6856
6857 2011-05-08  Bruno Haible  <bruno@clisp.org>
6858
6859         getsubopt: Move AC_LIBOBJ invocations to module description.
6860         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
6861         gl_PREREQ_GETSUBOPT invocations from here...
6862         * modules/getsubopt (configure.ac): ... to here.
6863
6864 2011-05-08  Bruno Haible  <bruno@clisp.org>
6865
6866         getpass-gnu: Move AC_LIBOBJ invocations to module description.
6867         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
6868         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
6869         * modules/getpass-gnu (configure.ac): ... to here.
6870
6871 2011-05-08  Bruno Haible  <bruno@clisp.org>
6872
6873         getpass: Move AC_LIBOBJ invocations to module description.
6874         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
6875         gl_PREREQ_GETPASS invocations from here...
6876         * modules/getpass (configure.ac): ... to here.
6877
6878 2011-05-08  Bruno Haible  <bruno@clisp.org>
6879
6880         getpagesize: Move AC_LIBOBJ invocations to module description.
6881         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
6882         from here...
6883         * modules/getpagesize (configure.ac): ... to here.
6884
6885 2011-05-08  Bruno Haible  <bruno@clisp.org>
6886
6887         getopt: Move AC_LIBOBJ invocations to module description.
6888         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
6889         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
6890         invocations from here...
6891         * modules/getopt-gnu (configure.ac): ... to here.
6892         * modules/getopt-posix (configure.ac): ... and here.
6893         (Depends-on): Update condition.
6894
6895 2011-05-08  Bruno Haible  <bruno@clisp.org>
6896
6897         getopt, argp: Respect rules for use of AC_LIBOBJ.
6898         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
6899         (gl_REPLACE_GETOPT_ALWAYS): New macro.
6900         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
6901         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
6902
6903 2011-05-08  Bruno Haible  <bruno@clisp.org>
6904
6905         getlogin_r: Move AC_LIBOBJ invocations to module description.
6906         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
6907         gl_PREREQ_GETLOGIN_R invocations from here...
6908         * modules/getlogin_r (configure.ac): ... to here.
6909
6910 2011-05-08  Bruno Haible  <bruno@clisp.org>
6911
6912         getlogin: Move AC_LIBOBJ invocations to module description.
6913         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
6914         here...
6915         * modules/getlogin (configure.ac): ... to here.
6916
6917 2011-05-08  Bruno Haible  <bruno@clisp.org>
6918
6919         getloadavg: Move AC_LIBOBJ invocations to module description.
6920         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
6921         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
6922         * modules/getloadavg (configure.ac): ... to here.
6923
6924 2011-05-08  Bruno Haible  <bruno@clisp.org>
6925
6926         gethrxtime: Move AC_LIBOBJ invocations to module description.
6927         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
6928         LIB_GETHRXTIME from here...
6929         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
6930         invocations from here...
6931         * modules/gethrxtime (configure.ac): ... to here.
6932
6933 2011-05-08  Bruno Haible  <bruno@clisp.org>
6934
6935         gethostname: Move AC_LIBOBJ invocations to module description.
6936         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
6937         gl_PREREQ_GETHOSTNAME invocations from here...
6938         * modules/gethostname (configure.ac): ... to here.
6939
6940 2011-05-08  Bruno Haible  <bruno@clisp.org>
6941
6942         getgroups: Move AC_LIBOBJ invocations to module description.
6943         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
6944         here...
6945         * modules/getgroups (configure.ac): ... to here.
6946
6947 2011-05-08  Bruno Haible  <bruno@clisp.org>
6948
6949         getdtablesize: Move AC_LIBOBJ invocations to module description.
6950         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
6951         invocation from here...
6952         * modules/getdtablesize (configure.ac): ... to here.
6953
6954 2011-05-08  Bruno Haible  <bruno@clisp.org>
6955
6956         getdomainname: Move AC_LIBOBJ invocations to module description.
6957         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
6958         gl_PREREQ_GETDOMAINNAME invocations from here...
6959         * modules/getdomainname (configure.ac): ... to here.
6960
6961 2011-05-08  Bruno Haible  <bruno@clisp.org>
6962
6963         getline: Move AC_LIBOBJ invocations to module description.
6964         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
6965         invocations from here...
6966         * modules/getline (configure.ac): ... to here.
6967
6968 2011-05-08  Bruno Haible  <bruno@clisp.org>
6969
6970         getline: Simplify.
6971         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
6972         It's already handled through the module dependency.
6973
6974 2011-05-08  Bruno Haible  <bruno@clisp.org>
6975
6976         getdelim: Move AC_LIBOBJ invocations to module description.
6977         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
6978         and gl_PREREQ_GETDELIM invocations from here...
6979         * modules/getdelim (configure.ac): ... to here.
6980         (Depends-on): Fix condition.
6981
6982 2011-05-08  Bruno Haible  <bruno@clisp.org>
6983
6984         getcwd: Move AC_LIBOBJ invocations to module description.
6985         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
6986         invocations from here...
6987         * modules/getcwd (configure.ac): ... to here.
6988
6989 2011-05-08  Bruno Haible  <bruno@clisp.org>
6990
6991         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
6992         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
6993         here...
6994         * modules/getcwd-lgpl (configure.ac): ... to here.
6995
6996 2011-05-07  Bruno Haible  <bruno@clisp.org>
6997
6998         crypto/gc: Move AC_LIBOBJ invocations to module description.
6999         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
7000         * modules/crypto/gc (configure.ac): ... to here.
7001
7002 2011-05-07  Bruno Haible  <bruno@clisp.org>
7003
7004         fwriting: Move AC_LIBOBJ invocations to module description.
7005         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
7006         here...
7007         * modules/fwriting (configure.ac): ... to here.
7008
7009 2011-05-07  Bruno Haible  <bruno@clisp.org>
7010
7011         fwritable: Move AC_LIBOBJ invocations to module description.
7012         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
7013         here...
7014         * modules/fwritable (configure.ac): ... to here.
7015
7016 2011-05-07  Bruno Haible  <bruno@clisp.org>
7017
7018         futimens: Move AC_LIBOBJ invocations to module description.
7019         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
7020         here...
7021         * modules/futimens (configure.ac): ... to here.
7022
7023 2011-05-07  Bruno Haible  <bruno@clisp.org>
7024
7025         ftruncate: Move AC_LIBOBJ invocations to module description.
7026         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
7027         gl_PREREQ_FTRUNCATE invocations from here...
7028         * modules/ftruncate (configure.ac): ... to here.
7029
7030 2011-05-07  Bruno Haible  <bruno@clisp.org>
7031
7032         fsync: Move AC_LIBOBJ invocations to module description.
7033         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
7034         invocations from here...
7035         * modules/fsync (configure.ac): ... to here.
7036
7037 2011-05-07  Bruno Haible  <bruno@clisp.org>
7038
7039         fsusage: Move AC_LIBOBJ invocations to module description.
7040         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
7041         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
7042         * modules/fsusage (configure.ac): ... to here.
7043
7044 2011-05-07  Bruno Haible  <bruno@clisp.org>
7045
7046         freopen: Move AC_LIBOBJ invocations to module description.
7047         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
7048         invocations from here...
7049         * modules/freopen (configure.ac): ... to here.
7050
7051 2011-05-07  Bruno Haible  <bruno@clisp.org>
7052
7053         free: Move AC_LIBOBJ invocations to module description.
7054         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
7055         invocations from here...
7056         * modules/free (configure.ac): ... to here.
7057
7058 2011-05-07  Bruno Haible  <bruno@clisp.org>
7059
7060         freadable: Move AC_LIBOBJ invocations to module description.
7061         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
7062         here...
7063         * modules/freadable (configure.ac): ... to here.
7064
7065 2011-05-07  Bruno Haible  <bruno@clisp.org>
7066
7067         fpurge: Move AC_LIBOBJ invocations to module description.
7068         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
7069         invocations from here...
7070         * modules/fpurge (configure.ac): ... to here.
7071
7072 2011-05-07  Bruno Haible  <bruno@clisp.org>
7073
7074         fpending: Move AC_LIBOBJ invocations to module description.
7075         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
7076         gl_FUNC_FPENDING.
7077         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
7078         invocations from here...
7079         * modules/fpending (configure.ac): ... to here.
7080
7081 2011-05-07  Bruno Haible  <bruno@clisp.org>
7082
7083         fopen: Move AC_LIBOBJ invocations to module description.
7084         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
7085         invocations from here...
7086         * modules/fopen (configure.ac): ... to here.
7087
7088 2011-05-07  Bruno Haible  <bruno@clisp.org>
7089
7090         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
7091         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
7092         gl_FUNC_FNMATCH_POSIX.
7093         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
7094         invocations from here...
7095         * modules/fnmatch (configure.ac): ... to here.
7096         * modules/fnmatch-gnu (configure.ac): ... and here.
7097
7098 2011-05-07  Bruno Haible  <bruno@clisp.org>
7099
7100         flock: Move AC_LIBOBJ invocations to module description.
7101         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
7102         invocations from here...
7103         * modules/flock (configure.ac): ... to here.
7104
7105 2011-05-07  Bruno Haible  <bruno@clisp.org>
7106
7107         fileblocks: Move AC_LIBOBJ invocations to module description.
7108         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
7109         gl_PREREQ_FILEBLOCKS invocations from here...
7110         * modules/fileblocks (configure.ac): ... to here.
7111
7112 2011-05-06  Bruno Haible  <bruno@clisp.org>
7113
7114         fflush: Move AC_LIBOBJ invocations to module description.
7115         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
7116         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
7117         invocations from here...
7118         * modules/fflush (configure.ac): ... to here.
7119
7120 2011-05-06  Bruno Haible  <bruno@clisp.org>
7121
7122         fdopendir: Move AC_LIBOBJ invocations to module description.
7123         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
7124         here...
7125         * modules/fdopendir (configure.ac): ... to here.
7126         (Depends-on): Improve conditions.
7127
7128 2011-05-06  Bruno Haible  <bruno@clisp.org>
7129
7130         _Exit: Move AC_LIBOBJ invocations to module description.
7131         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
7132         invocations from here...
7133         * modules/_Exit (configure.ac): ... to here.
7134
7135 2011-05-21  Bruno Haible  <bruno@clisp.org>
7136
7137         euidaccess: Respect rules for use of AC_LIBOBJ.
7138         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7139         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
7140         from here...
7141         * modules/euidaccess (configure.ac): ... to here.
7142
7143 2011-05-06  Bruno Haible  <bruno@clisp.org>
7144
7145         error: Move AC_LIBOBJ invocations to module description.
7146         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
7147         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
7148         invocations from here...
7149         * modules/error (configure.ac): ... to here.
7150
7151 2011-05-06  Bruno Haible  <bruno@clisp.org>
7152
7153         duplocale: Move AC_LIBOBJ invocations to module description.
7154         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
7155         gl_PREREQ_DUPLOCALE invocations from here...
7156         * modules/duplocale (configure.ac): ... to here.
7157
7158 2011-05-05  Bruno Haible  <bruno@clisp.org>
7159
7160         dirfd: Move AC_LIBOBJ invocations to module description.
7161         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
7162         gl_FUNC_DIRFD.
7163         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
7164         here...
7165         * modules/dirfd (configure.ac): ... to here.
7166         (Depends-on): Fix condition.
7167
7168 2011-05-05  Bruno Haible  <bruno@clisp.org>
7169
7170         chown: Respect rules for use of AC_LIBOBJ.
7171         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
7172         * modules/chown (configure.ac): ... to here.
7173
7174 2011-05-05  Bruno Haible  <bruno@clisp.org>
7175
7176         chdir-long: Move AC_LIBOBJ invocations to module description.
7177         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
7178         gl_PREREQ_CHDIR_LONG invocations from here...
7179         * modules/chdir-long (configure.ac): ... to here.
7180
7181 2011-05-05  Bruno Haible  <bruno@clisp.org>
7182
7183         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
7184         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
7185         from here...
7186         * modules/canonicalize-lgpl (configure.ac): ... to here.
7187
7188 2011-05-05  Bruno Haible  <bruno@clisp.org>
7189
7190         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
7191         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
7192         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
7193         REPLACE_CALLOC.
7194         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
7195         * modules/calloc-gnu (configure.ac): Likewise.
7196
7197 2011-05-05  Bruno Haible  <bruno@clisp.org>
7198
7199         btowc: Move AC_LIBOBJ invocations to module description.
7200         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
7201         invocations from here...
7202         * modules/btowc (configure.ac): ... to here.
7203
7204 2011-05-21  Bruno Haible  <bruno@clisp.org>
7205
7206         atexit: Move AC_LIBOBJ invocations to module description.
7207         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
7208         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
7209         here...
7210         * modules/atexit (configure.ac): ... to here.
7211
7212 2011-05-05  Bruno Haible  <bruno@clisp.org>
7213
7214         atoll: Move AC_LIBOBJ invocations to module description.
7215         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
7216         invocations from here...
7217         * modules/atoll (configure.ac): ... to here.
7218
7219 2011-05-05  Bruno Haible  <bruno@clisp.org>
7220
7221         argz: Move AC_LIBOBJ invocations to module description.
7222         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
7223         * modules/argz (configure.ac): ... to here.
7224
7225 2011-05-05  Bruno Haible  <bruno@clisp.org>
7226
7227         alphasort: Move AC_LIBOBJ invocations to module description.
7228         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
7229         gl_PREREQ_ALPHASORT invocations from here...
7230         * modules/alphasort (configure.ac): ... to here.
7231
7232 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
7233
7234         verify: new macro verify_expr; verify_true deprecated
7235         * NEWS: Mention this.
7236         * doc/verify.texi (Compile-time Assertions): Document this.
7237         * lib/verify.h (verify_true): Deprecate.
7238         (verify_expr): New macro.
7239         * tests/test-verify.c (function): Test verify_expr.
7240
7241 2011-06-14  Jim Meyering  <meyering@redhat.com>
7242
7243         init.sh: give more portable redirection-related advice in a comment
7244         * tests/init.sh (stderr_fileno_): Update the advice in comments.
7245         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
7246         for lots of discussion.  Stefano Lattarini suggested the solution
7247         of putting "9>&2" after the command.  Reported by Bruno Haible.
7248
7249 2011-06-13  Bruno Haible  <bruno@clisp.org>
7250
7251         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
7252         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
7253         'none'.
7254
7255 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
7256
7257         ftoastr: use strtof only if HAVE_STRTOF
7258         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
7259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
7260         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
7261         * modules/ftoastr (configure.ac): Check for strtof.
7262
7263 2011-06-13  Bruno Haible  <bruno@clisp.org>
7264
7265         gnulib-tool: Addendum to 2011-06-08 commit.
7266         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
7267         and --witness-c-macro have been given, augment AM_CPPFLAGS.
7268
7269 2011-06-13  Bruno Haible  <bruno@clisp.org>
7270
7271         fseeko: Provide a non-inline replacement of fseek().
7272         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
7273         * modules/fseeko (Depends-on): Add fseek.
7274         * modules/fseek (License): Change to LGPLv2+.
7275
7276 2011-06-13  Bruno Haible  <bruno@clisp.org>
7277
7278         ftello: Provide a non-inline replacement of ftell().
7279         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
7280         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
7281         not have ftello() (such as on mingw).
7282         * modules/ftello (Depends-on): Add ftell.
7283         * modules/ftell (License): Change to LGPLv2+.
7284
7285 2011-05-07  Bruno Haible  <bruno@clisp.org>
7286
7287         ftell: Move AC_LIBOBJ invocations to module description.
7288         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
7289         * modules/ftell (configure.ac): ... to here.
7290
7291 2011-05-07  Bruno Haible  <bruno@clisp.org>
7292
7293         ftello: Respect rules for use of AC_LIBOBJ.
7294         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
7295         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
7296         here...
7297         * modules/ftello (configure.ac): ... to here.
7298
7299 2011-05-07  Bruno Haible  <bruno@clisp.org>
7300
7301         fseeko: Simplify.
7302         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
7303         (gl_FUNC_FSEEKO): Inline it here.
7304
7305 2011-05-07  Bruno Haible  <bruno@clisp.org>
7306
7307         fseek: Move AC_LIBOBJ invocations to module description.
7308         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
7309         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
7310         * modules/fseek (configure.ac): ... to here.
7311
7312 2011-05-07  Bruno Haible  <bruno@clisp.org>
7313
7314         fseek: Respect rules for use of AC_LIBOBJ.
7315         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
7316         here...
7317         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
7318
7319 2011-05-07  Bruno Haible  <bruno@clisp.org>
7320
7321         fseeko: Respect rules for use of AC_LIBOBJ.
7322         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
7323         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
7324         here...
7325         * modules/fseeko (configure.ac): ... to here.
7326
7327 2011-06-13  Bruno Haible  <bruno@clisp.org>
7328
7329         gnulib-tool: Allow comments in the 'Depends-on' section.
7330         * doc/gnulib.texi (Module description): Mention comment syntax in the
7331         Depends-on section.
7332         * gnulib-tool (func_get_dependencies): Filter out comment lines.
7333
7334 2011-06-13  Bruno Haible  <bruno@clisp.org>
7335
7336         file-set.h: guard __attibute__ use, now that it's not always defined
7337         * lib/file-set.h (record_file): Use __attribute__ only with compiler
7338         versions that support it.  This fixes a coreutils build failure with
7339         the vendor cc on HP-UX 11.31.
7340
7341 2011-06-12  Bruno Haible  <bruno@clisp.org>
7342
7343         acl: Add support for HP-UX >= 11.11 JFS ACLs.
7344         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
7345         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
7346         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
7347         (acl, aclsort): New declarations.
7348         (aclv_nontrivial): New declaration.
7349         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
7350         (file_has_acl): Read also the second kind of HP-UX ACLs.
7351         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
7352         kind of HP-UX ACLs if the first kind fails.
7353         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
7354         second kind of HP-UX ACLs.
7355         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
7356         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
7357         agree.
7358         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
7359         hpuxjfs.
7360         Handle hpuxjfs.
7361         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
7362         hpuxjfs.
7363         Handle hpuxjfs.
7364         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
7365         (func_test_same_acls): Use both lsacl and getacl.
7366         Handle hpuxjfs.
7367         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
7368         (func_test_same_acls): Use both lsacl and getacl.
7369         Handle hpuxjfs.
7370
7371 2011-06-12  Bruno Haible  <bruno@clisp.org>
7372
7373         acl: Complete the 2010-08-10 fix.
7374         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
7375         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
7376         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
7377         explicitly.
7378         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
7379         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
7380
7381 2011-06-12  Bruno Haible  <bruno@clisp.org>
7382
7383         spawn-pipe tests: Comments.
7384         * tests/test-spawn-pipe-child.c (main): Update comment.
7385         Reported by James Youngman <jay@gnu.org>.
7386
7387 2011-06-11  James Youngman  <jay@gnu.org>
7388
7389         New module 'stat-size'.
7390         * modules/stat-size: New module.  Provides macros for accessing
7391         file size information in instances of struct stat.  Depends on the
7392         fileblocks module because it calls st_blocks.
7393         * lib/stat-size.h: New file, adapted from coreutils' system.h.
7394         * doc/gnulib.texi: Include stat-size.texi.
7395         * doc/stat-size.texi: Documentation for this module.
7396         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
7397         * m4/fileblocks.m4: Mention that stat-size depends on the call to
7398         AC_STRUCT_ST_BLOCKS.
7399
7400 2011-06-09  Bruno Haible  <bruno@clisp.org>
7401
7402         thread: Support pthreads-win32.
7403         * lib/glthread/thread.h (gl_thread_self): Define differently on
7404         pthreads-win32.
7405         (gl_null_thread): New declaration.
7406         (gl_thread_self_pointer): New macro.
7407         * lib/glthread/thread.c (gl_null_thread): New constant.
7408         * tests/test-lock.c: Use gl_thread_self_pointer instead of
7409         gl_thread_self.
7410         * tests/test-tls.c: Likewise.
7411         Suggested by Paul Eggert. Reported by Eric Blake.
7412
7413 2011-06-09  Bruno Haible  <bruno@clisp.org>
7414
7415         thread: Fix confusion between NULL and 0.
7416         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
7417         Reported by Paul Eggert.
7418
7419 2011-06-09  Bruno Haible  <bruno@clisp.org>
7420
7421         spawn-pipe tests: Avoid test failure on HP-UX 11.
7422         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
7423         is closed.
7424
7425 2011-06-09  Bruno Haible  <bruno@clisp.org>
7426
7427         acl tests: Fix compilation error on HP-UX 11.
7428         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
7429
7430 2011-06-09  Bruno Haible  <bruno@clisp.org>
7431
7432         rmdir: Avoid test failure on HP-UX 10.20.
7433         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
7434         EEXIST.
7435
7436 2011-06-08  Eric Blake  <eblake@redhat.com>
7437
7438         perror: fix test on mingw
7439         * modules/perror-tests (Depends-on): Add dup2.
7440
7441         strerror_r-posix: fix on MacOS
7442         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
7443         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
7444         logic bug.
7445         * lib/strerror_r.c (strerror_r): Fix the bug.
7446         * lib/strerror.c (strerror): Likewise.
7447         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
7448         problem.
7449         * doc/posix-functions/strerror.texi (strerror): Likewise.
7450         * doc/posix-functions/perror.texi (perror): Likewise.
7451         * tests/test-strerror.c (main): Enhance test.
7452         * tests/test-strerror_r.c (main): Likewise.
7453
7454 2011-06-08  Bruno Haible  <bruno@clisp.org>
7455
7456         gnulib-tool: Better isolation between different gnulib-tool invocations.
7457         * gnulib-tool: New option --witness-c-macro.
7458         (witness_c_macro): New variable.
7459         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
7460         AM_CPPFLAGS define it as a C macro.
7461         (func_emit_tests_Makefile_am): Likewise.
7462         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
7463         read it from there.
7464         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
7465         m4_define, not AC_DEFUN.
7466         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
7467         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
7468         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
7469         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
7470         s|...|...|, to substitute the values of the GNULIB_* module indicator
7471         variables.
7472         * modules/dirent (Makefile.am): Likewise.
7473         * modules/fcntl-h (Makefile.am): Likewise.
7474         * modules/iconv-h (Makefile.am): Likewise.
7475         * modules/langinfo (Makefile.am): Likewise.
7476         * modules/locale (Makefile.am): Likewise.
7477         * modules/math (Makefile.am): Likewise.
7478         * modules/netdb (Makefile.am): Likewise.
7479         * modules/poll-h (Makefile.am): Likewise.
7480         * modules/pty (Makefile.am): Likewise.
7481         * modules/search (Makefile.am): Likewise.
7482         * modules/signal (Makefile.am): Likewise.
7483         * modules/spawn (Makefile.am): Likewise.
7484         * modules/stdio (Makefile.am): Likewise.
7485         * modules/stdlib (Makefile.am): Likewise.
7486         * modules/string (Makefile.am): Likewise.
7487         * modules/sys_ioctl (Makefile.am): Likewise.
7488         * modules/sys_select (Makefile.am): Likewise.
7489         * modules/sys_socket (Makefile.am): Likewise.
7490         * modules/sys_stat (Makefile.am): Likewise.
7491         * modules/sys_times (Makefile.am): Likewise.
7492         * modules/sys_utsname (Makefile.am): Likewise.
7493         * modules/sys_wait (Makefile.am): Likewise.
7494         * modules/termios (Makefile.am): Likewise.
7495         * modules/time (Makefile.am): Likewise.
7496         * modules/unistd (Makefile.am): Likewise.
7497         * modules/wchar (Makefile.am): Likewise.
7498
7499 2011-06-08  Eric Blake  <eblake@redhat.com>
7500
7501         strerror: simplify replacement
7502         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
7503         * modules/strerror (configure.ac): No prereqs needed here...
7504         * modules/strerror-override (configure.ac): ...but this needs it.
7505         (Files): Add file for needed prereq macro.
7506
7507 2011-06-08  Bruno Haible  <bruno@clisp.org>
7508
7509         strerror_r-posix: Tweaks.
7510         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
7511         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
7512         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
7513         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
7514         (gl_FUNC_STRERROR_R): ... to here.
7515         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
7516
7517 2011-06-07  Eric Blake  <eblake@redhat.com>
7518
7519         perror: document fixed bugs
7520         * doc/posix-functions/perror.texi (perror): Document recent
7521         patches.
7522
7523 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
7524
7525         stat-time: get_stat_birthtime failure is better-defined
7526         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
7527         return a timestamp whose tv_sec and tv_nsec values are both -1.
7528         Previously, the spec said only that the tv_nsec value was negative.
7529         This upward-compatible change simplifies GNU tar a bit.
7530
7531 2011-06-07  Eric Blake  <eblake@redhat.com>
7532
7533         strerror_r-posix: work around cygwin 1.7.9
7534         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
7535         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
7536         bug without replacing strerror_r.
7537         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
7538         strerror_r is buggy, but without requiring strerror_r compilation.
7539         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
7540
7541         test-perror: relax test to ignore cygwin bug
7542         * tests/test-perror2.c (main): Relax test on requiring detection
7543         of stream errors, and use unbuffered stream.
7544         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
7545         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
7546         * doc/posix-functions/fputc.texi (fputc): Likewise.
7547         * doc/posix-functions/fputs.texi (fputs): Likewise.
7548         * doc/posix-functions/fputws.texi (fputws): Likewise.
7549         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
7550         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
7551         * doc/posix-functions/getopt.texi (getopt): Likewise.
7552         * doc/posix-functions/perror.texi (perror): Likewise.
7553         * doc/posix-functions/printf.texi (printf): Likewise.
7554         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
7555         * doc/posix-functions/psignal.texi (psignal): Likewise.
7556         * doc/posix-functions/putc.texi (putc): Likewise.
7557         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
7558         Likewise.
7559         * doc/posix-functions/putchar.texi (putchar): Likewise.
7560         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
7561         Likewise.
7562         * doc/posix-functions/puts.texi (puts): Likewise.
7563         * doc/posix-functions/putwc.texi (putwc): Likewise.
7564         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
7565         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
7566         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
7567         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
7568         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
7569         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
7570         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
7571         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
7572
7573 2011-05-22  Bruno Haible  <bruno@clisp.org>
7574
7575         strerror: Move AC_LIBOBJ invocations to module description.
7576         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
7577         gl_PREREQ_STRERROR invocations from here...
7578         * modules/strerror (configure.ac): ... to here.
7579
7580 2011-05-21  Bruno Haible  <bruno@clisp.org>
7581
7582         perror: Use common idiom.
7583         * modules/perror (configure.ac): Reorder statements.
7584
7585 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
7586
7587         tests: fix usage message in 'mktempd_'
7588         * tests/init.sh (mktempd_): In the usage message, use literal
7589         'mktempd_', not '$ME' (which is even undefined), as the name of
7590         the subroutine.
7591
7592 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
7593
7594         tests init: new function 'fatal_', for hard errors
7595         Before this patch, the only way offered by tests/init.sh to
7596         properly signal a hard error was the `framework_failure_'
7597         function.  But the error message issued by that function,
7598         as its name would suggest, refers to a set-up failure in the
7599         testsuite, while hard errors can obviously also be due to
7600         other reasons.  The best way to fix this inconsistency is to
7601         introduce a new function with a more general error message.
7602         * tests/init.sh (fatal_): New function.
7603
7604 2011-06-06  Eric Blake  <eblake@redhat.com>
7605
7606         canonicalize-lgpl: use common idiom
7607         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
7608         over newer POSIX -Rf.
7609         Reported by Bruno Haible.
7610
7611         canonicalize-lgpl: work around AIX realpath bug
7612         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
7613         * doc/posix-functions/realpath.texi (realpath): Document it.
7614         Reported by Bruno Haible.
7615
7616         strerror: work around FreeBSD bug
7617         * lib/strerror.c (strerror): Special case 0.
7618         Reported by Bruno Haible.
7619
7620         strerror-override: avoid bloating errno module
7621         * modules/errno (Files, configure.ac): Move replacement strings...
7622         * modules/strerror-override: ...to new module.
7623         * modules/strerror (Depends-on): Add strerror-override.
7624         * modules/strerror_r-posix (Depends-on): Likewise.
7625         * MODULES.html.sh: Document new module.
7626         Reported by Bruno Haible.
7627
7628 2011-06-06  Bruno Haible  <bruno@clisp.org>
7629
7630         spawn-pipe tests: Rename program.
7631         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
7632         * tests/test-spawn-pipe-child.c: Update comment.
7633         * tests/test-spawn-pipe.sh: Update.
7634         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
7635
7636         spawn-pipe tests: Link the child program only against libc.
7637         * tests/test-spawn-pipe-child.c: New file, extracted from
7638         tests/test-spawn-pipe.c.
7639         (main): Expect only one argument.
7640         (is_open): New function, copied from tests/test-pipe.c.
7641         * tests/test-spawn-pipe.c: Don't include <errno.h>.
7642         (child_main): Remove function.
7643         (test_pipe): Pass only one argument to the child program.
7644         (main): Remove child process code. Expect the child program's name as
7645         first argument.
7646         * tests/test-spawn-pipe.sh: Pass the child program's name as first
7647         argument.
7648         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
7649         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
7650         test-spawn-pipe-child against no libraries.
7651
7652 2011-06-06  Bruno Haible  <bruno@clisp.org>
7653
7654         careadlinkat: Avoid mismatch between ssize_t and int.
7655         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
7656         * lib/careadlinkat.c (careadlinkatcwd): Define always.
7657
7658 2011-06-06  Jim Meyering  <meyering@redhat.com>
7659
7660         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
7661         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
7662         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
7663
7664 2011-06-05  Bruno Haible  <bruno@clisp.org>
7665
7666         ansi-c++-opt: Interoperability with libtool.
7667         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
7668         set the variable to "no", not to ":".
7669         * NEWS: Mention the change.
7670
7671 2011-06-05  Bruno Haible  <bruno@clisp.org>
7672
7673         acl: Fix test failure on AIX 7.
7674         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
7675         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
7676
7677 2011-06-05  Bruno Haible  <bruno@clisp.org>
7678
7679         pipe-filter-ii: Fix test failure on AIX and IRIX.
7680         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
7681         with EAGAIN, retry with a smaller buffer size.
7682
7683 2011-06-05  Bruno Haible  <bruno@clisp.org>
7684
7685         localename: Fix link dependencies.
7686         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
7687         * modules/localename-tests (Makefile.am): Link test-localename with
7688         $(LIBTHREAD).
7689
7690 2011-06-05  Bruno Haible  <bruno@clisp.org>
7691
7692         error: Avoid gcc warning.
7693         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
7694
7695 2011-06-05  Bruno Haible  <bruno@clisp.org>
7696
7697         unsetenv: Avoid gcc warning.
7698         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
7699
7700 2011-06-05  Bruno Haible  <bruno@clisp.org>
7701
7702         setenv: Avoid gcc warning.
7703         * lib/setenv.c (setenv): Provide declaration if system lacks it.
7704
7705 2011-06-05  Bruno Haible  <bruno@clisp.org>
7706
7707         sys_select: Ensure memset is declared also on AIX 7.
7708         * lib/sys_select.in.h: Include <string.h> also on AIX.
7709         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
7710         self-contained also on AIX 7.1.
7711
7712 2011-06-04  Jim Meyering  <meyering@redhat.com>
7713
7714         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
7715         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
7716         function name, "error".
7717         (_gl_translatable_diag_func_re): New configurable variable.
7718
7719 2011-06-04  Bruno Haible  <bruno@clisp.org>
7720
7721         getopt: Avoid gcc warning.
7722         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
7723
7724 2011-06-04  Bruno Haible  <bruno@clisp.org>
7725
7726         strerror_r: Fix comments.
7727         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
7728         commit.
7729
7730 2011-06-04  Bruno Haible  <bruno@clisp.org>
7731
7732         perror: Fix compilation error.
7733         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
7734         Undefine fprintf, not sprintf.
7735         * modules/perror (Depends-on): Remove intprops, verify.
7736
7737 2011-06-04  Bruno Haible  <bruno@clisp.org>
7738
7739         setlocale: Enable replacement on Cygwin 1.5.
7740         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
7741         Cygwin 1.5.x.
7742         * doc/posix-functions/setlocale.texi: Mention that the problem with the
7743         LC_CTYPE category also exists on Cygwin 1.5.x.
7744
7745 2011-06-04  Bruno Haible  <bruno@clisp.org>
7746
7747         strerror-override: Don't disable symbol renamings.
7748         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
7749         * lib/strerror-override.c: Include config.h.
7750         (strerror_override): Don't undefine.
7751
7752 2011-06-03  Bruno Haible  <bruno@clisp.org>
7753
7754         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
7755         * lib/localename.h: Update copyright header.
7756         * lib/localename.c: Likewise.
7757         * lib/relocatable.h: Likewise.
7758         * lib/relocatable.c: Likewise.
7759
7760 2011-06-02  Bruno Haible  <bruno@clisp.org>
7761
7762         doc: Fix a module name.
7763         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
7764
7765 2011-06-02  Bruno Haible  <bruno@clisp.org>
7766
7767         pipe2: Remove dependency on 'nonblocking' module.
7768         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
7769         O_NONBLOCK is defined by gnulib.
7770         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
7771         is zero.
7772         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
7773         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
7774         defined by gnulib.
7775         (get_nonblocking_flag): New function.
7776         (main): Test O_NONBLOCK flag only if it is nonzero.
7777         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
7778
7779 2011-06-03  Jim Meyering  <meyering@redhat.com>
7780
7781         maint: three new prohibit-header-without-use rules
7782         Prohibit use of cloexec.h, posixver.h, same.h without use.
7783         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
7784         (sc_prohibit_posixver_without_use): Likewise.
7785         (sc_prohibit_same_without_use): Likewise.
7786
7787 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
7788
7789         allocator: 'die' routine is now given requested size
7790         * lib/allocator.h (struct allocator.die): New size arg.
7791         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
7792         If the actual problem is an ssize_t limitation, not a size_t or
7793         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
7794
7795 2011-06-01  Eric Blake  <eblake@redhat.com>
7796
7797         strerror: drop strerror_r dependency
7798         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
7799         * lib/strerror-override.c (strerror_override): ...to new file.
7800         * lib/strerror-override.h: Add prototype.
7801         * lib/strerror-impl.h: Delete.
7802         * lib/strerror.c (strerror): New implementation.
7803         * modules/errno (Files): Add new files.
7804         (configure.ac): Compile new file as appropriate.
7805         * modules/strerror (Files): Drop unused file.
7806         (Depends-on): Drop strerror_r-posix.
7807         * MODULES.html.sh: Document strerror_r-posix.
7808         Requested by Sam Steingold.
7809
7810         perror: call strerror_r directly
7811         * modules/perror (Files): Drop strerror-impl.h.
7812         * lib/perror.c (perror): Use our own stack buffer, rather than
7813         calling a wrapper that uses static storage.
7814         * doc/posix-functions/perror.texi (perror): Document a limitation
7815         of our replacement.
7816
7817         strerror_r: fix includes for FreeBSD
7818         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
7819         since we use abort on some platforms.
7820         Reported by Matthias Bolte.
7821
7822 2011-05-31  Bruno Haible  <bruno@clisp.org>
7823
7824         Fix link errors in tests: openat-die uses gettext-h.
7825         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
7826         against $(LIBINTL).
7827         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
7828         against $(LIBINTL).
7829         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
7830         $(LIBINTL).
7831         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
7832         against $(LIBINTL).
7833         * modules/linkat-tests (Makefile.am): Link test-linkat against
7834         $(LIBINTL).
7835         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
7836         $(LIBINTL).
7837         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
7838         against $(LIBINTL).
7839         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
7840         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
7841         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
7842         $(LIBINTL).
7843         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
7844         $(LIBINTL).
7845         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
7846         $(LIBINTL).
7847         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7848
7849 2011-05-31  Bruno Haible  <bruno@clisp.org>
7850
7851         Fix link errors in tests: wait-process uses gettext-h.
7852         * modules/nonblocking-pipe-tests (Makefile.am): Set
7853         test_nonblocking_pipe_main_LDADD.
7854         * modules/nonblocking-socket-tests (Makefile.am): Link
7855         test-nonblocking-socket-main against $(LIBINTL).
7856         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7857
7858 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
7859
7860         assert-h: work around 'verify' incompatibility
7861         * lib/verify.h: Use @...@ directives, not ifdef.
7862         * modules/assert-h (assert.h): Implement the directives.
7863         (assert.h): Substitute the symbol-prefix more consistently.
7864
7865 2011-05-29  Jim Meyering  <meyering@redhat.com>
7866
7867         trim: remove three superfluous assignments
7868         * lib/trim.c (trim2): Remove three superfluous assignments
7869         and correct brace positioning.
7870
7871 2011-05-29  Bruno Haible  <bruno@clisp.org>
7872
7873         wctype-h: Avoid namespace pollution on Solaris 2.6.
7874         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
7875         identifiers.
7876         * doc/posix-headers/wctype.texi: Mention the problem.
7877         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7878
7879 2011-05-28  Jim Meyering  <meyering@redhat.com>
7880
7881         parse-datetime.y: accommodate -Wstrict-overflow
7882         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
7883         placate -Wstrict-overflow.
7884
7885         trim: avoid a warning from -O2 -Wstrict-overflow
7886         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
7887
7888 2011-05-29  Bruno Haible  <bruno@clisp.org>
7889
7890         gnulib-tool: Fix bug in yesterday's commit.
7891         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
7892         twice.
7893
7894 2011-05-29  Bruno Haible  <bruno@clisp.org>
7895
7896         Allow multiple gnulib generated include files to be combined.
7897         * gnulib-tool (func_compute_include_guard_prefix): New function.
7898         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
7899         ${gl_include_guard_prefix} references.
7900         (func_import, func_create_testdir): Invoke
7901         func_compute_include_guard_prefix.
7902         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
7903         * lib/ctype.in.h: Likewise.
7904         * lib/dirent.in.h: Likewise.
7905         * lib/errno.in.h: Likewise.
7906         * lib/fcntl.in.h: Likewise.
7907         * lib/float.in.h: Likewise.
7908         * lib/getopt.in.h: Likewise.
7909         * lib/iconv.in.h: Likewise.
7910         * lib/langinfo.in.h: Likewise.
7911         * lib/locale.in.h: Likewise.
7912         * lib/math.in.h: Likewise.
7913         * lib/netdb.in.h: Likewise.
7914         * lib/netinet_in.in.h: Likewise.
7915         * lib/poll.in.h: Likewise.
7916         * lib/pthread.in.h: Likewise.
7917         * lib/pty.in.h: Likewise.
7918         * lib/sched.in.h: Likewise.
7919         * lib/se-selinux.in.h: Likewise.
7920         * lib/search.in.h: Likewise.
7921         * lib/signal.in.h: Likewise.
7922         * lib/spawn.in.h: Likewise.
7923         * lib/stdarg.in.h: Likewise.
7924         * lib/stddef.in.h: Likewise.
7925         * lib/stdint.in.h: Likewise.
7926         * lib/stdio.in.h: Likewise.
7927         * lib/stdlib.in.h: Likewise.
7928         * lib/string.in.h: Likewise.
7929         * lib/strings.in.h: Likewise.
7930         * lib/sys_file.in.h: Likewise.
7931         * lib/sys_ioctl.in.h: Likewise.
7932         * lib/sys_select.in.h: Likewise.
7933         * lib/sys_socket.in.h: Likewise.
7934         * lib/sys_stat.in.h: Likewise.
7935         * lib/sys_time.in.h: Likewise.
7936         * lib/sys_times.in.h: Likewise.
7937         * lib/sys_uio.in.h: Likewise.
7938         * lib/sys_utsname.in.h: Likewise.
7939         * lib/sys_wait.in.h: Likewise.
7940         * lib/sysexits.in.h: Likewise.
7941         * lib/termios.in.h: Likewise.
7942         * lib/time.in.h: Likewise.
7943         * lib/unistd.in.h: Likewise.
7944         * lib/wchar.in.h: Likewise.
7945         * lib/wctype.in.h: Likewise.
7946         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
7947         * modules/ctype (Makefile.am): Likewise.
7948         * modules/dirent (Makefile.am): Likewise.
7949         * modules/errno (Makefile.am): Likewise.
7950         * modules/fcntl-h (Makefile.am): Likewise.
7951         * modules/float (Makefile.am): Likewise.
7952         * modules/getopt-posix (Makefile.am): Likewise.
7953         * modules/iconv-h (Makefile.am): Likewise.
7954         * modules/langinfo (Makefile.am): Likewise.
7955         * modules/locale (Makefile.am): Likewise.
7956         * modules/math (Makefile.am): Likewise.
7957         * modules/netdb (Makefile.am): Likewise.
7958         * modules/netinet_in (Makefile.am): Likewise.
7959         * modules/poll-h (Makefile.am): Likewise.
7960         * modules/pthread (Makefile.am): Likewise.
7961         * modules/pty (Makefile.am): Likewise.
7962         * modules/sched (Makefile.am): Likewise.
7963         * modules/search (Makefile.am): Likewise.
7964         * modules/selinux-h (Makefile.am): Likewise.
7965         * modules/signal (Makefile.am): Likewise.
7966         * modules/spawn (Makefile.am): Likewise.
7967         * modules/stdarg (Makefile.am): Likewise.
7968         * modules/stddef (Makefile.am): Likewise.
7969         * modules/stdint (Makefile.am): Likewise.
7970         * modules/stdio (Makefile.am): Likewise.
7971         * modules/stdlib (Makefile.am): Likewise.
7972         * modules/string (Makefile.am): Likewise.
7973         * modules/strings (Makefile.am): Likewise.
7974         * modules/sys_file (Makefile.am): Likewise.
7975         * modules/sys_ioctl (Makefile.am): Likewise.
7976         * modules/sys_select (Makefile.am): Likewise.
7977         * modules/sys_socket (Makefile.am): Likewise.
7978         * modules/sys_stat (Makefile.am): Likewise.
7979         * modules/sys_time (Makefile.am): Likewise.
7980         * modules/sys_times (Makefile.am): Likewise.
7981         * modules/sys_uio (Makefile.am): Likewise.
7982         * modules/sys_utsname (Makefile.am): Likewise.
7983         * modules/sys_wait (Makefile.am): Likewise.
7984         * modules/sysexits (Makefile.am): Likewise.
7985         * modules/termios (Makefile.am): Likewise.
7986         * modules/time (Makefile.am): Likewise.
7987         * modules/unistd (Makefile.am): Likewise.
7988         * modules/wchar (Makefile.am): Likewise.
7989         * modules/wctype-h (Makefile.am): Likewise.
7990         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
7991
7992 2011-05-29  Bruno Haible  <bruno@clisp.org>
7993
7994         assert-h: Allow multiple gnulib generated replacements to coexist.
7995         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
7996
7997 2011-05-29  Bruno Haible  <bruno@clisp.org>
7998
7999         argp: Allow coexistence with strerror_r-posix module.
8000         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
8001         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
8002         by gnulib's <string.h> replacement), assume it has the POSIX signature,
8003         not the glibc signature.
8004
8005 2011-05-28  Bruno Haible  <bruno@clisp.org>
8006
8007         gnulib-tool: Alternative structure of testdirs, similar to --import.
8008         * gnulib-tool: New option --single-configure.
8009         (func_usage): Document it.
8010         (single_configure): New variable.
8011         (func_modules_transitive_closure_separately,
8012         func_modules_transitive_closure_separately,
8013         func_determine_use_libtests, func_modules_add_dummy_separately,
8014         func_modules_to_filelist_separately): New functions, extracted from
8015         func_import.
8016         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
8017         (func_import): Use the new functions.
8018         (func_create_testdir): Set final_modules. Handle $single_configure =
8019         true case.
8020
8021 2011-05-28  Bruno Haible  <bruno@clisp.org>
8022
8023         getloadavg: Remove an unreliable safety check.
8024         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
8025         getloadavg.c is in place.
8026         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
8027         Reported by Sam Steingold <sds@gnu.org>.
8028
8029 2011-05-28  Bruno Haible  <bruno@clisp.org>
8030
8031         doc: Cleanup yet another file produced by texinfo.tex.
8032         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
8033
8034 2011-05-28  Bruno Haible  <bruno@clisp.org>
8035
8036         Finish the conditional dependencies mechanism.
8037         * gnulib-tool: New option --no-conditional-dependencies.
8038         (func_usage): Document it. Don't mark --conditional-dependencies as
8039         experimental.
8040         (cond_dependencies): The possible values can now be true, false, empty.
8041         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
8042         (func_import): Store setting in gnulib-cache.m4 and read it from there.
8043         * doc/gnulib-tool.texi (Conditional dependencies): New section.
8044
8045 2011-05-28  Bruno Haible  <bruno@clisp.org>
8046
8047         doc: Use a recent texinfo.tex.
8048         * doc/Makefile (tex_opts): New variable.
8049         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
8050
8051 2011-05-28  Jim Meyering  <meyering@redhat.com>
8052
8053         intprops.h: adjust comment to match code change
8054         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
8055         only once, it *may* have side effects.  Also fix an unrelated typo.
8056         (_GL_INT_SIGNED): Likewise.
8057
8058 2011-05-26  Simon Josefsson  <simon@josefsson.org>
8059
8060         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
8061
8062 2011-05-26  Bruno Haible  <bruno@clisp.org>
8063
8064         mbsrchr: Avoid collision with system function on Interix.
8065         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
8066         Reported by Markus Duft <mduft@gentoo.org>.
8067
8068 2011-05-15  James Youngman  <jay@gnu.org>
8069
8070         getopt: for ambiguous options, enumerate the possibilities.
8071         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
8072         the ambiguous options when an ambiguous prefix is given. This was
8073         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
8074         glibc change was
8075         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
8076
8077 2011-05-25  Eric Blake  <eblake@redhat.com>
8078
8079         getcwd: work around mingw bug
8080         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
8081         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8082         Reported by Matthias Bolte.
8083
8084 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
8085
8086         test-intprops: disable -Wtype-limits diagnostics
8087         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
8088         diagnostics.  Otherwise, the integer overflow macros generate many
8089         diagnostics.  Reported by Jim Meyering in
8090         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
8091
8092         intprops: shorten, to pacify gcc -Woverlength-strings
8093         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
8094         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
8095         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
8096         likely to run afoul of C compiler limits for string constant lengths.
8097         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
8098
8099 2011-05-24  Eric Blake  <eblake@redhat.com>
8100
8101         docs: document recently fixed glibc printf bug
8102         * doc/posix-functions/fprintf.texi (fprintf): Document it.
8103         * doc/posix-functions/printf.texi (printf): Likewise.
8104         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8105         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8106
8107         closein-tests: convert to init.sh
8108         * modules/closein-tests (Files): Add init.sh
8109         * tests/test-closein.sh Use it.
8110
8111         yesno-tests: convert to init.sh
8112         * modules/yesno-tests (Files): Add init.sh.
8113         * tests/test-yesno.sh: Use it.
8114
8115         atexit-tests: ensure reliable exit status
8116         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
8117         Reported by Bruno Haible.
8118
8119 2011-05-24  Bruno Haible  <bruno@clisp.org>
8120
8121         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
8122         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
8123         gl_PREREQ_STRERROR_R invocations from here...
8124         * modules/strerror_r-posix (configure.ac): ... to here.
8125
8126 2011-05-24  Eric Blake  <eblake@redhat.com>
8127
8128         strerror_r: fix missing header
8129         * lib/strerror_r.c: Avoid compiler warning about snprintf.
8130
8131         strerror_r: fix AIX test failures
8132         * lib/strerror_r.c (strerror_r): Convert silent truncation to
8133         ERANGE failure.
8134
8135         strerror_r: fix Solaris test failures
8136         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
8137         failures.
8138         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
8139
8140         strerror_r: enforce POSIX recommendations
8141         * lib/strerror_r.c (safe_copy): New helper method.
8142         (strerror_r): Guarantee a non-empty string.
8143         * tests/test-strerror_r.c (main): Enhance tests to incorporate
8144         recent POSIX rulings and to match our strerror guarantees.
8145         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
8146
8147 2011-05-24  Jim Meyering  <meyering@redhat.com>
8148
8149         test-perror2.c: avoid warning about unused variable
8150         * tests/test-perror2.c (main): Remove declaration of unused "fp".
8151
8152 2011-05-24  Eric Blake  <eblake@redhat.com>
8153
8154         perror: avoid spurious test failure on HP-UX
8155         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
8156
8157         tests: fix logic bug in init.sh
8158         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
8159         shell.
8160
8161 2011-05-24  Jim Meyering  <meyering@redhat.com>
8162
8163         utimensat: do not reference an out-of-scope buffer
8164         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
8165         declared in an inner scope, yet "times" would be dereferenced outside
8166         the scope in which "ts" was valid.
8167         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
8168         of ts[2] "out/up", so that the use of aliased "times" (via
8169         "times = ts;") does not end up referencing an out-of-scope "ts"
8170
8171         opendir-safer.c: don't clobber errno; don't close negative FD
8172         * lib/opendir-safer.c (opendir_safer):
8173         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
8174         file descriptor, and more importantly, don't clobber the
8175         offending errno value with EINVAL.  Before, upon failure
8176         of dup_safer, we would pass the negative file descriptor to
8177         fdopendir, which would clobber errno.
8178
8179 2011-05-23  Bruno Haible  <bruno@clisp.org>
8180
8181         idcache: Fix module description.
8182         * modules/idcache (Include): Set to "idcache.h".
8183
8184 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
8185
8186         gnulib-tool: fix portability problem with MacOS sed
8187         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
8188         before the "}".  Problem reported by Leo in
8189         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
8190         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
8191         sed_extract_condition1, sed_extract_condition2.
8192
8193 2011-05-23  Bruno Haible  <bruno@clisp.org>
8194
8195         hash: Simplify autoconf macro.
8196         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
8197
8198 2011-05-23  Bruno Haible  <bruno@clisp.org>
8199
8200         getugroups: Fix module description.
8201         * modules/getugroups (Include): Set to "getugroups.h".
8202
8203 2011-05-23  Bruno Haible  <bruno@clisp.org>
8204
8205         linkat: Simplify autoconf macro.
8206         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
8207
8208 2011-05-23  Bruno Haible  <bruno@clisp.org>
8209             Eric Blake  <eblake@redhat.com>
8210
8211         linkat, renameat: Update dependencies.
8212         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
8213         * modules/linkat (Depends-on): Likewise. Remove also readlink,
8214         symlinkat.
8215
8216 2011-05-23  Jim Meyering  <meyering@redhat.com>
8217
8218         maint.mk: more tight_scope improvements
8219         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
8220         (_gl_TS_headers): Define only in if-0'd block.
8221         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
8222         sometimes we must *not* use it.  Adjust uses accordingly.
8223         (sc_tight_scope): Use much simpler grep-based test to determine
8224         whether we skip this rule.
8225
8226         maint.mk: generalize/improve the tight-scope rule
8227         * top/maint.mk: Emit a warning when the test is skipped.
8228         (_gl_TS_dir): Add $(srcdir)/ prefix.
8229         (_gl_TS_function_match): Simplify, rather than trying
8230         to enumerate common types.  Otherwise, it would fail to match an
8231         "extern unsigned char const *" declaration in idutils.
8232         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
8233         a way to support use of that type of macro.
8234         (_gl_TS_var_match): Simplify regexp.
8235         (_gl_TS_obj_files): New configurable variable.
8236         (_gl_TS_headers): Likewise.
8237
8238 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
8239
8240         verify: fix bug when gnulib <assert.h> is also included
8241         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
8242         is defined, not if _GL_STATIC_ASSERT_H is not defined.
8243         Perhaps there's a better way, but this fixes the immediate problem.
8244         Problem reported by Bruno Haible in
8245         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
8246
8247 2011-05-22  Bruno Haible  <bruno@clisp.org>
8248
8249         xgetcwd: Simplify autoconf macro.
8250         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
8251
8252 2011-05-22  Bruno Haible  <bruno@clisp.org>
8253
8254         New module 'mktime-internal'.
8255         * modules/mktime-internal: New file.
8256         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
8257         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
8258         mktime_internal as a C macro if libc has __mktime_internal.
8259         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
8260         conditions.
8261         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
8262
8263 2011-05-22  Bruno Haible  <bruno@clisp.org>
8264
8265         timegm: Correct mktime replacement statements.
8266         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
8267         defining mktime as a C macro. This completes a 2009-07-28 commit.
8268
8269 2011-05-22  Bruno Haible  <bruno@clisp.org>
8270
8271         timegm: Simplify autoconf macro.
8272         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
8273
8274 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
8275
8276         clock-time: change to LGPLv2+.
8277         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
8278         BSD-like but we have no mark for that; this is good enough for now.
8279
8280 2011-05-21  Bruno Haible  <bruno@clisp.org>
8281
8282         strerror_r: Fix comments.
8283         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
8284
8285 2011-05-21  Bruno Haible  <bruno@clisp.org>
8286
8287         relocatable-prog-wrapper: Fix possible link error.
8288         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
8289         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
8290         (gl_FUNC_SETENV): ... to here.
8291         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
8292         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
8293
8294 2011-05-21  Bruno Haible  <bruno@clisp.org>
8295
8296         relocatable-prog-wrapper: Assume strerror() exists.
8297         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
8298         m4/strerror.m4.
8299         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
8300         * lib/relocwrapper.c: Remove mention of strerror module.
8301         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
8302         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
8303         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
8304         C macro.
8305
8306 2011-05-21  Bruno Haible  <bruno@clisp.org>
8307
8308         select: Simplify replacement idiom.
8309         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
8310         Win32 platforms.
8311         * lib/sys_select.in.h (select): Simplify accordingly.
8312         * modules/select (Depends-on): Likewise.
8313
8314 2011-05-21  Bruno Haible  <bruno@clisp.org>
8315
8316         mkdir-p: Simplify autoconf macro.
8317         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
8318         gl_FUNC_LCHOWN.
8319
8320 2011-05-21  Eric Blake  <eblake@redhat.com>
8321
8322         strerror_r: avoid clobbering strerror on cygwin
8323         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
8324         fall back instead to sys_errlist.
8325         * modules/strerror (configure.ac): Add witness.
8326         * tests/test-strerror_r.c (main): Enhance test.
8327         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8328         * tests/test-perror2.c (main): Free memory before exit.
8329
8330 2011-05-21  Bruno Haible  <bruno@clisp.org>
8331
8332         mkdtemp: Use gnulib naming conventions.
8333         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
8334         * modules/mkdtemp (configure.ac): Update.
8335
8336 2011-05-20  Eric Blake  <eblake@redhat.com>
8337
8338         strerror_r: avoid corrupting errno on Solaris
8339         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
8340         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8341
8342         strerror_r: avoid compiler warning
8343         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
8344
8345         strerror_r: simplify AIX code
8346         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
8347
8348         test-perror: avoid spurious failure on FreeBSD
8349         * modules/perror-tests (Depends-on): Add strerror, now that
8350         strerror_r no longer pulls it in.
8351
8352 2011-05-20  Bruno Haible  <bruno@clisp.org>
8353
8354         strerror_r-posix: Remove unused dependencies.
8355         * modules/strerror_r-posix (Depends-on): Remove strerror.
8356         Reported by Eric Blake.
8357
8358 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
8359
8360         intprops: remove assumption about A|B representation
8361         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
8362         is a valid integer if both A and B are.  Although this is true for
8363         all known practical hosts, the C standard doesn't guarantee it,
8364         and the code need not assume it.  Also, this change may work around
8365         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
8366         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
8367
8368 2011-05-20  Eric Blake  <eblake@redhat.com>
8369
8370         perror: work around FreeBSD bug
8371         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
8372         is broken.  Move AC_LIBOBJ...
8373         * modules/perror (configure.ac): Here.
8374         * doc/posix-functions/perror.texi (perror): Document this.
8375         * tests/test-perror2.c (main): Enhance test.
8376
8377         test-perror: check for strerror interactions
8378         * tests/macros.h (STREQ): Add macro.
8379         * modules/perror-tests (Files): Add second test.
8380         * tests/test-perror2.c (main): New file.
8381         * doc/posix-functions/perror.texi (perror): Document glibc bug.
8382
8383         test-perror: rewrite to use init script
8384         * modules/perror-tests (Files): Add init.sh.
8385         * tests/test-perror.sh: Use temporary directory.
8386
8387 2011-05-20  Jim Meyering  <meyering@redhat.com>
8388
8389         maint: replace misused "a" with "an"
8390         * doc/intprops.texi: "a integer"
8391         * doc/regex.texi: "a explanation"
8392         * lib/alignof.h: "a object"
8393         * lib/argmatch.h: "a explanation"
8394         * lib/argp-help.c: "a option" and "a OPTION_DOC"
8395         * lib/stdint.in.h: "a integer"
8396         * lib/userspec.c: "a owner"
8397         * doc/gnulib.texi: Fix "a idea", and reword.
8398
8399 2011-05-19  Jim Meyering  <meyering@redhat.com>
8400
8401         maint: correct misuse of "a" and "an"
8402         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
8403         * lib/argp-help.c: "an docum...": s/an/a/
8404         * lib/argp-parse.c: "An vector": s/An/A/
8405         * lib/execute.c: "an native": s/an/a/
8406         * lib/spawn-pipe.c: Likewise.
8407         * lib/gc.h: "an Gc_rc": s/an/a/
8408         * lib/unigbrk.in.h: "an grapheme": s/an/a/
8409         * lib/fts.c: "an stat.st_dev": s/an/a/
8410
8411 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8412
8413         intprops-tests: work around HP-UX 11.23 cc bug with constants
8414         * tests/test-intprops.c (VERIFY): New macro.
8415         (main): Use it, instead of verify, to work around the compiler bug; see
8416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
8417
8418         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
8419         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
8420         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
8421         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
8422         (_GL_REMAINDER_OVERFLOW): Use it.
8423
8424         intprops-tests: revert unsigned part of previous change
8425         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
8426         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
8427         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
8428         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
8429
8430 2011-05-19  Bruno Haible  <bruno@clisp.org>
8431
8432         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
8433         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
8434         strerror_r() returned without filling the buffer.
8435         Reported by Eric Blake.
8436
8437 2011-05-19  Eric Blake  <eblake@redhat.com>
8438
8439         strerror_r: guarantee unchanged errno
8440         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
8441         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
8442         failure.
8443         * tests/test-strerror_r.c (main): Enhance test.
8444
8445 2011-05-19  Bruno Haible  <bruno@clisp.org>
8446
8447         strerror_r: Reorder #if blocks.
8448         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
8449         for consistency with the previous commit.
8450
8451 2011-05-19  Bruno Haible  <bruno@clisp.org>
8452
8453         perror: Avoid clobbering the strerror buffer when possible.
8454         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
8455         * lib/strerror.c: Include it.
8456         * modules/strerror (Files): Add lib/strerror-impl.h.
8457         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
8458         (my_strerror): New function, defined through lib/strerror-impl.h.
8459         (perror): Use it instead of strerror.
8460         * modules/perror (Files): Add lib/strerror-impl.h.
8461         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
8462
8463 2011-05-19  Eric Blake  <eblake@redhat.com>
8464
8465         strerror_r: fix on newer cygwin
8466         * lib/strerror_r.c (strerror_r): Cygwin now has
8467         __xpg_strerror_r, use it.
8468
8469 2011-05-19  Bruno Haible  <bruno@clisp.org>
8470
8471         strerror_r: Avoid clobbering the strerror buffer when possible.
8472         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
8473         (sys_nerr, sys_errlist): New declarations.
8474         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
8475         HP-UX, native Win32, IRIX, and 32-bit Solaris.
8476         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
8477
8478 2011-05-19  Bruno Haible  <bruno@clisp.org>
8479
8480         strerror_r: Fix test failure on mingw.
8481         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
8482         EXTEND_STRERROR_R.
8483         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
8484         macros from errno.in.h instead.
8485
8486 2011-05-19  Eric Blake  <eblake@redhat.com>
8487
8488         strerror: relax test for Solaris
8489         * tests/test-strerror.c (main): Permit Solaris behavior.
8490         * tests/test-strerror_r.c (main): Likewise.
8491
8492         strerror: enforce POSIX ruling on strerror(0)
8493         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
8494         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
8495         * lib/strerror_r.c (rpl_strerror_r): Work around it.
8496         * doc/posix-functions/strerror.texi (strerror): Document it.
8497         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
8498         * tests/test-strerror.c (main): Strengthen test.
8499         * tests/test-strerror_r.c (main): Likewise.
8500
8501 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8502
8503         intprop-tests: port to older and more-pedantic compilers
8504         * modules/intprops-tests (Files): Add tests/macros.h.
8505         * tests/test-intprops.c: Include macros.h.
8506         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
8507         it's no longer documented to expand to an integer constant expression.
8508         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
8509         argument is floating point, as it's no longer documented to expand
8510         to an integer constant expression in that case.
8511         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
8512         compiler bugs reported by Bruno Haible.  See
8513         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
8514         (U0, U1): New constants, to work around the same bugs.  Also,
8515         in tests, use e.g., "(unsigned int) 39" rather than "39u".
8516
8517         intprops: work around C compiler bugs
8518         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
8519         bug in Sun C 5.11 2010/08/13 and other compilers; see
8520         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
8521
8522         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
8523         * doc/intprops.texi (Integer Type Determination): Fix
8524         documentation for TYPE_IS_INTEGER: it returns an constant
8525         expression, not an integer constant expression.  Fix doc for
8526         TYPE_SIGNED: it returns an integer constant expression only if its
8527         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
8528         hardly worth documented that way....)
8529
8530 2011-05-18  Bruno Haible  <bruno@clisp.org>
8531
8532         strerror_r: Avoid clobbering the strerror buffer when possible.
8533         * lib/strerror_r.c (strerror_r): Merge the three implementations.
8534         Handle gnulib defined errno values here. When strerror() returns NULL
8535         or an empty string, return EINVAL.
8536         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
8537         gnulib defined errno values here.
8538         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
8539
8540 2011-05-18  Eric Blake  <eblake@redhat.com>
8541
8542         fnmatch: avoid compiler warning
8543         * lib/fnmatch_loop.c (FCT): Use correct type.
8544         Reported by Matthias Bolte.
8545
8546 2011-05-13  Jim Meyering  <meyering@redhat.com>
8547
8548         maint.mk: three new prohibit_<HDR>_without_use rules
8549         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
8550         (sc_prohibit_stdio-safer_without_use): Likewise.
8551         (sc_prohibit_xfreopen_without_use): Likewise.
8552
8553 2011-05-17  Jim Meyering  <meyering@redhat.com>
8554
8555         announce-gen: fail if the NEWS delta is empty
8556         If there's nothing noteworthy in NEWS, then either you forgot
8557         or you shouldn't be releasing.
8558         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
8559
8560 2011-05-17  Pádraig Brady <P@draigBrady.com>
8561
8562         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
8563         reserved symbols starting with double underscore from the check.
8564
8565 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
8566
8567         intprops: add doc
8568         * doc/intprops.texi: New file, documenting intprops.
8569         * doc/gnulib.texi (Particular Modules): Include it.
8570
8571         verify: add doc to gnulib manual and fix example
8572         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
8573         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
8574         (Compile-time Assertions): Fix example so it can't overflow.
8575
8576 2011-05-17  Jim Meyering  <meyering@redhat.com>
8577
8578         warnings.m4: don't usurp save_CPPFLAGS variable name
8579         * m4/warnings.m4: Prefix local temporary variable name with gl_.
8580
8581         doc: fix typo
8582         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
8583
8584 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
8585             Bruno Haible  <bruno@clisp.org>
8586
8587         doc: Tweak recent change.
8588         * README (Portability guidelines): Tweak new text.
8589         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
8590         Interix 6.1.
8591
8592 2011-05-16  Eric Blake  <eblake@redhat.com>
8593
8594         inttypes: avoid autoconf warning
8595         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
8596         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8597
8598 2011-05-16  Sam Steingold <sds@gnu.org>
8599         and Eric Blake  <eblake@redhat.com>
8600
8601         vc-list-files: accept multiple directory operands
8602         * build-aux/vc-list-files: Iterate over all remaining operands.
8603
8604 2011-05-16  Bruno Haible  <bruno@clisp.org>
8605
8606         Fix confusion regarding deprecated modules.
8607         * modules/calloc (Status, Notice): Mark module as deprecated, not
8608         obsolete.
8609         * modules/fnmatch-posix (Status, Notice): Likewise.
8610         * modules/getdate (Status, Notice): Likewise.
8611         * modules/getopt (Status, Notice): Likewise.
8612         * modules/malloc (Status, Notice): Likewise.
8613         * modules/pipe (Status, Notice): Likewise.
8614         * modules/realloc (Status, Notice): Likewise.
8615         * modules/rename-dest-slash (Status, Notice): Likewise.
8616         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
8617         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
8618         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
8619         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
8620         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
8621
8622 2011-05-16  Bruno Haible  <bruno@clisp.org>
8623
8624         doc: List the target platforms.
8625         * doc/gnulib-intro.texi (Target Platforms): New section.
8626         * doc/gnulib.texi (Introduction): Update menu.
8627         * README (Portability guidelines): Refer to the new section. Update
8628         statement about oldest supported environment. Remove rationale why
8629         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
8630         unportable C89 function.
8631         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
8632         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
8633
8634 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
8635
8636         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
8637
8638 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
8639
8640         intprops-tests: new module
8641         * modules/intprops-tests, tests/test-intprops.c: New files.
8642
8643         intprops: add safe, portable integer overflow checking
8644         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
8645         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
8646         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
8647         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
8648         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
8649         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
8650         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
8651         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
8652         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
8653         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
8654         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
8655
8656 2011-05-12  James Youngman  <jay@gnu.org>
8657
8658         Add a test for glibc's Bugzilla bug #12378.
8659         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
8660         doesn't allow the literal matching of a lone "[" (which is
8661         required by POSIX).
8662         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
8663
8664 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
8665
8666         Sync glibc change fixing Bugzilla bug #12378.
8667         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
8668         beginning and fall back to matching as normal character if the
8669         string ends before the matching ']' is found.  This is what POSIX
8670         requires.
8671
8672 2011-05-13  Eric Blake  <eblake@redhat.com>
8673
8674         getcwd-lgpl: relax test for FreeBSD
8675         * doc/posix-functions/getcwd.texi (getcwd): Document portability
8676         issue.
8677         * tests/test-getcwd-lgpl.c (main): Relax test.
8678         Reported by Matthias Bolte.
8679
8680 2011-05-11  Eric Blake  <eblake@redhat.com>
8681
8682         test-fflush: silence compiler warning
8683         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
8684
8685 2011-05-11  Bruno Haible  <bruno@clisp.org>
8686
8687         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
8688         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
8689         * modules/canonicalize (Depends-on): Add 'nocrash'.
8690         * modules/canonicalize-lgpl (Depends-on): Likewise.
8691         * doc/posix-functions/realpath.texi: Update platforms list.
8692         Reported by Ryan Schmidt <ryandesign@macports.org>.
8693
8694 2011-05-11  Bruno Haible  <bruno@clisp.org>
8695
8696         group-member: Declare function in <unistd.h>.
8697         * lib/unistd.in.h (group_member): New declaration.
8698         * lib/group-member.h: Remove file.
8699         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
8700         * tests/test-unistd-c++.cc: Check signature of group_member.
8701         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
8702         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
8703         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
8704         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
8705         HAVE_GROUP_MEMBER.
8706         * modules/group-member (Files): Remove lib/group-member.h.
8707         (Depends-on): Add unistd. Specify conditions.
8708         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8709         (Include): Change to <unistd.h>.
8710         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
8711         HAVE_GROUP_MEMBER.
8712         * NEWS: Mention the change.
8713         * lib/euidaccess.c: Don't include group-member.h.
8714
8715 2011-05-11  Bruno Haible  <bruno@clisp.org>
8716
8717         group-member: Document module.
8718         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
8719         module.
8720
8721 2011-05-11  Bruno Haible  <bruno@clisp.org>
8722
8723         fclose: Fix mistake earlier today.
8724         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
8725
8726 2011-05-11  Eric Blake  <eblake@redhat.com>
8727
8728         fclose: preserve fflush errors
8729         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
8730         Reported by Jim Meyering.
8731
8732         bootstrap: support a prereq of 'rpcgen -' on RHEL5
8733         * build-aux/bootstrap (check_versions): When no specific version
8734         is required, merely check that the app produces an exit status
8735         that indicates its existence.
8736
8737         maint.mk: drop redundant check
8738         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
8739         the same but better.
8740
8741 2011-05-11  Bruno Haible  <bruno@clisp.org>
8742
8743         fclose: Fix possible link error.
8744         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
8745         unregister_shadow_fd. Improve comments.
8746         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
8747         Eric Blake.
8748
8749 2011-05-11  Jim Meyering  <meyering@redhat.com>
8750
8751         maint.mk: improve "can not" detection and generalize rule name
8752         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
8753         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
8754         Use the same technique as in sc_prohibit_doubled_word, so that
8755         we recognize "can not" also when the words are separated by a newline.
8756         Suggested by Eric Blake.
8757         (perl_filename_lineno_text_): Define.  Factored out of...
8758         (prohibit_doubled_word_): ...here.  Use the new definition.
8759         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
8760         (prohibit_undesirable_word_seq_RE_): New overridable variable.
8761         (ignore_undesirable_word_sequence_RE_): New overridable variable.
8762
8763 2011-05-10  Eric Blake  <eblake@redhat.com>
8764
8765         fclose: avoid double close race when possible
8766         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
8767         all but WINDOWS_SOCKETS.
8768
8769 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
8770
8771         openat: correct new comment
8772         * lib/openat-proc.c (openat_proc_name): Correct the comment.
8773
8774 2011-05-10  Jim Meyering  <meyering@redhat.com>
8775
8776         openat: add comments
8777         * lib/openat-proc.c (openat_proc_name): Add comments,
8778         mostly from Eric Blake.
8779
8780 2011-05-09  Eric Blake  <eblake@redhat.com>
8781
8782         openat: reduce syscalls in first probe of /proc
8783         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
8784         be a directory.  Simplify the probe for .. bugs.
8785         * modules/openat (Depends-on): Drop same-inode.
8786         Reported by Bastien ROUCARIES.
8787
8788 2011-05-09  Jim Meyering  <meyering@redhat.com>
8789
8790         maint.mk: change semantics/name of tight_scope variables
8791         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
8792         Rename variables to align with semantics that make them more useful.
8793
8794         maint.mk: tweak new rule's name not to impinge
8795         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
8796         (sc_tight_scope): Use new rule name rather than $@-0.
8797
8798         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
8799         * top/maint.mk (sc_tight_scope): New rule.
8800         (sc_tight_scope-0): New rule, ifdef'd out.
8801         (_gl_TS_dir): Default.
8802         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
8803         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
8804
8805 2011-05-09  Simon Josefsson  <simon@josefsson.org>
8806
8807         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
8808         Haible <bruno@clisp.org>.
8809
8810 2011-05-08  Bruno Haible  <bruno@clisp.org>
8811
8812         Comments.
8813         * m4/isnanf.m4: Add comment.
8814         * m4/isnanl.m4: Likewise.
8815
8816 2011-05-08  Bruno Haible  <bruno@clisp.org>
8817
8818         glob: Remove obsolete macro.
8819         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
8820
8821 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
8822
8823         intprops: Sun C 5.11 supports __typeof__
8824         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
8825         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
8826         which is new.
8827         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
8828
8829         intprops: switch to usual gnulib indenting and naming
8830         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
8831         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
8832
8833         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
8834
8835 2011-05-08  Jim Meyering  <meyering@redhat.com>
8836
8837         maint.mk: suppress "Entering/Leaving directory" diag in announcement
8838         * top/maint.mk (release-prep): Use make's --no-print-directory
8839         option when generating the announcement.  This eliminates the
8840         pesky "make[2]: Entering/Leaving directory" diagnostics in the
8841         generated announcement template.
8842
8843 2011-05-08  Bruno Haible  <bruno@clisp.org>
8844
8845         tzset: Fix gettimeofday wrapper on Solaris 2.6.
8846         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
8847         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
8848
8849 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
8850
8851         ignore-value, verify: Omit include files from lib_SOURCES.
8852         * modules/ignore-value, modules/verify (Makefile.am):
8853         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
8854         that leads Automake to duplicate use of am__objects_... variables
8855         in Makefile.in.  See
8856         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
8857
8858 2011-05-07  Bruno Haible  <bruno@clisp.org>
8859
8860         fclose: Simplify autoconf macro.
8861         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
8862         defined.
8863
8864 2011-05-07  Bruno Haible  <bruno@clisp.org>
8865
8866         canonicalize-lgpl: Fix autoconf macro ordering bug.
8867         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
8868         gl_STDLIB_H_DEFAULTS.
8869
8870 2011-05-06  Eric Blake  <eblake@redhat.com>
8871
8872         maintainer-makefile: make sc_po_check easier to tune
8873         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
8874         to probe for strings, such as an alternate location for gnulib.
8875
8876         fclose: guarantee behavior on seekable stdin
8877         * modules/fclose (Depends-on): Add fflush.
8878         * doc/posix-functions/fclose.texi (fclose): Document this.
8879         * tests/test-fclose.c (main): Make test for this unconditional.
8880
8881 2011-05-06  Bruno Haible  <bruno@clisp.org>
8882
8883         fflush, fpurge: Relicense under LGPLv2+.
8884         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
8885         * modules/fpurge (License): Likewise.
8886         With permission from Eric Blake and Jim Meyering.
8887         Suggested by Eric Blake.
8888
8889 2011-05-06  Karl Berry  <karl@gnu.org>
8890
8891         * MODULES.html.sh (func_all_modules): remove exit.
8892
8893 2011-05-06  Jim Meyering  <meyering@redhat.com>
8894
8895         maint.mk: use info-gnu@ as the default only for a stable release
8896         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
8897         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
8898         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
8899         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
8900
8901 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8902
8903         assert-h: new module, which supports C1X-style static_assert
8904         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
8905         * lib/verify.h: Revamp so that this can be copied into assert.h,
8906         while retaining the ability to use it standalone as before.
8907         Rename private identifiers so as not to encroach on the
8908         standard C namespace, since this is now used by assert.h.
8909         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
8910         the old verify_true.
8911         (_GL_VERIFY_TRUE): New macro, with much of the contents of
8912         the old verify_true.  Use _GL_VERIFY_TYPE.
8913         (_GL_VERIFY): New macro, with much of the contents of the old verify.
8914         (static_assert): New macro, if _GL_STATIC_ASSERT_H
8915         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
8916         defined when this file is copied into the replacement assert.h.
8917         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
8918         and _Static_assert is not built in.
8919         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
8920         defined, and use the new macros mentioned above.
8921         * doc/posix-headers/assert.texi: Document this.
8922
8923 2011-05-05  Bruno Haible  <bruno@clisp.org>
8924
8925         fclose, fflush: Respect rules for use of AC_LIBOBJ.
8926         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
8927         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
8928         gl_REPLACE_FCLOSE here.
8929         * modules/fflush (Depends-on): Remove fclose.
8930         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
8931         combination with module 'fclose'.
8932
8933 2011-05-05  Bruno Haible  <bruno@clisp.org>
8934
8935         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
8936         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
8937         gl_FUNC_FFLUSH.
8938         (gl_FUNC_FFLUSH): Use it.
8939         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
8940         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
8941         gl_REPLACE_FSEEKO here.
8942
8943 2011-05-05  Bruno Haible  <bruno@clisp.org>
8944
8945         tzset: Relicense under LGPL.
8946         * modules/tzset (License): Change to LGPL.
8947         No agreement needed; it's a no-op.
8948
8949         strtoimax, strtoumax: Relicense under LGPL.
8950         * modules/strtoimax (License): Change to LGPL.
8951         * modules/strtoumax (License): Likewise.
8952         With permission from Jim Meyering, Paul Eggert:
8953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
8954         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
8955
8956         getgroups: Relicense under LGPL.
8957         * modules/getgroups (License): Change to LGPL.
8958         With permission from Jim Meyering, Paul Eggert, Eric Blake:
8959         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
8960         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
8961         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8962
8963         nanosleep: Relicense under LGPL.
8964         * modules/nanosleep (License): Change to LGPL.
8965         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
8966         Haible:
8967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
8968         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
8969         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8970         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
8971
8972         futimens: Relicense under LGPL.
8973         * modules/futimens (License): Change to LGPL.
8974         With permission from Eric Blake:
8975         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8976
8977         fflush: Relicense under LGPL.
8978         * modules/fflush (License): Change to LGPL.
8979         With permission from Eric Blake, Bruno Haible, Jim Meyering:
8980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8981         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
8982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
8983
8984         tmpfile: Relicense under LGPL.
8985         * modules/tmpfile (License): Change to LGPL.
8986         With permission from Ben Pfaff:
8987         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
8988
8989         isfinite: Relicense under LGPL.
8990         * modules/isfinite (License): Change to LGPL.
8991         With permission from Ben Pfaff, Bruno Haible:
8992         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
8993         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
8994
8995         acosl..tanl: Relicense under LGPL.
8996         * modules/acosl (License): Change to LGPL.
8997         * modules/asinl (License): Likewise.
8998         * modules/atanl (License): Likewise.
8999         * modules/cosl (License): Likewise.
9000         * modules/expl (License): Likewise.
9001         * modules/logl (License): Likewise.
9002         * modules/sinl (License): Likewise.
9003         * modules/sqrtl (License): Likewise.
9004         * modules/tanl (License): Likewise.
9005         Source code originally from glibc and Paolo Bonzini. Agreements:
9006         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
9007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
9008
9009 2011-05-05  Bruno Haible  <bruno@clisp.org>
9010
9011         signal: Define sighandler_t.
9012         * lib/signal.in.h (sighandler_t): New type.
9013         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
9014         whether sighandler_t is defined.
9015         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
9016         * modules/signal (Depends-on): Add extensions.
9017         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
9018         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
9019         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
9020
9021 2011-05-05  Eric Blake  <eblake@redhat.com>
9022
9023         maint: remove useless REPLACE_*_H macros
9024         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
9025         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9026         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9027         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
9028         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9029         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9030         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
9031         * m4/btowc.m4: Update callers.
9032         * m4/dirfd.m4: Likewise.
9033         * m4/duplocale.m4: Likewise.
9034         * m4/fchdir.m4: Likewise.
9035         * m4/fdopendir.m4: Likewise.
9036         * m4/inet_ntop.m4: Likewise.
9037         * m4/inet_pton.m4: Likewise.
9038         * m4/ioctl.m4: Likewise.
9039         * m4/mbrlen.m4: Likewise.
9040         * m4/mbrtowc.m4: Likewise.
9041         * m4/mbsinit.m4: Likewise.
9042         * m4/mbsnrtowcs.m4: Likewise.
9043         * m4/mbsrtowcs.m4: Likewise.
9044         * m4/poll.m4: Likewise.
9045         * m4/setlocale.m4: Likewise.
9046         * m4/wcrtomb.m4: Likewise.
9047         * m4/wcsnrtombs.m4: Likewise.
9048         * m4/wcsrtombs.m4: Likewise.
9049         * m4/wctob.m4: Likewise.
9050         * m4/wcwidth.m4: Likewise.
9051         * modules/posix_spawn: Likewise.
9052         * modules/posix_spawn_file_actions_addclose: Likewise.
9053         * modules/posix_spawn_file_actions_adddup2: Likewise.
9054         * modules/posix_spawn_file_actions_addopen: Likewise.
9055         * modules/posix_spawn_file_actions_destroy: Likewise.
9056         * modules/posix_spawn_file_actions_init: Likewise.
9057         * modules/posix_spawnattr_destroy: Likewise.
9058         * modules/posix_spawnattr_getflags: Likewise.
9059         * modules/posix_spawnattr_getpgroup: Likewise.
9060         * modules/posix_spawnattr_getschedparam: Likewise.
9061         * modules/posix_spawnattr_getschedpolicy: Likewise.
9062         * modules/posix_spawnattr_getsigdefault: Likewise.
9063         * modules/posix_spawnattr_getsigmask: Likewise.
9064         * modules/posix_spawnattr_init: Likewise.
9065         * modules/posix_spawnattr_setflags: Likewise.
9066         * modules/posix_spawnattr_setpgroup: Likewise.
9067         * modules/posix_spawnattr_setschedparam: Likewise.
9068         * modules/posix_spawnattr_setschedpolicy: Likewise.
9069         * modules/posix_spawnattr_setsigdefault: Likewise.
9070         * modules/posix_spawnattr_setsigmask: Likewise.
9071         * modules/posix_spawnp: Likewise.
9072
9073 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
9074
9075         Add option to do-release-commit-and-tag to specify branch.
9076         * build-aux/do-release-commit-and-tag: Add --branch.
9077
9078 2011-05-03  Bruno Haible  <bruno@clisp.org>
9079
9080         Avoid unnecessary compilation units, through conditional dependencies.
9081         * modules/accept (Depends-on): Add conditions to the dependencies.
9082         * modules/acosl (Depends-on): Likewise.
9083         * modules/argz (Depends-on): Likewise.
9084         * modules/asinl (Depends-on): Likewise.
9085         * modules/atanl (Depends-on): Likewise.
9086         * modules/atoll (Depends-on): Likewise.
9087         * modules/bind (Depends-on): Likewise.
9088         * modules/btowc (Depends-on): Likewise.
9089         * modules/canonicalize-lgpl (Depends-on): Likewise.
9090         * modules/ceil (Depends-on): Likewise.
9091         * modules/ceilf (Depends-on): Likewise.
9092         * modules/ceill (Depends-on): Likewise.
9093         * modules/chdir-long (Depends-on): Likewise.
9094         * modules/chown (Depends-on): Likewise.
9095         * modules/close (Depends-on): Likewise.
9096         * modules/connect (Depends-on): Likewise.
9097         * modules/cosl (Depends-on): Likewise.
9098         * modules/dirfd (Depends-on): Likewise.
9099         * modules/dprintf (Depends-on): Likewise.
9100         * modules/dprintf-posix (Depends-on): Likewise.
9101         * modules/error (Depends-on): Likewise.
9102         * modules/euidaccess (Depends-on): Likewise.
9103         * modules/expl (Depends-on): Likewise.
9104         * modules/faccessat (Depends-on): Likewise.
9105         * modules/fchdir (Depends-on): Likewise.
9106         * modules/fclose (Depends-on): Likewise.
9107         * modules/fcntl (Depends-on): Likewise.
9108         * modules/fdopendir (Depends-on): Likewise.
9109         * modules/fflush (Depends-on): Likewise.
9110         * modules/floor (Depends-on): Likewise.
9111         * modules/floorf (Depends-on): Likewise.
9112         * modules/floorl (Depends-on): Likewise.
9113         * modules/fnmatch (Depends-on): Likewise.
9114         * modules/fopen (Depends-on): Likewise.
9115         * modules/fprintf-posix (Depends-on): Likewise.
9116         * modules/frexp (Depends-on): Likewise.
9117         * modules/frexp-nolibm (Depends-on): Likewise.
9118         * modules/frexpl (Depends-on): Likewise.
9119         * modules/frexpl-nolibm (Depends-on): Likewise.
9120         * modules/fseek (Depends-on): Likewise.
9121         * modules/fsusage (Depends-on): Likewise.
9122         * modules/ftell (Depends-on): Likewise.
9123         * modules/ftello (Depends-on): Likewise.
9124         * modules/futimens (Depends-on): Likewise.
9125         * modules/getcwd (Depends-on): Likewise.
9126         * modules/getcwd-lgpl (Depends-on): Likewise.
9127         * modules/getdelim (Depends-on): Likewise.
9128         * modules/getdomainname (Depends-on): Likewise.
9129         * modules/getgroups (Depends-on): Likewise.
9130         * modules/gethostname (Depends-on): Likewise.
9131         * modules/getline (Depends-on): Likewise.
9132         * modules/getlogin_r (Depends-on): Likewise.
9133         * modules/getopt-posix (Depends-on): Likewise.
9134         * modules/getpeername (Depends-on): Likewise.
9135         * modules/getsockname (Depends-on): Likewise.
9136         * modules/getsockopt (Depends-on): Likewise.
9137         * modules/getsubopt (Depends-on): Likewise.
9138         * modules/getusershell (Depends-on): Likewise.
9139         * modules/glob (Depends-on): Likewise.
9140         * modules/grantpt (Depends-on): Likewise.
9141         * modules/iconv_open (Depends-on): Likewise.
9142         * modules/iconv_open-utf (Depends-on): Likewise.
9143         * modules/inet_ntop (Depends-on): Likewise.
9144         * modules/inet_pton (Depends-on): Likewise.
9145         * modules/ioctl (Depends-on): Likewise.
9146         * modules/isapipe (Depends-on): Likewise.
9147         * modules/isfinite (Depends-on): Likewise.
9148         * modules/isinf (Depends-on): Likewise.
9149         * modules/lchown (Depends-on): Likewise.
9150         * modules/ldexpl (Depends-on): Likewise.
9151         * modules/link (Depends-on): Likewise.
9152         * modules/linkat (Depends-on): Likewise.
9153         * modules/listen (Depends-on): Likewise.
9154         * modules/logl (Depends-on): Likewise.
9155         * modules/lstat (Depends-on): Likewise.
9156         * modules/mbrlen (Depends-on): Likewise.
9157         * modules/mbrtowc (Depends-on): Likewise.
9158         * modules/mbsinit (Depends-on): Likewise.
9159         * modules/mbsnrtowcs (Depends-on): Likewise.
9160         * modules/mbsrtowcs (Depends-on): Likewise.
9161         * modules/mbtowc (Depends-on): Likewise.
9162         * modules/memcmp (Depends-on): Likewise.
9163         * modules/mkdir (Depends-on): Likewise.
9164         * modules/mkdtemp (Depends-on): Likewise.
9165         * modules/mkfifo (Depends-on): Likewise.
9166         * modules/mkfifoat (Depends-on): Likewise.
9167         * modules/mknod (Depends-on): Likewise.
9168         * modules/mkostemp (Depends-on): Likewise.
9169         * modules/mkostemps (Depends-on): Likewise.
9170         * modules/mkstemp (Depends-on): Likewise.
9171         * modules/mkstemps (Depends-on): Likewise.
9172         * modules/mktime (Depends-on): Likewise.
9173         * modules/nanosleep (Depends-on): Likewise.
9174         * modules/open (Depends-on): Likewise.
9175         * modules/openat (Depends-on): Likewise.
9176         * modules/perror (Depends-on): Likewise.
9177         * modules/poll (Depends-on): Likewise.
9178         * modules/popen (Depends-on): Likewise.
9179         * modules/posix_spawn (Depends-on): Likewise.
9180         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
9181         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
9182         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
9183         * modules/posix_spawnp (Depends-on): Likewise.
9184         * modules/pread (Depends-on): Likewise.
9185         * modules/printf-posix (Depends-on): Likewise.
9186         * modules/ptsname (Depends-on): Likewise.
9187         * modules/putenv (Depends-on): Likewise.
9188         * modules/pwrite (Depends-on): Likewise.
9189         * modules/readline (Depends-on): Likewise.
9190         * modules/readlink (Depends-on): Likewise.
9191         * modules/readlinkat (Depends-on): Likewise.
9192         * modules/recv (Depends-on): Likewise.
9193         * modules/recvfrom (Depends-on): Likewise.
9194         * modules/regex (Depends-on): Likewise.
9195         * modules/remove (Depends-on): Likewise.
9196         * modules/rename (Depends-on): Likewise.
9197         * modules/renameat (Depends-on): Likewise.
9198         * modules/rmdir (Depends-on): Likewise.
9199         * modules/round (Depends-on): Likewise.
9200         * modules/roundf (Depends-on): Likewise.
9201         * modules/roundl (Depends-on): Likewise.
9202         * modules/rpmatch (Depends-on): Likewise.
9203         * modules/select (Depends-on): Likewise.
9204         * modules/send (Depends-on): Likewise.
9205         * modules/sendto (Depends-on): Likewise.
9206         * modules/setenv (Depends-on): Likewise.
9207         * modules/setlocale (Depends-on): Likewise.
9208         * modules/setsockopt (Depends-on): Likewise.
9209         * modules/shutdown (Depends-on): Likewise.
9210         * modules/sigaction (Depends-on): Likewise.
9211         * modules/signbit (Depends-on): Likewise.
9212         * modules/sigprocmask (Depends-on): Likewise.
9213         * modules/sinl (Depends-on): Likewise.
9214         * modules/sleep (Depends-on): Likewise.
9215         * modules/snprintf (Depends-on): Likewise.
9216         * modules/snprintf-posix (Depends-on): Likewise.
9217         * modules/socket (Depends-on): Likewise.
9218         * modules/sprintf-posix (Depends-on): Likewise.
9219         * modules/sqrtl (Depends-on): Likewise.
9220         * modules/stat (Depends-on): Likewise.
9221         * modules/strchrnul (Depends-on): Likewise.
9222         * modules/strdup-posix (Depends-on): Likewise.
9223         * modules/strerror (Depends-on): Likewise.
9224         * modules/strerror_r-posix (Depends-on): Likewise.
9225         * modules/strndup (Depends-on): Likewise.
9226         * modules/strnlen (Depends-on): Likewise.
9227         * modules/strptime (Depends-on): Likewise.
9228         * modules/strsep (Depends-on): Likewise.
9229         * modules/strsignal (Depends-on): Likewise.
9230         * modules/strstr-simple (Depends-on): Likewise.
9231         * modules/strtod (Depends-on): Likewise.
9232         * modules/strtoimax (Depends-on): Likewise.
9233         * modules/strtok_r (Depends-on): Likewise.
9234         * modules/strtoumax (Depends-on): Likewise.
9235         * modules/symlink (Depends-on): Likewise.
9236         * modules/symlinkat (Depends-on): Likewise.
9237         * modules/tanl (Depends-on): Likewise.
9238         * modules/tcgetsid (Depends-on): Likewise.
9239         * modules/tmpfile (Depends-on): Likewise.
9240         * modules/trunc (Depends-on): Likewise.
9241         * modules/truncf (Depends-on): Likewise.
9242         * modules/truncl (Depends-on): Likewise.
9243         * modules/uname (Depends-on): Likewise.
9244         * modules/unlink (Depends-on): Likewise.
9245         * modules/unlockpt (Depends-on): Likewise.
9246         * modules/unsetenv (Depends-on): Likewise.
9247         * modules/usleep (Depends-on): Likewise.
9248         * modules/utimensat (Depends-on): Likewise.
9249         * modules/vasprintf (Depends-on): Likewise.
9250         * modules/vdprintf (Depends-on): Likewise.
9251         * modules/vdprintf-posix (Depends-on): Likewise.
9252         * modules/vfprintf-posix (Depends-on): Likewise.
9253         * modules/vprintf-posix (Depends-on): Likewise.
9254         * modules/vsnprintf (Depends-on): Likewise.
9255         * modules/vsnprintf-posix (Depends-on): Likewise.
9256         * modules/vsprintf-posix (Depends-on): Likewise.
9257         * modules/wcrtomb (Depends-on): Likewise.
9258         * modules/wcscasecmp (Depends-on): Likewise.
9259         * modules/wcscspn (Depends-on): Likewise.
9260         * modules/wcsdup (Depends-on): Likewise.
9261         * modules/wcsncasecmp (Depends-on): Likewise.
9262         * modules/wcsnrtombs (Depends-on): Likewise.
9263         * modules/wcspbrk (Depends-on): Likewise.
9264         * modules/wcsrtombs (Depends-on): Likewise.
9265         * modules/wcsspn (Depends-on): Likewise.
9266         * modules/wcsstr (Depends-on): Likewise.
9267         * modules/wcstok (Depends-on): Likewise.
9268         * modules/wcswidth (Depends-on): Likewise.
9269         * modules/wctob (Depends-on): Likewise.
9270         * modules/wctomb (Depends-on): Likewise.
9271         * modules/wctype (Depends-on): Likewise.
9272         * modules/wcwidth (Depends-on): Likewise.
9273         * modules/write (Depends-on): Likewise.
9274
9275 2011-05-03  Bruno Haible  <bruno@clisp.org>
9276
9277         Support for conditional dependencies.
9278         * doc/gnulib.texi (Module description): Document the syntax of
9279         conditional dependencies.
9280         * gnulib-tool: New option --conditional-dependencies.
9281         (func_usage): Document it.
9282         (cond_dependencies): New variable.
9283         (func_get_automake_snippet_conditional,
9284         func_get_automake_snippet_unconditional): New functions, extracted from
9285         func_get_automake_snippet.
9286         (func_get_automake_snippet): Use them.
9287         (sed_first_32_chars): New variable.
9288         (func_module_shellfunc_name): New function.
9289         (func_module_shellvar_name): New function.
9290         (func_module_conditional_name): New function.
9291         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
9292         func_cond_module_condition): New functions.
9293         (func_modules_transitive_closure): Add support for conditional
9294         dependencies.
9295         (func_emit_lib_Makefile_am): For a conditional module, enclose the
9296         conditional automake snippet in an automake conditional.
9297         (func_emit_autoconf_snippets): Emit shell functions that contain the
9298         code for conditional modules.
9299         (func_import, func_create_testdir): Update specification.
9300
9301 2011-05-03  Eric Blake  <eblake@redhat.com>
9302
9303         test-getaddrinfo: report error information
9304         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
9305
9306 2011-05-03  Jim Meyering  <meyering@redhat.com>
9307
9308         bootstrap: avoid build failure when $GZIP is set
9309         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
9310         program name.  If defined at all, it is supposed to list gzip options.
9311         Reported by Alan Curry in http://debbugs.gnu.org/8609
9312
9313 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
9314
9315         readme-release: new module with release instructions
9316         * modules/readme-release: New module.
9317         * top/README-release: New file, from coreutils, grep, diffutils.
9318         * MODULES.html.sh (Support for maintaining and releasing): Add it.
9319
9320 2011-05-02  Eric Blake  <eblake@redhat.com>
9321
9322         fflush: also replace fclose when fixing fflush
9323         * modules/fflush (Depends-on): Add fclose.
9324         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
9325         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
9326         memstreams with no backing fd.
9327         * doc/posix-functions/fclose.texi (fclose): Document the use of
9328         fflush module to fix the bug.
9329         * tests/test-fclose.c (main): Relax test when fclose is used in
9330         isolation.
9331
9332         fclose: add some tests
9333         * modules/fclose-tests: New test module.
9334         * tests/test-fclose.c: New file.
9335         * doc/posix-functions/fclose.texi (fclose): Document the bug.
9336
9337         fclose: reduced dependencies
9338         * modules/fclose (Depends-on): Switch from fflush/fseeko to
9339         simpler lseek.
9340         * lib/fclose.c (rpl_fclose): Likewise.
9341         Reported by Simon Josefsson.
9342
9343         exit: drop remaining clients
9344         * modules/argmatch (Depends-on): Replace exit with stdlib.
9345         * modules/copy-file (Depends-on): Likewise.
9346         * modules/execute (Depends-on): Likewise.
9347         * modules/exitfail (Depends-on): Likewise.
9348         * modules/obstack (Depends-on): Likewise.
9349         * modules/pagealign_alloc (Depends-on): Likewise.
9350         * modules/pipe-filter-gi (Depends-on): Likewise.
9351         * modules/pipe-filter-ii (Depends-on): Likewise.
9352         * modules/savewd (Depends-on): Likewise.
9353         * modules/spawn-pipe (Depends-on): Likewise.
9354         * modules/wait-process (Depends-on): Likewise.
9355         * modules/xsetenv (Depends-on): Likewise.
9356         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
9357         * modules/git-merge-changelog (Depends-on): Likewise.
9358         * modules/long-options (Depends-on): Likewise.
9359         * modules/pt_chown (Depends-on): Likewise.
9360         * modules/sysexits (Depends-on): Likewise.
9361
9362         freading: relax license from LGPLv3+ to LGPLv2+
9363         * modules/freading (License): Relax LGPL version.
9364
9365 2011-05-02  Bruno Haible  <bruno@clisp.org>
9366
9367         fchdir: Remove unused dependencies.
9368         * modules/fchdir (Depends-on): Remove include_next.
9369
9370 2011-05-02  Bruno Haible  <bruno@clisp.org>
9371
9372         gnulib-tool: Refactor.
9373         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
9374         from func_emit_autoconf_snippets.
9375         (func_emit_autoconf_snippets): Use it.
9376
9377 2011-05-02  Simon Josefsson  <simon@josefsson.org>
9378
9379         * NEWS: Document removal of 'exit'.
9380         * modules/exit: Remove file.
9381
9382 2011-05-01  Bruno Haible  <bruno@clisp.org>
9383
9384         Update DEPENDENCIES.
9385         * DEPENDENCIES (gettext): Recommend the newest release.
9386         Reported by Simon Josefsson.
9387
9388 2011-05-01  Bruno Haible  <bruno@clisp.org>
9389
9390         gnulib-tool: Reduce code duplication.
9391         * gnulib-tool (func_emit_autoconf_snippets): New function.
9392         (func_import, func_create_testdir): Use it.
9393
9394 2011-04-30  Eric Blake  <eblake@redhat.com>
9395
9396         fclose: don't fail on non-seekable input stream
9397         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
9398         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
9399         since fflush is allowed to fail in that case.
9400
9401 2011-04-30  Bruno Haible  <bruno@clisp.org>
9402
9403         dup3: cleanup
9404         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
9405
9406 2011-04-30  Bruno Haible  <bruno@clisp.org>
9407
9408         netdb: Make it work in C++ mode.
9409         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
9410         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
9411         module.
9412         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
9413         gl_MODULE_INDICATOR_FOR_TESTS.
9414         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
9415         * modules/netdb-c++-tests: New file.
9416         * tests/test-netdb-c++.cc: New file.
9417
9418 2011-04-30  Bruno Haible  <bruno@clisp.org>
9419
9420         New modules 'vfscanf', 'vscanf'.
9421         * modules/vfscanf: New file.
9422         * modules/vscanf: New file.
9423         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
9424         here.
9425         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
9426         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
9427
9428 2011-04-30  Bruno Haible  <bruno@clisp.org>
9429
9430         passfd: Add comments.
9431         * lib/passfd.c: Add comments about platforms.
9432
9433 2011-04-30  Bruno Haible  <bruno@clisp.org>
9434
9435         sys_uio: Make <sys/uio.h> self-contained.
9436         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
9437         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
9438
9439 2011-04-30  Bruno Haible  <bruno@clisp.org>
9440
9441         sys_socket: Ensure 'struct iovec' definition.
9442         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
9443         <sys/socket.h>.
9444         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
9445
9446 2011-04-30  Bruno Haible  <bruno@clisp.org>
9447
9448         sys_uio: Protect definition of 'struct iovec'.
9449         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
9450         it as a C struct.
9451
9452 2011-04-30  Bruno Haible  <bruno@clisp.org>
9453
9454         manywarnings: fix indentation
9455         * m4/manywarnings.m4: Indent by 2 spaces consistently.
9456
9457 2011-04-30  Pádraig Brady <P@draigBrady.com>
9458
9459         manywarnings: add -Wno-missing-field-initializers if needed.
9460         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
9461         option if it's needed to allow initialization with { 0, }
9462
9463 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
9464
9465         announce-gen: cosmetic improvement
9466         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
9467
9468 2011-04-29  Jim Meyering  <meyering@redhat.com>
9469
9470         vc-list-files: indent with spaces, not TABs
9471         * build-aux/vc-list-files: Convert leading TABs to spaces,
9472         to match the style of most other files in gnulib.
9473
9474         announce-gen: indent with spaces, not TABs
9475         * build-aux/announce-gen: Convert all TABs to spaces, to match
9476         the style of most other files in gnulib.
9477
9478 2011-04-29  Eric Blake  <eblake@redhat.com>
9479
9480         quotearg: avoid uninitialized variable use
9481         * lib/quotearg.c (quoting_options_from_style): Initialize
9482         remaining fields, and ensure that custom styles are only used via
9483         quoting_options rather than quoting_style.
9484
9485 2011-04-29  Jim Meyering  <meyering@redhat.com>
9486
9487         maint.mk: remove unused VC-tag variable
9488         * top/maint.mk (VC-tag): Remove unused variable.
9489
9490 2011-04-29  Bruno Haible  <bruno@clisp.org>
9491
9492         netdb: fix gai_strerror replacements
9493         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
9494         * modules/netdb: Substitute it.
9495
9496 2011-04-29  Jim Meyering  <meyering@redhat.com>
9497
9498         test-getcwd.c: avoid new set-but-not-used warning
9499         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
9500         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
9501         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
9502         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
9503
9504         test-hash.c: avoid a new shadowing warning
9505         * tests/test-hash.c (main): Don't shadow "dup".
9506
9507 2011-04-28  Eric Blake  <eblake@redhat.com>
9508
9509         getaddrinfo: fix gai_strerror signature
9510         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
9511         and work around mingw with UNICODE defined.
9512         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
9513         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
9514         * modules/netdb (Makefile.am): Substitute it.
9515         * lib/netdb.in.h (gai_strerror): Declare replacement.
9516         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
9517         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
9518         the fix.
9519
9520         getsockopt: avoid compiler warning
9521         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
9522         Reported by Matthias Bolte.
9523
9524         tests: drop unused link dependency
9525         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
9526         * modules/dirent-safer-tests (Makefile.am): Likewise.
9527         * modules/fdopendir-tests (Makefile.am): Likewise.
9528         * modules/mkfifoat-tests (Makefile.am): Likewise.
9529         * modules/openat-safer-tests (Makefile.am): Likewise.
9530         * modules/openat-tests (Makefile.am): Likewise.
9531         * modules/readlinkat-tests (Makefile.am): Likewise.
9532         * modules/symlinkat-tests (Makefile.am): Likewise.
9533         * modules/linkat-tests (Makefile.am): Likewise.
9534         (Depends-on): Switch to filenamecat-lgpl.
9535         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
9536         LIBINTL.
9537         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
9538         * tests/test-linkat.c (main): Don't require xalloc.
9539
9540         hash, mgetgroups: drop xalloc dependency
9541         * lib/hash.c (includes): Adjust includes.
9542         * lib/mgetgroups.c (includes): Likewise.
9543         (xgetgroups): Move...
9544         * lib/xgetgroups.c: ...to new file.
9545         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
9546         * modules/xgetgroups: New file, split from...
9547         * modules/mgetgroups: ...here.
9548         (Depends-on): Add xalloc-oversized.
9549         * modules/hash (Depends-on): Likewise.
9550         * modules/hash-tests (Depends-on): Drop xalloc.
9551         (test_hash_LDADD): Drop unused library.
9552         * tests/test-hash.c (main): Break xalloc dependency.
9553         (includes): Drop unused include.
9554
9555         xalloc-oversized: new module
9556         * modules/xalloc-oversized: New module.
9557         * modules/xalloc (Depends-on): Add it.
9558         * lib/xalloc.h (xalloc_oversized): Move...
9559         * lib/xalloc-oversized.h: ...into new file.
9560
9561         utimecmp: drop dependency on xmalloc
9562         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
9563         due to memory pressure.
9564         * modules/utimecmp (Depends-on): Drop xalloc.
9565
9566 2011-04-27  Eric Blake  <eblake@redhat.com>
9567
9568         getcwd: fix mingw bugs
9569         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
9570         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
9571         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
9572
9573 2011-04-27  Bruno Haible  <bruno@clisp.org>
9574
9575         mkstemps: Ensure declaration on MacOS X 10.5.
9576         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
9577         * doc/glibc-functions/mkstemps.texi: Document header file problem on
9578         MacOS X.
9579
9580 2011-04-27  Bruno Haible  <bruno@clisp.org>
9581
9582         mkstemp: More documentation.
9583         * doc/posix-functions/mkstemp.texi: Document header file problem on
9584         MacOS X.
9585
9586 2011-04-27  Bruno Haible  <bruno@clisp.org>
9587
9588         mkstemp: Tweak configure message when cross-compiling.
9589         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
9590         result as a guess.
9591
9592 2011-04-27  Bruno Haible  <bruno@clisp.org>
9593
9594         clean-temp: Clarify what it does.
9595         * lib/clean-temp.h: Add more comments.
9596         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
9597         module.
9598         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
9599         * doc/glibc-functions/mkstemps.texi: Likewise.
9600         * doc/glibc-functions/mkostemps.texi: Likewise.
9601
9602 2011-04-27  Eric Blake  <eblake@redhat.com>
9603
9604         fchdir: avoid extra chdir and fix test
9605         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
9606         getcwd-lgpl.
9607         * lib/fchdir.c (get_name): Any absolute name will do; it does not
9608         have to be canonical.
9609         (canonicalize_file_name): Drop unused macro.
9610         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
9611
9612         filenamecat-lgpl: fix licence
9613         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
9614         when it was first created.
9615
9616         linkat, renameat: add missing dependency
9617         * modules/linkat (Depends-on): Require getcwd-lgpl.
9618         * modules/renameat (Depends-on): Likewise.
9619
9620         tests: reduce dependencies
9621         * tests/test-linkat.c (main): Use lighter-weight getcwd.
9622         * tests/test-renameat.c (main): Likewise.
9623         * modules/linkat-tests (Depends-on): Relax dependency.
9624         * modules/renameat-tests (Depends-on): Likewise.
9625         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
9626         dependency explicit.
9627
9628         save-cwd: reduce default dependency
9629         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
9630         * lib/save-cwd.c: Update comments.
9631         * NEWS: Document the semantic change.
9632
9633         getcwd: enhance tests
9634         * tests/test-getcwd-lgpl.c: New file, taken from...
9635         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
9636         repeat long path stress tests from m4 probe.
9637         * modules/getcwd-lgpl-tests: New module.
9638         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
9639         * m4/getcwd-abort-bug.m4: Update comment.
9640         * m4/getcwd-path-max.m4: Likewise.
9641
9642         getcwd-lgpl: new module
9643         * modules/getcwd-lgpl: New module.
9644         * lib/getcwd-lgpl.c: New file.
9645         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9646         * MODULES.html.sh (lacking POSIX:2008): Likewise.
9647         * modules/getcwd (configure.ac): Set C witness.
9648         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
9649
9650         getcwd: tweak comments
9651         * m4/getcwd-abort-bug.m4: Fix comments.
9652         * m4/getcwd-path-max.m4: Likewise.
9653         * m4/getcwd.m4: Likewise.
9654
9655 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
9656         and Eric Blake  <eblake@redhat.com>
9657
9658         mkstemp: replace if system version uses wrong permissions
9659         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
9660         read/write mode bits set in file created by mkstemp.
9661         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
9662
9663 2011-04-27  Eric Blake  <eblake@redhat.com>
9664
9665         passfd: avoid compiler warning
9666         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
9667         Reported by Laine Stump.
9668
9669 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
9670
9671         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
9672         required by the NetBSD (and perhaps other 4.4BSD derived) join.
9673
9674 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
9675         and Eric Blake  <eblake@redhat.com>
9676
9677         mkstemp: mention clean-temp module
9678         * lib/mkstemp.c: Add comment.
9679         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
9680
9681 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
9682
9683         inttypes: also provide default values for 32-bit tests
9684         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
9685         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
9686
9687 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
9688
9689         strtoumax: remove dependency on strtoimax
9690         This is like the strtoull change of yesterday.
9691         * modules/strtoumax (Files): Add lib/strtoimax.c.
9692         (Depends-on): Remove strtoimax and add verify.
9693
9694         inttypes-incomplete: new module
9695         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
9696         all but the PRI* and SCN* parts of gl_INTTYPES_H.
9697         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
9698         of gl_INTTYPES_H.
9699         (gl_INTTYPES_H): Rewrite in terms of these new macros.
9700         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
9701         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
9702         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
9703         * modules/strtoumax, modules/xstrtol (Depends-on):
9704         Depend on inttypes-incomplete, not inttypes.
9705         * modules/inttypes-incomplete: New module, containing the contents
9706         of the old modules/inttypes module, except that the Files: section
9707         omits m4/inttypes-pri.m4, and the configure.ac section invokes
9708         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
9709         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
9710         (Depends-on): Depend only on inttypes-incomplete.
9711         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
9712
9713         inttypes: omit now-redundant strtoimax and strtoumax work
9714         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
9715         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
9716
9717         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
9718         This supports apps that need pointers to strtoimax and strtoumax,
9719         and ports to HP-UX 11.00 64.bit, which has macros that expand to
9720         nonexistent functions.  See
9721         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
9722         et seq.
9723         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
9724         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
9725         a macro.
9726         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9727
9728 2011-04-25  Simon Josefsson  <simon@josefsson.org>
9729
9730         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
9731
9732 2011-04-25  Bruno Haible  <bruno@clisp.org>
9733
9734         strtol, strtoul: Mark modules as obsolete.
9735         * modules/strtol (Status, Notice): New sections.
9736         * modules/strtoul (Status, Notice): New sections.
9737
9738 2011-04-25  Bruno Haible  <bruno@clisp.org>
9739
9740         strtod: Remove check for strtod, unless supporting old platforms.
9741         * modules/strtod-obsolete: New file.
9742         * m4/strtod-obsolete.m4: New file.
9743         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
9744         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
9745         * modules/strtod (Depends-on): Add strtod-obsolete.
9746         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
9747
9748 2011-04-25  Bruno Haible  <bruno@clisp.org>
9749
9750         strcase: Make module obsolete.
9751         * modules/strcase (Status, Notice): New sections.
9752
9753 2011-04-25  Bruno Haible  <bruno@clisp.org>
9754
9755         dup2: Remove check for dup2, unless supporting old obsolete platforms.
9756         * modules/dup2-obsolete: New file.
9757         * m4/dup2-obsolete.m4: New file.
9758         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
9759         gl_FUNC_DUP2_OBSOLETE is not also defined.
9760         * modules/dup2 (Depends-on): Add dup2-obsolete.
9761         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
9762
9763 2011-04-25  Bruno Haible  <bruno@clisp.org>
9764
9765         strnlen: Avoid memchr related link error on old obsolete platforms.
9766         * modules/memchr-obsolete: New file.
9767         * m4/memchr-obsolete.m4: New file.
9768         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
9769         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
9770         * modules/memchr (Depends-on): Add memchr-obsolete.
9771         * modules/strnlen (Depends-on): Likewise.
9772         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
9773
9774 2011-04-25  Jim Meyering  <meyering@redhat.com>
9775
9776         maint.mk: makefile_at_at_check extend and clean up
9777         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
9778         in addition to */Makefile.am.
9779         Exempt legitimate uses of @VAR@ notation, e.g.,
9780         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
9781         Remove obsolete coreutils-specific comment.
9782         Prompted by discussion here:
9783         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
9784
9785 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
9786
9787         strtoul: remove dependency on strtol
9788         This is so that 'configure' need not check for strtol merely because
9789         the application needs strtoul.
9790         * modules/strtoul (Files): Add lib/strtol.c.
9791         (Depends-on): Remove strtol.
9792
9793         strtoull: remove dependency on strtoul
9794         This is like the strtoll change.
9795         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
9796         (Depends-on): Remove strtoul.
9797
9798         strtoll: remove dependency on strtol
9799         This is so that 'configure' need not check for strtol merely because
9800         the application needs strtoll.
9801         * modules/strtoll (Files): Add lib/strtol.c.
9802         (Depends-on): Remove strtol.
9803
9804 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9805
9806         inttypes: Move some configure check to module 'imaxdiv'.
9807         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
9808         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
9809         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
9810
9811 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9812
9813         inttypes: Move some configure check to module 'imaxabs'.
9814         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
9815         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
9816         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
9817
9818 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9819
9820         inttypes: Remove configure tests that are not needed since 2009-12-31.
9821         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
9822         gl_cv_header_working_inttypes_h.
9823
9824 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9825
9826         * modules/strnlen (Depends-on): Remove memchr.
9827         The strnlen implementation doesn't need the memchr module's fixes; see
9828         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
9829
9830         strtol: remove dependency on wchar
9831         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
9832         * modules/strtol (Depends-on): Remove wchar.
9833
9834 2011-04-21  Eric Blake  <eblake@redhat.com>
9835
9836         passfd: fix test regression on Linux
9837         * modules/passfd-tests (configure.ac): Correct socketpair check.
9838
9839         passfd: speed up configure and drop unused code
9840         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
9841         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
9842         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
9843         Instead of probing at configure for unix_scm_rights_bsd44_way,
9844         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
9845         check to a struct member probe.
9846         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
9847         (sendfd, recvfd): Update preprocessor checks.
9848         * modules/passfd (Files): Reflect rename, and drop unused file.
9849         (Depends-on): Drop unused dependency.
9850
9851         passfd: allow compilation on mingw
9852         * modules/sys_socket (Depends-on): Add sys_uio.
9853         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
9854         iovec and a minimal struct msghdr.
9855         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
9856         * tests/test-sys_socket.c (main): Enhance test.
9857         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
9858         guaranteed to provide what we need.
9859         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
9860         * modules/passfd-tests (Depends-on): Add sys_wait.
9861         * tests/test-passfd.c (main): Skip test on mingw, for now.
9862         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
9863         partial 'struct msghdr' implementation.
9864
9865         sys_uio: new module
9866         * modules/sys_uio: New module.
9867         * modules/sys_uio-tests: Likewise.
9868         * lib/sys_uio.in.h: New file.
9869         * m4/sys_uio_h.m4: Likewise.
9870         * tests/test-sys_uio.c: Likewise.
9871         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
9872         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
9873
9874 2011-04-20  Jim Meyering  <meyering@redhat.com>
9875
9876         useless-if-before-free: avoid false-positive
9877         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
9878         disjunct so that it too requires a terminating ";".  Without that,
9879         this script would identify as useless one statement from gcc that
9880         was not:
9881           if (aligned_ptr)
9882             free (((void **) aligned_ptr) [-1]);
9883
9884 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
9885
9886         doc: update users.txt.
9887         * users.txt: Add barcode.
9888
9889 2011-04-19  Bruno Haible  <bruno@clisp.org>
9890
9891         ioctl: Remove link dependency on native Windows.
9892         * lib/fd-hook.h: Renamed from lib/close-hook.h.
9893         (gl_close_fn, gl_ioctl_fn): New types.
9894         (struct fd_hook): Renamed from struct close_hook. Change type of
9895         private_close_fn field. Add private_ioctl_fn field.
9896         (close_hook_fn): Add parameter for primary close method.
9897         (execute_close_hooks, execute_all_close_hooks): Likewise.
9898         (ioctl_hook_fn): New type.
9899         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
9900         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
9901         argument.
9902         (unregister_fd_hook): Renamed from unregister_close_hook.
9903         * lib/fd-hook.c: Renamed from lib/close-hook.c.
9904         Don't include <unistd.h>.
9905         (close): Remove undef.
9906         (anchor): Update.
9907         (execute_close_hooks): Add argument for primary close method.
9908         (execute_all_close_hooks): Likewise.
9909         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
9910         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
9911         argument. Allow each argument to be NULL.
9912         (unregister_fd_hook): Renamed from unregister_close_hook.
9913         * lib/close.c (rpl_close): Pass 'close' function pointer to
9914         execute_all_close_hooks.
9915         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
9916         (primary_ioctl): New function.
9917         (ioctl): Don't call ioctlsocket here. Instead, call
9918         execute_all_ioctl_hooks.
9919         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
9920         close method.
9921         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
9922         (fd_sockets_hook): Renamed from close_sockets_hook.
9923         (gl_sockets_startup, gl_sockets_cleanup): Update.
9924         * modules/fd-hook: Renamed from modules/close-hook. Update.
9925         * modules/close (Depends-on): Add fd-hook, remove close-hook.
9926         * modules/sockets (Depends-on): Likewise.
9927         * modules/ioctl (Depends-on): Add fd-hook.
9928         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
9929         GNULIB_SOCKET.
9930
9931 2011-04-19  Bruno Haible  <bruno@clisp.org>
9932
9933         Move the support of O_NONBLOCK in open() to the 'open' module.
9934         * modules/nonblocking (Depends-on): Remove 'open'.
9935         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
9936         gl_cv_have_open_O_NONBLOCK.
9937         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
9938         O_NONBLOCK support.
9939         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
9940
9941 2011-04-17  Bruno Haible  <bruno@clisp.org>
9942
9943         pipe2: Simplify code.
9944         * lib/pipe2.c (pipe2): Reduce code duplication.
9945
9946 2011-04-17  Bruno Haible  <bruno@clisp.org>
9947
9948         nonblocking: Add comment.
9949         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
9950
9951 2011-04-17  Bruno Haible  <bruno@clisp.org>
9952
9953         nonblocking: Add tests for sockets.
9954         * tests/test-nonblocking-socket.sh: New file.
9955         * tests/test-nonblocking-socket-main.c: New file.
9956         * tests/test-nonblocking-socket-child.c: New file.
9957         * tests/test-nonblocking-socket.h: New file.
9958         * tests/socket-server.h: New file.
9959         * tests/socket-client.h: New file.
9960         * modules/nonblocking-socket-tests: New file.
9961         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
9962
9963 2011-04-17  Bruno Haible  <bruno@clisp.org>
9964
9965         nonblocking: Add tests for pipes.
9966         * tests/test-nonblocking-pipe.sh: New file.
9967         * tests/test-nonblocking-pipe-main.c: New file.
9968         * tests/test-nonblocking-pipe-child.c: New file.
9969         * tests/test-nonblocking-pipe.h: New file.
9970         * tests/test-nonblocking-writer.h: New file.
9971         * tests/test-nonblocking-reader.h: New file.
9972         * tests/test-nonblocking-misc.h: New file.
9973         * modules/nonblocking-pipe-tests: New file.
9974         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
9975
9976 2011-04-16  Bruno Haible  <bruno@clisp.org>
9977
9978         gettext: Clarify the needed programmer actions.
9979         * modules/gettext (Notice): New field.
9980         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
9981
9982 2011-04-16  Bruno Haible  <bruno@clisp.org>
9983
9984         strchrnul: Tweak last commit.
9985         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
9986         bug.
9987         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
9988         as in _GL_FUNCDECL_SYS.
9989         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
9990         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
9991
9992 2011-04-15  Eric Blake  <eblake@redhat.com>
9993
9994         strchrnul: work around cygwin bug
9995         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
9996         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
9997         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
9998         * modules/string (Makefile.am): Substitute it.
9999         * lib/string.in.h (strchrnul): Use it.
10000
10001 2011-04-15  Bruno Haible  <bruno@clisp.org>
10002
10003         Don't require lib/stdio-write.c when only module 'stdio' is used.
10004         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
10005         invocation.
10006         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
10007
10008 2011-04-14  Bruno Haible  <bruno@clisp.org>
10009
10010         Support non-blocking pipe I/O in read() on native Windows.
10011         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
10012         (read): New declaration.
10013         * lib/read.c: New file.
10014         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
10015         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
10016         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
10017         vscanf): New declarations.
10018         * lib/stdio-read.c: New file.
10019         * m4/read.m4: New file.
10020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
10021         REPLACE_READ.
10022         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
10023         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10024         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
10025         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
10026         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
10027         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10028         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10029         * modules/read: New file.
10030         * modules/nonblocking (Files): Add lib/stdio-read.c.
10031         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
10032         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
10033         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10034         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10035         * modules/pread (Depends-on): Add read.
10036         * modules/safe-read (Depends-on): Likewise.
10037         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
10038         gets, scanf, vfscanf, vscanf): Verify signatures.
10039         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
10040         problem with non-blocking pipes.
10041         * doc/posix-functions/fgetc.texi: Likewise.
10042         * doc/posix-functions/fgets.texi: Likewise.
10043         * doc/posix-functions/fread.texi: Likewise.
10044         * doc/posix-functions/fscanf.texi: Likewise.
10045         * doc/posix-functions/getc.texi: Likewise.
10046         * doc/posix-functions/getchar.texi: Likewise.
10047         * doc/posix-functions/gets.texi: Likewise.
10048         * doc/posix-functions/scanf.texi: Likewise.
10049         * doc/posix-functions/vfscanf.texi: Likewise.
10050         * doc/posix-functions/vscanf.texi: Likewise.
10051
10052 2011-04-14  Bruno Haible  <bruno@clisp.org>
10053
10054         Support non-blocking pipe I/O in write() on native Windows.
10055         * lib/write.c (rpl_write): Split a write request that failed merely
10056         because the byte count was larger than the pipe buffer's size.
10057         * doc/posix-functions/write.texi: Mention the problem with large byte
10058         counts.
10059
10060 2011-04-14  Bruno Haible  <bruno@clisp.org>
10061
10062         wchar: Ensure that wchar_t gets defined on uClibc.
10063         * lib/wchar.in.h: On uClibc, include <stddef.h>.
10064         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
10065
10066 2011-04-13  Bruno Haible  <bruno@clisp.org>
10067
10068         safe-write, full-read: Avoid unnecessary compilation units.
10069         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
10070         (Depends-on): Remove safe-read. Add ssize_t.
10071         * modules/full-read (Files): Add lib/full-write.c.
10072         (Depends-on): Add full-write.
10073
10074 2011-04-13  Bruno Haible  <bruno@clisp.org>
10075
10076         Support non-blocking pipe I/O and SIGPIPE in pwrite().
10077         * modules/pwrite (Depends-on): Add 'write'.
10078
10079 2011-04-13  Bruno Haible  <bruno@clisp.org>
10080
10081         Support non-blocking pipe I/O in write() on native Windows.
10082         * lib/unistd.in.h (write): Enable replacement also if
10083         GNULIB_UNISTD_H_NONBLOCKING is 1.
10084         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
10085         (rpl_write): When failing to write on a non-blocking pipe, change
10086         errno from ENOSPC to EAGAIN.
10087         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
10088         putchar, puts, vfprintf, vprintf): Enable replacement also if
10089         GNULIB_STDIO_H_NONBLOCKING is 1.
10090         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
10091         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
10092         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
10093         CALL_WITH_SIGPIPE_EMULATION.
10094         (CALL_WITH_SIGPIPE_EMULATION): Use them.
10095         * m4/nonblocking.m4: New file.
10096         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
10097         for non-blocking I/O support.
10098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10099         GNULIB_UNISTD_H_NONBLOCKING.
10100         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
10101         required for non-blocking I/O support.
10102         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
10103         * modules/nonblocking (Files): Add m4/nonblocking.m4,
10104         lib/stdio-write.c, m4/asm-underscore.m4.
10105         (Depends-on): Add stdio, unistd.
10106         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
10107         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
10108         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
10109         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
10110         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
10111         problem with non-blocking pipes.
10112         * doc/posix-functions/fputc.texi: Likewise.
10113         * doc/posix-functions/fputs.texi: Likewise.
10114         * doc/posix-functions/fwrite.texi: Likewise.
10115         * doc/posix-functions/printf.texi: Likewise.
10116         * doc/posix-functions/putc.texi: Likewise.
10117         * doc/posix-functions/putchar.texi: Likewise.
10118         * doc/posix-functions/puts.texi: Likewise.
10119         * doc/posix-functions/vfprintf.texi: Likewise.
10120         * doc/posix-functions/vprintf.texi: Likewise.
10121         * doc/posix-functions/write.texi: Likewise.
10122
10123 2011-04-10  Jim Meyering  <meyering@redhat.com>
10124
10125         maint.mk: prohibit doubled words
10126         Detect them also when they're separated by a newline.
10127         There are 3 ways to customize it:
10128           - disable the test on a per file basis, as usual with rules using
10129             $(VC_LIST_EXCEPT)
10130           - replace the default doubled-word-selecting regexp (affects all files)
10131           - ignore a particular file-vs-doubled-word match
10132         I nearly used that last one to ignore the "is is" match in
10133         coreutils' NEWS file, since the text was "ls -is is ..."
10134         To do that, I would have added this line to cfg.mk:
10135           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
10136         but it would have ignored any "is is" match in NEWS.
10137         Low probability, but still...
10138         Instead, I changed the text, slightly:
10139           -  ls -is is now consistent with ls -lis in ignoring values returned
10140           +  "ls -is" is now consistent with ls -lis in ignoring values returned
10141         * top/maint.mk (prohibit_double_word_RE_): Provide default.
10142         (prohibit_doubled_word_): Define.
10143         (sc_prohibit_doubled_word): New rule.
10144         (sc_prohibit_the_the): Remove.  Subsumed by the above.
10145
10146 2011-04-10  Jim Meyering  <meyering@redhat.com>
10147
10148         maint: fix doubled-word typo in comment
10149         * m4/gethostname.m4: s/is is/it is/
10150         * m4/getdomainname.m4: Likewise.
10151
10152 2011-04-10  Jim Meyering  <meyering@redhat.com>
10153
10154         maint: remove doubled word: s/it it/it/
10155         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
10156
10157 2011-04-10  Jim Meyering  <meyering@redhat.com>
10158
10159         maint.mk: remove useless semicolon and backslash
10160         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
10161         semicolon and backslash.
10162
10163 2011-04-10  Bruno Haible  <bruno@clisp.org>
10164
10165         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
10166         * modules/stdint-tests (Depends-on): Add wchar.
10167
10168 2011-04-10  Jim Meyering  <meyering@redhat.com>
10169
10170         maint: remove doubled words in comments, e.g., s/a a/a/
10171         * lib/strptime.c (day_of_the_week): s/the the/the/
10172         * tests/test-chown.h (test_chown): s/a a/a/
10173
10174         test-chown.h: correct a cast
10175         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
10176         when the destination is a stat.st_gid.
10177
10178 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
10179
10180         getaddrinfo: Fix test for sa_len member.
10181         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
10182         include <sys/types.h> before <sys/socket.h>.
10183
10184 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
10185
10186         maint: change "can not" to "cannot"
10187         * doc/posix-functions/iconv.texi (iconv): This one crossed line
10188         boundaries.
10189
10190 2011-04-09  Jim Meyering  <meyering@redhat.com>
10191
10192         maint: change "a a" to "a"
10193         * tests/test-lchown.h (test_lchown): s/a a/a/
10194
10195         maint.mk: prohibit \<the the\>
10196         * top/maint.mk (sc_prohibit_the_the): New rule.
10197
10198         maint: fix "the the" in comment
10199         * lib/count-one-bits.h: s/the the/the/
10200
10201         maint: change "can not" to "cannot"
10202         But do not change the occurrences in maintain.texi or in
10203         build-aux/po/Makefile.in.in, which I presume comes from gettext.
10204         * doc/gnulib-tool.texi: s/can not/cannot/
10205         * doc/posix-functions/accept.texi (accept): Likewise.
10206         * doc/posix-functions/socket.texi (socket): Likewise.
10207         * lib/mbrtowc.c: Likewise.
10208
10209         maint.mk: prohibit use of "can not"
10210         * top/maint.mk (sc_prohibit_can_not): New rule.
10211         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
10212
10213 2011-04-09  Bruno Haible  <bruno@clisp.org>
10214
10215         careadlinkat: Guard against misuse of careadlinkatcwd.
10216         * lib/careadlinkat.c: Include <stdlib.h>.
10217         (careadlinkatcwd): Check that the fd argument is as expected.
10218
10219 2011-04-09  Bruno Haible  <bruno@clisp.org>
10220
10221         careadlinkat: Use common coding style.
10222         * lib/careadlinkat.c: Move gnulib includes after system includes.
10223
10224 2011-04-09  Bruno Haible  <bruno@clisp.org>
10225
10226         careadlinkat: Clarify specification.
10227         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
10228         (careadlinkatcwd): Add comment.
10229         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
10230
10231 2011-04-09  Bruno Haible  <bruno@clisp.org>
10232
10233         areadlinkat: Avoid link error on many platforms.
10234         * modules/areadlinkat (Depends-on): Add areadlink.
10235
10236 2011-04-09  Bruno Haible  <bruno@clisp.org>
10237
10238         allocator, careadlinkat: Fix double-inclusion guard.
10239         * lib/allocator.h: Fix double-inclusion guard.
10240         * lib/careadlinkat.h: Likewise.
10241
10242 2011-04-09  Bruno Haible  <bruno@clisp.org>
10243
10244         relocatable-prog-wrapper: Update after module 'areadlink' changed.
10245         * lib/relocwrapper.c: Update dependencies hierarchy.
10246         * build-aux/install-reloc: Update list of files to be compiled.
10247         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
10248         lib/allocator.[hc].
10249
10250 2011-04-08  Eric Blake  <eblake@redhat.com>
10251
10252         strftime: silence gnulib-tool warning
10253         * modules/strftime-tests (Depends-on): Drop automatic dependency.
10254
10255 2011-04-08  Bruno Haible  <bruno@clisp.org>
10256
10257         verify: Fix syntax error with GCC 4.6 in C++ mode.
10258         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
10259         (HAVE_STATIC_ASSERT): New macro.
10260         (verify_true, verify): Use 'static_assert' if it is supported and
10261         '_Static_assert' is not supported.
10262
10263 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
10264
10265         allocator: New module.
10266         * modules/allocator, lib/allocator.c: New files.
10267         * lib/allocator.h (stdlib_allocator): New decl.
10268         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
10269         Remove.  Do not include <stdlib.h>.
10270         (careadlinkat): Use stdlib_allocator instead of rolling our own.
10271         * modules/careadlinkat (Files): Remove lib/allocator.h.
10272         (Depends-on): Add allocator.
10273
10274         stdlib: let modules use system malloc, realloc
10275         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
10276         if !_GL_USE_STDLIB_ALLOC.
10277         (malloc, realloc): Limit this change to a smaller scope.
10278
10279         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
10280         (malloc, realloc): Don't #undef; no longer needed.
10281         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10282         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10283         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
10284         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10285         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10286         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10287         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10288         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
10289
10290         careadlinkat: rename members to avoid problem
10291         * lib/allocator.h (struct allocator): Rename members from
10292         malloc/realloc to allocate/reallocate, to avoid problems if malloc
10293         and realloc are #define'd.  Reported by Eric Blake in
10294         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
10295         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
10296
10297 2011-04-08  Eric Blake  <eblake@redhat.com>
10298
10299         nonblocking: reduce dependency
10300         * tests/test-nonblocking.c: Only test sockets when in use.
10301         * modules/nonblocking-tests (Depends-on): Drop socket.
10302         (Makefile.am): Link even if sockets are not present.
10303         * modules/pipe2-tests (Makefile.am): Likewise.
10304         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
10305
10306         pipe2: fix O_NONBLOCK support on mingw
10307         * modules/pipe2 (Depends-on): Add nonblocking.
10308         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
10309         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
10310         * tests/test-nonblocking.c (main): Likewise.
10311         * modules/pipe2-tests (Makefile.am): Avoid link failure.
10312
10313         fcntl-h: fix O_ACCMODE on cygwin
10314         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
10315         * lib/fcntl.in.h (O_ACCMODE): Fix it.
10316
10317         pipe-filter: drop O_NONBLOCK workarounds
10318         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
10319         * modules/pipe-filter-ii (Depends-on): Likewise.
10320         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
10321
10322         nonblocking: provide O_NONBLOCK for mingw
10323         * modules/nonblocking (Depends-on): Add open.
10324         (configure.ac): Set new witness macro.
10325         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
10326         * modules/fcntl-h (Makefile.am): Substitute it.
10327         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
10328         nonblocking module is in use.
10329         * lib/nonblocking.c: Adjust portability test.
10330         * lib/open.c (open): Don't let native open see gnulib flag.
10331         * tests/test-fcntl-h.c (main): Enhance test.
10332         * tests/test-open.h (test_open): Likewise.
10333         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
10334
10335         careadlinkat: fix compilation error on mingw
10336         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
10337         within struct allocator.
10338
10339 2011-04-06  Eric Blake  <eblake@redhat.com>
10340
10341         binary-io: relicense under LGPLv2+
10342         * modules/binary-io (License): Relax to LGPLv2+.
10343         Requested for libvirt, and required by pipe2.
10344
10345 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
10346
10347         verify: use _Static_assert if available
10348         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
10349         (verify_true, verify): Use it if available.  This generates better
10350         diagnostics with GCC 4.6.0 and later.
10351
10352 2011-04-05  Bruno Haible  <bruno@clisp.org>
10353
10354         Remove leftover generated .h files after config.status changed.
10355
10356         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
10357         GL_GENERATE_ALLOCA_H.
10358         * modules/alloca-opt (Makefile.am): Remove alloca.h if
10359         GL_GENERATE_ALLOCA_H evaluates to false.
10360
10361         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
10362         GL_GENERATE_ARGZ_H.
10363         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
10364         evaluates to false.
10365
10366         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
10367         GL_GENERATE_BYTESWAP_H.
10368         * modules/byteswap (Makefile.am): Remove byteswap.h if
10369         GL_GENERATE_BYTESWAP_H evaluates to false.
10370
10371         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
10372         GL_GENERATE_ERRNO_H.
10373         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
10374         evaluates to false.
10375
10376         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
10377         GL_GENERATE_FLOAT_H.
10378         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
10379         evaluates to false.
10380
10381         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
10382         GL_GENERATE_FNMATCH_H.
10383         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
10384         GL_GENERATE_FNMATCH_H evaluates to false.
10385
10386         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
10387         GL_GENERATE_GLOB_H.
10388         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
10389         evaluates to false.
10390
10391         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
10392         automake conditional GL_GENERATE_ICONV_H.
10393         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
10394         evaluates to false.
10395
10396         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
10397         GL_GENERATE_NETINET_IN_H.
10398         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
10399         GL_GENERATE_NETINET_IN_H evaluates to false.
10400
10401         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
10402         conditional GL_GENERATE_PTHREAD_H.
10403         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
10404         * modules/pthread (Makefile.am): Remove pthread.h if
10405         GL_GENERATE_PTHREAD_H evaluates to false.
10406
10407         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
10408         GL_GENERATE_SCHED_H.
10409         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
10410         evaluates to false.
10411
10412         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
10413         conditional GL_GENERATE_SELINUX_CONTEXT_H.
10414         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
10415         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
10416
10417         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
10418         GL_GENERATE_STDARG_H.
10419         * modules/stdarg (Makefile.am): Remove stdarg.h if
10420         GL_GENERATE_STDARG_H evaluates to false.
10421
10422         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
10423         GL_GENERATE_STDBOOL_H.
10424         * modules/stdbool (Makefile.am): Remove stdbool.h if
10425         GL_GENERATE_STDBOOL_H evaluates to false.
10426
10427         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
10428         conditional GL_GENERATE_STDDEF_H.
10429         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
10430         * modules/stddef (Makefile.am): Remove stddef.h if
10431         GL_GENERATE_STDDEF_H evaluates to false.
10432
10433         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
10434         GL_GENERATE_STDINT_H.
10435         * modules/stdint (Makefile.am): Remove stdint.h if
10436         GL_GENERATE_STDINT_H evaluates to false.
10437
10438         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
10439         GL_GENERATE_SYSEXITS_H.
10440         * modules/sysexits (Makefile.am): Remove sysexits.h if
10441         GL_GENERATE_SYSEXITS_H evaluates to false.
10442
10443         Reported by Karl Berry and Ralf Wildenhues.
10444
10445 2011-04-05  Bruno Haible  <bruno@clisp.org>
10446
10447         Ensure to rebuild generated .h files when config.status has changed.
10448         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
10449         config.status.
10450         * modules/ctype (Makefile.am): Likewise.
10451         * modules/dirent (Makefile.am): Likewise.
10452         * modules/errno (Makefile.am): Likewise.
10453         * modules/fcntl-h (Makefile.am): Likewise.
10454         * modules/float (Makefile.am): Likewise.
10455         * modules/getopt-posix (Makefile.am): Likewise.
10456         * modules/glob (Makefile.am): Likewise.
10457         * modules/iconv-h (Makefile.am): Likewise.
10458         * modules/inttypes (Makefile.am): Likewise.
10459         * modules/langinfo (Makefile.am): Likewise.
10460         * modules/locale (Makefile.am): Likewise.
10461         * modules/math (Makefile.am): Likewise.
10462         * modules/netdb (Makefile.am): Likewise.
10463         * modules/netinet_in (Makefile.am): Likewise.
10464         * modules/poll-h (Makefile.am): Likewise.
10465         * modules/pthread (Makefile.am): Likewise.
10466         * modules/pty (Makefile.am): Likewise.
10467         * modules/sched (Makefile.am): Likewise.
10468         * modules/search (Makefile.am): Likewise.
10469         * modules/selinux-h (Makefile.am): Likewise.
10470         * modules/signal (Makefile.am): Likewise.
10471         * modules/spawn (Makefile.am): Likewise.
10472         * modules/stdarg (Makefile.am): Likewise.
10473         * modules/stdbool (Makefile.am): Likewise.
10474         * modules/stddef (Makefile.am): Likewise.
10475         * modules/stdint (Makefile.am): Likewise.
10476         * modules/stdio (Makefile.am): Likewise.
10477         * modules/stdlib (Makefile.am): Likewise.
10478         * modules/string (Makefile.am): Likewise.
10479         * modules/strings (Makefile.am): Likewise.
10480         * modules/sys_file (Makefile.am): Likewise.
10481         * modules/sys_ioctl (Makefile.am): Likewise.
10482         * modules/sys_select (Makefile.am): Likewise.
10483         * modules/sys_socket (Makefile.am): Likewise.
10484         * modules/sys_stat (Makefile.am): Likewise.
10485         * modules/sys_time (Makefile.am): Likewise.
10486         * modules/sys_times (Makefile.am): Likewise.
10487         * modules/sys_utsname (Makefile.am): Likewise.
10488         * modules/sys_wait (Makefile.am): Likewise.
10489         * modules/sysexits (Makefile.am): Likewise.
10490         * modules/termios (Makefile.am): Likewise.
10491         * modules/time (Makefile.am): Likewise.
10492         * modules/unistd (Makefile.am): Likewise.
10493         * modules/wchar (Makefile.am): Likewise.
10494         * modules/wctype-h (Makefile.am): Likewise.
10495         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
10496
10497 2011-04-05  Bruno Haible  <bruno@clisp.org>
10498
10499         pipe2: Relicense under LGPLv2+.
10500         * modules/pipe2 (License): Change to LGPLv2+.
10501         Requested by Eric Blake, for libvirt.
10502
10503 2011-04-05  Bruce Korb  <bkorb@gnu.org>
10504
10505         bootstrap: compute gnulib_extra_files after updating build_aux
10506         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
10507         change build_aux or also supply gnulib_extra_files.  Handle correctly.
10508
10509 2011-04-05  Eric Blake  <eblake@redhat.com>
10510
10511         bootstrap: preserve git whitelist item sorting
10512         * build-aux/bootstrap (sort_patterns): New function.
10513         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
10514
10515 2011-04-05  Simon Josefsson  <simon@josefsson.org>
10516
10517         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
10518         sc_space_tab check.
10519
10520 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
10521
10522         areadlink, areadlinkat: rewrite in terms of careadlinkat
10523         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
10524         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
10525         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
10526         (malloc, realloc): Remove #undefs.
10527         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
10528         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
10529         readlink, ssize_t, stdint, unistd.
10530         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
10531         areadlink, stdint.
10532
10533         careadlinkat: new module
10534         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
10535         * modules/careadlinkat: New files, written by me with
10536         a review and feedback from Ben Pfaff in
10537         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
10538
10539 2011-04-01  Bruno Haible  <bruno@clisp.org>
10540
10541         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
10542         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
10543         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
10544         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
10545         Reported by Bruce Korb <bruce.korb@gmail.com>.
10546
10547 2011-04-01  Bruno Haible  <bruno@clisp.org>
10548
10549         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
10550         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
10551         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
10552         * modules/wcpcpy (Depends-on): Add extensions.
10553         * modules/wcpncpy (Depends-on): Likewise.
10554         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
10555         systems.
10556         * doc/posix-functions/wcpncpy.texi: Likewise.
10557         * doc/posix-functions/wcwidth.texi: Likewise.
10558
10559 2011-03-31  Eric Blake  <eblake@redhat.com>
10560
10561         nonblocking: fix mingw test failures
10562         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
10563         non-blocking flag on regular file.
10564         (get_nonblocking_flag): Set errno on invalid fd.
10565         * tests/test-nonblocking.c (main): Avoid test failure on
10566         directories if fchdir is not active.
10567         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
10568
10569 2011-03-31  Bruno Haible  <bruno@clisp.org>
10570
10571         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
10572         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
10573         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
10574         Reported by Simon Josefsson <simon@josefsson.org>.
10575
10576 2011-03-31  Bruno Haible  <bruno@clisp.org>
10577         and Eric Blake  <eblake@redhat.com>
10578
10579         nonblocking: new module
10580         * modules/nonblocking: New module.
10581         * modules/nonblocking-tests: Likewise.
10582         * lib/nonblocking.h: New file.
10583         * lib/nonblocking.c: Likewise.
10584         * tests/test-nonblocking.c: New test.
10585         * lib/ioctl.c (ioctl) [mingw]: Update comment.
10586
10587 2011-03-30  Bruno Haible  <bruno@clisp.org>
10588
10589         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
10590         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
10591         instead of 'printf' format for GCC >= 4.4.
10592         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
10593         (fprintf, printf, vfprintf, vprintf): Declare with
10594         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
10595         the system's vfprintf() function.
10596         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
10597
10598 2011-03-30  Eric Blake  <eblake@redhat.com>
10599
10600         passfd: fix scoping bug
10601         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
10602         before sendmsg/recvmsg.
10603
10604         passfd: standardize coding conventions
10605         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
10606         can be learned at compile time.
10607         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
10608         ifdefs.
10609         (sendfd, recvfd): Follow gnulib code conventions.
10610
10611         passfd: fix incorrect sendmsg arguments
10612         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
10613         incorrect msg_controllen value.
10614         * modules/passfd-tests (Depends-on): Check for alarm.
10615         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
10616         Reported by Bastien ROUCARIES.
10617
10618 2011-03-30  Bruno Haible  <bruno@clisp.org>
10619
10620         c-strcasestr: Relicense under LGPLv2+.
10621         * modules/c-strcasestr (License): Change to LGPLv2+.
10622         Requested by Eric Blake, for libvirt.
10623
10624 2011-03-30  Simon Josefsson  <simon@josefsson.org>
10625
10626         * users.txt: Add libidn2.  Fix libtasn1 link.
10627
10628 2011-03-30  Jim Meyering  <meyering@redhat.com>
10629
10630         tests: readlink* ("",... fails with EINVAL on newer kernels
10631         readlink and readlinkat have typically failed with ENOENT for
10632         the invalid, empty file name,  "".  However, with the advent
10633         of linux-2.6.39, they fail with EINVAL.
10634         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
10635         when operating on the empty file name.
10636         * tests/test-readlink.h (test_readlink): Likewise.
10637
10638 2011-03-29  Bruno Haible  <bruno@clisp.org>
10639
10640         Relicense some modules under LGPLv2+, for libidn2.
10641         * modules/array-mergesort (License): Change to LGPLv2+.
10642         * modules/c-strcaseeq (License): Likewise.
10643         * modules/striconveh (License): Likewise.
10644         * modules/striconveha (License): Likewise.
10645         * modules/uniconv/base (License): Likewise.
10646         * modules/uniconv/u8-conv-from-enc (License): Likewise.
10647         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
10648         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
10649         * modules/unictype/base (License): Likewise.
10650         * modules/unictype/bidiclass-of (License): Likewise.
10651         * modules/unictype/category-M (License): Likewise.
10652         * modules/unictype/category-none (License): Likewise.
10653         * modules/unictype/category-of (License): Likewise.
10654         * modules/unictype/category-test (License): Likewise.
10655         * modules/unictype/category-test-withtable (License): Likewise.
10656         * modules/unictype/combining-class (License): Likewise.
10657         * modules/unictype/joiningtype-of (License): Likewise.
10658         * modules/unictype/scripts (License): Likewise.
10659         * modules/uninorm/base (License): Likewise.
10660         * modules/uninorm/canonical-decomposition (License): Likewise.
10661         * modules/uninorm/composition (License): Likewise.
10662         * modules/uninorm/decompose-internal (License): Likewise.
10663         * modules/uninorm/decomposition-table (License): Likewise.
10664         * modules/uninorm/nfc (License): Likewise.
10665         * modules/uninorm/nfd (License): Likewise.
10666         * modules/uninorm/u32-normalize (License): Likewise.
10667         * modules/unistr/base (License): Likewise.
10668         * modules/unistr/u32-cpy (License): Likewise.
10669         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
10670         * modules/unistr/u32-to-u8 (License): Likewise.
10671         * modules/unistr/u32-uctomb (License): Likewise.
10672         * modules/unistr/u8-check (License): Likewise.
10673         * modules/unistr/u8-mblen (License): Likewise.
10674         * modules/unistr/u8-mbtouc (License): Likewise.
10675         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
10676         * modules/unistr/u8-mbtoucr (License): Likewise.
10677         * modules/unistr/u8-prev (License): Likewise.
10678         * modules/unistr/u8-strlen (License): Likewise.
10679         * modules/unistr/u8-to-u32 (License): Likewise.
10680         * modules/unistr/u8-uctomb (License): Likewise.
10681         * modules/unitypes (License): Likewise.
10682         Requested by Simon Josefsson.
10683
10684 2011-03-29  Simon Josefsson  <simon@josefsson.org>
10685
10686         lib-symbol-visibility: Add a notice.
10687         * modules/lib-symbol-visibility (Notice): New field.
10688
10689 2011-03-29  Bruno Haible  <bruno@clisp.org>
10690
10691         getaddrinfo: Doc fix.
10692         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
10693         section "fixed in Gnulib".
10694
10695 2011-03-28  Simon Josefsson  <simon@josefsson.org>
10696
10697         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
10698         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
10699
10700 2011-03-26  Bruno Haible  <bruno@clisp.org>
10701
10702         unictype/property-byname: Reduce the number of load-time relocations.
10703         * lib/unictype/pr_byname.c: Include <stdlib.h>.
10704         (UC_PROPERTY_INDEX_*): New enumeration values.
10705         (uc_property_byname): Convert an index from the lookup table to an
10706         uc_property_t.
10707         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
10708         values.
10709
10710 2011-03-26  Bruno Haible  <bruno@clisp.org>
10711
10712         unictype/property-byname: Allow omitted word separators and aliases.
10713         * lib/unictype/pr_byname.gperf: Add property names without word
10714         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
10715         for 'space'.
10716
10717 2011-03-26  Bruno Haible  <bruno@clisp.org>
10718
10719         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
10720         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
10721         also hyphens to space.
10722         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
10723         without spaces.
10724         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
10725
10726 2011-03-26  Bruno Haible  <bruno@clisp.org>
10727
10728         unictype/joiningtype-byname: Recognize long names as well.
10729         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
10730         a long name.
10731         * lib/unictype/joiningtype_byname.c: Include <string.h>,
10732         unictype/joiningtype_byname.h.
10733         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
10734         * lib/unictype/joiningtype_byname.gperf: New file.
10735         * modules/unictype/joiningtype-byname (Files): Add
10736         lib/unictype/joiningtype_byname.gperf.
10737         (Depends-on): Add gperf.
10738         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
10739         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
10740         long names.
10741
10742         Tests for module 'unictype/joiningtype-longname'.
10743         * modules/unictype/joiningtype-longname-tests: New file.
10744         * tests/unictype/test-joiningtype_longname.c: New file.
10745
10746         New module 'unictype/joiningtype-longname'.
10747         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
10748         * lib/unictype/joiningtype_longname.c: New file.
10749         * modules/unictype/joiningtype-longname: New file.
10750         * modules/unictype/joiningtype-all (Depends-on): Add
10751         unictype/joiningtype-longname.
10752
10753 2011-03-26  Bruno Haible  <bruno@clisp.org>
10754
10755         unictype/bidiclass-byname: Recognize long names as well.
10756         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
10757         name.
10758         * lib/unictype/bidi_byname.c: Include <string.h>,
10759         unictype/bidi_byname.h.
10760         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
10761         * lib/unictype/bidi_byname.gperf: New file.
10762         * modules/unictype/bidiclass-byname (Files): Add
10763         lib/unictype/bidi_byname.gperf.
10764         (Depends-on): Add gperf.
10765         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
10766         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
10767         long names.
10768
10769         Tests for module 'unictype/bidiclass-longname'.
10770         * modules/unictype/bidiclass-longname-tests: New file.
10771         * tests/unictype/test-bidi_longname.c: New file.
10772
10773         New module 'unictype/bidiclass-longname'.
10774         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
10775         * lib/unictype/bidi_longname.c: New file.
10776         * modules/unictype/bidiclass-longname: New file.
10777         * modules/unictype/bidiclass-all (Depends-on): Add
10778         unictype/bidiclass-longname.
10779
10780 2011-03-26  Bruno Haible  <bruno@clisp.org>
10781
10782         unictype/bidi*: Rename modules.
10783         * modules/unictype/bidiclass-all: Renamed from
10784         modules/unictype/bidicategory-all.
10785         * modules/unictype/bidiclass-name: Renamed from
10786         modules/unictype/bidiclass-name.
10787         (Description): Update.
10788         * modules/unictype/bidiclass-name-tests: Renamed from
10789         modules/unictype/bidicategory-name-tests.
10790         * modules/unictype/bidiclass-byname: Renamed from
10791         modules/unictype/bidicategory-byname.
10792         (Description): Update.
10793         * modules/unictype/bidiclass-byname-tests: Renamed from
10794         modules/unictype/bidicategory-byname-tests.
10795         * modules/unictype/bidiclass-of: Renamed from
10796         modules/unictype/bidicategory-of.
10797         (Description): Update.
10798         * modules/unictype/bidiclass-of-tests: Renamed from
10799         modules/unictype/bidicategory-of-tests.
10800         * modules/unictype/bidiclass-test: Renamed from
10801         modules/unictype/bidicategory-test.
10802         (Description): Update.
10803         * modules/unictype/bidiclass-test-tests: Renamed from
10804         modules/unictype/bidicategory-test-tests.
10805         * modules/unictype/bidicategory-all: New file, a simple redirection.
10806         * modules/unictype/bidicategory-name: Likewise.
10807         * modules/unictype/bidicategory-byname: Likewise.
10808         * modules/unictype/bidicategory-of: Likewise.
10809         * modules/unictype/bidicategory-test: Likewise.
10810         * modules/unictype/property-bidi-* (Dependencies): Update.
10811         * lib/unictype/bidi_*.c: Update comment.
10812
10813 2011-03-26  Bruno Haible  <bruno@clisp.org>
10814
10815         unictype/bidi*: Rename functions, part 2.
10816         * modules/unictype/bidicategory-name (configure.ac): Update required
10817         libunistring version.
10818         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
10819
10820 2011-03-25  Bruno Haible  <bruno@clisp.org>
10821
10822         New module 'unictype/combining-class-all'.
10823         * modules/unictype/combining-class-all: New file.
10824
10825         Tests for module 'unictype/combining-class-byname'.
10826         * modules/unictype/combining-class-byname-tests: New file.
10827         * tests/unictype/test-combiningclass_byname.c: New file.
10828
10829         New module 'unictype/combining-class-byname'.
10830         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
10831         * lib/unictype/combiningclass_byname.c: New file.
10832         * lib/unictype/combiningclass_byname.gperf: New file.
10833         * modules/unictype/combining-class-byname: New file.
10834
10835         Tests for module 'unictype/combining-class-longname'.
10836         * modules/unictype/combining-class-longname-tests: New file.
10837         * tests/unictype/test-combiningclass_longname.c: New file.
10838
10839         New module 'unictype/combining-class-longname'.
10840         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
10841         * lib/unictype/combiningclass_longname.c: New file.
10842         * modules/unictype/combining-class-longname: New file.
10843
10844         Tests for module 'unictype/combining-class-name'.
10845         * modules/unictype/combining-class-name-tests: New file.
10846         * tests/unictype/test-combiningclass_name.c: New file.
10847
10848         New module 'unictype/combining-class-name'.
10849         * lib/unictype.in.h (uc_combining_class_name): New declaration.
10850         * lib/unictype/combiningclass_name.c: New file.
10851         * modules/unictype/combining-class-name: New file.
10852
10853 2011-03-25  Bruno Haible  <bruno@clisp.org>
10854
10855         unictype/combining-class: Rename source files.
10856         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
10857         of unictype/combining.h.
10858         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
10859         Update.
10860         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
10861         * modules/unictype/combining-class (Description): Fix.
10862         (Files, Makefile.am): Update.
10863         * tests/unictype/test-combiningclass.c: Renamed from
10864         tests/unictype/test-combining.c.
10865         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
10866
10867 2011-03-25  Bruno Haible  <bruno@clisp.org>
10868
10869         unictype: Update list of canonical combining classes.
10870         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
10871
10872 2011-03-25  Bruno Haible  <bruno@clisp.org>
10873
10874         unictype/category-byname: Recognize long names as well.
10875         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
10876         a long name.
10877         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
10878         unictype/categ_byname.h.
10879         (UC_CATEGORY_INDEX_*): New enumeration values.
10880         (uc_general_category_byname): Use uc_general_category_lookup and
10881         convert from index to value.
10882         * lib/unictype/categ_byname.gperf: New file.
10883         * modules/unictype/category-byname (Files): Add
10884         lib/unictype/categ_byname.gperf.
10885         (Depends-on): Add gperf.
10886         (Makefile.am): Add rule for generating unictype/categ_byname.h.
10887         * tests/unictype/test-categ_byname.c (main): Test the recognition of
10888         long names.
10889
10890         Tests for module 'unictype/category-longname'.
10891         * modules/unictype/category-longname-tests: New file.
10892         * tests/unictype/test-categ_longname.c: New file.
10893
10894         New module 'unictype/category-longname'.
10895         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
10896         * lib/unictype/categ_longname.c: New file.
10897         * modules/unictype/category-longname: New file.
10898         * modules/unictype/category-all (Depends-on): Add it.
10899
10900 2011-03-25  Bruno Haible  <bruno@clisp.org>
10901
10902         Tests for module 'unictype/category-LC'.
10903         * modules/unictype/category-LC-tests: New file.
10904         * tests/unictype/test-categ_LC.c: New file, automatically generated.
10905
10906         New module 'unictype/category-LC'.
10907         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
10908         (UC_CATEGORY_LC): New declaration.
10909         (UC_CASED_LETTER): New macro.
10910         * lib/gen-uni-tables.c (is_category_LC): New function.
10911         (output_categories): Also handle category LC.
10912         (UC_CATEGORY_MASK_LC): New enumeration value.
10913         (general_category_byname): Also handle category LC.
10914         * lib/unictype/categ_LC.c: New file.
10915         * lib/unictype/categ_LC.h: New file, automatically generated.
10916         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
10917         category LC.
10918         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
10919         * modules/unictype/category-LC: New file.
10920         * modules/unictype/category-byname (Depends-on): Add
10921         unictype/category-LC.
10922         * modules/unictype/category-all (Depends-on): Likewise.
10923
10924 2011-03-25  Eric Blake  <eblake@redhat.com>
10925
10926         xmalloc: revert yesterday's regression
10927         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
10928         realloc's underlying behavior (allowing allocation of zero-size
10929         objects, especially if malloc-gnu is also in use).
10930
10931 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
10932
10933         maint.mk: add missing version to VC-tag
10934         * top/maint.mk: git tag was missing actual tag name; add it.
10935
10936         valgrind: do leak checking, and exit with code 1 on error (not 0)
10937         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
10938         to VALGRIND.
10939
10940 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
10941
10942         posix-modules: say what it does.
10943         * posix-modules: Add a line to the --help output saying what it does.
10944
10945 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
10946
10947         xmalloc: Do not leak if underlying realloc is C99 compatible.
10948         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
10949         This avoids a leak on C99-based systems.  See
10950         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
10951
10952 2011-03-24  Eric Blake  <eblake@redhat.com>
10953
10954         realloc: document portability problem
10955         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
10956         passing 0 size to realloc.
10957
10958 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
10959
10960         doc: update users.txt
10961         * users.txt: Add cvsps, tmpwatch
10962
10963 2011-03-23  Matt Rice  <ratmice@gmail.com>
10964
10965         doc: update users.txt
10966         * users.txt: Add gdb.
10967
10968 2011-03-23  Jim Meyering  <meyering@redhat.com>
10969
10970         doc: update users.txt
10971         Looking through matches up to the following URL (there are still
10972         several more pages), I found several projects that use gnulib:
10973         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
10974         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
10975         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
10976
10977 2011-03-22  Bruno Haible  <bruno@clisp.org>
10978
10979         unictype/bidi*: Rename functions.
10980         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
10981         uc_bidi_class, uc_is_bidi_class): New declarations.
10982         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
10983         uc_bidi_category_byname.
10984         (uc_bidi_category_byname): New function.
10985         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
10986         u_bidi_category_name.
10987         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
10988         (uc_bidi_category_name): New function.
10989         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
10990         uc_bidi_category.
10991         (uc_bidi_category): New function.
10992         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
10993         uc_is_bidi_category. Invoke uc_bidi_class.
10994         (uc_is_bidi_category): New function.
10995         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
10996         instead of uc_bidi_category_byname.
10997         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
10998         instead of uc_bidi_category_name.
10999         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
11000         uc_bidi_category.
11001         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
11002         instead of uc_is_bidi_category.
11003
11004 2011-03-21  Bruno Haible  <bruno@clisp.org>
11005
11006         New module 'unictype/joininggroup-all'.
11007         * modules/unictype/joininggroup-all: New file.
11008
11009         Tests for module 'unictype/joininggroup-of'.
11010         * modules/unictype/joininggroup-of-tests: New file.
11011         * tests/unictype/test-joininggroup_of.c: New file.
11012         * tests/unictype/test-joininggroup_of.h: New file, automatically
11013         generated by gen-uni-tables.
11014
11015         New module 'unictype/joininggroup-of'.
11016         * modules/unictype/joininggroup-of: New file.
11017         * lib/unictype/joininggroup_of.c: New file.
11018         * lib/unictype/joininggroup_of.h: New file, automatically generated by
11019         gen-uni-tables.
11020
11021         Tests for module 'unictype/joininggroup-byname'.
11022         * modules/unictype/joininggroup-byname-tests: New file.
11023         * tests/unictype/test-joininggroup_byname.c: New file.
11024
11025         New module 'unictype/joininggroup-byname'.
11026         * modules/unictype/joininggroup-byname: New file.
11027         * lib/unictype/joininggroup_byname.c: New file.
11028         * lib/unictype/joininggroup_byname.gperf: New file.
11029
11030         Tests for module 'unictype/joininggroup-name'.
11031         * modules/unictype/joininggroup-name-tests: New file.
11032         * tests/unictype/test-joininggroup_name.c: New file.
11033
11034         New module 'unictype/joininggroup-name'.
11035         * modules/unictype/joininggroup-name: New file.
11036         * lib/unictype/joininggroup_name.c: New file.
11037         * lib/unictype/joininggroup_name.h: New file.
11038
11039         New module 'unictype/joiningtype-all'.
11040         * modules/unictype/joiningtype-all: New file.
11041
11042         Tests for module 'unictype/joiningtype-of'.
11043         * modules/unictype/joiningtype-of-tests: New file.
11044         * tests/unictype/test-joiningtype_of.c: New file.
11045         * tests/unictype/test-joiningtype_of.h: New file, automatically
11046         generated by gen-uni-tables.
11047
11048         New module 'unictype/joiningtype-of'.
11049         * modules/unictype/joiningtype-of: New file.
11050         * lib/unictype/joiningtype_of.c: New file.
11051         * lib/unictype/joiningtype_of.h: New file, automatically generated by
11052         gen-uni-tables.
11053
11054         Tests for module 'unictype/joiningtype-byname'.
11055         * modules/unictype/joiningtype-byname-tests: New file.
11056         * tests/unictype/test-joiningtype_byname.c: New file.
11057
11058         New module 'unictype/joiningtype-byname'.
11059         * modules/unictype/joiningtype-byname: New file.
11060         * lib/unictype/joiningtype_byname.c: New file.
11061
11062         Tests for module 'unictype/joiningtype-name'.
11063         * modules/unictype/joiningtype-name-tests: New file.
11064         * tests/unictype/test-joiningtype_name.c: New file.
11065
11066         New module 'unictype/joiningtype-name'.
11067         * modules/unictype/joiningtype-name: New file.
11068         * lib/unictype/joiningtype_name.c: New file.
11069
11070         unictype: Add support for Arabic shaping properties.
11071         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
11072         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
11073         declarations.
11074         (UC_JOINING_GROUP_*): New enumeration values.
11075         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
11076         declarations.
11077         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
11078         (unicode_joining_type): New variable.
11079         (UC_JOINING_GROUP_*): New enumeration values.
11080         (unicode_joining_group): New variable.
11081         (fill_arabicshaping, joining_type_as_c_identifier,
11082         output_joining_type_test, output_joining_type,
11083         joining_group_as_c_identifier, output_joining_group_test,
11084         output_joining_group): New functions.
11085         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
11086         fill_arabicshaping and output_joining_type_test, output_joining_type,
11087         output_joining_group_test, output_joining_group.
11088         Reported by Simon Josefsson.
11089
11090 2011-03-21  Jim Meyering  <meyering@redhat.com>
11091
11092         strftime: fix a bug in yesterday's change
11093         * lib/strftime.c (add): Accommodate width's initial value of -1.
11094         Otherwise, nstrftime would copy uninitialized data into
11095         the result buffer.
11096
11097 2011-03-21  Jim Meyering  <meyering@redhat.com>
11098
11099         tests: add strftime-tests module
11100         * tests/test-strftime.c: New file.
11101         * modules/strftime-tests: New module.
11102
11103 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11104
11105         strftime: don't assume a byte count fits in 'int'
11106         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
11107         found this problem by static analysis, using gcc -Wstrict-overflow
11108         (GCC 4.5.2, x86-64).  This reported an optimization that depended
11109         on an integer overflow having undefined behavior, but it turns out
11110         that the argument is a size, which might not fit in 'int' anyway,
11111
11112 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11113
11114         stdio: don't require ignore_value around fwrite
11115
11116         This patch works around libc bug 11959
11117         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
11118         Without this patch, applications must often write
11119         ignore_value (fwrite (...)) even though the ignore_value is
11120         not helpful here.  It's common to write many objects, using
11121         fwrite/printf/etc., and then use ferror to detect output error.
11122
11123         I considered making this patch optional, but decided against it,
11124         because libc is obviously being inconsistent here: there is no
11125         reason libc should insist that user code must inspect fwrite
11126         return's value without also insisting that it inspect printf's,
11127         putchar's, etc.  If user code wants to have a strict style where
11128         all these functions' values are checked (so that ferror need not
11129         be checked), we could add support for that style in a new gnulib
11130         module, but in the meantime it's better to be consistent and to
11131         support common usage.
11132
11133         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
11134         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
11135         that we are compiling in checking mode, and if not C++, and
11136         if not already wrapping fwrite for some other reason.
11137         (fwrite): #define to rpl_fwrite if the latter is defined.
11138
11139 2011-03-20  Bruno Haible  <bruno@clisp.org>
11140
11141         verror: Fix compilation error introduced on 2011-02-13.
11142         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
11143         instead of __attribute__.
11144         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11145
11146 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11147             Bruno Haible  <bruno@clisp.org>
11148
11149         socklen: do not depend on sys_socket
11150         While trying to modify Emacs to use gnulib's socklen module,
11151         I discovered a circular dependency: socklen depends on sys_socket
11152         and vice versa.  Emacs can use socklen, but it does not need
11153         sys_socket because it has its own substitute for sys/socket.h.
11154         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
11155         gl_TYPE_SOCKLEN_T.
11156         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
11157         gl_PREREQ_SYS_H_SOCKET.
11158         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
11159         gl_PREREQ_SYS_H_SOCKET.
11160         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
11161         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
11162         * modules/socklen (Depends-on): Do not depend on sys_socket.
11163         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
11164
11165 2011-03-20  Jim Meyering  <meyering@redhat.com>
11166
11167         maint.mk: sort file names *after* new transformation
11168         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
11169         prefix would have led to an unwarranted failure in GNU parted.
11170         Sort after that transformation.
11171
11172 2011-03-19  Jim Meyering  <meyering@redhat.com>
11173
11174         maint.mk: fix po-file syntax-check rule
11175         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
11176         Patch by Bruno Haible.
11177
11178 2011-03-19  Bruno Haible  <bruno@clisp.org>
11179
11180         socklen: Update comment.
11181         * m4/socklen.m4: Update comment about platforms.
11182
11183 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11184             Bruno Haible  <bruno@clisp.org>
11185
11186         inet_ntop, inet_pton: Simplify.
11187         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
11188         documented to provide socklen_t and we already depend on sys_socket.
11189         * modules/inet_pton (Depends-on): Likewise.
11190         * lib/arpa_inet.in.h: Adjust comment.
11191
11192 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11193             Bruno Haible  <bruno@clisp.org>
11194
11195         netdb: Simplify.
11196         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
11197         documented to provide socklen_t and we already depend on sys_socket.
11198         * lib/netdb.in.h: Adjust comment.
11199
11200 2011-03-19  Bruno Haible  <bruno@clisp.org>
11201
11202         sys_socket, netdb: Document problem with socklen_t.
11203         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
11204         platforms.
11205         * doc/posix-headers/netdb.texi: Likewise.
11206
11207 2011-03-18  Eric Blake  <eblake@redhat.com>
11208
11209         maint.mk: let po check work in VPATH build
11210         * top/maint.mk (po_file): Allow cfg.mk override.
11211         (sc_po_check): Allow VPATH use.
11212         Reported by Jiri Denemark.
11213
11214 2011-03-16  Jim Meyering  <meyering@redhat.com>
11215
11216         maint.mk: allow fine-grained syntax-check exclusion via Make variables
11217         Before, you would have had to create one .x-sc_ file per rule in order
11218         to exempt offending files.  Now, you may instead use a Make variable --
11219         usually defined in cfg.mk -- whose name identifies the affected rule.
11220         * top/maint.mk (_sc_excl): Define.
11221         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
11222         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
11223
11224 2011-03-13  Bruno Haible  <bruno@clisp.org>
11225
11226         ignore-value tests: Avoid warnings.
11227         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
11228         empty for gcc < 3.4.
11229
11230 2011-03-13  Bruno Haible  <bruno@clisp.org>
11231
11232         passfd: Fix link error on Solaris.
11233         * modules/passfd (Description): Correct.
11234         (Depends-on): Add socketlib.
11235         (Link): New section.
11236         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
11237
11238 2011-03-13  Bruno Haible  <bruno@clisp.org>
11239
11240         passfd: Fix link error on AIX 5.2.
11241         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
11242
11243 2011-03-13  Bruno Haible  <bruno@clisp.org>
11244
11245         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
11246         * lib/sys_socket.in.h: Include <stddef.h>.
11247         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
11248         CMSG_FIRSTHDR. Remove unused variable.
11249
11250 2011-03-13  Bruno Haible  <bruno@clisp.org>
11251
11252         passfd: Fix compilation error on OpenBSD.
11253         * lib/passfd.c: Include <sys/uio.h>.
11254
11255 2011-03-13  Bruno Haible  <bruno@clisp.org>
11256
11257         passfd test: Fix warnings.
11258         * tests/test-passfd.c: Include <sys/wait.h>.
11259         (main): Fix typo.
11260
11261 2011-03-13  Bruno Haible  <bruno@clisp.org>
11262
11263         passfd module, part 4, tweaks.
11264         * tests/test-passfd.c: Reorder includes.
11265         (main): Fix perror and printf calls.
11266
11267 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
11268
11269         passfd module, part 4.
11270         * modules/passfd-tests: New file.
11271         * tests/test-passfd.c: New file.
11272
11273 2011-03-13  Jim Meyering  <meyering@redhat.com>
11274
11275         Makefile: rely on GNU make; derive syntax-check rule names
11276         Rather than requiring that each sc_ rule be listed as a dependent
11277         of "check", use features of GNU make to derive the list.
11278         * Makefile (syntax-check-rules): Define.
11279         (check): Depend on the new variable, not the hard-coded list.
11280
11281 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
11282             Bruno Haible  <bruno@clisp.org>
11283
11284         passfd module, part 3.
11285         * lib/passfd.h (recvfd): Add a flags argument.
11286         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
11287         (recvfd): Add a flags argument.
11288         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
11289         exists.
11290         * modules/passfd (Depends-on): Add cloexec.
11291         Suggested by Eric Blake.
11292
11293 2011-03-13  Bruno Haible  <bruno@clisp.org>
11294
11295         passfd module, part 2, tweaks.
11296         * modules/passfd (Files): Reorder.
11297         (Depends-on): Remove errno.
11298         (Include): Remove <sys/socket.h>, <sys/un.h>.
11299         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
11300         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
11301         specification header. Include <sys/socket.h> always. Don't include
11302         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
11303         (sendfd): Clarify that it sets errno when it fails.
11304         (recvfd): Fix specification.
11305
11306 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
11307
11308         passfd module, part 2.
11309         * modules/passfd: New file.
11310         * lib/passfd.h: New file.
11311         * lib/passfd.c: New file.
11312
11313 2011-03-12  Bruno Haible  <bruno@clisp.org>
11314
11315         wcswidth, mbswidth: Avoid integer overflow.
11316         * lib/wcswidth.c: Include <limits.h>.
11317         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
11318         * lib/mbswidth.c: Include <limits.h>.
11319         (mbsnwidth): Avoid 'int' overflow.
11320         Reported by Jim Meyering.
11321
11322 2011-03-12  Bruno Haible  <bruno@clisp.org>
11323
11324         futimens, utimensat: Avoid endless recursion on Solaris 10.
11325         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
11326         Solaris.
11327         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
11328         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
11329
11330 2011-03-11  Jim Meyering  <meyering@redhat.com>
11331
11332         maint.mk: relax a regexp to accommodate other formatting styles
11333         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
11334         between "ngettext" and the following "(".
11335
11336 2011-03-11  Pádraig Brady <P@draigBrady.com>
11337
11338         maint.mk: suppress a false positive warning
11339         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
11340         diagnostics are marked with ngettext.
11341
11342 2011-03-10  Eric Blake  <eblake@redhat.com>
11343
11344         wchar: add explicit dependencies, for Tru64
11345         * modules/mbmemcasecoll (Depends-on): Add wchar.
11346         * modules/mbtowc (Depends-on): Likewise.
11347         * modules/vasnprintf (Depends-on): Likewise.
11348         * modules/unistdio/u-printf-args (Depends-on): Likewise.
11349         * modules/wctomb (Depends-on): Likewise.
11350         Reported by Peter O'Gorman.
11351
11352 2011-03-08  Bruno Haible  <bruno@clisp.org>
11353
11354         passfd module, part 1, tweaks.
11355         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
11356         Improve indentation. Improve AC_MSG_CHECKING messages.
11357         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
11358         gl_SOCKET_FAMILIES.
11359
11360 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
11361
11362         passfd module, part 1.
11363         * m4/afunix.m4: New file.
11364         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
11365         sockets.
11366
11367 2011-03-08  Bruno Haible  <bruno@clisp.org>
11368
11369         regex-quote: New API.
11370         * lib/regex-quote.h: Include <stdbool.h>.
11371         (struct regex_quote_spec): New type.
11372         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
11373         New declarations.
11374         (regex_quote_length, regex_quote_copy, regex_quote): Take a
11375         'const struct regex_quote_spec *' argument.
11376         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
11377         (pcre_special): New constant.
11378         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
11379         New functions.
11380         (regex_quote_length, regex_quote_copy, regex_quote): Take a
11381         'const struct regex_quote_spec *' argument.
11382         * modules/regex-quote (Depends-on): Add stdbool.
11383         * tests/test-regex-quote.c (check): Update for new API. Add test for
11384         anchored results.
11385         * NEWS: Mention the API change.
11386         Reported by Reuben Thomas and Eric Blake.
11387
11388 2011-03-06  Bruno Haible  <bruno@clisp.org>
11389
11390         regex-quote: Fix creation of POSIX extended regular expressions.
11391         * lib/regex-quote.c (ere_special): Add grouping and alternation
11392         operators.
11393
11394 2011-03-05  Bruno Haible  <bruno@clisp.org>
11395
11396         doc: Improve doc regarding autopoint vs. gnulib.
11397         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
11398         disable autopoint while running autoreconf.
11399         Suggested by Ralf Wildenhues.
11400
11401 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11402
11403         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
11404         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
11405
11406 2011-03-03  Bruce Korb  <bkorb@gnu.org>
11407
11408         parse-duration: remove xalloc.h dependency
11409         * lib/parse-duration.c (parse_period): handle NULL return from
11410         strdup instead of calling xstrdup().
11411         * modules/parse-duration: remove "xalloc" dependency
11412
11413 2011-03-03  Matthew Booth  <mbooth@redhat.com>
11414
11415         bootstrap: honor m4_base when running aclocal
11416         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
11417
11418 2011-03-02  Jim Meyering  <meyering@redhat.com>
11419
11420         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
11421         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
11422         on request from Matt Booth.
11423
11424 2011-03-01  Eric Blake  <eblake@redhat.com>
11425
11426         test-link: work on Hurd
11427         * tests/test-link.h (test_link): Hurd rejects linking directories
11428         with EISDIR instead of the POSIX-mandated EPERM.
11429
11430 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
11431
11432         stdio: simplify by moving files to printf-posix, sigpipe
11433         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
11434         since this symbol is needed only if printf is replaced.
11435         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
11436         Require gl_ASM_SYMBOL_PREFIX.
11437         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
11438         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
11439         (Depends-on): Add 'raise'.
11440         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
11441         * modules/stdio (Files): Remove lib/stdio-write.c,
11442         m4/asm-underscore.m4.
11443         (Depends-on): Remove 'raise'.
11444
11445         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
11446         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
11447         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
11448         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
11449
11450 2011-02-28  Bruno Haible  <bruno@clisp.org>
11451
11452         localcharset: Assume ANSI C behaviour of free().
11453         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
11454         calling free().
11455         Suggested by Simon Josefsson <simon@josefsson.org>.
11456
11457 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
11458             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
11459             Bruno Haible  <bruno@clisp.org>  (tiny change)
11460
11461         On Cygwin, use /proc file system instead of win32 API.
11462         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
11463         Win32 file names.
11464         (DllMain): Simplify by removing Cygwin specific code.
11465         (find_shared_library_fullname): Use Linux specific implementation also
11466         for Cygwin.
11467         (get_shared_library_fullname): Update accordingly.
11468         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
11469         Win32 file names.
11470         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
11471         Cygwin specific code.
11472
11473 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
11474             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
11475
11476         Fix OpenMP flag detection for various Fortran compilers.
11477         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
11478         OpenMP-conditional compilation construct, to force compile
11479         failure with missing OpenMP flag.
11480         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
11481
11482 2011-02-25  Eric Blake  <eblake@redhat.com>
11483
11484         strstr: expand test coverage
11485         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
11486         compilation.
11487         * tests/test-memmem.c (main): Duplicate tests.
11488         * tests/test-strcasestr.c (main): Likewise.
11489         * tests/test-c-strcasestr.c (main): Likewise.
11490
11491 2011-02-25  Jim Meyering  <meyering@redhat.com>
11492
11493         maint.mk: detect missing-NL-at-EOF, too
11494         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
11495         it also detects when a file lacks a newline at EOF.
11496         (require_exactly_one_NL_at_EOF_): Renamed from
11497         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
11498         since people may well have .x-sc_... file names tied to the
11499         existing name.  Suggested by Eric Blake.
11500
11501 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
11502
11503         dirname: move m4/dos.m4 functionality into lib/dosname.h
11504
11505         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
11506         extracts symbols from it, puts them into config.h; but it's much
11507         easier to use the symbols directly.  filename.h already does this,
11508         but it disagrees with dos.m4 in some respects.  This patch
11509         introduces a different include file dosname.h that packages up
11510         dos.m4, and then later we can work on merging filename.h and
11511         dosname.h.  Applications that need only the easy-to-configure
11512         symbols should consider including dosname.h rather than dirname.h.
11513         * NEWS: Mention incompatible changes.
11514         * m4/dos.m4: Remove.
11515         * lib/dosname.h, modules/dosname: New files.
11516         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
11517         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
11518         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
11519         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
11520         Include dosname.h, not dirname.h.
11521         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
11522         Include dosname.h, for definitions of symbols like ISSLASH
11523         that used to be in config.h.
11524         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
11525         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
11526         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11527         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
11528         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
11529         * modules/rmdir (Files): Likewise.
11530         * modules/stat (Files): Likewise.
11531         * modules/unlink (Files): Likewise.
11532         * modules/dirname-lgpl (Depends-on): Add dosname.
11533         * modules/lstat (Depends-on): Likewise.
11534         * modules/openat (Depends-on): Likewise.
11535         * modules/rmdir (Depends-on): Likewise.
11536         * modules/savewd (Depends-on): Likewise.
11537         * modules/stat (Depends-on): Likewise.
11538         * modules/unlink (Depends-on): Likewise.
11539         * modules/openat (Depends-on): Remove dirname-lgpl.
11540         * modules/savewd (Depends-on): Likewise.
11541         * tests/test-dirname.c: Do not use removed symbols like
11542         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
11543         the remaining symbols, e.g., ISSLASH ('\\').
11544
11545 2011-02-25  Eric Blake  <eblake@redhat.com>
11546
11547         strstr: revert patches that introduced bug and pessimization
11548         * lib/str-two-way.h: Add another reference.
11549         (two_way_short_needle, two_way_long_needle): Revert changes from
11550         2011-02-24; they pessimize search speed.
11551         (critical_factorization): Partially revert changes from
11552         2010-06-22; they violate the requirement that the left half of the
11553         needle be smaller than the period of the needle.
11554
11555 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
11556
11557         filenamecat: remove unnecessary dependency on dirname-lgpl
11558         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
11559         is no direct dependency, just an indirect one via filenamecat-lgpl.
11560
11561         remove: remove unnecessary use of m4/dos.m4
11562         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
11563         * modules/remove (FILES): Remove m4/dos.m4.
11564
11565         * lib/openat-proc.c: Don't include dirname.h; not needed.
11566
11567         backupfile: remove unnecessary use of m4/dos.m4
11568         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
11569         of its symbols are used by the backupfile code.  backupfile.c does
11570         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
11571         for the rare case of programs that want all their backup file
11572         names to live within 8+3 limits, and dos.m4 doesn't address that.
11573         * modules/backupfile (Files): Remove m4/dos.m4.
11574
11575 2011-02-24  Jim Meyering  <meyering@redhat.com>
11576
11577         strstr: fix a bug whereby strstr would mistakenly return NULL
11578         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
11579         in period calculation.
11580         (two_way_long_needle): Likewise.
11581         The original problem was reported by Mike Stump in
11582         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
11583         Ralf Wildenhues provided the short needle and haystack.
11584         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
11585         Add a more involved test to trigger the bug in two_way_long_needle.
11586
11587 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11588
11589         gnulib-tool: remove use of bold display in help screen
11590         * gnulib-tool (func_usage): Do not use bold display anymore in the
11591         help screen.  That was just meant to be a temporary emphasis for a
11592         backward-incompatible change.
11593
11594 2011-02-23  Bruno Haible  <bruno@clisp.org>
11595
11596         Fix misindentation of preprocessor directives.
11597         * lib/argp-namefrob.h: Reindent preprocessor directives.
11598         * lib/getopt_int.h (struct _getopt_data): Likewise.
11599         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
11600         * lib/vasnprintf.c (decode_long_double): Likewise.
11601         * tests/test-argmatch.c: Insert blank lines, for clarity.
11602         * tests/test-exclude.c: Likewise.
11603
11604 2011-02-22  Bruno Haible  <bruno@clisp.org>
11605
11606         ioctl: Fix for MacOS X in 64-bit mode.
11607         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
11608         value.
11609         Suggested by Eric Blake.
11610         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
11611
11612 2011-02-22  Jim Meyering  <meyering@redhat.com>
11613
11614         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
11615         * Makefile (sc_cpp_indent_check): Don't limit the check to files
11616         in lib/.
11617
11618 2011-02-22  Eric Blake  <eblake@redhat.com>
11619
11620         maint: avoid any CDPATH issue
11621         * Makefile (sc_cpp_indent_check): Anchor cd argument.
11622
11623         maint: adjust cpp indentation for my modules, as well
11624         * Makefile (sc_cpp_indent_check): Add my name.
11625         * lib/fbufmode.c: Filter through cppi.
11626         * lib/fpurge.c: Likewise.
11627         * lib/freadable.c: Likewise.
11628         * lib/freading.c: Likewise.
11629         * lib/fwritable.c: Likewise.
11630         * lib/fwriting.c: Likewise.
11631         * lib/sigaction.c: Likewise.
11632
11633 2011-02-22  Jim Meyering  <meyering@redhat.com>
11634
11635         maint: adjust cpp indentation to reflect nesting depth
11636         I.e., in a block of code that begins with an unnested "#if",
11637         put one space between the "#" in column 1 and following token.
11638         For example,
11639         -#include <sys/vfs.h>
11640         +# include <sys/vfs.h>
11641         Do this only in .c files that are part of a module I maintain.
11642         * lib/linkat.c: Filter through cppi.
11643         * lib/nanosleep.c: Likewise.
11644         * lib/openat.c: Likewise.
11645         * lib/openat-die.c: Likewise.
11646         * lib/dup3.c: Likewise.
11647         * lib/fchownat.c: Likewise.
11648         * lib/flock.c: Likewise.
11649         * lib/fsync.c: Likewise.
11650         * lib/fts.c: Likewise.
11651         * lib/getpass.c: Likewise.
11652         * lib/gettimeofday.c: Likewise.
11653         * lib/userspec.c: Likewise.
11654         * Makefile (sc_cpp_indent_check): New rule, to check this.
11655
11656 2011-02-22  Bruno Haible  <bruno@clisp.org>
11657
11658         New module 'wctomb'.
11659         * lib/stdlib.in.h (wctomb): New declaration.
11660         * lib/wctomb.c: New file.
11661         * lib/wctomb-impl.h: New file.
11662         * m4/wctomb.m4: New file.
11663         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
11664         REPLACE_WCTOMB.
11665         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
11666         REPLACE_WCTOMB.
11667         * modules/wctomb: New file.
11668         * tests/test-stdlib-c++.cc: Test signature of wctomb.
11669         * doc/posix-functions/wctomb.texi: Mention the new module.
11670         * modules/wctob (Depends-on): Add wctomb.
11671
11672 2011-02-22  Bruno Haible  <bruno@clisp.org>
11673
11674         New module 'mbtowc'.
11675         * lib/stdlib.in.h (mbtowc): New declaration.
11676         * lib/mbtowc.c: New file.
11677         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
11678         * m4/mbtowc.m4: New file.
11679         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
11680         REPLACE_MBTOWC.
11681         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
11682         REPLACE_MBTOWC.
11683         * modules/mbtowc: New file.
11684         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
11685         * doc/posix-functions/mbtowc.texi: Mention the new module.
11686         * modules/btowc (Depends-on): Add mbtowc.
11687
11688 2011-02-22  Bruno Haible  <bruno@clisp.org>
11689
11690         wcrtomb: Add more tests for native Windows platforms.
11691         * tests/test-wcrtomb-w32-1.sh: New file.
11692         * tests/test-wcrtomb-w32-2.sh: New file.
11693         * tests/test-wcrtomb-w32-3.sh: New file.
11694         * tests/test-wcrtomb-w32-4.sh: New file.
11695         * tests/test-wcrtomb-w32-5.sh: New file.
11696         * tests/test-wcrtomb-w32.c: New file.
11697         * modules/wcrtomb-tests (Files): Add them.
11698         (Makefile.am): Arrange to run these tests.
11699         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
11700         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
11701
11702 2011-02-20  Bruno Haible  <bruno@clisp.org>
11703
11704         wcrtomb: Enhance test.
11705         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
11706
11707 2011-02-20  Bruno Haible  <bruno@clisp.org>
11708
11709         mbrtowc: Tiny optimization.
11710         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
11711
11712 2011-02-20  Jim Meyering  <meyering@redhat.com>
11713
11714         test-exclude.c: remove unmatched #endif
11715         * tests/test-exclude.c: Remove stray #endif, left over from
11716         the change of a week ago.
11717
11718 2011-02-19  Jim Meyering  <meyering@redhat.com>
11719
11720         git-version-gen: skip "-dirty" check when appropriate
11721         * build-aux/git-version-gen: Don't run any git commands when the
11722         version string comes from .tarball-version.  Prior to this, we
11723         would run git update-index --refresh even from a just-unpacked
11724         tarball directory, and that could affect a .git/ directory in a
11725         parent of the build directory.  Reported by Mike Frysinger.
11726
11727 2011-02-19  Bruno Haible  <bruno@clisp.org>
11728
11729         unictype/property-byname: Reduce the size of the 'data' segment.
11730         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
11731
11732 2011-02-19  Bruno Haible  <bruno@clisp.org>
11733
11734         unictype/scripts: Reduce the size of the 'data' segment.
11735         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
11736         '%pic'.
11737         * lib/unictype/scripts_byname.gperf: Regenerated.
11738
11739 2011-02-19  Bruno Haible  <bruno@clisp.org>
11740
11741         stdint: Update documentation.
11742         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
11743
11744 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
11745
11746         stdint: omit redundant check for wchar.h
11747         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
11748         always tests whether wchar.h exists, so remove the now-redundant test.
11749
11750 2011-02-18  Bruno Haible  <bruno@clisp.org>
11751
11752         stdint: Cut dependency to module 'wchar'.
11753         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
11754         include the necessary prerequisites.
11755         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
11756         * modules/stdint (Depends-on): Remove wchar.
11757         (Makefile.am): Substitute HAVE_WCHAR_H.
11758         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
11759
11760 2011-02-18  Eric Blake  <eblake@redhat.com>
11761
11762         longlong: skip, rather than fail, on cross-compilation
11763         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
11764         when cross-compiling; regression from 2011-02-16.
11765
11766 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
11767
11768         * NEWS: Mention 2011-02-08 change to stdlib.
11769
11770 2011-02-17  Bruno Haible  <bruno@clisp.org>
11771
11772         getloadavg: Add comments about platforms.
11773         * m4/getloadavg.m4: Add comment.
11774         * lib/getloadavg.c: Likewise.
11775
11776 2011-02-17  Bruno Haible  <bruno@clisp.org>
11777
11778         getloadavg: Fix link error on Solaris 2.6.
11779         * modules/getloadavg (Link): New section.
11780         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
11781         linking test-getloadavg.
11782         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
11783         getloadavg.
11784
11785 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
11786
11787         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
11788         It was 'int', but this doesn't match the IRIX 6.5 manual.
11789         Suggested by Bruno Haible in
11790         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
11791
11792 2011-02-17  Bruno Haible  <bruno@clisp.org>
11793
11794         havelib: Fix comments.
11795         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
11796         change.
11797
11798 2011-02-17  Bruno Haible  <bruno@clisp.org>
11799
11800         havelib: Update config.rpath.
11801         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
11802
11803 2011-02-17  Bruno Haible  <bruno@clisp.org>
11804
11805         getloadavg test: Add some plausibility checks.
11806         * tests/test-getloadavg.c (check_avg): Print a warning when the value
11807         is improbable.
11808
11809 2011-02-16  Eric Blake  <eblake@redhat.com>
11810
11811         maintainer-makefile: make syntax-check a no-op from tarballs
11812         * top/maint.mk (no-vc-detected): New rule.
11813         (local-checks-available): Use it to avoid hanging if someone tries
11814         'make syntax-check' from a tarball.  Also append to any non-syntax
11815         checks already defined in cfg.mk.
11816
11817 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
11818
11819         longlong: tune, particularly for common case of c99
11820
11821         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
11822         or running anything if c99, or if unsigned long long int does not
11823         work.  In either case, we know the answer without further tests.
11824         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
11825         it at most once, and use its results for both long long int and
11826         unsigned long long int.  This is more likely to be efficient in
11827         the common case where the program wants to check for both long
11828         long int and unsigned long long int.
11829         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
11830         since the answer is already known.
11831
11832 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
11833
11834         getloadavg: set errno
11835         * lib/getloadavg.c: Set errno when returning -1.  If no other
11836         error number looks appropriate, set it to ENOSYS if the getloadavg
11837         looks like it can't possibly ever work, ENOTSUP otherwise.
11838         Suggested by Bruno Haible in
11839         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
11840
11841         getloadavg: trim unused parts and speed up 'configure'
11842         * NEWS: Document this.
11843         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
11844         always compiled if getloadavg is absent.
11845         Move test code to ...
11846         * tests/test-getloadavg.c: New file, containing previous
11847         contents of test from lib/getloadavg.c.  It also contains
11848         suggestions by Bruno Haible in
11849         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
11850         * modules/getloadavg-tests: New file.
11851         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
11852         Do tests in the same order as they're needed for getloadavg.c.
11853         Omit setgid-related tests that generate symbols KMEM_GROUP,
11854         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
11855         Do only the tests that are needed to see whether the system has
11856         getloadavg, moving the other tests into ...
11857         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
11858         NLIST_NAME_UNION; nobody should be using it.  Do not define
11859         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
11860         relevant, as the user of this module shouldn't care how getloadavg
11861         is implemented.
11862
11863         getloadavg: omit unused var
11864         * lib/getloadavg.c (getloadavg): Omit unused local variable.
11865
11866 2011-02-15  Jim Meyering  <meyering@redhat.com>
11867
11868         doc: update users.txt
11869         * users.txt: Update iwhd's URL.
11870
11871 2011-02-13  Bruno Haible  <bruno@clisp.org>
11872
11873         Consistent macro naming for macros that use GCC __attribute__.
11874         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
11875         _ATTRIBUTE_NONNULL_.
11876         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
11877         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
11878         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
11879         ATTRIBUTE_DEPRECATED.
11880         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
11881         ATTRIBUTE_NORETURN.
11882         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11883         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11884         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11885         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11886         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
11887         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
11888         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
11889         ATTRIBUTE_SENTINEL.
11890         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
11891         ATTRIBUTE_RETURN_CHECK.
11892         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
11893         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
11894         ATTRIBUTE_NORETURN.
11895         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
11896         Reported by Paul Eggert.
11897
11898 2011-02-13  Bruno Haible  <bruno@clisp.org>
11899
11900         Don't interfere with a program's definition of __attribute__.
11901         * lib/argp.h (__attribute__): Remove definition.
11902         (_GL_ATTRIBUTE_FORMAT): New macro.
11903         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
11904         * lib/argp-fmtstream.h (__attribute__): Remove definition.
11905         (_GL_ATTRIBUTE_FORMAT): New macro.
11906         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
11907         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
11908         GCC 3 or newer.
11909         * lib/error.h (__attribute__): Remove definition.
11910         (_GL_ATTRIBUTE_FORMAT): New macro.
11911         (error, error_at_line): Use it.
11912         * lib/hash.h (__attribute__): Remove definition.
11913         (ATTRIBUTE_WUR): Update definition. Define always.
11914         * lib/openat.h (__attribute__): Remove definition.
11915         (ATTRIBUTE_NORETURN): Update definition. Define always.
11916         * lib/sigpipe-die.h (__attribute__): Remove definition.
11917         (ATTRIBUTE_NORETURN): Update definition. Define always.
11918         * lib/vasnprintf.h (__attribute__): Remove definition.
11919         (_GL_ATTRIBUTE_FORMAT): New macro.
11920         (asnprintf, vasnprintf): Use it.
11921         * lib/xalloc.h (__attribute__): Remove definition.
11922         (ATTRIBUTE_NORETURN): Update definition. Define always.
11923         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
11924         * lib/xmemdup0.h (__attribute__): Remove definition.
11925         (ATTRIBUTE_NORETURN): Update definition. Define always.
11926         * lib/xprintf.h (__attribute__): Remove definition.
11927         (_GL_ATTRIBUTE_FORMAT): New macro.
11928         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
11929         * lib/xstrtol.h (__attribute__): Remove definition.
11930         (ATTRIBUTE_NORETURN): Update definition. Define always.
11931         * lib/xvasprintf.h (__attribute__): Remove definition.
11932         (_GL_ATTRIBUTE_FORMAT): New macro.
11933         (xasprintf, xvasprintf): Use it.
11934         * tests/test-argmatch.c (__attribute__): Remove definition.
11935         (ATTRIBUTE_NORETURN): Update definition. Define always.
11936         * tests/test-exclude.c (__attribute__): Remove definition.
11937         (ATTRIBUTE_NORETURN): Update definition. Define always.
11938         Reported by Paul Eggert.
11939
11940 2011-02-13  Bruno Haible  <bruno@clisp.org>
11941
11942         mbrtowc: Add more tests for native Windows platforms.
11943         * tests/test-mbrtowc-w32-1.sh: New file.
11944         * tests/test-mbrtowc-w32-2.sh: New file.
11945         * tests/test-mbrtowc-w32-3.sh: New file.
11946         * tests/test-mbrtowc-w32-4.sh: New file.
11947         * tests/test-mbrtowc-w32-5.sh: New file.
11948         * tests/test-mbrtowc-w32.c: New file.
11949         * modules/mbrtowc-tests (Files): Add them.
11950         (Makefile.am): Arrange to run these tests.
11951         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
11952         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
11953
11954 2011-02-13  Bruno Haible  <bruno@clisp.org>
11955
11956         mbrtowc: Work around native Windows bug.
11957         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
11958         guess when no suitable locale for testing was found.
11959         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
11960
11961 2011-02-13  Bruno Haible  <bruno@clisp.org>
11962
11963         mbsinit: Work around mingw bug.
11964         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
11965         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
11966         Windows.
11967         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
11968
11969 2011-02-13  Bruno Haible  <bruno@clisp.org>
11970
11971         mbsinit: Don't crash for a NULL argument.
11972         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
11973         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
11974
11975 2011-02-13  Bruno Haible  <bruno@clisp.org>
11976
11977         Don't interfere with a program's definition of __attribute__.
11978         * lib/stdio.in.h (__attribute__): Remove definition.
11979         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
11980         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
11981         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
11982         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
11983         * lib/string.in.h (__attribute__): Remove definition.
11984         Reported by Paul Eggert.
11985
11986 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
11987
11988         stdlib: don't get in the way of non-GCC __attribute__
11989         See thread starting at
11990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
11991         Revert previous stdlib change, installing the following instead:
11992         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
11993         to get in the way of a non-GCC compiler that supports __attribute__.
11994         (_GL_ATTRIBUTE_RETURN): New macro.
11995         (_Exit): Use it instead of __attribute__.
11996
11997 2011-02-12  Bruno Haible  <bruno@clisp.org>
11998
11999         quotearg test: Avoid test failure on mingw.
12000         * tests/test-quotearg.sh: Convert the locale identifier from native
12001         Windows syntax to Unix syntax.
12002
12003 2011-02-12  Bruno Haible  <bruno@clisp.org>
12004
12005         setlocale: Prefer gnulib's override over libintl's override.
12006         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
12007         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
12008         GNULIB_defined_setlocale is set.
12009
12010 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12011
12012         stdlib: support non-GCC __attribute__
12013
12014         Fix a serious and tricky problem encountered when attempting to
12015         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
12016         5.5, but it crashed due to memory corruption on Solaris 10 with
12017         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
12018         bits that are otherwise zero.  This tagging is optional inside
12019         Emacs but is preferred and is used when __attribute__ ((__aligned
12020         (8))) works, as it does with both recent-enough GCC and with Sun C
12021         5.11.  However, Sun C 5.11 is not GCC and does not #define
12022         __GNUC__ and __GNUC_MINOR__.
12023
12024         When I added the getloadavg module to Emacs, it brought in
12025         stdlib.in.h, which contained this fragment:
12026
12027            #ifndef __attribute__
12028            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
12029            #  define __attribute__(Spec)   /* empty */
12030            # endif
12031            #endif
12032
12033         When files that include <stdlib.h> were compiled with Sun C 5.11,
12034         the above code disabled __attribute__ ((__aligned (8))), which
12035         caused variables to not be properly aligned, which eventually led
12036         to the pointer corruption mentioned above.  (This was a bit hard
12037         to diagnose, unfortunately.)
12038
12039         Several "#define __attribute__(X) /* empty */" code snippets need
12040         to be eradicated from Gnulib to work with non-GCC compilers that
12041         support __attribute__.  The Autoconf way to do this is to test for
12042         each kind of attribute that we want support for, and selectively
12043         enable that in source code.
12044
12045         Fix this problem just for stdlib.h, by adding a test for the
12046         __noreturn__ attribute, and change stdlib.in.h to use that test
12047         when needed.  This technique can be easily generalized to the
12048         other *.in.h files and attributes, and a similar technique can be
12049         used for *.h and *.c files.  This patch is enough to solve the
12050         problem for Emacs + getloadavg, and I thought I'd publish it for
12051         feedback before undertaking further, similar fixes in other
12052         modules.
12053
12054         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
12055         because it's not needed for stdlib.h.  It merely substitutes the
12056         value directly into stdlib.h.  We may well need to #define it, or
12057         similar symbols, for other modules, but it's nice to also have an
12058         option to not #define it for applications like Emacs that do not
12059         need it.
12060
12061         * lib/stdlib.in.h (__attribute__): Do not #define.
12062         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
12063         be defined only if the _Exit module is also used.
12064         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
12065         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
12066         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
12067         platforms.
12068         * modules/_Exit (Files): Add m4/attribute.m4.
12069         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
12070         * m4/attribute.m4: New file.
12071
12072 2011-02-12  Bruno Haible  <bruno@clisp.org>
12073
12074         wcsrtombs: Work around bug on native Windows.
12075         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
12076         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
12077         instead of len.
12078         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
12079
12080 2011-02-12  Bruno Haible  <bruno@clisp.org>
12081
12082         mbsrtowcs: Work around bug on native Windows.
12083         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
12084         against mingw bug.
12085         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
12086
12087 2011-02-12  Bruno Haible  <bruno@clisp.org>
12088
12089         Avoid setlocale bugs in tests.
12090         * modules/btowc (Dependencies): Add setlocale.
12091         * modules/c-strcase (Dependencies): Likewise.
12092         * modules/mbmemcasecmp (Dependencies): Likewise.
12093         * modules/mbmemcasecoll (Dependencies): Likewise.
12094         * modules/mbrtowc (Dependencies): Likewise.
12095         * modules/mbscasecmp (Dependencies): Likewise.
12096         * modules/mbscasestr (Dependencies): Likewise.
12097         * modules/mbschr (Dependencies): Likewise.
12098         * modules/mbscspn (Dependencies): Likewise.
12099         * modules/mbsinit (Dependencies): Likewise.
12100         * modules/mbsncasecmp (Dependencies): Likewise.
12101         * modules/mbsnrtowcs (Dependencies): Likewise.
12102         * modules/mbspbrk (Dependencies): Likewise.
12103         * modules/mbspcasecmp (Dependencies): Likewise.
12104         * modules/mbsrchr (Dependencies): Likewise.
12105         * modules/mbsrtowcs (Dependencies): Likewise.
12106         * modules/mbsspn (Dependencies): Likewise.
12107         * modules/mbsstr (Dependencies): Likewise.
12108         * modules/nl_langinfo (Dependencies): Likewise.
12109         * modules/quotearg (Dependencies): Likewise.
12110         * modules/unicase/locale-language (Dependencies): Likewise.
12111         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
12112         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
12113         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
12114         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
12115         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
12116         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
12117         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
12118         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
12119         * modules/vasnprintf-posix (Dependencies): Likewise.
12120         * modules/wcrtomb (Dependencies): Likewise.
12121         * modules/wcsnrtombs (Dependencies): Likewise.
12122         * modules/wcsrtombs (Dependencies): Likewise.
12123
12124 2011-02-12  Bruno Haible  <bruno@clisp.org>
12125
12126         setlocale: Workaround native Windows bug.
12127         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
12128         succeeds but sets LC_CTYPE to "C", report a failure.
12129         * tests/test-setlocale2.sh: New file.
12130         * tests/test-setlocale2.c: New file.
12131         * modules/setlocale-tests (Files): Add the new files.
12132         (Makefile.am): Enable test-setlocale2.sh test.
12133         * doc/posix-functions/setlocale.texi: Mention workaround.
12134
12135 2011-02-11  Bruno Haible  <bruno@clisp.org>
12136
12137         Tests for module 'setlocale'.
12138         * modules/setlocale-tests: New file.
12139         * tests/test-setlocale1.sh: New file.
12140         * tests/test-setlocale1.c: New file.
12141
12142         New module 'setlocale'.
12143         * lib/locale.in.h (setlocale): New declaration.
12144         * lib/setlocale.c: New file, based on
12145         gettext/gettext-runtime/intl/setlocale.c.
12146         * m4/setlocale.m4: New file.
12147         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
12148         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
12149         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
12150         REPLACE_SETLOCALE.
12151         * modules/setlocale: New file.
12152         * tests/test-locale-c++.cc: Test the declaration of setlocale.
12153         * doc/posix-functions/setlocale.texi: Mention the new module.
12154
12155 2011-02-11  Bruno Haible  <bruno@clisp.org>
12156
12157         Prepare for locale dependent tests on mingw.
12158         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
12159         because it has the wrong locale encoding.
12160         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
12161         French_France.1252 instead of "fr".
12162         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
12163         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
12164         because it has the wrong locale encoding.
12165         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
12166         native Windows, try Turkish_Turkey.65001.
12167         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
12168         Chinese_China.54936.
12169
12170         Prepare for locale dependent tests on mingw.
12171         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
12172         differently.
12173         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
12174         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
12175         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
12176         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12177
12178 2011-02-11  Eric Blake  <eblake@redhat.com>
12179
12180         strptime: avoid compiler warnings
12181         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
12182         compiler warnings about dead code.
12183         Reported by Daniel P. Berrange.
12184
12185 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
12186
12187         doc: update users.txt
12188         * users.txt: Add rcs.
12189
12190 2011-02-10  John W. Eaton  <jwe@gnu.org>
12191
12192         doc: update users.txt
12193         * users.txt: Add octave.
12194
12195 2011-02-10  Jim Meyering  <meyering@redhat.com>
12196
12197         doc: update users.txt
12198         * users.txt: Add iwhd.
12199
12200 2011-02-09  Bruno Haible  <bruno@clisp.org>
12201
12202         gnulib-tool: Make copyright notice adjustment more robust.
12203         * gnulib-tool (func_import): In sed_transform_main_lib_file,
12204         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
12205         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
12206         License".
12207         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
12208
12209 2011-02-06  Bruno Haible  <bruno@clisp.org>
12210
12211         New module 'towctrans'.
12212         * modules/towctrans: New file.
12213         * lib/wctype.in.h (towctrans): New declaration.
12214         * lib/towctrans.c: New file.
12215         * lib/towctrans-impl.h: New file.
12216         * m4/towctrans.m4: New file.
12217         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
12218         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
12219         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
12220         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
12221         * doc/posix-functions/towctrans.texi: Mention the new module.
12222
12223 2011-02-06  Bruno Haible  <bruno@clisp.org>
12224
12225         New module 'wctrans'.
12226         * modules/wctrans: New file.
12227         * lib/wctype.in.h (wctrans): New declaration.
12228         * lib/wctrans.c: New file.
12229         * lib/wctrans-impl.h: New file.
12230         * m4/wctrans.m4: New file.
12231         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
12232         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
12233         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
12234         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
12235         * doc/posix-functions/wctrans.texi: Mention the new module.
12236
12237 2011-02-06  Bruno Haible  <bruno@clisp.org>
12238
12239         New module 'iswctype'.
12240         * modules/iswctype: New file.
12241         * lib/wctype.in.h (iswctype): New declaration.
12242         * lib/iswctype.c: New file.
12243         * lib/iswctype-impl.h: New file.
12244         * m4/iswctype.m4: New file.
12245         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
12246         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
12247         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
12248         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
12249         * doc/posix-functions/iswctype.texi: Mention the new module and the
12250         HP-UX 11.00 problem.
12251
12252 2011-02-06  Bruno Haible  <bruno@clisp.org>
12253
12254         New module 'wctype'.
12255         * modules/wctype: Change to represent the wctype() substitute.
12256         * lib/wctype.in.h (wctype): New declaration.
12257         * lib/wctype.c: New file.
12258         * lib/wctype-impl.h: New file.
12259         * m4/wctype.m4: New file.
12260         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
12261         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
12262         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
12263         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
12264         * doc/posix-functions/wctype.texi: Mention the new module and the
12265         HP-UX 11.00 problem.
12266
12267 2011-02-06  Bruno Haible  <bruno@clisp.org>
12268
12269         wctype-h: Ensure wctype_t and wctrans_t are defined.
12270         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
12271         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
12272         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
12273         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
12274         HAVE_WCTRANS_T.
12275         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
12276
12277 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12278
12279         flock: fix license typo
12280
12281         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
12282         omitted.
12283
12284 2011-02-08  Bruno Haible  <bruno@clisp.org>
12285
12286         Split large sed scripts, for HP-UX sed.
12287         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
12288         to avoid HP-UX limit of 99 commands, in the near future.
12289         * modules/stdlib (Makefile.am): Likewise.
12290         * modules/unistd (Makefile.am): Likewise.
12291         * modules/wchar (Makefile.am): Likewise.
12292         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12293         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
12294         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
12295
12296 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12297             Bruno Haible  <bruno@clisp.org>
12298
12299         stdlib: improve random_r modularization
12300         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
12301         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
12302         you also need the random_r module to get this material right.
12303         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
12304         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
12305         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
12306
12307 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12308
12309         stdlib: don't depend on stdint
12310         * lib/stdlib.in.h: Don't include <stdint.h> merely because
12311         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
12312         be independent of whether stdint.h is needed.
12313         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
12314         here, instead of ...
12315         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
12316         struct random_data should be using the random_r module, not just
12317         the stdlib module (which wouldn't make sense: what package needs
12318         just struct random_data without also needing random_r?).
12319         * modules/stdlib (Depends-on): Remove stdint.
12320
12321         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
12322         See the thread rooted at
12323         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
12324         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
12325         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
12326         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
12327         __VMS)); previously it was always included (via fcntl--.h).
12328         (getloadavg): Do not use c_strtod.  Instead, approximate it by
12329         hand; this is good enough for load averages.  Also, do not use
12330         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
12331         flags directly if available and don't bother otherwise.  (Packages
12332         that need the extra reliability should use the modules that define
12333         these flags on older platforms that lack them.)
12334         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
12335         fcntl-safer.
12336
12337 2011-02-08  Jim Meyering  <meyering@redhat.com>
12338
12339         di-set.h, ino-map.h: add multiple-inclusion guard
12340         Technically, the guard is required only for ino-map.h, due to its
12341         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
12342         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
12343         * lib/ino-map.h: Likewise.
12344
12345 2011-02-06  Bruno Haible  <bruno@clisp.org>
12346
12347         iswblank: Ensure declaration on glibc systems.
12348         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
12349         * modules/iswblank (Dependencies): Add 'extensions'.
12350         * doc/posix-functions/iswblank.texi: Document the glibc problem.
12351
12352 2011-02-06  Bruno Haible  <bruno@clisp.org>
12353
12354         New module 'iswblank'.
12355         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
12356         * modules/iswblank: New file.
12357         * modules/wctype-h (Files): Remove lib/iswblank.c.
12358         (Makefile.am): Substitute GNULIB_ISWBLANK.
12359         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
12360         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
12361         (gl_WCTYPE_H_DEFAULTS): New macro.
12362         (gl_WCTYPE_H): Require it. Remove iswblank related code.
12363         * modules/iswblank-tests: New file.
12364         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
12365         * tests/test-wctype-h.c (main): Remove iswblank tests.
12366         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
12367         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
12368         of 'wctype-h'.
12369         * NEWS: Mention the change.
12370         * modules/mbchar (Depends-on): Add iswblank.
12371
12372 2011-02-08  Bruno Haible  <bruno@clisp.org>
12373
12374         di-set tests: Refactor.
12375         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
12376         unnecessary includes.
12377         (ASSERT): Remove macro.
12378         (main): Make C90 compliant by avoiding variable declaration after
12379         statement.
12380         * modules/di-set-tests (Files): Add tests/macros.h.
12381
12382 2011-02-08  Bruno Haible  <bruno@clisp.org>
12383
12384         ino-map tests: Refactor.
12385         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
12386         unnecessary includes.
12387         (ASSERT): Remove macro.
12388         (main): Make C90 compliant by avoiding variable declaration after
12389         statement.
12390         * modules/ino-map-tests (Files): Add tests/macros.h.
12391
12392 2011-02-08  Jim Meyering  <meyering@redhat.com>
12393
12394         di-set: add "const" to a cast
12395         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
12396         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
12397
12398 2011-02-06  Bruno Haible  <bruno@clisp.org>
12399
12400         Rename module 'wctype' to 'wctype-h'.
12401         * modules/wctype-h: Renamed from modules/wctype.
12402         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
12403         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
12404         (Files, Depends-on, Makefile.am): Update.
12405         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
12406         (Files, Makefile.am): Update.
12407         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
12408         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
12409         * doc/posix-headers/wctype.texi: Update.
12410         * doc/posix-functions/iswalnum.texi: Update.
12411         * doc/posix-functions/iswalpha.texi: Update.
12412         * doc/posix-functions/iswblank.texi: Update.
12413         * doc/posix-functions/iswcntrl.texi: Update.
12414         * doc/posix-functions/iswdigit.texi: Update.
12415         * doc/posix-functions/iswgraph.texi: Update.
12416         * doc/posix-functions/iswlower.texi: Update.
12417         * doc/posix-functions/iswprint.texi: Update.
12418         * doc/posix-functions/iswpunct.texi: Update.
12419         * doc/posix-functions/iswspace.texi: Update.
12420         * doc/posix-functions/iswupper.texi: Update.
12421         * doc/posix-functions/iswxdigit.texi: Update.
12422         * doc/posix-functions/towlower.texi: Update.
12423         * doc/posix-functions/towupper.texi: Update.
12424         * NEWS: Mention the change.
12425         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
12426         * modules/mbchar (Dependencies): Likewise.
12427         * modules/mbswidth (Dependencies): Likewise.
12428         * modules/quotearg (Dependencies): Likewise.
12429         * modules/regex (Dependencies): Likewise.
12430         * modules/wcscasecmp (Dependencies): Likewise.
12431         * modules/wcsncasecmp (Dependencies): Likewise.
12432         * modules/wcwidth (Dependencies): Likewise.
12433
12434 2011-02-06  Bruno Haible  <bruno@clisp.org>
12435
12436         New module 'wcswidth'.
12437         * modules/wcswidth: New file.
12438         * lib/wchar.in.h (wcswidth): New declaration.
12439         * lib/wcswidth.c: New file.
12440         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
12441         * m4/wcswidth.m4: New file.
12442         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
12443         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
12444         REPLACE_WCSWIDTH.
12445         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
12446         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
12447         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
12448         * doc/posix-functions/wcswidth.texi: Mention the new module.
12449
12450 2011-02-06  Bruno Haible  <bruno@clisp.org>
12451
12452         New module 'wcstok'.
12453         * modules/wcstok: New file.
12454         * lib/wchar.in.h (wcstok): New declaration.
12455         * lib/wcstok.c: New file.
12456         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
12457         * m4/wcstok.m4: New file.
12458         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
12459         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
12460         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
12461         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
12462         * doc/posix-functions/wcstok.texi: Mention the new module.
12463
12464 2011-02-06  Bruno Haible  <bruno@clisp.org>
12465
12466         New module 'wcsstr'.
12467         * modules/wcsstr: New file.
12468         * lib/wchar.in.h (wcsstr): New declaration.
12469         * lib/wcsstr.c: New file.
12470         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
12471         * m4/wcsstr.m4: New file.
12472         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
12473         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
12474         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
12475         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
12476         * doc/posix-functions/wcsstr.texi: Mention the new module.
12477
12478 2011-02-06  Bruno Haible  <bruno@clisp.org>
12479
12480         New module 'wcspbrk'.
12481         * modules/wcspbrk: New file.
12482         * lib/wchar.in.h (wcspbrk): New declaration.
12483         * lib/wcspbrk.c: New file.
12484         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
12485         * m4/wcspbrk.m4: New file.
12486         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
12487         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
12488         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
12489         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
12490         * doc/posix-functions/wcspbrk.texi: Mention the new module.
12491
12492 2011-02-06  Bruno Haible  <bruno@clisp.org>
12493
12494         New module 'wcsspn'.
12495         * modules/wcsspn: New file.
12496         * lib/wchar.in.h (wcsspn): New declaration.
12497         * lib/wcsspn.c: New file.
12498         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
12499         * m4/wcsspn.m4: New file.
12500         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
12501         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
12502         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
12503         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
12504         * doc/posix-functions/wcsspn.texi: Mention the new module.
12505
12506 2011-02-06  Bruno Haible  <bruno@clisp.org>
12507
12508         New module 'wcscspn'.
12509         * modules/wcscspn: New file.
12510         * lib/wchar.in.h (wcscspn): New declaration.
12511         * lib/wcscspn.c: New file.
12512         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
12513         * m4/wcscspn.m4: New file.
12514         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
12515         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
12516         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
12517         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
12518         * doc/posix-functions/wcscspn.texi: Mention the new module.
12519
12520 2011-02-06  Bruno Haible  <bruno@clisp.org>
12521
12522         New module 'wcsrchr'.
12523         * modules/wcsrchr: New file.
12524         * lib/wchar.in.h (wcsrchr): New declaration.
12525         * lib/wcsrchr.c: New file.
12526         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
12527         * m4/wcsrchr.m4: New file.
12528         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
12529         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
12530         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
12531         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
12532         * doc/posix-functions/wcsrchr.texi: Mention the new module.
12533
12534 2011-02-06  Bruno Haible  <bruno@clisp.org>
12535
12536         New module 'wcschr'.
12537         * modules/wcschr: New file.
12538         * lib/wchar.in.h (wcschr): New declaration.
12539         * lib/wcschr.c: New file.
12540         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
12541         * m4/wcschr.m4: New file.
12542         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
12543         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
12544         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
12545         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
12546         * doc/posix-functions/wcschr.texi: Mention the new module.
12547
12548 2011-02-06  Bruno Haible  <bruno@clisp.org>
12549
12550         New module 'wcsdup'.
12551         * modules/wcsdup: New file.
12552         * lib/wchar.in.h (wcsdup): New declaration.
12553         * lib/wcsdup.c: New file.
12554         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
12555         * m4/wcsdup.m4: New file.
12556         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
12557         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
12558         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
12559         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
12560         * doc/posix-functions/wcsdup.texi: Mention the new module.
12561
12562 2011-02-06  Bruno Haible  <bruno@clisp.org>
12563
12564         New module 'wcsxfrm'.
12565         * modules/wcsxfrm: New file.
12566         * lib/wchar.in.h (wcsxfrm): New declaration.
12567         * lib/wcsxfrm.c: New file.
12568         * lib/wcsxfrm-impl.h: New file.
12569         * m4/wcsxfrm.m4: New file.
12570         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
12571         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
12572         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
12573         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
12574         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
12575
12576 2011-02-06  Bruno Haible  <bruno@clisp.org>
12577
12578         New module 'wcscoll'.
12579         * modules/wcscoll: New file.
12580         * lib/wchar.in.h (wcscoll): New declaration.
12581         * lib/wcscoll.c: New file.
12582         * lib/wcscoll-impl.h: New file.
12583         * m4/wcscoll.m4: New file.
12584         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
12585         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
12586         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
12587         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
12588         * doc/posix-functions/wcscoll.texi: Mention the new module.
12589
12590 2011-02-06  Bruno Haible  <bruno@clisp.org>
12591
12592         New module 'wcsncasecmp'.
12593         * modules/wcsncasecmp: New file.
12594         * lib/wchar.in.h (wcsncasecmp): New declaration.
12595         * lib/wcsncasecmp.c: New file.
12596         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
12597         * m4/wcsncasecmp.m4: New file.
12598         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
12599         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
12600         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
12601         HAVE_WCSNCASECMP.
12602         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
12603         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
12604
12605 2011-02-06  Bruno Haible  <bruno@clisp.org>
12606
12607         New module 'wcscasecmp'.
12608         * modules/wcscasecmp: New file.
12609         * lib/wchar.in.h (wcscasecmp): New declaration.
12610         * lib/wcscasecmp.c: New file.
12611         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
12612         * m4/wcscasecmp.m4: New file.
12613         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
12614         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
12615         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
12616         HAVE_WCSCASECMP.
12617         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
12618         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
12619
12620 2011-02-05  Bruno Haible  <bruno@clisp.org>
12621
12622         New module 'wcsncmp'.
12623         * modules/wcsncmp: New file.
12624         * lib/wchar.in.h (wcsncmp): New declaration.
12625         * lib/wcsncmp.c: New file.
12626         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
12627         * m4/wcsncmp.m4: New file.
12628         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
12629         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
12630         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
12631         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
12632         * doc/posix-functions/wcsncmp.texi: Mention the new module.
12633
12634 2011-02-05  Bruno Haible  <bruno@clisp.org>
12635
12636         New module 'wcscmp'.
12637         * modules/wcscmp: New file.
12638         * lib/wchar.in.h (wcscmp): New declaration.
12639         * lib/wcscmp.c: New file.
12640         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
12641         * m4/wcscmp.m4: New file.
12642         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
12643         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
12644         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
12645         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
12646         * doc/posix-functions/wcscmp.texi: Mention the new module.
12647
12648 2011-02-05  Bruno Haible  <bruno@clisp.org>
12649
12650         New module 'wcsncat'.
12651         * modules/wcsncat: New file.
12652         * lib/wchar.in.h (wcsncat): New declaration.
12653         * lib/wcsncat.c: New file.
12654         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
12655         * m4/wcsncat.m4: New file.
12656         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
12657         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
12658         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
12659         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
12660         * doc/posix-functions/wcsncat.texi: Mention the new module.
12661
12662 2011-02-05  Bruno Haible  <bruno@clisp.org>
12663
12664         New module 'wcscat'.
12665         * modules/wcscat: New file.
12666         * lib/wchar.in.h (wcscat): New declaration.
12667         * lib/wcscat.c: New file.
12668         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
12669         * m4/wcscat.m4: New file.
12670         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
12671         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
12672         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
12673         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
12674         * doc/posix-functions/wcscat.texi: Mention the new module.
12675
12676 2011-02-05  Bruno Haible  <bruno@clisp.org>
12677
12678         New module 'wcpncpy'.
12679         * modules/wcpncpy: New file.
12680         * lib/wchar.in.h (wcpncpy): New declaration.
12681         * lib/wcpncpy.c: New file.
12682         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
12683         * m4/wcpncpy.m4: New file.
12684         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
12685         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
12686         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
12687         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
12688         * doc/posix-functions/wcpncpy.texi: Mention the new module.
12689
12690 2011-02-05  Bruno Haible  <bruno@clisp.org>
12691
12692         New module 'wcsncpy'.
12693         * modules/wcsncpy: New file.
12694         * lib/wchar.in.h (wcsncpy): New declaration.
12695         * lib/wcsncpy.c: New file.
12696         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
12697         * m4/wcsncpy.m4: New file.
12698         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
12699         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
12700         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
12701         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
12702         * doc/posix-functions/wcsncpy.texi: Mention the new module.
12703
12704 2011-02-05  Bruno Haible  <bruno@clisp.org>
12705
12706         New module 'wcpcpy'.
12707         * modules/wcpcpy: New file.
12708         * lib/wchar.in.h (wcpcpy): New declaration.
12709         * lib/wcpcpy.c: New file.
12710         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
12711         * m4/wcpcpy.m4: New file.
12712         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
12713         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
12714         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
12715         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
12716         * doc/posix-functions/wcpcpy.texi: Mention the new module.
12717
12718 2011-02-05  Bruno Haible  <bruno@clisp.org>
12719
12720         New module 'wcscpy'.
12721         * modules/wcscpy: New file.
12722         * lib/wchar.in.h (wcscpy): New declaration.
12723         * lib/wcscpy.c: New file.
12724         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
12725         * m4/wcscpy.m4: New file.
12726         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
12727         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
12728         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
12729         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
12730         * doc/posix-functions/wcscpy.texi: Mention the new module.
12731
12732 2011-02-05  Bruno Haible  <bruno@clisp.org>
12733
12734         New module 'wcsnlen'.
12735         * modules/wcsnlen: New file.
12736         * lib/wchar.in.h (wcsnlen): New declaration.
12737         * lib/wcsnlen.c: New file.
12738         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
12739         * m4/wcsnlen.m4: New file.
12740         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
12741         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
12742         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
12743         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
12744         * doc/posix-functions/wcsnlen.texi: Mention the new module.
12745
12746 2011-02-05  Bruno Haible  <bruno@clisp.org>
12747
12748         New module 'wcslen'.
12749         * modules/wcslen: New file.
12750         * lib/wchar.in.h (wcslen): New declaration.
12751         * lib/wcslen.c: New file.
12752         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
12753         * m4/wcslen.m4: New file.
12754         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
12755         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
12756         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
12757         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
12758         * doc/posix-functions/wcslen.texi: Mention the new module.
12759
12760 2011-02-05  Bruno Haible  <bruno@clisp.org>
12761
12762         New module 'wmemset'.
12763         * modules/wmemset: New file.
12764         * lib/wchar.in.h (wmemset): New declaration.
12765         * lib/wmemset.c: New file.
12766         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
12767         * m4/wmemset.m4: New file.
12768         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
12769         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
12770         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
12771         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
12772         * doc/posix-functions/wmemset.texi: Mention the new module.
12773
12774 2011-02-05  Bruno Haible  <bruno@clisp.org>
12775
12776         New module 'wmemmove'.
12777         * modules/wmemmove: New file.
12778         * lib/wchar.in.h (wmemmove): New declaration.
12779         * lib/wmemmove.c: New file.
12780         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
12781         * m4/wmemmove.m4: New file.
12782         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
12783         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
12784         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
12785         HAVE_WMEMMOVE.
12786         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
12787         * doc/posix-functions/wmemmove.texi: Mention the new module.
12788
12789 2011-02-05  Bruno Haible  <bruno@clisp.org>
12790
12791         New module 'wmemcpy'.
12792         * modules/wmemcpy: New file.
12793         * lib/wchar.in.h (wmemcpy): New declaration.
12794         * lib/wmemcpy.c: New file.
12795         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
12796         * m4/wmemcpy.m4: New file.
12797         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
12798         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
12799         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
12800         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
12801         * doc/posix-functions/wmemcpy.texi: Mention the new module.
12802
12803 2011-02-05  Bruno Haible  <bruno@clisp.org>
12804
12805         New module 'wmemcmp'.
12806         * modules/wmemcmp: New file.
12807         * lib/wchar.in.h (wmemcmp): New declaration.
12808         * lib/wmemcmp.c: New file.
12809         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
12810         * m4/wmemcmp.m4: New file.
12811         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
12812         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
12813         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
12814         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
12815         * doc/posix-functions/wmemcmp.texi: Mention the new module.
12816
12817 2011-02-07  Jim Meyering  <meyering@redhat.com>
12818
12819         di-set, ino-map: new modules, from coreutils
12820         * lib/di-set.c: New file.
12821         * lib/di-set.h: Likewise.
12822         * lib/ino-map.c: Likewise.
12823         * lib/ino-map.h: Likewise.
12824         * modules/di-set: Likewise.
12825         * modules/di-set-tests: Likewise.
12826         * modules/ino-map: Likewise.
12827         * modules/ino-map-tests: Likewise.
12828         * tests/test-di-set.c: Likewise.
12829         * tests/test-ino-map.c: Likewise.
12830
12831 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
12832
12833         getloadavg: merge minor changes from Emacs
12834
12835         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
12836         (getloadavg): Use memset, not bzero.
12837
12838         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
12839         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12840         clash (bug#86).
12841
12842 2010-11-14  Bruno Haible  <bruno@clisp.org>
12843
12844         Allow multiple gnulib generated replacements to coexist.
12845         * lib/getopt.in.h (struct option): Avoid identical redefinition.
12846         * lib/inttypes.in.h (imaxdiv_t): Likewise.
12847         * lib/langinfo.in.h (nl_item): Likewise.
12848         * lib/math.in.h (_NaN, NAN): Likewise.
12849         * lib/netdb.in.h (struct addrinfo): Likewise.
12850         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
12851         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
12852         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
12853         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
12854         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
12855         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
12856         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
12857         pthread_mutexattr_init, pthread_mutexattr_settype,
12858         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
12859         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
12860         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
12861         pthread_spin_trylock, pthread_spin_unlock): Likewise.
12862         * lib/sched.in.h (struct sched_param): Likewise.
12863         * lib/se-selinux.in.h (security_class_t, security_context_t,
12864         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
12865         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
12866         lsetfilecon, fsetfilecon, security_check_context,
12867         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
12868         Likewise.
12869         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
12870         Likewise.
12871         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
12872         _gl_function_taking_int_returning_void_t, union sigval,
12873         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
12874         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
12875         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
12876         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
12877         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
12878         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
12879         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
12880         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
12881         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
12882         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
12883         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
12884         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
12885         socklen_t, rpl_fd_isset): Likewise.
12886         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
12887         * lib/sys_time.in.h (struct timeval): Likewise.
12888         * lib/sys_times.in.h (struct tms): Likewise.
12889         * lib/sys_utsname.in.h (struct utsname):
12890         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
12891         * lib/unistd.in.h (getpagesize): Likewise.
12892         * lib/wchar.in.h (mbstate_t): Likewise.
12893         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
12894         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
12895         towlower, towupper): Likewise.
12896         Reported by Sam Steingold <sds@gnu.org>.
12897
12898 2011-02-05  Eric Blake  <eblake@redhat.com>
12899
12900         unsetenv: work around Haiku issues
12901         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
12902         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
12903
12904 2010-12-30  Bruce Korb  <bkorb@gnu.org>
12905
12906         libposix: avoid calling error() within libposix
12907         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
12908         is defined.
12909
12910 2011-02-05  Eric Blake  <eblake@redhat.com>
12911
12912         strerror_r-posix: port to cygwin
12913         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
12914         implementation.
12915         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
12916         * tests/test-strerror_r.c (main): Fix test.
12917         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
12918         issue.
12919
12920 2011-02-05  Bruno Haible  <bruno@clisp.org>
12921
12922         New module 'wmemchr'.
12923         * modules/wmemchr: New file.
12924         * lib/wchar.in.h (wmemchr): New declaration.
12925         * lib/wmemchr.c: New file.
12926         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
12927         * m4/wmemchr.m4: New file.
12928         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
12929         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
12930         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
12931         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
12932         * doc/posix-functions/wmemchr.texi: Mention the new module.
12933
12934 2011-02-04  Eric Blake  <eblake@redhat.com>
12935
12936         fdopendir: detect FreeBSD bug
12937         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
12938         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
12939
12940 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
12941
12942         stdbool: do not define HAVE_STDBOOL_H
12943         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
12944         AC_HEADER_STDBOOL.  All uses changed.  Do not define
12945         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
12946         imported from the latest Autoconf git.  It was motivated by Emacs,
12947         which uses gnulib but does not need HAVE_STDBOOL_H.
12948
12949 2011-02-04  Bruno Haible  <bruno@clisp.org>
12950
12951         wcsnrtombs: Prepare for new module wwcsnrtombs.
12952         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
12953         * lib/wcsnrtombs.c: Include it.
12954         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
12955
12956         wcsrtombs: Prepare for new module wwcsrtombs.
12957         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
12958         * lib/wcsrtombs.c: Include it.
12959         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
12960
12961         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
12962         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
12963         * lib/mbsnrtowcs.c: Include it.
12964         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
12965
12966         mbsrtowcs: Prepare for new module mbsrtowwcs.
12967         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
12968         * lib/mbsrtowcs.c: Include it.
12969         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
12970
12971 2011-02-04  Bruno Haible  <bruno@clisp.org>
12972
12973         vasnprintf: Reduce use of malloc for small format strings.
12974         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
12975         (arguments): Add room for the first 7 arguments.
12976         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
12977         (char_directives, u8_directives, u16_directives, u32_directives): Add
12978         room for the first 7 directives.
12979         * lib/printf-parse.c: Include <string.h>.
12980         (PRINTF_PARSE): Change memory handling code so that it uses the first
12981         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
12982         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
12983         Reported by Pádraig Brady <P@draigbrady.com>.
12984
12985 2011-01-31  Eric Blake  <eblake@redhat.com>
12986
12987         dup2: work around Haiku bug
12988         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
12989         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
12990         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12991         * tests/test-dup2.c (main): Enhance test.
12992
12993 2011-01-31  Simon Josefsson  <simon@josefsson.org>
12994
12995         doc: off_t is not available in eglibc 2.11.2 stdio.h.
12996         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
12997         declared by eglibc 2.11.2.
12998         * lib/stdio.in.h: Likewise.
12999
13000 2011-01-31  Eric Blake  <eblake@redhat.com>
13001
13002         ignore-value: add missing test dependency
13003         * tests/test-ignore-value.c: Revert previous change; stdio.h
13004         provides off_t.
13005         * modules/ignore-value-tests (Depends-on): Add missing dependency.
13006
13007 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
13008
13009         mktime: clarify long_int width checking
13010         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
13011         the top level, to make it clearer that the assumption about
13012         long_int width is being checked.  See
13013         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
13014
13015 2011-01-30  Simon Josefsson  <simon@josefsson.org>
13016
13017         ignore-value: Fix self-test.
13018         * tests/test-ignore-value.c: Include sys/types.h for off_t.
13019
13020 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
13021
13022         TYPE_MAXIMUM: avoid theoretically undefined behavior
13023         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
13024         negative number, which the C Standard says has undefined behavior.
13025         In practice this is not a problem, but might as well do it by the book.
13026         Reported by Rich Felker and Eric Blake; see
13027         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
13028         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
13029         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13030         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13031         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
13032         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13033         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
13034
13035         mktime: #undef mktime before #defining it
13036         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
13037
13038         mktime: systematically normalize tm_isdst comparisons
13039         * lib/mktime.c (isdst_differ): New function.
13040         (__mktime_internal): Use it systematically for all isdst comparisons.
13041         This completes the fix for libc BZ #6723, and removes the need for
13042         normalizing tm_isdst.  See
13043         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
13044         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
13045
13046         mktime: fix some integer overflow issues and sidestep the rest
13047
13048         This was prompted by a bug report by Benjamin Lindner for MinGW
13049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
13050         His bug is due to signed integer overflow (0 - INT_MIN), and I
13051         I scanned through mktime.c looking for other integer overflow
13052         problems, fixing all the bugs I found.
13053
13054         Although the C Standard says the resulting code is still not safe
13055         in the presence of integer overflow, in practice it should be good
13056         enough for all real-world two's-complement implementations, except
13057         for debugging environments that deliberately trap on integer
13058         overflow (e.g., gcc -ftrapv).
13059
13060         * lib/mktime.c (WRAPV): New macro.
13061         (SHR): Also check that long_int and time_t shift right in the
13062         usual way, before using the fast-but-unportable method.
13063         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
13064         used.  The code already assumed two's complement, so there's
13065         no need to test for alternatives.  All uses removed.
13066         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
13067         the C standard.  Problem reported by Rich Felker in
13068         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
13069         (twos_complement_arithmetic): Also check long_int and time_t.
13070         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
13071         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
13072         (__mktime_internal): Avoid integer overflow with unary subtraction
13073         in two instances where -1 - X is an adequate replacement for -X,
13074         since the calculations are approximate.
13075
13076 2011-01-29  Eric Blake  <eblake@redhat.com>
13077
13078         mktime: avoid infinite loop
13079         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
13080         type; behavior is still undefined but portable to all known targets.
13081         Reported by Rich Felker.
13082
13083 2011-01-29  Simon Josefsson  <simon@josefsson.org>
13084
13085         rename, unlink, same-inode: Relicense.
13086         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
13087         * modules/unlink (License): Likewise.
13088         * modules/same-inode (License): Likewise.
13089
13090 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
13091
13092         mktime: avoid problems on NetBSD 5 / i386
13093         * lib/mktime.c (long_int): New type.  This works around a problem
13094         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
13095         but time_t is 64 bits, and where I expect the existing code is
13096         wrong in some cases.
13097         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
13098         (ydhms_diff): Bring back the compile-time check for wide-enough
13099         year and yday.
13100
13101         mktime: fix misspelling in comment
13102         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
13103         This merges all recent glibc changes of importance.
13104
13105 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13106
13107         move-if-change: cope with concurrent mv of identical file.
13108         * build-aux/move-if-change (CMPPROG): Accept environment
13109         variable as an override for `cmp'.
13110         (usage): Document CMPPROG.
13111         Adjust comparison to drop stdout.  Cope with failure of mv if
13112         the target file exists and is identical to the source, for
13113         parallel builds.
13114         Report from H.J. Lu against binutils in PR binutils/12283.
13115
13116 2011-01-28  Bruce Korb  <bkorb@gnu.org>
13117
13118         * users.txt: Mention sharutils.
13119
13120 2011-01-28  Simon Josefsson  <simon@josefsson.org>
13121
13122         * users.txt: Mention OATH Toolkit.
13123
13124 2011-01-27  Bruno Haible  <bruno@clisp.org>
13125
13126         Prepare for supporting FreeBSD 10.
13127         * build-aux/config.libpath: Remove handling of freebsd1*.
13128
13129 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
13130
13131         Prepare for supporting FreeBSD 10.
13132         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
13133         match FreeBSD 10.0.
13134
13135 2011-01-27  Bruno Haible  <bruno@clisp.org>
13136
13137         vma-iter, get-rusage-as: Add OpenBSD support.
13138         * modules/vma-iter (configure.ac): Test for mquery.
13139         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
13140         * lib/vma-iter.c: Include <sys/mman.h>.
13141         (vma_iterate): Add an implementation based on mquery().
13142         * lib/resource-ext.h (get_rusage_as): Update comments.
13143         * lib/get-rusage-as.c: Likewise.
13144         * lib/get-rusage-data.c: Likewise.
13145
13146 2011-01-26  Karl Berry  <karl@gnu.org>
13147
13148         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
13149         variables to make it easier to override the makeinfo program used.
13150
13151 2011-01-26  Eric Blake  <eblake@redhat.com>
13152
13153         fcntl: work around Haiku F_DUPFD bugs
13154         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
13155         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
13156         cloexec bit on duplication.
13157         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
13158
13159 2011-01-26  Bruno Haible  <bruno@clisp.org>
13160
13161         Enable memory leak tests on AIX.
13162         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
13163         * tests/test-fprintf-posix3.c (main): Likewise.
13164
13165 2011-01-26  Bruno Haible  <bruno@clisp.org>
13166
13167         Tests for module 'get-rusage-data'.
13168         * modules/get-rusage-data-tests: New file.
13169         * tests/test-get-rusage-data.c: New file.
13170
13171         New module 'get-rusage-data'.
13172         * lib/resource-ext.h (get_rusage_data): New declaration.
13173         * lib/get-rusage-data.c: New file.
13174         * modules/get-rusage-data: New file.
13175
13176 2011-01-25  Bruno Haible  <bruno@clisp.org>
13177
13178         get-rusage-as: Allow for easier testing.
13179         * lib/resource-ext.h (get_rusage_as): Add comment.
13180         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
13181         (main): New function for interactive testing.
13182
13183 2011-01-25  Bruno Haible  <bruno@clisp.org>
13184
13185         vma-iter: Treat Haiku like BeOS.
13186         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
13187         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
13188
13189 2011-01-25  Eric Blake  <eblake@redhat.com>
13190
13191         c-stack: fix regression on cygwin when libsigsegv is present
13192         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
13193
13194 2011-01-24  Bruno Haible  <bruno@clisp.org>
13195
13196         vma-iter: Avoid empty intervals.
13197         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
13198         on an empty interval.
13199
13200 2011-01-24  Jim Meyering  <meyering@redhat.com>
13201
13202         u64: remove unnecessary #include
13203         * lib/u64.h: Don't include <stddef.h>.  It was not used.
13204
13205 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13206
13207         Allow the user to avoid the HAVE_RAW_DECL_* macros.
13208         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
13209
13210 2011-01-23  Bruno Haible  <bruno@clisp.org>
13211
13212         New module 'vma-iter'.
13213         * lib/vma-iter.h: New file.
13214         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
13215         * modules/vma-iter: New file.
13216         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
13217         for get_rusage_as_via_iterator.
13218         (vma_iterate_callback): New function.
13219         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
13220         * modules/get-rusage-as (Depends-on): Add vma-iter.
13221
13222 2011-01-23  Bruno Haible  <bruno@clisp.org>
13223
13224         uninorm: Tweak includes.
13225         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
13226         Reported by Jim Meyering.
13227
13228 2011-01-23  Bruno Haible  <bruno@clisp.org>
13229
13230         get-rusage-as: Improve on NetBSD.
13231         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
13232         /proc, like on FreeBSD.
13233
13234 2011-01-23  Jim Meyering  <meyering@redhat.com>
13235
13236         xreadlink.h: remove unnecessary #include
13237         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
13238
13239         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
13240         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
13241
13242 2011-01-23  Bruno Haible  <bruno@clisp.org>
13243
13244         get-rusage-as: Fix bug.
13245         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
13246         original limit when aborting the first loop.
13247
13248 2011-01-23  Bruno Haible  <bruno@clisp.org>
13249
13250         wctype: Ensure valid C syntax.
13251         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
13252         unconditionally, instead of gl_NEXT_HEADERS conditionally.
13253
13254 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
13255
13256         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
13257         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
13258         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
13259         as they are needed only for configure's test case.
13260         This removes two unnecessary symbols from config.h.
13261
13262         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
13263         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
13264         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
13265         AC_CHECK_HEADERS_ONCE on a header that we also invoke
13266         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
13267         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
13268         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
13269         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13270         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13271         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13272         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
13273         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13274         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13275         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13276         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13277         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13278         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
13279         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13280
13281 2011-01-21  Eric Blake  <eblake@redhat.com>
13282
13283         maintainer-makefile: work with older git for submodule check
13284         * top/maint.mk (public-submodule-commit): Rewrite to avoid
13285         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
13286         Reported by Matthias Bolte.
13287
13288         bootstrap: minor portability fixes
13289         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
13290         (usage): Omit leading capital and trailing . on help phrases, per
13291         GNU Coding Standards.
13292         (check_versions, top level): Prefix messages with script name.
13293
13294 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
13295
13296         bootstrap: support --no-git option
13297         * build-aux/bootstrap: Add --no-git option, to be used when
13298         --gnulib-srcdir points to the exact desired checkout.
13299
13300 2011-01-21  Eric Blake  <eblake@redhat.com>
13301
13302         strerror_r-posix: work with glibc 2.13
13303         * lib/strerror_r.c (strerror_r): Fix return type.
13304
13305 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13306             Bruno Haible  <bruno@clisp.org>
13307
13308         uN_strstr: New unit tests.
13309         * modules/unistr/u8-strstr-tests: New file.
13310         * modules/unistr/u16-strstr-tests: New file.
13311         * modules/unistr/u32-strstr-tests: New file.
13312         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
13313         * tests/unistr/test-u8-strstr.c: New file.
13314         * tests/unistr/test-u16-strstr.c: New file.
13315         * tests/unistr/test-u32-strstr.c: New file.
13316
13317 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13318             Bruno Haible  <bruno@clisp.org>
13319
13320         Make uN_strstr functions O(n) worst-case.
13321         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
13322         16-bit and 32-bit unit cases, use the unibyte algorithm from
13323         lib/mbsstr.c.
13324         * lib/unistr/u8-strstr.c: Include <string.h>.
13325         (UNIT_IS_UINT8_T): New macro.
13326         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
13327         (U_STRLEN, U_STRNLEN): New macros.
13328         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
13329         (U_STRLEN, U_STRNLEN): New macros.
13330         * modules/unistr/u8-strstr (Depends-on): Add strstr.
13331         (configure.ac): Update required libunistring version.
13332         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
13333         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
13334         malloca.
13335         (configure.ac): Update required libunistring version.
13336         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
13337         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
13338         malloca.
13339         (configure.ac): Update required libunistring version.
13340
13341 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13342             Bruno Haible  <bruno@clisp.org>
13343
13344         Prepare for faster uN_strstr functions.
13345         * lib/str-kmp.h: Support definable UNITs.
13346         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
13347         needle_len argument.
13348         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
13349         * lib/mbscasestr.c (mbscasestr): Likewise.
13350
13351 2011-01-21  Pádraig Brady <P@draigBrady.com>
13352
13353         malloca-tests: make faster by unsetting MALLOC_PERTURB_
13354         * tests/test-malloca.c (main): Unset the environment variable
13355         to greatly speed up the test.
13356         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
13357         * modules/malloca-tests: Depend on unsetenv.
13358
13359 2011-01-21  Pádraig Brady <P@draigBrady.com>
13360
13361         ignore-value: remove stdint dependency
13362         * lib/ignore-value.h: Remove <stdint.h>
13363         * modules/ignore-value: Remove stdint dependency.
13364
13365 2011-01-21  Jim Meyering  <meyering@redhat.com>
13366
13367         maint.mk: adjust variable name to be consistent with other gl_ vars
13368         * top/maint.mk (gl_public_submodule_commit): Rename the variable
13369         to be lower case.
13370
13371 2011-01-20  Jim Meyering  <meyering@redhat.com>
13372
13373         maint.mk: make "check" depend on public-submodule-commit by default
13374         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
13375
13376 2011-01-20  Bruno Haible  <bruno@clisp.org>
13377
13378         mbfile, mbiter: Complete change from 2008-12-21.
13379         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
13380         * m4/mbiter.m4 (gl_MBITER): Likewise.
13381
13382 2011-01-20  Jim Meyering  <meyering@redhat.com>
13383
13384         init.sh: insert space between each function name and "()"
13385         * tests/init.sh: Make it a little easier to see that a function's
13386         name is "warn_", and not "warn" when looking at the first part of
13387         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
13388
13389 2011-01-20  Jim Meyering  <meyering@redhat.com>
13390
13391         mountlist: clean up code formatting
13392         * lib/mountlist.c (read_file_system_list): Split a long line,
13393         correct bracing style, use NULL in place of "(struct statfs *)0",
13394         don't parenthesize return value, add spaces around "=" and after
13395         ";-in-for-stmt".
13396
13397 2011-01-14  Markus Duft <mduft@gentoo.org>
13398
13399         mountlist: add support for Interix
13400         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
13401         Apply statvfs to all entries of /dev/fs.
13402         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
13403         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
13404
13405 2011-01-20  Jim Meyering  <meyering@redhat.com>
13406
13407         maint.mk: improve the public-submodule-commit rule
13408         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
13409         to suppress printing of its commands... unless V=1.
13410         Add git submodule's --quiet option to suppress printing of e.g.,
13411         "Entering gnulib" output.
13412         "cd" into $(srcdir) before running git submodule.
13413
13414 2011-01-20  Bruno Haible  <bruno@clisp.org>
13415
13416         include_next: Fix bug introduced on 2011-01-18.
13417         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
13418         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
13419         ac_cv_header_... variable if the second argument is not 'check'.
13420         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
13421         gl_NEXT_HEADERS_INTERNAL.
13422
13423 2011-01-20  Bruno Haible  <bruno@clisp.org>
13424
13425         Allow the user to avoid the GNULIB_TEST_* macros.
13426         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
13427         Suggested by Paul Eggert.
13428
13429 2011-01-14  Jim Meyering  <meyering@redhat.com>
13430
13431         bootstrap: avoid failure when there is no .gitmodules file
13432         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
13433         has been assigned to, even when its value is the empty string.
13434         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
13435         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
13436         Reported by John W. Eaton <jwe@gnu.org>.
13437
13438 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
13439
13440         assume <ctype.h>, ..., <time.h> exist
13441         For years gnulib has been assuming the existence of the headers
13442         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
13443         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
13444         them, since they don't appear to be needed.
13445         * README (Portability guidelines): Document this.
13446         * lib/flock.c: Assume <fcntl.h> exists.
13447         * lib/regex_internal.h: Assume <locale.h> exists.
13448         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
13449         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
13450         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
13451         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
13452         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
13453         * m4/regex.m4 (gl_REGEX): Likewise.
13454         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
13455         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
13456         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
13457         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
13458         * tests/test-argp.c: Likewise.
13459         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
13460
13461         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
13462         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
13463         AA_APPLE_UNIVERSAL_BUILD.  See
13464         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
13465         * NEWS: Document this.
13466
13467 2011-01-19  Eric Blake  <eblake@redhat.com>
13468
13469         c-stack: assume stack overflow if SA_SIGINFO unsupported
13470         * lib/c-stack.c (SIGACTION_WORKS): Rename...
13471         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
13472         sigaction will work.
13473         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
13474         behavior match Linux.
13475         * tests/test-c-stack.c (main): Prefer NULL for pointers.
13476
13477         stdbool-tests: accomodate Haiku
13478         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
13479
13480         binary-io: fix O_TEXT on Haiku
13481         * modules/binary-io (Depends-on): Add fcntl-h.
13482         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
13483         than blindly undefining O_TEXT.
13484         Reported by Scott McCreary.
13485
13486 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13487
13488         include_next: do not check for standard headers like stddef.h
13489
13490         I found this problem when modifying Emacs to use gnulib.
13491         I noticed that it added HAVE_STDDEF_H to config.h, even though
13492         gnulib always assumes <stddef.h> exists as per README and this
13493         symbol is unnecessary.
13494         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
13495         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
13496         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
13497         faster for headers like stddef.h that are known to exist.
13498         (gl_CHECK_NEXT_HEADERS): Use it.
13499         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
13500         rather than gl_CHECK_NEXT_HEADERS.
13501         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
13502         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
13503
13504 2011-01-18  Eric Blake  <eblake@redhat.com>
13505
13506         ansi-c++-opt: skip C++ dependency style if C++ is unused
13507         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
13508         tests when we know C++ compilation is not desired.
13509         Reported by Scott McCreary.
13510
13511 2011-01-18  Bruno Haible  <bruno@clisp.org>
13512
13513         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
13514         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
13515         (main): Perform test also when getrlimit and setrlimit don't exist or
13516         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
13517         limiting the address space size using setrlimit, compare the address
13518         space size before and after the the test.
13519         * tests/test-dprintf-posix2.c: Likewise.
13520         * tests/test-fprintf-posix3.sh: Update skip messages.
13521         * tests/test-dprintf-posix2.sh: Likewise.
13522         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
13523         * modules/dprintf-posix-tests (Depends-on): Likewise.
13524         Reported by Bruce Korb <bkorb@gnu.org> and
13525         Gary V. Vaughan <gary@gnu.org>.
13526
13527 2011-01-18  Bruno Haible  <bruno@clisp.org>
13528
13529         get-rusage-as: Improvement for Cygwin.
13530         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
13531         areas that are merely reserved.
13532
13533 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13534
13535         strftime: remove dependencies on multibyte modules
13536
13537         strftime depended on mbrlen, mbsinit, and wchar, but these modules
13538         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
13539         only if __osf__ is defined, and I suspect OSF doesn't need these
13540         other modules.  If my guess is wrong, we'll need to come up with a
13541         variant of strftime that doesn't need the multibyte modules.
13542
13543         I discovered this problem when attempting modify Emacs to use the
13544         strftime module.  With the previous gnulib, this caused Emacs to
13545         need 31 new files, ranging from lib/config.charset to
13546         m4/wint_t.m4.  This was overkill and I expect would be offputting
13547         to the Emacs maintainers.  After this change, only 6 new files are
13548         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
13549         stdbool.m4, and tm_gmtoff.m4.
13550
13551         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
13552         Suggested by Bruno Haible in
13553         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
13554         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
13555         and do not check for wchar.h.
13556         * modules/strftime (Files): Remove m4/mbstate_t.m4.
13557         (Depends-on): Remove mbrlen, mbsinit, wchar.
13558
13559 2011-01-18  Bruno Haible  <bruno@clisp.org>
13560
13561         Tests for module 'get-rusage-as'.
13562         * modules/get-rusage-as-tests: New file.
13563         * tests/test-get-rusage-as.c: New file.
13564
13565         New module 'get-rusage-as'.
13566         * modules/get-rusage-as: New file.
13567         * lib/resource-ext.h: New file.
13568         * lib/get-rusage-as.c: New file.
13569
13570 2011-01-17  Eric Blake  <eblake@redhat.com>
13571
13572         sigaction: relax license from LGPLv3+ to LGPLv2+
13573         * modules/sigaction (License): Relax to LGPLv2+.
13574
13575 2011-01-14  Bruno Haible  <bruno@clisp.org>
13576
13577         filemode: Make function declarations usable in C++ mode.
13578         * lib/filemode.h: Enclose function declarations in extern "C" block.
13579         Reported by John W. Eaton <jwe@gnu.org>.
13580
13581 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
13582
13583         save-cwd: no longer include "xgetcwd.h"
13584         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
13585         This avoids a compilation failure in projects that use save-cwd
13586         without also using the xgetcwd module.
13587
13588 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
13589
13590         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
13591         This is so that a program like Emacs, which needs only dtoastr,
13592         does not have to bother with distributing and compiling ftoastr
13593         and ldtoastr.
13594         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
13595         * modules/dtoastr, modules/ldtoastr: New files.
13596         * modules/ftoastr: Now works just for 'float'.
13597         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
13598         (Makefile.am): Remove ftoastr.h (not needed and no effect),
13599         dtoastr.c, ldtoastr.c.
13600
13601 2011-01-11  Jim Meyering  <meyering@redhat.com>
13602
13603         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
13604         There is no need to work around the lack of the fchdir function,
13605         since gnulib can now provide a replacement when required.
13606         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
13607         * modules/save-cwd (Depends-on): Add fchdir.
13608
13609 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
13610
13611         openat, save-cwd: avoid xmalloc
13612
13613         This removes a direct (but undocumented) dependency of openat on
13614         xalloc, along with an indirect dependency via save-cwd.  It also
13615         removes a dependency of save-cwd on xgetcwd, and thereby
13616         indirectly on xalloc.  This change causes the openat substitute
13617         to fall back on save_cwd when memory is tight, and for save_cwd to
13618         fail instead of dying when memory is tight, but that's good enough.
13619         Problem and initial idea for fix reported by Bastien Roucaries in
13620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
13621
13622         * lib/openat-proc.c: Include stdlib.h (for malloc), not
13623         xalloc.h (for xmalloc).
13624         (openat_proc_name): Use malloc, not xmalloc.
13625         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
13626         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
13627
13628         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
13629         This avoids heap allocation for file names whose lengths are in
13630         the range 512..1023, with the upper bound increasing to at most
13631         4031 depending on the platform's PATH_MAX.  (We do not want
13632         pathmax.h here as it might supply a non-constant PATH_MAX.)
13633         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
13634         Perhaps they should be moved to malloca.h?
13635         (OPENAT_BUFFER_SIZE): Use them.
13636
13637 2011-01-10  Bruno Haible  <bruno@clisp.org>
13638
13639         doc: Update users.txt.
13640         * users.txt: Add recutils.
13641
13642 2011-01-09  Karl Berry  <karl@gnu.org>
13643
13644         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
13645
13646         * doc/configmake.texi: New file.
13647         * doc/gnulib.texi: Include it.
13648         * modules/configmake: Move documentation from here.
13649
13650 2011-01-09  Bruno Haible  <bruno@clisp.org>
13651
13652         Update to Unicode 6.0.0.
13653         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
13654         (get_lbp): Update for Unicode 6.0.0.
13655         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
13656         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
13657         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
13658         U+11001, U+11038..U+11046. Remove U+06DE.
13659         (uc_width): Fix bounds of planes.
13660         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13661         lib/uniwidth/width.c.
13662         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
13663         trailing whitespace removed.
13664         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
13665         without comments, but with the original copyright notice.
13666         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
13667         * lib/unicase/ignorable.h: Likewise.
13668         * lib/unicase/tocasefold.h: Likewise.
13669         * lib/unicase/tolower.h: Likewise.
13670         * lib/unicase/totitle.h: Likewise.
13671         * lib/unicase/toupper.h: Likewise.
13672         * lib/unictype/bidi_of.h: Likewise.
13673         * lib/unictype/blocks.h: Likewise.
13674         * lib/unictype/categ_C.h: Likewise.
13675         * lib/unictype/categ_Cn.h: Likewise.
13676         * lib/unictype/categ_L.h: Likewise.
13677         * lib/unictype/categ_Ll.h: Likewise.
13678         * lib/unictype/categ_Lm.h: Likewise.
13679         * lib/unictype/categ_Lo.h: Likewise.
13680         * lib/unictype/categ_Lu.h: Likewise.
13681         * lib/unictype/categ_M.h: Likewise.
13682         * lib/unictype/categ_Mc.h: Likewise.
13683         * lib/unictype/categ_Me.h: Likewise.
13684         * lib/unictype/categ_Mn.h: Likewise.
13685         * lib/unictype/categ_N.h: Likewise.
13686         * lib/unictype/categ_Nd.h: Likewise.
13687         * lib/unictype/categ_No.h: Likewise.
13688         * lib/unictype/categ_P.h: Likewise.
13689         * lib/unictype/categ_Po.h: Likewise.
13690         * lib/unictype/categ_S.h: Likewise.
13691         * lib/unictype/categ_Sc.h: Likewise.
13692         * lib/unictype/categ_Sk.h: Likewise.
13693         * lib/unictype/categ_Sm.h: Likewise.
13694         * lib/unictype/categ_So.h: Likewise.
13695         * lib/unictype/categ_of.h: Likewise.
13696         * lib/unictype/combining.h: Likewise.
13697         * lib/unictype/ctype_alnum.h: Likewise.
13698         * lib/unictype/ctype_alpha.h: Likewise.
13699         * lib/unictype/ctype_graph.h: Likewise.
13700         * lib/unictype/ctype_lower.h: Likewise.
13701         * lib/unictype/ctype_print.h: Likewise.
13702         * lib/unictype/ctype_punct.h: Likewise.
13703         * lib/unictype/ctype_upper.h: Likewise.
13704         * lib/unictype/decdigit.h: Likewise.
13705         * lib/unictype/digit.h: Likewise.
13706         * lib/unictype/numeric.h: Likewise.
13707         * lib/unictype/pr_alphabetic.h: Likewise.
13708         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
13709         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
13710         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
13711         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
13712         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
13713         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
13714         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
13715         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
13716         * lib/unictype/pr_case_ignorable.h: Likewise.
13717         * lib/unictype/pr_cased.h: Likewise.
13718         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
13719         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
13720         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
13721         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
13722         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
13723         * lib/unictype/pr_combining.h: Likewise.
13724         * lib/unictype/pr_composite.h: Likewise.
13725         * lib/unictype/pr_currency_symbol.h: Likewise.
13726         * lib/unictype/pr_decimal_digit.h: Likewise.
13727         * lib/unictype/pr_deprecated.h: Likewise.
13728         * lib/unictype/pr_format_control.h: Likewise.
13729         * lib/unictype/pr_grapheme_base.h: Likewise.
13730         * lib/unictype/pr_grapheme_extend.h: Likewise.
13731         * lib/unictype/pr_grapheme_link.h: Likewise.
13732         * lib/unictype/pr_id_continue.h: Likewise.
13733         * lib/unictype/pr_id_start.h: Likewise.
13734         * lib/unictype/pr_ideographic.h: Likewise.
13735         * lib/unictype/pr_lowercase.h: Likewise.
13736         * lib/unictype/pr_math.h: Likewise.
13737         * lib/unictype/pr_numeric.h: Likewise.
13738         * lib/unictype/pr_other_alphabetic.h: Likewise.
13739         * lib/unictype/pr_other_id_continue.h: Likewise.
13740         * lib/unictype/pr_other_math.h: Likewise.
13741         * lib/unictype/pr_punctuation.h: Likewise.
13742         * lib/unictype/pr_sentence_terminal.h: Likewise.
13743         * lib/unictype/pr_terminal_punctuation.h: Likewise.
13744         * lib/unictype/pr_unassigned_code_value.h: Likewise.
13745         * lib/unictype/pr_unified_ideograph.h: Likewise.
13746         * lib/unictype/pr_uppercase.h: Likewise.
13747         * lib/unictype/pr_xid_continue.h: Likewise.
13748         * lib/unictype/pr_xid_start.h: Likewise.
13749         * lib/unictype/scripts.h: Likewise.
13750         * lib/unictype/scripts_byname.gperf: Likewise.
13751         * lib/unictype/sy_java_ident.h: Likewise.
13752         * lib/unigbrk/gbrkprop.h: Likewise.
13753         * lib/unilbrk/lbrkprop1.h: Likewise.
13754         * lib/unilbrk/lbrkprop2.h: Likewise.
13755         * lib/uninorm/decomposition-table2.h: Likewise.
13756         * lib/uniwbrk/wbrkprop.h: Likewise.
13757         * tests/unicase/test-cased.c: Likewise.
13758         * tests/unicase/test-ignorable.c: Likewise.
13759         * tests/unicase/test-uc_tolower.c: Likewise.
13760         * tests/unicase/test-uc_totitle.c: Likewise.
13761         * tests/unicase/test-uc_toupper.c: Likewise.
13762         * tests/unictype/test-categ_C.c: Likewise.
13763         * tests/unictype/test-categ_Cn.c: Likewise.
13764         * tests/unictype/test-categ_L.c: Likewise.
13765         * tests/unictype/test-categ_Ll.c: Likewise.
13766         * tests/unictype/test-categ_Lm.c: Likewise.
13767         * tests/unictype/test-categ_Lo.c: Likewise.
13768         * tests/unictype/test-categ_Lu.c: Likewise.
13769         * tests/unictype/test-categ_M.c: Likewise.
13770         * tests/unictype/test-categ_Mc.c: Likewise.
13771         * tests/unictype/test-categ_Me.c: Likewise.
13772         * tests/unictype/test-categ_Mn.c: Likewise.
13773         * tests/unictype/test-categ_N.c: Likewise.
13774         * tests/unictype/test-categ_Nd.c: Likewise.
13775         * tests/unictype/test-categ_No.c: Likewise.
13776         * tests/unictype/test-categ_P.c: Likewise.
13777         * tests/unictype/test-categ_Po.c: Likewise.
13778         * tests/unictype/test-categ_S.c: Likewise.
13779         * tests/unictype/test-categ_Sc.c: Likewise.
13780         * tests/unictype/test-categ_Sk.c: Likewise.
13781         * tests/unictype/test-categ_Sm.c: Likewise.
13782         * tests/unictype/test-categ_So.c: Likewise.
13783         * tests/unictype/test-ctype_alnum.c: Likewise.
13784         * tests/unictype/test-ctype_alpha.c: Likewise.
13785         * tests/unictype/test-ctype_graph.c: Likewise.
13786         * tests/unictype/test-ctype_lower.c: Likewise.
13787         * tests/unictype/test-ctype_print.c: Likewise.
13788         * tests/unictype/test-ctype_punct.c: Likewise.
13789         * tests/unictype/test-ctype_upper.c: Likewise.
13790         * tests/unictype/test-decdigit.h: Likewise.
13791         * tests/unictype/test-digit.h: Likewise.
13792         * tests/unictype/test-numeric.h: Likewise.
13793         * tests/unictype/test-pr_alphabetic.c: Likewise.
13794         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
13795         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
13796         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
13797         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
13798         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
13799         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
13800         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
13801         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
13802         * tests/unictype/test-pr_case_ignorable.c: Likewise.
13803         * tests/unictype/test-pr_cased.c: Likewise.
13804         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
13805         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
13806         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
13807         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
13808         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
13809         * tests/unictype/test-pr_combining.c: Likewise.
13810         * tests/unictype/test-pr_composite.c: Likewise.
13811         * tests/unictype/test-pr_currency_symbol.c: Likewise.
13812         * tests/unictype/test-pr_decimal_digit.c: Likewise.
13813         * tests/unictype/test-pr_deprecated.c: Likewise.
13814         * tests/unictype/test-pr_format_control.c: Likewise.
13815         * tests/unictype/test-pr_grapheme_base.c: Likewise.
13816         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
13817         * tests/unictype/test-pr_grapheme_link.c: Likewise.
13818         * tests/unictype/test-pr_id_continue.c: Likewise.
13819         * tests/unictype/test-pr_id_start.c: Likewise.
13820         * tests/unictype/test-pr_ideographic.c: Likewise.
13821         * tests/unictype/test-pr_lowercase.c: Likewise.
13822         * tests/unictype/test-pr_math.c: Likewise.
13823         * tests/unictype/test-pr_numeric.c: Likewise.
13824         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
13825         * tests/unictype/test-pr_other_id_continue.c: Likewise.
13826         * tests/unictype/test-pr_other_math.c: Likewise.
13827         * tests/unictype/test-pr_punctuation.c: Likewise.
13828         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
13829         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
13830         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
13831         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
13832         * tests/unictype/test-pr_uppercase.c: Likewise.
13833         * tests/unictype/test-pr_xid_continue.c: Likewise.
13834         * tests/unictype/test-pr_xid_start.c: Likewise.
13835         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
13836         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
13837         changes.
13838         * lib/unictype/categ_Cc.h: Likewise.
13839         * lib/unictype/categ_Cf.h: Likewise.
13840         * lib/unictype/categ_Co.h: Likewise.
13841         * lib/unictype/categ_Cs.h: Likewise.
13842         * lib/unictype/categ_Lt.h: Likewise.
13843         * lib/unictype/categ_Nl.h: Likewise.
13844         * lib/unictype/categ_Pc.h: Likewise.
13845         * lib/unictype/categ_Pd.h: Likewise.
13846         * lib/unictype/categ_Pe.h: Likewise.
13847         * lib/unictype/categ_Pf.h: Likewise.
13848         * lib/unictype/categ_Pi.h: Likewise.
13849         * lib/unictype/categ_Ps.h: Likewise.
13850         * lib/unictype/categ_Z.h: Likewise.
13851         * lib/unictype/categ_Zl.h: Likewise.
13852         * lib/unictype/categ_Zp.h: Likewise.
13853         * lib/unictype/categ_Zs.h: Likewise.
13854         * lib/unictype/ctype_blank.h: Likewise.
13855         * lib/unictype/ctype_cntrl.h: Likewise.
13856         * lib/unictype/ctype_digit.h: Likewise.
13857         * lib/unictype/ctype_space.h: Likewise.
13858         * lib/unictype/ctype_xdigit.h: Likewise.
13859         * lib/unictype/mirror.h: Likewise.
13860         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
13861         * lib/unictype/pr_bidi_block_separator.h: Likewise.
13862         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13863         * lib/unictype/pr_bidi_control.h: Likewise.
13864         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13865         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13866         * lib/unictype/pr_bidi_european_digit.h: Likewise.
13867         * lib/unictype/pr_bidi_pdf.h: Likewise.
13868         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13869         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13870         * lib/unictype/pr_dash.h: Likewise.
13871         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13872         * lib/unictype/pr_diacritic.h: Likewise.
13873         * lib/unictype/pr_extender.h: Likewise.
13874         * lib/unictype/pr_hex_digit.h: Likewise.
13875         * lib/unictype/pr_hyphen.h: Likewise.
13876         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13877         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13878         * lib/unictype/pr_ignorable_control.h: Likewise.
13879         * lib/unictype/pr_iso_control.h: Likewise.
13880         * lib/unictype/pr_join_control.h: Likewise.
13881         * lib/unictype/pr_left_of_pair.h: Likewise.
13882         * lib/unictype/pr_line_separator.h: Likewise.
13883         * lib/unictype/pr_logical_order_exception.h: Likewise.
13884         * lib/unictype/pr_non_break.h: Likewise.
13885         * lib/unictype/pr_not_a_character.h: Likewise.
13886         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13887         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13888         * lib/unictype/pr_other_id_start.h: Likewise.
13889         * lib/unictype/pr_other_lowercase.h: Likewise.
13890         * lib/unictype/pr_other_uppercase.h: Likewise.
13891         * lib/unictype/pr_paired_punctuation.h: Likewise.
13892         * lib/unictype/pr_paragraph_separator.h: Likewise.
13893         * lib/unictype/pr_pattern_syntax.h: Likewise.
13894         * lib/unictype/pr_pattern_white_space.h: Likewise.
13895         * lib/unictype/pr_private_use.h: Likewise.
13896         * lib/unictype/pr_quotation_mark.h: Likewise.
13897         * lib/unictype/pr_radical.h: Likewise.
13898         * lib/unictype/pr_soft_dotted.h: Likewise.
13899         * lib/unictype/pr_space.h: Likewise.
13900         * lib/unictype/pr_titlecase.h: Likewise.
13901         * lib/unictype/pr_variation_selector.h: Likewise.
13902         * lib/unictype/pr_white_space.h: Likewise.
13903         * lib/unictype/pr_zero_width.h: Likewise.
13904         * lib/unictype/sy_c_ident.h: Likewise.
13905         * lib/unictype/sy_c_whitespace.h: Likewise.
13906         * lib/unictype/sy_java_whitespace.h: Likewise.
13907         * lib/uninorm/composition-table.gperf: Likewise.
13908         * lib/uninorm/decomposition-table1.h: Likewise.
13909         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
13910         LB8.
13911         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13912         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13913         * modules/unictype/*: Bump version number of expected libunistring
13914         version.
13915
13916 2011-01-09  Bruno Haible  <bruno@clisp.org>
13917
13918         Update to Unicode 5.2.0.
13919         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
13920         trailing whitespace removed.
13921
13922 2011-01-09  Bruno Haible  <bruno@clisp.org>
13923
13924         New Unicode character properties, from Unicode 5.2.0.
13925         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
13926         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
13927         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
13928         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
13929         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
13930         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
13931         uc_is_property_cased, uc_is_property_case_ignorable,
13932         uc_is_property_changes_when_lowercased,
13933         uc_is_property_changes_when_uppercased,
13934         uc_is_property_changes_when_titlecased,
13935         uc_is_property_changes_when_casefolded,
13936         uc_is_property_changes_when_casemapped): New declarations.
13937         * lib/unictype/pr_byname.gperf: Add the new properties.
13938         * modules/unictype/property-byname (Depends-on): Depend on the new
13939         properties modules.
13940         * modules/unictype/property-all (Depends-on): Likewise.
13941         * MODULES.html.sh (Unicode string functions): Add
13942         unictype/property-case-ignorable, unictype/property-cased,
13943         unictype/property-changes-when-casefolded,
13944         unictype/property-changes-when-casemapped,
13945         unictype/property-changes-when-lowercased,
13946         unictype/property-changes-when-titlecased,
13947         unictype/property-changes-when-uppercased.
13948
13949         New module 'unictype/property-changes-when-casemapped'.
13950         * modules/unictype/property-changes-when-casemapped: New file.
13951         * lib/unictype/pr_changes_when_casemapped.c: New file.
13952         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
13953         generated by gen-uni-tables.
13954         * modules/unictype/property-changes-when-casemapped-tests: New file.
13955         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
13956         automatically generated by gen-uni-tables.
13957
13958         New module 'unictype/property-changes-when-casefolded'.
13959         * modules/unictype/property-changes-when-casefolded: New file.
13960         * lib/unictype/pr_changes_when_casefolded.c: New file.
13961         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
13962         generated by gen-uni-tables.
13963         * modules/unictype/property-changes-when-casefolded-tests: New file.
13964         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
13965         automatically generated by gen-uni-tables.
13966
13967         New module 'unictype/property-changes-when-titlecased'.
13968         * modules/unictype/property-changes-when-titlecased: New file.
13969         * lib/unictype/pr_changes_when_titlecased.c: New file.
13970         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
13971         generated by gen-uni-tables.
13972         * modules/unictype/property-changes-when-titlecased-tests: New file.
13973         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
13974         automatically generated by gen-uni-tables.
13975
13976         New module 'unictype/property-changes-when-uppercased'.
13977         * modules/unictype/property-changes-when-uppercased: New file.
13978         * lib/unictype/pr_changes_when_uppercased.c: New file.
13979         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
13980         generated by gen-uni-tables.
13981         * modules/unictype/property-changes-when-uppercased-tests: New file.
13982         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
13983         automatically generated by gen-uni-tables.
13984
13985         New module 'unictype/property-changes-when-lowercased'.
13986         * modules/unictype/property-changes-when-lowercased: New file.
13987         * lib/unictype/pr_changes_when_lowercased.c: New file.
13988         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
13989         generated by gen-uni-tables.
13990         * modules/unictype/property-changes-when-lowercased-tests: New file.
13991         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
13992         automatically generated by gen-uni-tables.
13993
13994         New module 'unictype/property-case-ignorable'.
13995         * modules/unictype/property-case-ignorable: New file.
13996         * lib/unictype/pr_case_ignorable.c: New file.
13997         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
13998         by gen-uni-tables.
13999         * modules/unictype/property-case-ignorable-tests: New file.
14000         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
14001         generated by gen-uni-tables.
14002
14003         New module 'unictype/property-cased'.
14004         * modules/unictype/property-cased: New file.
14005         * lib/unictype/pr_cased.c: New file.
14006         * lib/unictype/pr_cased.h: New file, automatically generated by
14007         gen-uni-tables.
14008         * modules/unictype/property-cased-tests: New file.
14009         * tests/unictype/test-pr_cased.c: New file, automatically generated by
14010         gen-uni-tables.
14011
14012 2011-01-09  Bruno Haible  <bruno@clisp.org>
14013
14014         Update to Unicode 5.2.0.
14015         * lib/gen-uni-tables.c (output_predicate, output_category,
14016         output_combclass, output_bidi_category, output_decimal_digit_test,
14017         output_decimal_digit, output_digit_test, output_digit,
14018         output_numeric_test, output_numeric, output_mirror, output_scripts,
14019         output_scripts_byname, output_blocks, output_ident_category): Fix
14020         comment header.
14021         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
14022         get_wbp.
14023         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
14024         items.
14025         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
14026         Changes_When_Lowercased, Changes_When_Uppercased,
14027         Changes_When_Titlecased, Changes_When_Casefolded,
14028         Changes_When_Casemapped.
14029         (is_property_alphabetic, is_property_default_ignorable_code_point):
14030         Update for Unicode 5.2.0.
14031         (is_property_cased, is_property_case_ignorable,
14032         is_property_changes_when_lowercased,
14033         is_property_changes_when_uppercased,
14034         is_property_changes_when_titlecased,
14035         is_property_changes_when_casefolded,
14036         is_property_changes_when_casemapped): New functions.
14037         (output_properties): Output also the properties cased, case_ignorable,
14038         changes_when_lowercased, changes_when_uppercased,
14039         changes_when_titlecased, changes_when_casefolded,
14040         changes_when_casemapped.
14041         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
14042         Unicode TR#11 revision 17 -> 19.
14043         (LBP_CP): New enumeration value.
14044         (LBP_*): Adjust values accordingly.
14045         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14046         TR#14 revision 22 -> 24.
14047         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
14048         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
14049         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14050         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
14051         is_WBP_MIDLETTER.
14052         (output_composition_tables): Allow for 24 bits instead of 16 bits in
14053         the code1 and code2 of each composition rule.
14054         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
14055         * lib/unicase/ignorable.h: Likewise.
14056         * lib/unicase/tocasefold.h: Likewise.
14057         * lib/unicase/tolower.h: Likewise.
14058         * lib/unicase/totitle.h: Likewise.
14059         * lib/unicase/toupper.h: Likewise.
14060         * lib/unictype/bidi_of.h: Likewise.
14061         * lib/unictype/blocks.h: Likewise.
14062         * lib/unictype/categ_C.h: Likewise.
14063         * lib/unictype/categ_Cf.h: Likewise.
14064         * lib/unictype/categ_Cn.h: Likewise.
14065         * lib/unictype/categ_L.h: Likewise.
14066         * lib/unictype/categ_Ll.h: Likewise.
14067         * lib/unictype/categ_Lm.h: Likewise.
14068         * lib/unictype/categ_Lo.h: Likewise.
14069         * lib/unictype/categ_Lu.h: Likewise.
14070         * lib/unictype/categ_M.h: Likewise.
14071         * lib/unictype/categ_Mc.h: Likewise.
14072         * lib/unictype/categ_Mn.h: Likewise.
14073         * lib/unictype/categ_N.h: Likewise.
14074         * lib/unictype/categ_Nd.h: Likewise.
14075         * lib/unictype/categ_Nl.h: Likewise.
14076         * lib/unictype/categ_No.h: Likewise.
14077         * lib/unictype/categ_P.h: Likewise.
14078         * lib/unictype/categ_Pd.h: Likewise.
14079         * lib/unictype/categ_Po.h: Likewise.
14080         * lib/unictype/categ_S.h: Likewise.
14081         * lib/unictype/categ_Sc.h: Likewise.
14082         * lib/unictype/categ_So.h: Likewise.
14083         * lib/unictype/categ_of.h: Likewise.
14084         * lib/unictype/combining.h: Likewise.
14085         * lib/unictype/ctype_alnum.h: Likewise.
14086         * lib/unictype/ctype_alpha.h: Likewise.
14087         * lib/unictype/ctype_graph.h: Likewise.
14088         * lib/unictype/ctype_lower.h: Likewise.
14089         * lib/unictype/ctype_print.h: Likewise.
14090         * lib/unictype/ctype_punct.h: Likewise.
14091         * lib/unictype/ctype_upper.h: Likewise.
14092         * lib/unictype/decdigit.h: Likewise.
14093         * lib/unictype/digit.h: Likewise.
14094         * lib/unictype/numeric.h: Likewise.
14095         * lib/unictype/pr_alphabetic.h: Likewise.
14096         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14097         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14098         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14099         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14100         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14101         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14102         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14103         * lib/unictype/pr_combining.h: Likewise.
14104         * lib/unictype/pr_composite.h: Likewise.
14105         * lib/unictype/pr_currency_symbol.h: Likewise.
14106         * lib/unictype/pr_dash.h: Likewise.
14107         * lib/unictype/pr_decimal_digit.h: Likewise.
14108         * lib/unictype/pr_deprecated.h: Likewise.
14109         * lib/unictype/pr_diacritic.h: Likewise.
14110         * lib/unictype/pr_extender.h: Likewise.
14111         * lib/unictype/pr_grapheme_base.h: Likewise.
14112         * lib/unictype/pr_grapheme_extend.h: Likewise.
14113         * lib/unictype/pr_grapheme_link.h: Likewise.
14114         * lib/unictype/pr_id_continue.h: Likewise.
14115         * lib/unictype/pr_id_start.h: Likewise.
14116         * lib/unictype/pr_ideographic.h: Likewise.
14117         * lib/unictype/pr_ignorable_control.h: Likewise.
14118         * lib/unictype/pr_logical_order_exception.h: Likewise.
14119         * lib/unictype/pr_lowercase.h: Likewise.
14120         * lib/unictype/pr_numeric.h: Likewise.
14121         * lib/unictype/pr_other_alphabetic.h: Likewise.
14122         * lib/unictype/pr_punctuation.h: Likewise.
14123         * lib/unictype/pr_sentence_terminal.h: Likewise.
14124         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14125         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14126         * lib/unictype/pr_unified_ideograph.h: Likewise.
14127         * lib/unictype/pr_uppercase.h: Likewise.
14128         * lib/unictype/pr_xid_continue.h: Likewise.
14129         * lib/unictype/pr_xid_start.h: Likewise.
14130         * lib/unictype/pr_zero_width.h: Likewise.
14131         * lib/unictype/scripts.h: Likewise.
14132         * lib/unictype/scripts_byname.gperf: Likewise.
14133         * lib/unictype/sy_java_ident.h: Likewise.
14134         * lib/unigbrk/gbrkprop.h: Likewise.
14135         * lib/unilbrk/lbrkprop1.h: Likewise.
14136         * lib/unilbrk/lbrkprop2.h: Likewise.
14137         * lib/unilbrk/lbrktables.h: Likewise.
14138         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
14139         LBP_CP. Implement rule LB30.
14140         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
14141         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
14142         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
14143         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
14144         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
14145         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
14146         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
14147         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
14148         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
14149         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
14150         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
14151         bits instead of 16 bits in the code1 and code2 of each composition
14152         rule.
14153         (uc_composition): Update for Unicode 5.2.0.
14154         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
14155         * lib/uninorm/decomposition-table2.h: Likewise.
14156         * lib/uniwbrk/wbrkprop.h: Likewise.
14157         * tests/unicase/test-cased.c: Likewise.
14158         * tests/unicase/test-ignorable.c: Likewise.
14159         * tests/unicase/test-uc_tolower.c: Likewise.
14160         * tests/unicase/test-uc_totitle.c: Likewise.
14161         * tests/unicase/test-uc_toupper.c: Likewise.
14162         * tests/unictype/test-categ_C.c: Likewise.
14163         * tests/unictype/test-categ_Cf.c: Likewise.
14164         * tests/unictype/test-categ_Cn.c: Likewise.
14165         * tests/unictype/test-categ_L.c: Likewise.
14166         * tests/unictype/test-categ_Ll.c: Likewise.
14167         * tests/unictype/test-categ_Lm.c: Likewise.
14168         * tests/unictype/test-categ_Lo.c: Likewise.
14169         * tests/unictype/test-categ_Lu.c: Likewise.
14170         * tests/unictype/test-categ_M.c: Likewise.
14171         * tests/unictype/test-categ_Mc.c: Likewise.
14172         * tests/unictype/test-categ_Mn.c: Likewise.
14173         * tests/unictype/test-categ_N.c: Likewise.
14174         * tests/unictype/test-categ_Nd.c: Likewise.
14175         * tests/unictype/test-categ_Nl.c: Likewise.
14176         * tests/unictype/test-categ_No.c: Likewise.
14177         * tests/unictype/test-categ_P.c: Likewise.
14178         * tests/unictype/test-categ_Pd.c: Likewise.
14179         * tests/unictype/test-categ_Po.c: Likewise.
14180         * tests/unictype/test-categ_S.c: Likewise.
14181         * tests/unictype/test-categ_Sc.c: Likewise.
14182         * tests/unictype/test-categ_So.c: Likewise.
14183         * tests/unictype/test-ctype_alnum.c: Likewise.
14184         * tests/unictype/test-ctype_alpha.c: Likewise.
14185         * tests/unictype/test-ctype_graph.c: Likewise.
14186         * tests/unictype/test-ctype_lower.c: Likewise.
14187         * tests/unictype/test-ctype_print.c: Likewise.
14188         * tests/unictype/test-ctype_punct.c: Likewise.
14189         * tests/unictype/test-ctype_upper.c: Likewise.
14190         * tests/unictype/test-decdigit.h: Likewise.
14191         * tests/unictype/test-digit.h: Likewise.
14192         * tests/unictype/test-numeric.h: Likewise.
14193         * tests/unictype/test-pr_alphabetic.c: Likewise.
14194         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14195         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14196         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
14197         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14198         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14199         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14200         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14201         * tests/unictype/test-pr_combining.c: Likewise.
14202         * tests/unictype/test-pr_composite.c: Likewise.
14203         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14204         * tests/unictype/test-pr_dash.c: Likewise.
14205         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14206         * tests/unictype/test-pr_deprecated.c: Likewise.
14207         * tests/unictype/test-pr_diacritic.c: Likewise.
14208         * tests/unictype/test-pr_extender.c: Likewise.
14209         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14210         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14211         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14212         * tests/unictype/test-pr_id_continue.c: Likewise.
14213         * tests/unictype/test-pr_id_start.c: Likewise.
14214         * tests/unictype/test-pr_ideographic.c: Likewise.
14215         * tests/unictype/test-pr_ignorable_control.c: Likewise.
14216         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
14217         * tests/unictype/test-pr_lowercase.c: Likewise.
14218         * tests/unictype/test-pr_numeric.c: Likewise.
14219         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14220         * tests/unictype/test-pr_punctuation.c: Likewise.
14221         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14222         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14223         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14224         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14225         * tests/unictype/test-pr_uppercase.c: Likewise.
14226         * tests/unictype/test-pr_xid_continue.c: Likewise.
14227         * tests/unictype/test-pr_xid_start.c: Likewise.
14228         * tests/unictype/test-pr_zero_width.c: Likewise.
14229         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
14230         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
14231         changed behaviour: line breaking is now disallowed between a letter
14232         or '=' and '('.
14233         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14234         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14235         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
14236         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
14237         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14238         lib/uniwidth/width.c.
14239         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
14240         without comments, but with the original copyright notice.
14241         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
14242         changes.
14243         * lib/unictype/categ_Cc.h: Likewise.
14244         * lib/unictype/categ_Co.h: Likewise.
14245         * lib/unictype/categ_Cs.h: Likewise.
14246         * lib/unictype/categ_Lt.h: Likewise.
14247         * lib/unictype/categ_Me.h: Likewise.
14248         * lib/unictype/categ_Pc.h: Likewise.
14249         * lib/unictype/categ_Pe.h: Likewise.
14250         * lib/unictype/categ_Pf.h: Likewise.
14251         * lib/unictype/categ_Pi.h: Likewise.
14252         * lib/unictype/categ_Ps.h: Likewise.
14253         * lib/unictype/categ_Sk.h: Likewise.
14254         * lib/unictype/categ_Sm.h: Likewise.
14255         * lib/unictype/categ_Z.h: Likewise.
14256         * lib/unictype/categ_Zl.h: Likewise.
14257         * lib/unictype/categ_Zp.h: Likewise.
14258         * lib/unictype/categ_Zs.h: Likewise.
14259         * lib/unictype/ctype_blank.h: Likewise.
14260         * lib/unictype/ctype_cntrl.h: Likewise.
14261         * lib/unictype/ctype_digit.h: Likewise.
14262         * lib/unictype/ctype_space.h: Likewise.
14263         * lib/unictype/ctype_xdigit.h: Likewise.
14264         * lib/unictype/mirror.h: Likewise.
14265         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14266         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14267         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14268         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14269         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14270         * lib/unictype/pr_bidi_control.h: Likewise.
14271         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14272         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14273         * lib/unictype/pr_bidi_pdf.h: Likewise.
14274         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14275         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14276         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14277         * lib/unictype/pr_format_control.h: Likewise.
14278         * lib/unictype/pr_hex_digit.h: Likewise.
14279         * lib/unictype/pr_hyphen.h: Likewise.
14280         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14281         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14282         * lib/unictype/pr_iso_control.h: Likewise.
14283         * lib/unictype/pr_join_control.h: Likewise.
14284         * lib/unictype/pr_left_of_pair.h: Likewise.
14285         * lib/unictype/pr_line_separator.h: Likewise.
14286         * lib/unictype/pr_math.h: Likewise.
14287         * lib/unictype/pr_non_break.h: Likewise.
14288         * lib/unictype/pr_not_a_character.h: Likewise.
14289         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14290         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14291         * lib/unictype/pr_other_id_continue.h: Likewise.
14292         * lib/unictype/pr_other_id_start.h: Likewise.
14293         * lib/unictype/pr_other_lowercase.h: Likewise.
14294         * lib/unictype/pr_other_math.h: Likewise.
14295         * lib/unictype/pr_other_uppercase.h: Likewise.
14296         * lib/unictype/pr_paired_punctuation.h: Likewise.
14297         * lib/unictype/pr_paragraph_separator.h: Likewise.
14298         * lib/unictype/pr_pattern_syntax.h: Likewise.
14299         * lib/unictype/pr_pattern_white_space.h: Likewise.
14300         * lib/unictype/pr_private_use.h: Likewise.
14301         * lib/unictype/pr_quotation_mark.h: Likewise.
14302         * lib/unictype/pr_radical.h: Likewise.
14303         * lib/unictype/pr_soft_dotted.h: Likewise.
14304         * lib/unictype/pr_space.h: Likewise.
14305         * lib/unictype/pr_titlecase.h: Likewise.
14306         * lib/unictype/pr_variation_selector.h: Likewise.
14307         * lib/unictype/pr_white_space.h: Likewise.
14308         * lib/unictype/sy_c_ident.h: Likewise.
14309         * lib/unictype/sy_c_whitespace.h: Likewise.
14310         * lib/unictype/sy_java_whitespace.h: Likewise.
14311         * modules/uni*/*: Bump version number of expected libunistring version.
14312         Reported by Simon Josefsson.
14313
14314 2011-01-09  Karl Heuer  <kwzh@gnu.org>
14315
14316         useless-if-before-free: fix typo in --help and make the internal,
14317         automatic version date update process work once again.
14318         --help output contained a NUL character instead of the
14319         backslash-zero that was intended.  Also, the "must lie within
14320         the first 8 lines" line is on line 9, and hence not getting
14321         automatically updated.
14322         * build-aux/useless-if-before-free: Fix the former by adding a
14323         backslash, and the latter by condensing the three lines of what-it-does
14324         to a single line, leaving one line of slack for the future.
14325
14326 2011-01-09  Bruno Haible  <bruno@clisp.org>
14327
14328         uniwidth/width: Fix width of U+1D173..U+1D17A.
14329         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
14330         symbolic_width, output_width_property_test): New functions.
14331         (main): Invoke output_nonspacing_property, output_width_property_test.
14332         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
14333         U+1D173..U+1D17A.
14334         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
14335         1.
14336         * modules/uniwidth/*: Bump version number of expected libunistring
14337         version.
14338         * modules/unilbrk/*: Likewise.
14339
14340 2011-01-08  Bruno Haible  <bruno@clisp.org>
14341
14342         uninorm tests: Preserve copyright of Unicode data file.
14343         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
14344         Mention modifications.
14345
14346 2011-01-08  Bruno Haible  <bruno@clisp.org>
14347
14348         gen-uni-tables: Prepare for Unicode 5.2.0.
14349         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
14350         (debug_output_lbp, output_lbp): Update.
14351
14352 2011-01-08  Bruno Haible  <bruno@clisp.org>
14353
14354         unilbrk: Clarify gen-uni-tables.c code.
14355         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
14356         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
14357         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
14358
14359 2011-01-07  Bruno Haible  <bruno@clisp.org>
14360
14361         strtod: Restore errno when successfully parsing Infinity or NaN.
14362         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
14363         restore the original errno.
14364
14365 2011-01-07  Bruno Haible  <bruno@clisp.org>
14366
14367         remove test: Avoid failure on HP-UX 11.
14368         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
14369
14370 2011-01-07  Bruno Haible  <bruno@clisp.org>
14371
14372         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
14373         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
14374         error code.
14375
14376 2011-01-07  Pádraig Brady <P@draigBrady.com>
14377
14378         ignore-value: fixup comments, and add Eric Blake
14379         as an author since he rewrote the macros.
14380         * lib/ignore-value.h (ignore_value):  State that
14381         we now support aggregates.  Also specify exactly
14382         when the GCC warn_unused_result feature was added.
14383
14384 2011-01-06  Eric Blake  <eblake@redhat.com>
14385
14386         ignore-value: support aggregate types
14387         * lib/ignore-value.h (ignore_value): Provide separate gcc
14388         definition.
14389         * modules/ignore-value-tests: New test module.
14390         * tests/test-ignore-value.c: New test.
14391
14392         maint.mk: improve sc_prohibit_strcmp regex
14393         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
14394         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
14395         definition of STRNEQ.
14396
14397         signal: work around Haiku issue with SIGBUS
14398         * lib/siglist.h: Add comment.
14399         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
14400         strsignal's favoring of SIGSEGV.
14401         * tests/test-signal.c (main): Avoid test failure.
14402         * doc/posix-headers/signal.texi (signal.h): Document the issue.
14403         Reported by Scott McCreary.
14404
14405         maint.mk: add pre-release check to ensure submodule commits are public
14406         * top/maint.mk (public-submodule-commit): New rule.
14407         (submodule-checks): New variable.
14408         (alpha beta stable): Depend on the variable.
14409
14410 2011-01-05  Pádraig Brady <P@draigBrady.com>
14411         and Jim Meyering  <meyering@redhat.com>
14412
14413         ignore-value: make ignore_value more generic; deprecate ignore_ptr
14414         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
14415         (ATTRIBUTE_DEPRECATED): Define.
14416         (_ignore_case): New function.
14417         (ignore_value): New macro, to replace the old function.
14418         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
14419         * modules/ignore-value (Depends-on): Add stdint.
14420
14421 2011-01-04  Eric Blake  <eblake@redhat.com>
14422
14423         doc: regenerate INSTALL
14424         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
14425         @firstparagraphindent support, now that autoconf dropped it.
14426         (INSTALL_PRELUDE): Reinstate old macro.
14427         * doc/install.texi: Resync from autoconf.
14428         * doc/INSTALL: Reflect recent autoconf update.
14429         * doc/INSTALL.ISO: Likewise.
14430         * doc/INSTALL.UTF-8: Likewise.
14431         Reported by Karl Berry.
14432
14433 2011-01-04  Bruce Korb  <address@hidden>
14434
14435         git-version-gen: avoid a sub-shell
14436         * build-aux/git-version-gen: Redirect stderr in `...` via
14437         "exec 2>...", rather than via an added sub-shell.
14438
14439 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
14440
14441         git-version-gen: use (...) rather than sh -c '...'
14442         * build-aux/git-version-gen: Rather than hard-coding a shell's name
14443         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
14444
14445 2011-01-03  Jim Meyering  <meyering@redhat.com>
14446
14447         git-version-gen: convert leading TABs to spaces
14448         * build-aux/git-version-gen: Expand leading TABs.
14449
14450         git-version-gen: handle failed "git rev-list"
14451         * build-aux/git-version-gen: Rather than leaking a "fatal" error
14452         from git and proceeding as if it had succeeded but printed no SHA1
14453         checksums, suppress the diagnostic and handle the failure.
14454         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
14455
14456         git-version-gen: include command name in one more diagnostic
14457         * build-aux/git-version-gen: When the required .tarball-version file
14458         was missing or unreadable, you might see the diagnostic from "cat",
14459         but no trace of the name of the invoking script.  Now, you still see
14460         the diagnostic from cat, but also get one from "git-version-gen: ".
14461         Inspired by a patch from Bruce Korb.
14462
14463         update-copyright: adjust test to match changed code
14464         * tests/test-update-copyright.sh: Change test's expected output
14465         to match new actual output.
14466
14467 2011-01-02  Bruno Haible  <bruno@clisp.org>
14468
14469         getlogin_r: Avoid test failure on HP-UX 11.
14470         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
14471         ERANGE when the second argument is zero.
14472         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
14473         portability problem.
14474
14475 2011-01-02  Bruce Korb  <bkorb@gnu.org>
14476
14477         * build-aux/update-copyright: doc Simon's changes
14478
14479 2011-01-02  Simon Josefsson  <simon@josefsson.org>
14480
14481         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
14482         environment variable.
14483
14484 2011-01-02  Bruno Haible  <bruno@clisp.org>
14485
14486         unigbrk: Avoid gcc warnings.
14487         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
14488         unused variable.
14489         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
14490         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
14491         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
14492         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
14493         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
14494         Change type of first argument to 'const char *'.
14495         (main): Remove unused variable.
14496         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
14497         type of first argument to 'const char *'.
14498         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
14499         Likewise.
14500         (main): Change type of variable 's'.
14501         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
14502         to 'int'.
14503
14504 2011-01-02  Bruno Haible  <bruno@clisp.org>
14505
14506         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
14507         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
14508         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
14509         bug.
14510         * lib/pwrite.c: Undo 2010-12-31 patch.
14511         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
14512
14513 2011-01-02  Bruno Haible  <bruno@clisp.org>
14514
14515         pread: Fix test whether it works.
14516         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
14517
14518 2011-01-02  Bruno Haible  <bruno@clisp.org>
14519
14520         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
14521         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
14522         ends in "6". Don't require a specific month name. Try also the locale
14523         names found on HP-UX 11 and Solaris 7.
14524
14525 2011-01-02  Bruno Haible  <bruno@clisp.org>
14526
14527         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
14528         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
14529         C linkage.
14530         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
14531
14532 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
14533
14534         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
14535         for consistency, since the "cluster" term is not used elsewhere.
14536         * lib/unigbrk.in.h: Update name.
14537         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
14538         * lib/unigbrk/u16-grapheme-next.c: Update name.
14539         * lib/unigbrk/u16-grapheme-prev.c: Update name.
14540         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
14541         * lib/unigbrk/u32-grapheme-next.c: Update name.
14542         * lib/unigbrk/u32-grapheme-prev.c: Update name.
14543         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
14544         * lib/unigbrk/u8-grapheme-next.c: Update name.
14545         * lib/unigbrk/u8-grapheme-prev.c: Update name.
14546         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
14547         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
14548         Suggested by Bruno Haible.
14549
14550 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
14551
14552         Remove module 'u8-grapheme-len' as too redundant with
14553         'u8-grapheme-next'.
14554         * modules/unigbrk/u8-grapheme-len: Delete file.
14555         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
14556         * lib/unigbrk.in.h: Remove prototype for deleted function.
14557         * lib/unigbrk/u8-grapheme-len.c: Delete file.
14558         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
14559
14560         Remove module 'u16-grapheme-len' as too redundant with
14561         'u16-grapheme-next'.
14562         * modules/unigbrk/u16-grapheme-len: Delete file.
14563         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
14564         * lib/unigbrk.in.h: Remove prototype for deleted function.
14565         * lib/unigbrk/u16-grapheme-len.c: Delete file.
14566         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
14567
14568         Remove module 'u32-grapheme-len' as too redundant with
14569         'u32-grapheme-next'.
14570         * modules/unigbrk/u32-grapheme-len: Delete file.
14571         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
14572         * lib/unigbrk.in.h: Remove prototype for deleted function.
14573         * lib/unigbrk/u32-grapheme-len.c: Delete file.
14574         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
14575
14576         Suggested by Bruno Haible.
14577
14578 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
14579
14580         * unigbrk.in.h: Fix typo: "ben" => "been".
14581         Reported by Bruno Haible.
14582
14583 2011-01-01  Jim Meyering  <meyering@redhat.com>
14584
14585         maint: update almost all copyright ranges to include 2011
14586         Run the new "make update-copyright" rule.
14587
14588 2011-01-01  Jim Meyering  <meyering@redhat.com>
14589
14590         maint: update-copyright: exempt doc/INSTALL*
14591         * Makefile (update-copyright): Also exclude doc/INSTALL*,
14592         since they are generated.  Suggested by Bruno Haible.
14593
14594 2011-01-01  Jim Meyering  <meyering@redhat.com>
14595
14596         maint: refine the update-copyright rule
14597         * Makefile (update-copyright): Also exclude any file that includes
14598         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
14599         code that merely generates the comment.
14600
14601 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
14602
14603         New module 'u8-grapheme-len'.
14604         * modules/unigbrk/u8-grapheme-len: New file.
14605         * modules/unigbrk/u8-grapheme-len-tests: New file.
14606         * lib/unigbrk.in.h: Add prototype for new function.
14607         * lib/unigbrk/u8-grapheme-len.c: New file.
14608         * tests/unigbrk/test-u8-grapheme-len.c: New file.
14609
14610         New module 'u16-grapheme-len'.
14611         * modules/unigbrk/u16-grapheme-len: New file.
14612         * modules/unigbrk/u16-grapheme-len-tests: New file.
14613         * lib/unigbrk.in.h: Add prototype for new function.
14614         * lib/unigbrk/u16-grapheme-len.c: New file.
14615         * tests/unigbrk/test-u16-grapheme-len.c: New file.
14616
14617         New module 'u32-grapheme-len'.
14618         * modules/unigbrk/u32-grapheme-len: New file.
14619         * modules/unigbrk/u32-grapheme-len-tests: New file.
14620         * lib/unigbrk.in.h: Add prototype for new function.
14621         * lib/unigbrk/u32-grapheme-len.c: New file.
14622         * tests/unigbrk/test-u32-grapheme-len.c: New file.
14623
14624         New module 'u8-grapheme-next'.
14625         * modules/unigbrk/u8-grapheme-next: New file.
14626         * modules/unigbrk/u8-grapheme-next-tests: New file.
14627         * lib/unigbrk.in.h: Add prototype for new function.
14628         * lib/unigbrk/u8-grapheme-next.c: New file.
14629         * tests/unigbrk/test-u8-grapheme-next.c: New file.
14630
14631         New module 'u16-grapheme-next'.
14632         * modules/unigbrk/u16-grapheme-next: New file.
14633         * modules/unigbrk/u16-grapheme-next-tests: New file.
14634         * lib/unigbrk.in.h: Add prototype for new function.
14635         * lib/unigbrk/u16-grapheme-next.c: New file.
14636         * tests/unigbrk/test-u16-grapheme-next.c: New file.
14637
14638         New module 'u32-grapheme-next'.
14639         * modules/unigbrk/u32-grapheme-next: New file.
14640         * modules/unigbrk/u32-grapheme-next-tests: New file.
14641         * lib/unigbrk.in.h: Add prototype for new function.
14642         * lib/unigbrk/u32-grapheme-next.c: New file.
14643         * tests/unigbrk/test-u32-grapheme-next.c: New file.
14644
14645         New module 'u8-grapheme-prev'.
14646         * modules/unigbrk/u8-grapheme-prev: New file.
14647         * modules/unigbrk/u8-grapheme-prev-tests: New file.
14648         * lib/unigbrk.in.h: Add prototype for new function.
14649         * lib/unigbrk/u8-grapheme-prev.c: New file.
14650         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
14651
14652         New module 'u16-grapheme-prev'.
14653         * modules/unigbrk/u16-grapheme-prev: New file.
14654         * modules/unigbrk/u16-grapheme-prev-tests: New file.
14655         * lib/unigbrk.in.h: Add prototype for new function.
14656         * lib/unigbrk/u16-grapheme-prev.c: New file.
14657         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
14658
14659         New module 'u32-grapheme-prev'.
14660         * modules/unigbrk/u32-grapheme-prev: New file.
14661         * modules/unigbrk/u32-grapheme-prev-tests: New file.
14662         * lib/unigbrk.in.h: Add prototype for new function.
14663         * lib/unigbrk/u32-grapheme-prev.c: New file.
14664         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
14665
14666         New module 'u8-grapheme-breaks'.
14667         * modules/unigbrk/u8-grapheme-breaks: New file.
14668         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
14669         * lib/unigbrk.in.h: Add prototype for new function.
14670         * lib/unigbrk/u8-grapheme-breaks.c: New file.
14671         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
14672
14673         New module 'u16-grapheme-breaks'.
14674         * modules/unigbrk/u16-grapheme-breaks: New file.
14675         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
14676         * lib/unigbrk.in.h: Add prototype for new function.
14677         * lib/unigbrk/u16-grapheme-breaks.c: New file.
14678         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
14679
14680         New module 'u32-grapheme-breaks'.
14681         * modules/unigbrk/u32-grapheme-breaks: New file.
14682         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
14683         * lib/unigbrk.in.h: Add prototype for new function.
14684         * lib/unigbrk/u32-grapheme-breaks.c: New file.
14685         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
14686
14687         New module 'ulc-grapheme-breaks'.
14688         * modules/unigbrk/ulc-grapheme-breaks: New file.
14689         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
14690         * m4/locale-ar.m4: New file.
14691         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
14692         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
14693         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
14694
14695 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
14696
14697         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
14698         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
14699         modified how this file was generated before I initially submitted
14700         the module, but failed to regenerate it.  This meant that several
14701         of the level2 entries were wrong.
14702         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
14703         Remove the division-by-2 that is folded into the table now that
14704         gbrkprop.h has been regenerated properly.  Now -1 entries are
14705         handled correctly.
14706
14707         New module 'unigbrk/uc-gbrk-prop-tests'.
14708         * modules/unigbrk/uc-gbrk-prop-tests: New file.
14709         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
14710         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
14711         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
14712
14713 2011-01-01  Bruno Haible  <bruno@clisp.org>
14714
14715         Avoid use of hexadecimal escapes.
14716         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
14717         instead of hexadecimal escapes.
14718
14719 2011-01-01  Jim Meyering  <meyering@redhat.com>
14720
14721         maint: new rule to update copyright year ranges
14722         * Makefile (update-copyright): New rule.
14723
14724         maint: indent with TABs in Makefile
14725         * Makefile: Expand leading sequences of spaces to TABs
14726
14727         version-etc: update the copyright year it reports
14728         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
14729
14730 2010-12-31  Bruno Haible  <bruno@clisp.org>
14731
14732         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
14733         * lib/isfinite.c (zerof, zerod, zerol): New variables.
14734         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
14735         zero.
14736
14737 2010-12-31  Bruno Haible  <bruno@clisp.org>
14738
14739         pwrite: Work around HP-UX 11.11 bug.
14740         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
14741         works and set REPLACE_PWRITE if not.
14742         * lib/pwrite.c (pwrite): Add an implementation that uses the system
14743         function.
14744         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
14745
14746 2010-12-31  Bruno Haible  <bruno@clisp.org>
14747
14748         pread: Work around HP-UX 11 bugs.
14749         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
14750         and set REPLACE_PREAD if not.
14751         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
14752
14753 2010-12-31  Eric Blake  <eblake@redhat.com>
14754
14755         nl_langinfo: fix YESEXPR on Irix 6.5
14756         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
14757         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
14758         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
14759         it.
14760
14761 2010-12-31  Bruno Haible  <bruno@clisp.org>
14762
14763         iconv: Document HP-UX 11 bug.
14764         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
14765
14766 2010-12-31  Bruno Haible  <bruno@clisp.org>
14767
14768         ldexpl: Fix link error on HP-UX 11.
14769         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
14770         LDEXPL_LIBM, using $ISNANL_LIBM.
14771
14772 2010-12-31  Eric Blake  <eblake@redhat.com>
14773
14774         ftello: avoid compilation failure with SunStudio c89
14775         * lib/ftello.c (ftello): Use lseek, not llseek.
14776
14777         tests: avoid failing coreutils tests on cygwin
14778         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
14779         (create_exe_shims_): Return 0 when skipping.
14780
14781 2010-12-31  Bruno Haible  <bruno@clisp.org>
14782
14783         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
14784         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
14785
14786 2010-12-31  Bruno Haible  <bruno@clisp.org>
14787
14788         waitpid: Fix link error in C++ mode.
14789         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
14790
14791 2010-12-31  Bruno Haible  <bruno@clisp.org>
14792
14793         isnan: Use GCC built-ins when possible.
14794         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
14795         __builtin_isnan.
14796         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
14797         (isnan): Define using GCC built-ins for GCC >= 4.0.
14798
14799 2010-12-31  Bruno Haible  <bruno@clisp.org>
14800
14801         isnand: Fix mistake.
14802         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
14803         __builtin_isnand.
14804
14805 2010-12-31  Bruno Haible  <bruno@clisp.org>
14806
14807         open: Avoid C++ error on HP-UX 11.
14808         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
14809
14810 2010-12-31  Bruno Haible  <bruno@clisp.org>
14811
14812         time_r: Add missing declarations on HP-UX 11.
14813         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
14814         instead of HAVE_LOCALTIME_R.
14815         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
14816         HAVE_LOCALTIME_R always.
14817         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
14818         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
14819         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
14820         HAVE_LOCALTIME_R.
14821         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
14822         * doc/posix-functions/localtime_r.texi: Likewise.
14823
14824 2010-12-29  Eric Blake  <eblake@redhat.com>
14825
14826         mountlist: tweak previous commit
14827         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
14828         Reported by Paul Eggert.
14829
14830         mountlist: fix local drive detection on cygwin
14831         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
14832         that works for cygwin.
14833
14834 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
14835
14836         ftoastr, snprintf: ftoastr + snprintf module
14837         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
14838         since the snprintf module now should be good enough here.
14839         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
14840         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
14841         and gl_MODULE_INDICATOR([snprintf]), but the former enables
14842         GNULIB_SNPRINTF only for the test directory, and the latter
14843         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
14844         seems to suffice by itself.
14845
14846 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14847
14848         alloca: one step towards thread-safety
14849         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
14850         need for a static variable.  All callers changed.  This does not
14851         make the alloca replacement thread-safe, but it's one step.
14852
14853         tests: minor indenting change
14854         * tests/init.sh: Sync from coreutils housekeeping patch
14855         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
14856         to keep lines within 80 columns.
14857
14858 2010-12-28  Jim Meyering  <meyering@redhat.com>
14859
14860         regex: don't infloop on persistent failing calloc
14861         * lib/regexec.c (build_trtable): Return failure indication upon
14862         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
14863         In glibc, this was fixed for version 2.13:
14864         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
14865
14866 2010-12-28  Bruno Haible  <bruno@clisp.org>
14867             Paul Eggert <eggert@cs.ucla.edu>
14868
14869         linkat: Make implementation robust against system behaviour variations.
14870         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
14871         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
14872         way, and to -2 if it needs a generic runtime test.
14873         * lib/linkat.c (solaris_optimized_link_immediate,
14874         solaris_optimized_link_follow): New functions.
14875         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
14876         (check_same_link): Use it.
14877
14878 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
14879
14880         New module 'unigbrk/base'.
14881         * modules/unigbrk/base: New file.
14882         * lib/unigbrk.in.h: New file.
14883
14884         New module 'unigbrk/uc-gbrk-prop'.
14885         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
14886         * modules/unigbrk/uc-gbrk-prop: New file.
14887         * lib/unigbrk/gbrkprop.h: New file.
14888         * lib/unigbrk/uc-gbrk-prop.c: New file.
14889
14890         New module 'unigbrk/uc-is-grapheme-break'.
14891         * modules/unigbrk/uc-is-grapheme-break: New file.
14892         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
14893         * lib/unigbrk/uc-is-grapheme-break.c: New file.
14894         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
14895         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
14896         * tests/unigbrk/GraphemeBreakTest.txt: New file.
14897
14898         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
14899
14900 2010-12-27  Bruno Haible  <bruno@clisp.org>
14901
14902         linkat test: Avoid failure on Solaris 11 2010-11.
14903         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
14904
14905 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14906
14907         utimens: work around glibc rounding bug on more platforms
14908         * lib/utimens.c (fdutimens): Work around rounding bug even if
14909         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
14910         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
14911
14912 2010-12-27  Bruno Haible  <bruno@clisp.org>
14913
14914         select tests: Improve comments.
14915         * tests/test-select.c (do_select): Add comments.
14916
14917 2010-12-27  Bruno Haible  <bruno@clisp.org>
14918
14919         select tests: Safer way of handling timeout.
14920         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
14921         at every invocation.
14922
14923 2010-12-27  Bruno Haible  <bruno@clisp.org>
14924
14925         select tests: Use 'bool' where appropriate.
14926         * tests/test-select.c (connect_to_socket): Change argument type to
14927         'bool'.
14928
14929 2010-12-27  Bruno Haible  <bruno@clisp.org>
14930
14931         select tests: Use existing modules.
14932         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
14933         (configure.ac): Don't test for unistd.h.
14934         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
14935         declared in <unistd.h>.
14936
14937 2010-12-27  Bruno Haible  <bruno@clisp.org>
14938
14939         mbrtowc: Work around a Solaris 7 bug.
14940         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
14941         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
14942         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
14943         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
14944         MBRTOWC_NULL_ARG1_BUG.
14945         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
14946         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
14947         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
14948         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
14949
14950 2010-12-27  Jim Meyering  <meyering@redhat.com>
14951
14952         read-file.c: tweak syntax
14953         * lib/read-file.c (fread_file): Remove space after "*" in function
14954         definitions.
14955
14956 2010-12-27  Bruno Haible  <bruno@clisp.org>
14957
14958         times test: Avoid gcc warnings on OSF/1.
14959         * tests/test-times.c (main): Cast printf arguments from clock_t to
14960         'long int'.
14961
14962 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14963
14964         utimens: work around glibc rounding bug on older Linux kernels
14965         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
14966         on Linux with a glibc whose utimes might not work, then work
14967         around a longstanding glibc bug involving rounding rather than
14968         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
14969         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
14970
14971 2010-12-26  Bruno Haible  <bruno@clisp.org>
14972
14973         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
14974         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
14975         _GL_CXXALIAS_SYS.
14976         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14977
14978 2010-12-26  Bruno Haible  <bruno@clisp.org>
14979
14980         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
14981         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
14982         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14983         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
14984         looking for the declaration.
14985         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
14986         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
14987         problem.
14988         * doc/posix-functions/inet_pton.texi: Likewise.
14989
14990 2010-12-26  Bruno Haible  <bruno@clisp.org>
14991
14992         arpa_inet: Use the common idioms with C++ support.
14993         * lib/arpa_inet.in.h: Include c++defs.h.
14994         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
14995         support.
14996         * modules/arpa_inet (Depends-on): Add c++defs.
14997         (Makefile.am): Substitute the contents of c++defs.h.
14998         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
14999         * modules/arpa_inet-c++-tests: New file.
15000         * tests/test-arpa_inet-c++.cc: New file.
15001
15002 2010-12-25  Bruno Haible  <bruno@clisp.org>
15003
15004         Fix more C++ link errors on Solaris 8.
15005         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
15006         $(LIB_EACCESS).
15007         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
15008         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
15009         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
15010         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
15011         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
15012
15013 2010-12-25  Bruno Haible  <bruno@clisp.org>
15014
15015         printf-posix: Fix link error when a non-GCC compiler is used.
15016         * lib/stdio.in.h (printf): When not using GCC, override printf
15017         correctly.
15018         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15019
15020 2010-12-25  Bruno Haible  <bruno@clisp.org>
15021
15022         strerror_r-posix: Update doc.
15023         * doc/posix-functions/strerror_r.texi: Update doc about the return
15024         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
15025
15026 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
15027
15028         utimens: simplify the logic of the previous change
15029         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
15030         This should not affect whether the test succeeds or fails.
15031
15032         utimens: configure better on hosts with NFS clock skew
15033         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
15034         uses the clock of the local host.  It might use the clock of the
15035         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
15036         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15037
15038 2010-12-25  Bruno Haible  <bruno@clisp.org>
15039
15040         ptsname test: Avoid failure on Solaris.
15041         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
15042         open a pseudo-terminal; don't use BSD-style ptys.
15043         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
15044
15045 2010-12-25  Bruno Haible  <bruno@clisp.org>
15046
15047         ptsname: Avoid ERANGE failure on some systems.
15048         * lib/ptsname.c (buffer): Increase size.
15049
15050 2010-12-25  Bruno Haible  <bruno@clisp.org>
15051
15052         rename, renameat: Avoid test failures at NFS mounted locations.
15053         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
15054         so that subsequent mkdir calls succeed.
15055
15056 2010-12-25  Bruno Haible  <bruno@clisp.org>
15057
15058         iswblank: Fix C++ link error on Solaris 8.
15059         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
15060         _GL_FUNCDECL_SYS.
15061
15062 2010-12-25  Bruno Haible  <bruno@clisp.org>
15063
15064         unistd: Fix C++ link error on Solaris 8.
15065         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
15066
15067 2010-12-25  Bruno Haible  <bruno@clisp.org>
15068
15069         readlink doc: Mention an old glibc bug.
15070         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
15071
15072 2010-12-25  Bruno Haible  <bruno@clisp.org>
15073
15074         fcntl-h: Fix for use of C++ on glibc systems.
15075         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15076         also on glibc systems in C++ mode.
15077         Reported by Gary V. Vaughan <gary@gnu.org>.
15078
15079 2010-12-25  Bruno Haible  <bruno@clisp.org>
15080
15081         roundl-ieee: Make it work on OSF/1 5.1 with cc.
15082         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
15083
15084 2010-12-25  Bruno Haible  <bruno@clisp.org>
15085
15086         truncl-ieee: Make it work on OSF/1 5.1 with cc.
15087         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
15088         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
15089         test whether truncl works according to ISO C 99 with IEC 60559.
15090         * m4/truncl-ieee.m4: New file.
15091         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
15092         m4/signbit.m4.
15093         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
15094
15095 2010-12-25  Bruno Haible  <bruno@clisp.org>
15096
15097         ceill-ieee: Make it work on OSF/1 5.1 with cc.
15098         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
15099         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
15100         test whether ceill works according to ISO C 99 with IEC 60559.
15101         * m4/ceill-ieee.m4: New file.
15102         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
15103         m4/signbit.m4.
15104         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
15105
15106 2010-12-25  Bruno Haible  <bruno@clisp.org>
15107
15108         Ensure all prerequisites of <wchar.h> are included.
15109         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
15110         before <wchar.h>.
15111         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15112         gl_MBRLEN_NUL_RETVAL): Likewise.
15113         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15114         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
15115         AC_FUNC_MBRTOWC): Likewise.
15116         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15117         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
15118         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15119         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
15120         Likewise.
15121         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15122         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
15123         (gl_WCHAR_H): Improve comments.
15124         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15125
15126 2010-12-25  Bruno Haible  <bruno@clisp.org>
15127
15128         strtok_r: Fix C syntax error in autoconf macro.
15129         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
15130         characters in test program.
15131
15132 2010-12-24  Bruno Haible  <bruno@clisp.org>
15133
15134         ceil, trunc, round: Fix gcc warnings.
15135         * lib/ceil.c (MIN): Undefine before redefining.
15136         * lib/trunc.c (MIN): Likewise.
15137         * lib/round.c (MIN): Likewise.
15138         Include <math.h> first.
15139
15140 2010-12-24  Bruno Haible  <bruno@clisp.org>
15141
15142         select tests: Avoid failures on OSF/1 5.1.
15143         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
15144         failure of closing the last socket; it may fail with ECONNRESET.
15145
15146 2010-12-24  Eric Blake  <eblake@redhat.com>
15147
15148         stdint: avoid HP-UX 10.20 preprocessor bug
15149         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
15150         than #if.
15151         * tests/test-floor2.c (main): Likewise.
15152         Reported by Peter O'Gorman.
15153
15154         pipe: make obsoletion transition easier
15155         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
15156         * modules/pipe (Files): Include revived file.
15157         (Include): Drop reference, to mirror getdate's behavior.
15158
15159 2010-12-24  Bruno Haible  <bruno@clisp.org>
15160
15161         sys_socket: Hide mismatch of declarations on NonStop Kernel.
15162         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
15163         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
15164         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15165
15166 2010-12-24  Bruno Haible  <bruno@clisp.org>
15167
15168         gethostname: Ensure declaration on NonStop Kernel.
15169         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
15170         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15171
15172 2010-12-24  Bruno Haible  <bruno@clisp.org>
15173
15174         sys_select: Ensure all necessary types on NonStop Kernel.
15175         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
15176         include <sys/time.h>.
15177         * doc/posix-headers/sys_select.texi: Mention that it's missing on
15178         NonStop Kernel.
15179         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15180
15181 2010-12-24  Bruno Haible  <bruno@clisp.org>
15182
15183         sys_select: Remove unneeded include.
15184         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
15185         have <sys/select.h>.
15186
15187 2010-12-24  Bruno Haible  <bruno@clisp.org>
15188
15189         gethostname: Provide a fallback for HOST_NAME_MAX.
15190         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
15191         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
15192         instead.
15193         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15194
15195 2010-12-24  Bruno Haible  <bruno@clisp.org>
15196
15197         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
15198         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
15199         (SA_RESTART): Likewise.
15200         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15201
15202 2010-12-24  Bruno Haible  <bruno@clisp.org>
15203
15204         signal: Define NSIG.
15205         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
15206         * tests/test-signal.c (nsig): New variable.
15207         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15208
15209 2010-12-24  Bruno Haible  <bruno@clisp.org>
15210
15211         rename, renameat: Avoid test failures on OSF/1 5.1.
15212         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
15213         alternative error codes.
15214         * tests/test-renameat.c (main): Likewise.
15215
15216 2010-12-24  Bruno Haible  <bruno@clisp.org>
15217
15218         *printf: Detect large precisions bug on Solaris 10/SPARC.
15219         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
15220         by Paul Eggert.
15221         * tests/test-snprintf-posix.h (test_function): Add this test code here
15222         too.
15223         * tests/test-sprintf-posix.h (test_function): Likewise.
15224         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15225         * tests/test-vasprintf-posix.c (test_function): Likewise.
15226         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
15227         around by gnulib.
15228         * doc/posix-functions/printf.texi: Likewise.
15229         * doc/posix-functions/snprintf.texi: Likewise.
15230         * doc/posix-functions/sprintf.texi: Likewise.
15231         * doc/posix-functions/vfprintf.texi: Likewise.
15232         * doc/posix-functions/vprintf.texi: Likewise.
15233         * doc/posix-functions/vsnprintf.texi: Likewise.
15234         * doc/posix-functions/vsprintf.texi: Likewise.
15235         * doc/posix-functions/dprintf.texi: Undo last commit.
15236         * doc/posix-functions/vdprintf.texi: Likewise.
15237
15238 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
15239
15240         tests: port test-fdutimensat.c to Solaris 8
15241         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
15242         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
15243         On Solaris 8, it fails with errno == ENOSYS, because there is no
15244         futimens (so it can't use the fd), and there is no lutimens (so it
15245         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
15246
15247         vsnprintf: make more consistent with snprintf; doc fixes
15248
15249         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
15250         the byte count return problem was promoted from the snprintf-posix
15251         to the snprintf module.
15252         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15253         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
15254         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
15255         * tests/test-snprintf.c (main): Check the byte count returned.
15256         * tests/test-vsnprintf.c (main): Likewise.
15257
15258 2010-12-23  Eric Blake  <eblake@redhat.com>
15259
15260         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
15261         * modules/sigpipe (License): Relax license.
15262
15263 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15264
15265         doc: document Solaris printf bug with large float precisions
15266         * doc/posix-functions/dprintf.texi (dprintf):
15267         * doc/posix-functions/fprintf.texi (fprintf):
15268         * doc/posix-functions/printf.texi (printf):
15269         * doc/posix-functions/snprintf.texi (snprintf):
15270         * doc/posix-functions/sprintf.texi (sprintf):
15271         * doc/posix-functions/vdprintf.texi (vdprintf):
15272         * doc/posix-functions/vfprintf.texi (vfprintf):
15273         * doc/posix-functions/vprintf.texi (vprintf):
15274         * doc/posix-functions/vsnprintf.texi (vsnprintf):
15275         * doc/posix-functions/vsprintf.texi (vsprintf):
15276         Mention that these functions mishandle large floating point
15277         precisions on Solaris 10.  The same bug is also present in Solaris
15278         8, and I assume earlier.  This causes "cd gnulib-tests; make
15279         check" to fail on Solaris 8 (and I assume, later) when building
15280         the latest coreutils, in test-vasprintf-posix's call to
15281         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
15282         the wide flavors (e.g., wprintf) so this patch just updates the
15283         documentation for the narrow ones.
15284
15285         test-posixtm.c: add two tests
15286         * tests/test-posixtm.c: Add two tests, to highlight the
15287         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
15288         around this bug; this is merely to document it.
15289
15290 2010-12-22  Bruno Haible  <bruno@clisp.org>
15291
15292         getlogin_r: Work around portability problem on OSF/1.
15293         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
15294         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
15295         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
15296         test for a truncated result.
15297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
15298         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
15299         * modules/getlogin_r (Depends-on): Add memchr.
15300         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
15301
15302 2010-12-22  Bruno Haible  <bruno@clisp.org>
15303
15304         ptsname: Avoid test failure on OSF/1 5.1.
15305         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
15306         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
15307         (same_slave): New function.
15308         (main): Use it to compare ptsname's result with the expected file name.
15309
15310 2010-12-22  Bruno Haible  <bruno@clisp.org>
15311
15312         Port extended stdio modules to HP NonStop Kernel.
15313         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
15314         macros.
15315         * lib/fbufmode.c: Update comments.
15316         * lib/fflush.c: Likewise.
15317         * lib/fpurge.c: Likewise.
15318         * lib/freadable.c: Likewise.
15319         * lib/freadahead.c: Likewise.
15320         * lib/freading.c: Likewise.
15321         * lib/freadptr.c: Likewise.
15322         * lib/freadseek.c: Likewise.
15323         * lib/fseeko.c: Likewise.
15324         * lib/fseterr.c: Likewise.
15325         * lib/fwritable.c: Likewise.
15326         * lib/fwriting.c: Likewise.
15327         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15328
15329 2010-12-22  Bruno Haible  <bruno@clisp.org>
15330
15331         ttyname_r: Work around bug on OSF/1 5.1.
15332         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
15333         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
15334         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
15335         present.
15336         * lib/ttyname_r.c (ttyname_r): Update comments.
15337
15338 2010-12-22  Bruno Haible  <bruno@clisp.org>
15339
15340         round: Implement result sign according to IEEE 754.
15341         * lib/round.c (MIN, MINUS_ZERO): New macros.
15342         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
15343         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
15344         * tests/test-round-ieee.c (main): Likewise.
15345         * tests/test-roundl-ieee.c (main): Likewise.
15346
15347         trunc: Implement result sign according to IEEE 754.
15348         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
15349         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
15350         * tests/test-trunc2.c: Include minus-zero.h.
15351         (MINUS_ZERO): New macro.
15352         (trunc_reference): Keep in sync with lib/trunc.c.
15353         * tests/test-truncf2.c: Include minus-zero.h.
15354         (MINUS_ZERO): New macro.
15355         (truncf_reference): Keep in sync with lib/trunc.c.
15356         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
15357         * tests/test-trunc-ieee.c (main): Likewise.
15358         * tests/test-truncl-ieee.c (main): Likewise.
15359
15360         ceil: Implement result sign according to IEEE 754.
15361         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
15362         (FUNC): Return -0.0 for -1 < x < 0.
15363         * tests/test-ceil2.c: Include minus-zero.h.
15364         (MINUS_ZERO): New macro.
15365         (ceil_reference): Keep in sync with lib/ceil.c.
15366         * tests/test-ceilf2.c: Include minus-zero.h.
15367         (MINUS_ZERO): New macro.
15368         (ceilf_reference): Keep in sync with lib/ceil.c.
15369         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
15370         * tests/test-ceil-ieee.c (main): Likewise.
15371         * tests/test-ceill-ieee.c (main): Likewise.
15372
15373         floor: Implement result sign according to IEEE 754.
15374         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
15375         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
15376         * tests/test-floorf2.c (floorf_reference): Likewise.
15377         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
15378         * tests/test-floor-ieee.c (main): Likewise.
15379         * tests/test-floorl-ieee.c (main): Likewise.
15380
15381 2010-12-22  Bruno Haible  <bruno@clisp.org>
15382
15383         getaddrinfo: Update doc.
15384         * doc/posix-functions/gai_strerror.texi: Return type is also different
15385         on AIX and HP-UX.
15386
15387 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15388
15389         getaddrinfo, inet_ntop: Update doc for Solaris.
15390         * doc/posix-functions/gai_strerror.texi: Return type is also an
15391         issue on Solaris 9 and earlier.
15392         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
15393         on Solaris 10 and earlier.
15394
15395 2010-12-21  Bruno Haible  <bruno@clisp.org>
15396
15397         New module 'roundl-ieee'.
15398         * modules/roundl-ieee: New file.
15399         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
15400         test whether roundl works according to ISO C 99 with IEC 60559.
15401         * m4/roundl-ieee.m4: New file.
15402         * modules/roundl-ieee-tests: New file.
15403         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
15404         * tests/test-roundl.c (main): Remove signbit tests.
15405         * modules/roundl-tests (Depends-on): Remove signbit.
15406         * doc/posix-functions/roundl.texi: Mention the new module.
15407
15408 2010-12-21  Bruno Haible  <bruno@clisp.org>
15409
15410         New module 'truncl-ieee'.
15411         * modules/truncl-ieee: New file.
15412         * modules/truncl-ieee-tests: New file.
15413         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
15414         * tests/test-truncl.c (main): Remove signbit tests.
15415         * modules/truncl-tests (Depends-on): Remove signbit.
15416         * doc/posix-functions/truncl.texi: Mention the new module.
15417
15418 2010-12-21  Bruno Haible  <bruno@clisp.org>
15419
15420         New module 'ceill-ieee'.
15421         * modules/ceill-ieee: New file.
15422         * modules/ceill-ieee-tests: New file.
15423         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
15424         * tests/test-ceill.c (main): Remove signbit tests.
15425         * modules/ceill-tests (Depends-on): Remove signbit.
15426         * doc/posix-functions/ceill.texi: Mention the new module.
15427
15428 2010-12-21  Bruno Haible  <bruno@clisp.org>
15429
15430         New module 'floorl-ieee'.
15431         * modules/floorl-ieee: New file.
15432         * modules/floorl-ieee-tests: New file.
15433         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
15434         * tests/test-floorl.c (main): Remove signbit tests.
15435         * modules/floorl-tests (Depends-on): Remove signbit.
15436         * doc/posix-functions/floorl.texi: Mention the new module.
15437
15438 2010-12-21  Bruno Haible  <bruno@clisp.org>
15439
15440         New module 'round-ieee'.
15441         * modules/round-ieee: New file.
15442         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
15443         whether round works according to ISO C 99 with IEC 60559.
15444         * m4/round-ieee.m4: New file.
15445         * modules/round-ieee-tests: New file.
15446         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
15447         * tests/test-round1.c (main): Remove signbit tests.
15448         * modules/round-tests (Depends-on): Remove 'signbit'.
15449         * doc/posix-functions/round.texi: Mention the new module.
15450
15451 2010-12-21  Bruno Haible  <bruno@clisp.org>
15452
15453         New module 'trunc-ieee'.
15454         * modules/trunc-ieee: New file.
15455         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
15456         whether trunc works according to ISO C 99 with IEC 60559.
15457         * m4/trunc-ieee.m4: New file.
15458         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
15459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
15460         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
15461         * modules/trunc-ieee-tests: New file.
15462         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
15463         * tests/test-trunc1.c (main): Remove signbit tests.
15464         * modules/trunc-tests (Depends-on): Remove 'signbit'.
15465         * doc/posix-functions/trunc.texi: Mention the new module.
15466
15467 2010-12-21  Bruno Haible  <bruno@clisp.org>
15468
15469         New module 'ceil-ieee'.
15470         * modules/ceil-ieee: New file.
15471         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
15472         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
15473         ISO C 99 with IEC 60559.
15474         * m4/ceil-ieee.m4: New file.
15475         * modules/ceil (Files): Add lib/ceil.c.
15476         (Depends-on): Add 'float'.
15477         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
15478         * lib/math.in.h (ceil): New declaration.
15479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
15480         REPLACE_CEIL.
15481         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
15482         * modules/ceil-ieee-tests: New file.
15483         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
15484         * tests/test-math-c++.cc: Check the signature of 'ceil'.
15485         * doc/posix-functions/ceil.texi: Mention the new module.
15486
15487 2010-12-21  Bruno Haible  <bruno@clisp.org>
15488
15489         New module 'floor-ieee'.
15490         * modules/floor-ieee: New file.
15491         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
15492         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
15493         ISO C 99 with IEC 60559.
15494         * m4/floor-ieee.m4: New file.
15495         * modules/floor (Files): Add lib/floor.c.
15496         (Depends-on): Add 'float'.
15497         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
15498         * lib/math.in.h (floor): New declaration.
15499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
15500         REPLACE_FLOOR.
15501         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
15502         * modules/floor-ieee-tests: New file.
15503         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
15504         * tests/test-math-c++.cc: Check the signature of 'floor'.
15505         * doc/posix-functions/floor.texi: Mention the new module.
15506
15507 2010-12-21  Bruno Haible  <bruno@clisp.org>
15508
15509         New module 'roundf-ieee'.
15510         * modules/roundf-ieee: New file.
15511         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
15512         test whether roundf works according to ISO C 99 with IEC 60559.
15513         * m4/roundf-ieee.m4: New file.
15514         * modules/roundf-ieee-tests: New file.
15515         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
15516         * tests/test-roundf1.c (main): Remove signbit tests.
15517         * modules/roundf-tests (Depends-on): Remove 'signbit'.
15518         * doc/posix-functions/roundf.texi: Mention the new module.
15519
15520 2010-12-21  Bruno Haible  <bruno@clisp.org>
15521
15522         New module 'truncf-ieee'.
15523         * modules/truncf-ieee: New file.
15524         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
15525         test whether truncf works according to ISO C 99 with IEC 60559.
15526         * m4/truncf-ieee.m4: New file.
15527         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
15528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
15529         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
15530         * modules/truncf-ieee-tests: New file.
15531         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
15532         * tests/test-truncf1.c (main): Remove signbit tests.
15533         * modules/truncf-tests (Depends-on): Remove 'signbit'.
15534         * doc/posix-functions/truncf.texi: Mention the new module.
15535
15536 2010-12-21  Bruno Haible  <bruno@clisp.org>
15537
15538         New module 'ceilf-ieee'.
15539         * modules/ceilf-ieee: New file.
15540         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
15541         test whether ceilf works according to ISO C 99 with IEC 60559.
15542         * m4/ceilf-ieee.m4: New file.
15543         * modules/ceilf-ieee-tests: New file.
15544         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
15545         * tests/test-ceilf1.c (main): Remove signbit tests.
15546         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
15547         * doc/posix-functions/ceilf.texi: Mention the new module.
15548
15549 2010-12-21  Bruno Haible  <bruno@clisp.org>
15550
15551         New module 'floorf-ieee'.
15552         * modules/floorf-ieee: New file.
15553         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
15554         test whether floorf works according to ISO C 99 with IEC 60559.
15555         * m4/floorf-ieee.m4: New file.
15556         * modules/floorf-ieee-tests: New file.
15557         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
15558         * tests/test-floorf1.c (main): Remove signbit tests.
15559         * modules/floorf-tests (Depends-on): Remove 'signbit'.
15560         * doc/posix-functions/floorf.texi: Mention the new module.
15561
15562 2010-12-21  Bruno Haible  <bruno@clisp.org>
15563
15564         Support for minus zero in autoconf macros.
15565         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
15566         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
15567         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
15568         * tests/minus-zero.h: Update comments.
15569
15570 2010-12-21  Bruno Haible  <bruno@clisp.org>
15571
15572         Tests for module 'ceil'.
15573         * modules/ceil-tests: New file.
15574         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
15575         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
15576
15577 2010-12-21  Bruno Haible  <bruno@clisp.org>
15578
15579         Tests for module 'floor'.
15580         * modules/floor-tests: New file.
15581         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
15582         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
15583
15584 2010-12-21  Bruno Haible  <bruno@clisp.org>
15585
15586         math: Fix indentation.
15587         * lib/math.in.h (floorf): Fix indentation.
15588
15589 2010-12-21  Bruno Haible  <bruno@clisp.org>
15590
15591         Fix cross-compilation guesses on Solaris.
15592         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
15593         not match "solaris2.10".
15594         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15595         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
15596         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
15597
15598 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
15599
15600         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
15601         This fixes a problem observed with the latest coreutils snapshot
15602         that caused a test to fail on Solaris 8.  src/csplit.c's call
15603         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
15604         earlier, instead of returning the number of bytes that would have
15605         been generated; this causes csplit to incorrectly report memory
15606         exhaustion.
15607         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
15608         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
15609         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
15610         comments to match.
15611         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
15612         Fix typo in matching older versions of Solaris: "solaris2.10"
15613         is matched by the shell pattern "solaris2.[0-9]*".  This matters
15614         only for guessing while cross-compiling.
15615         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
15616
15617 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15618
15619         ftoastr: fix comment again
15620         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
15621         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
15622         Also, simplify example a bit by using flags = 0.
15623
15624 2010-12-20  Bruno Haible  <bruno@clisp.org>
15625
15626         round*, trunc*: Update documentation regarding glibc.
15627         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
15628         * doc/posix-functions/round.texi: Likewise.
15629         * doc/posix-functions/roundl.texi: Likewise.
15630         * doc/posix-functions/truncf.texi: Likewise.
15631         * doc/posix-functions/trunc.texi: Likewise.
15632         * doc/posix-functions/truncl.texi: Likewise.
15633
15634 2010-12-20  Bruno Haible  <bruno@clisp.org>
15635
15636         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
15637         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
15638         * doc/posix-functions/round.texi: Likewise.
15639         * doc/posix-functions/roundl.texi: Likewise.
15640
15641 2010-12-20  Bruno Haible  <bruno@clisp.org>
15642
15643         ttyname_r: Add missing declaration on HP-UX 11.
15644         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
15645         HAVE_TTYNAME_R.
15646         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
15647         declared. Set HAVE_TTYNAME_R always.
15648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15649         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
15650         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
15651         HAVE_TTYNAME_R.
15652         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
15653
15654 2010-12-20  Bruno Haible  <bruno@clisp.org>
15655
15656         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
15657         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
15658         * doc/posix-functions/getlogin_r.texi: Likewise.
15659         * tests/test-getlogin.c: Include <errno.h>.
15660         (main): Avoid test failure on HP-UX 11.11.
15661         * tests/test-getlogin_r.c (main): Likewise.
15662
15663 2010-12-20  Bruno Haible  <bruno@clisp.org>
15664
15665         getlogin_r: Add missing declaration on HP-UX 11.
15666         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
15667         declared also when it exists as a function.
15668         * doc/posix-functions/getlogin_r.texi: Document this workaround.
15669
15670 2010-12-20  Bruno Haible  <bruno@clisp.org>
15671
15672         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
15673         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
15674         through wcrtomb.
15675
15676 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
15677
15678         ftoastr: fix comment
15679         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
15680         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
15681
15682 2010-12-19  Bruno Haible  <bruno@clisp.org>
15683
15684         isnan: Ensure it is a macro.
15685         * lib/math.in.h (isnan): Define as a macro if not already a macro.
15686         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
15687         Solaris.
15688
15689 2010-12-19  Bruno Haible  <bruno@clisp.org>
15690
15691         ldexpl test: Fix link error on OSF/1 5.1.
15692         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
15693
15694 2010-12-19  Bruno Haible  <bruno@clisp.org>
15695
15696         wctype: Make it work in C++ mode on OSF/1 5.1.
15697         * lib/wctype.in.h (iswblank): Declare but not define here.
15698         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
15699         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
15700         * modules/wctype (Files): Add lib/iswblank.c.
15701
15702 2010-12-19  Bruno Haible  <bruno@clisp.org>
15703
15704         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
15705         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
15706         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
15707
15708 2010-12-19  Bruno Haible  <bruno@clisp.org>
15709
15710         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
15711         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
15712         _POSIX_PII_SOCKET.
15713         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
15714         * doc/posix-functions/recvfrom.texi: Likewise.
15715         * doc/posix-functions/send.texi: Likewise.
15716         * doc/posix-functions/sendto.texi: Likewise.
15717
15718 2010-12-19  Bruno Haible  <bruno@clisp.org>
15719
15720         tcgetsid: Add missing declaration on OSF/1 5.1.
15721         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
15722         HAVE_TCGETSID.
15723         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
15724         Don't set HAVE_TCGETSID.
15725         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
15726         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
15727         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
15728         HAVE_TCGETSID.
15729         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
15730
15731 2010-12-19  Bruno Haible  <bruno@clisp.org>
15732
15733         stdio: Fix problem with popen() declaration on OSF/1 5.1.
15734         * lib/stdio.in.h: During the include_next statement, let recursive
15735         includes of this file include only the system header file.
15736
15737 2010-12-19  Bruno Haible  <bruno@clisp.org>
15738
15739         iconv_open: Fix regression from 2010-12-04.
15740         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
15741         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
15742
15743 2010-12-19  Bruno Haible  <bruno@clisp.org>
15744
15745         stdbool test: Avoid a gcc warning.
15746         * tests/test-stdbool.c (main): Fail if e1 is false.
15747         Reported by Jim Meyering.
15748
15749 2010-12-19  Jim Meyering  <meyering@redhat.com>
15750
15751         setenv: restore to working order
15752         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
15753         mistakenly removed.
15754         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
15755         HAVE_SETENV.
15756         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
15757         HAVE_SETENV.
15758
15759 2010-12-19  Bruno Haible  <bruno@clisp.org>
15760
15761         Document some different function declarations on OSF/1 5.1.
15762         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
15763         * doc/posix-functions/inet_ntop.texi: Likewise.
15764         * doc/posix-functions/gethostname.texi: Likewise.
15765         * lib/unistd.in.h (gethostname): Update comment.
15766
15767 2010-12-19  Bruno Haible  <bruno@clisp.org>
15768
15769         doc: Mention vasprintf-posix module.
15770         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
15771         the 'vasprintf-posix' module.
15772         * doc/glibc-functions/vasprintf.texi: Likewise.
15773
15774 2010-12-19  Bruno Haible  <bruno@clisp.org>
15775
15776         unsetenv: Add missing declaration on OSF/1 5.1.
15777         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
15778         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
15779         Don't set HAVE_UNSETENV. In the test program, set _BSD.
15780         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
15781         not HAVE_UNSETENV.
15782         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
15783         HAVE_UNSETENV.
15784         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
15785
15786 2010-12-19  Bruno Haible  <bruno@clisp.org>
15787
15788         setenv: Add missing declaration on OSF/1 5.1.
15789         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
15790         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
15791         declared. Don't set HAVE_SETENV.
15792         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
15793         not HAVE_SETENV.
15794         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
15795         HAVE_SETENV.
15796         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
15797
15798 2010-12-19  Bruno Haible  <bruno@clisp.org>
15799
15800         nl_langinfo tests: Avoid gcc warning.
15801         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
15802
15803 2010-12-19  Bruno Haible  <bruno@clisp.org>
15804
15805         mknod: Avoid error in C++ mode on OSF/1 with GCC.
15806         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
15807         _GL_CXXALIAS_SYS.
15808
15809 2010-12-19  Bruno Haible  <bruno@clisp.org>
15810
15811         stdbool: Relax test.
15812         * tests/test-stdbool.c (e): Don't require that casts from a variable's
15813         address to 'bool' work in static initializer, for compilers other than
15814         GCC.
15815
15816 2010-12-19  Bruno Haible  <bruno@clisp.org>
15817
15818         ftello: Add missing declaration on OSF/1 5.1.
15819         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
15820         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
15821         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
15822         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
15823         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
15824
15825 2010-12-19  Bruno Haible  <bruno@clisp.org>
15826
15827         fseeko: Add missing declaration on OSF/1 5.1.
15828         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
15829         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
15830         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
15831         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
15832         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
15833
15834 2010-12-19  Bruno Haible  <bruno@clisp.org>
15835
15836         fchdir: Add missing declaration on OSF/1 5.1.
15837         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
15838         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
15839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
15840         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
15841         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
15842
15843 2010-12-19  Bruno Haible  <bruno@clisp.org>
15844
15845         relocatable-prog-wrapper: Separate from relocatable-prog.
15846         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
15847         uninstall-relocwrapper rule here.
15848         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
15849         Reported by Ian Beckwith <ianb@erislabs.net>.
15850
15851 2010-12-19  Bruno Haible  <bruno@clisp.org>
15852
15853         unistr/u8-mbsnlen: Add missing dependency.
15854         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
15855         Reported by Ian Beckwith <ianb@erislabs.net>.
15856
15857 2010-12-19  Bruno Haible  <bruno@clisp.org>
15858
15859         iconv: Make it possible again to use this module without 'iconv-h'.
15860         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
15861         if it is not defined.
15862         Reported by Ian Beckwith <ianb@erislabs.net>.
15863
15864 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
15865
15866         acl: port to Solaris 8 when copying from tmpfs to ufs
15867         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
15868         error number.  Problem observed on Solaris 8 with latest
15869         coreutils, with "mv A B", where A is on a tmpfs file system and B
15870         is on a ufs file system.  This caused coreutils' mv/part-symlink
15871         test to fail.
15872
15873         tests: set fail=0 at start
15874         * tests/init.sh (setup_): Move fail=0 initialization here ...
15875         (mktempd_): ... from here, so that tests can rely on fail being
15876         set to 0 initially.  This fixes a problem in coreutils; see:
15877         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
15878
15879 2010-12-18  Bruno Haible  <bruno@clisp.org>
15880
15881         memmem-simple: Stylistic changes.
15882         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
15883         Fix preprocessor directive indentation.
15884
15885 2010-12-15  Pádraig Brady <P@draigBrady.com>
15886
15887         memmem, memmem-simple: reorganize and expand empty needle check
15888         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
15889         functional checks to memmem-simple so that one has a fully functional
15890         memmem by using just this module.
15891         Restrict the performance only check to the memmem module.
15892         Also expand the empty needle check to ensure the correct
15893         pointer is returned, not just a non NULL pointer.
15894         * doc/glibc-functions/memmem.texi: Rearrange the portability
15895         documentation to correlate with the rearranged checks.
15896         Clarify exactly how the memmem and memmem-simple modules
15897         relate to each other.
15898
15899 2010-12-15  Pádraig Brady <P@draigBrady.com>
15900             Bruno Haible  <bruno@clisp.org>
15901
15902         Improve cross-compilation guesses for uClibc.
15903         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
15904         that uClibc does not have the glibc bug.
15905         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
15906         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
15907
15908 2010-12-14  Eric Blake  <eblake@redhat.com>
15909
15910         configmake: provide fallbacks for oldest supported autotools
15911         * m4/configmake.m4: New file.
15912         * modules/configmake (Files): Ship it.
15913         (configure.ac): Use it to guarantee fallbacks.
15914
15915 2010-12-13  Pádraig Brady <P@draigBrady.com>
15916
15917         read-file: Improve handling of large files
15918         * lib/read-file.c (fread_file): Minimize realloc()s
15919         for regular files, and better manage sizes around SIZE_MAX.
15920
15921 2010-12-13  Eric Blake  <eblake@redhat.com>
15922
15923         cloexec, fcntl: relax license
15924         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
15925         consent from all contributors.
15926         * modules/fcntl (License): Likewise.
15927
15928 2010-12-10  Bruno Haible  <bruno@clisp.org>
15929
15930         Tests for module 'pipe-posix'.
15931         * modules/pipe-posix-tests: New file.
15932         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
15933
15934 2010-12-10  Bruno Haible  <bruno@clisp.org>
15935
15936         pipe-posix: Make it work in C++ mode.
15937         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
15938         (pipe): Use common idiom, not a macro definition.
15939         * lib/pipe.c: New file.
15940         * m4/pipe.m4: New file.
15941         * modules/pipe-posix (Description): Enhance.
15942         (Files): Add lib/pipe.c, m4/pipe.m4.
15943         (configure.ac): Invoke gl_FUNC_PIPE.
15944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
15945         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
15946         * tests/test-unistd-c++.cc: Check the signature of pipe.
15947
15948 2010-12-10  Bruno Haible  <bruno@clisp.org>
15949
15950         Rename module 'pipe' to 'spawn-pipe'.
15951         * modules/spawn-pipe: New file, renamed from modules/pipe.
15952         (Files, configure.ac, Makefile.am): Update.
15953         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
15954         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
15955         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
15956         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
15957         "spawn-pipe.h" instead of "pipe.h".
15958         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
15959         to gl_SPAWN_PIPE.
15960         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
15961         (Files, Makefile.am): Update.
15962         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
15963         Update.
15964         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
15965         Include "spawn-pipe.h" instead of "pipe.h".
15966         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
15967         * lib/javacomp.c: Likewise.
15968         * lib/javaversion.c: Likewise.
15969         * lib/pipe-filter-gi.c: Likewise.
15970         * lib/pipe-filter-ii.c: Likewise.
15971         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
15972         * modules/javacomp (Depends-on): Likewise.
15973         * modules/javaversion (Depends-on): Likewise.
15974         * modules/pipe-filter-gi (Depends-on): Likewise.
15975         * modules/pipe-filter-ii (Depends-on): Likewise.
15976         * MODULES.html.sh (Executing programs): Update.
15977         * NEWS: Mention the change.
15978
15979 2010-12-10  Eric Blake  <eblake@redhat.com>
15980
15981         pipe-posix: new module
15982         * modules/pipe-posix: New file.
15983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
15984         (gl_UNISTD_H): Check for declaration.
15985         * modules/unistd (Makefile.am): Substitute it.
15986         * lib/unistd.in.h (pipe): Provide it for mingw.
15987         * doc/posix-functions/pipe.texi (pipe): Update documentation.
15988         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
15989
15990 2010-12-07  Bruno Haible  <bruno@clisp.org>
15991
15992         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
15993         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
15994         u8_strcmp_gnu.
15995         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
15996
15997 2010-12-06  Bruno Haible  <bruno@clisp.org>
15998
15999         Update internal documentation.
16000         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
16001
16002 2010-12-04  Bruno Haible  <bruno@clisp.org>
16003
16004         Put more information about failed tests into the test return codes.
16005         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
16006         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
16007         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
16008         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
16009         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
16010         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16011         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16012         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16013         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
16014         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16015         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
16016         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
16017         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
16018         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16019         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
16020         returns a bit mask.
16021         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
16022         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
16023         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
16024         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
16025         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16026         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16027         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16028         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
16029         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16030         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16031         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16032         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16033         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16034         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16035         * m4/link.m4 (gl_FUNC_LINK): Likewise.
16036         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16037         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
16038         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
16039         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16040         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
16041         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16042         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16043         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
16044         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16045         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16046         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
16047         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
16048         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16049         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16050         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
16051         gl_PRINTF_PRECISION): Likewise.
16052         * m4/regex.m4 (gl_REGEX): Likewise.
16053         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16054         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16055         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
16056         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16057         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16058         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16059         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16060         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
16061         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
16062         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
16063         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16064         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
16065         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16066         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16067         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16068         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16069         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
16070         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16071         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16072         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
16073         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
16074         enumerated value.
16075         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
16076
16077 2010-12-04  Bruno Haible  <bruno@clisp.org>
16078
16079         Update for Solaris 11 2010-11.
16080         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
16081         Express, released in November 2010.
16082
16083 2010-12-04  Bruno Haible  <bruno@clisp.org>
16084
16085         nproc: Relax license.
16086         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
16087         and Paul Eggert.
16088         Requested by Ludovic Courtès <ludo@gnu.org>.
16089
16090 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
16091
16092         utimecmp: fine-grained src to nearby coarse-grained dest
16093
16094         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
16095         and the source is on a file system with higher-resolution time
16096         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
16097         not work, and the time stamps are close together, the algorithm to
16098         determine the exact resolution from the read-back mtime was buggy:
16099         it had a "!=" where it should have had an "==".  This bug has been
16100         in the code ever since it was introduced to gnulib.
16101         Problem reported by Dan Jacobson in
16102         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
16103
16104 2010-11-30  Bruno Haible  <bruno@clisp.org>
16105
16106         strerror_r-posix: Fix autoconf test.
16107         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
16108
16109 2010-11-28  Bruno Haible  <bruno@clisp.org>
16110             Paul Eggert  <eggert@cs.ucla.edu>
16111
16112         Tests for module 'getdomainname'.
16113         * modules/getdomainname-tests: New file.
16114         * tests/test-getdomainname.c: New file, based on
16115         tests/test-gethostname.c.
16116
16117 2010-11-28  Bruno Haible  <bruno@clisp.org>
16118             Paul Eggert  <eggert@cs.ucla.edu>
16119
16120         getdomainname: Use the system function when possible.
16121         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
16122         (getdomainname): Replace if needed. Provide the declaration if it is
16123         missing. Don't use _GL_CXXALIAS_SYS_CAST.
16124         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
16125         (getdomainname): When the system has getdomainname, call the system
16126         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
16127         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
16128         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
16129         found in libnsl. Look for the declaration also in <netdb.h>. Replace
16130         the function if its second argument is of type 'int' or if it is found
16131         in libnsl.
16132         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
16133         <sys/systeminfo.h> and sysinfo().
16134         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
16135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16136         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
16137         HAVE_GETDOMAINNAME.
16138         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
16139         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
16140         * doc/glibc-functions/getdomainname.texi: Document the problems with
16141         the getdomainname declaration.
16142
16143 2010-11-28  Bruno Haible  <bruno@clisp.org>
16144
16145         sys_socket: Ensure ss_family field on AIX.
16146         * lib/sys_socket.in.h (ss_family): New macro definition.
16147         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
16148         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
16149         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16150         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
16151         * modules/sys_socket (Makefile.am): Substitute
16152         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
16153         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
16154
16155 2010-11-27  Bruno Haible  <bruno@clisp.org>
16156
16157         readline: Improve configure output.
16158         * m4/readline.m4 (gl_FUNC_READLINE): Make the
16159         "checking for readline..." result understandable.
16160
16161 2010-11-27  Bruno Haible  <bruno@clisp.org>
16162
16163         *printf-posix: Detect a bug on Solaris 10/x86.
16164         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
16165         for floating-point output.
16166         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
16167         directive.
16168         * tests/test-snprintf-posix.h (test_function): Likewise.
16169         * tests/test-sprintf-posix.h (test_function): Likewise.
16170         * tests/test-vasprintf-posix.c (test_function): Likewise.
16171         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
16172         * doc/posix-functions/printf.texi: Likewise.
16173         * doc/posix-functions/snprintf.texi: Likewise.
16174         * doc/posix-functions/sprintf.texi: Likewise.
16175         * doc/posix-functions/vfprintf.texi: Likewise.
16176         * doc/posix-functions/vprintf.texi: Likewise.
16177         * doc/posix-functions/vsnprintf.texi: Likewise.
16178         * doc/posix-functions/vsprintf.texi: Likewise.
16179         * doc/glibc-functions/obstack_printf.texi: Likewise.
16180         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16181
16182 2010-11-27  Bruno Haible  <bruno@clisp.org>
16183
16184         Fix link error when module libunistring-optional is in use.
16185         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
16186         * modules/striconveha-tests (Makefile.am): Likewise.
16187
16188 2010-11-27  Bruno Haible  <bruno@clisp.org>
16189
16190         regex: Mention link dependencies.
16191         * modules/regex (Link): New section.
16192         * modules/rpmatch (Link): Likewise.
16193         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
16194
16195 2010-11-27  Bruno Haible  <bruno@clisp.org>
16196
16197         ftoastr: Fix compilation error on Solaris.
16198         * lib/ftoastr.c: Include <config.h>.
16199
16200 2010-11-27  Bruno Haible  <bruno@clisp.org>
16201
16202         getloadavg: Update documentation.
16203         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
16204
16205 2010-11-27  Bruno Haible  <bruno@clisp.org>
16206
16207         sys_socket: Fix test whether the functions are declared.
16208         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
16209         not <sys/select.h>.
16210
16211 2010-11-27  Bruno Haible  <bruno@clisp.org>
16212
16213         getpass: Make sure to get system declaration on some platforms.
16214         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
16215         gl_USE_SYSTEM_EXTENSIONS.
16216         * modules/getpass (Depends-on): Add extensions.
16217
16218 2010-11-26  Bruno Haible  <bruno@clisp.org>
16219
16220         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
16221         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
16222         'iconv' module is present.
16223         (ICONV_CONST): New macro.
16224         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
16225         ICONV_CONST.
16226         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
16227         set ICONV_CONST.
16228         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
16229         here.
16230         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
16231         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
16232         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
16233         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
16234         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
16235         present.
16236
16237 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
16238
16239         ftoastr: comment fix
16240         * lib/ftoastr.c: "little" -> "little or no" in comment
16241
16242 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
16243
16244         stdint: port to GCC 4.3 + OSX + Octave
16245         On this platform, stdint.h is buggy and defines int64_t to long
16246         long int.  The replacement defined it to long int, causing
16247         problems with C++ style name mangling.  Instead, trust the system
16248         definition if INT64_MAX is defined, and likewise for the unsigned
16249         variant.   Problem reported by Jarno Rajahalme in
16250         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
16251         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
16252         and don't mess with int64_t and INT64_MAX in this case.
16253         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
16254
16255 2010-11-24  Bruno Haible  <bruno@clisp.org>
16256
16257         doc: Corrections regarding MacOS X 10.4 and 10.5.
16258         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
16259         MacOS X.
16260         Reported by Simon Josefsson.
16261
16262 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
16263
16264         Uninstall ".bin" files installed by relocwrapper.
16265         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
16266         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
16267         unless it is already there.
16268
16269 2010-11-21  Bruno Haible  <bruno@clisp.org>
16270
16271         Update for NetBSD 5.0.
16272         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
16273         NetBSD; the test fails on NetBSD 5.0.
16274         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
16275         about NetBSD.
16276
16277 2010-11-21  Bruno Haible  <bruno@clisp.org>
16278
16279         Update for HP-UX 11.23 and HP-UX 11.31.
16280         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
16281         HP-UX.
16282
16283 2010-11-21  Bruno Haible  <bruno@clisp.org>
16284
16285         Update for MacOS X 10.5.
16286         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
16287         MacOS X; the test fails on MacOS X 10.5.8.
16288         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
16289         about MacOS X.
16290
16291 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
16292
16293         bootstrap: add bootstrap_sync option.
16294         See discussion at
16295         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
16296         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
16297         * build-aux/bootstrap: Accept --bootstrap-sync to update
16298         bootstrap if it is not identical to the local gnulib's
16299         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
16300         enable this by default.  Accept --no-bootstrap-sync to disable
16301         it.
16302
16303 2010-11-20  Bruno Haible  <bruno@clisp.org>
16304
16305         Ensure that <features.h> is included before __GLIBC__ is tested.
16306         * lib/printf-parse.h: Include <features.h>.
16307         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
16308         Reported by Mike Frysinger <vapier@gentoo.org>.
16309
16310         Ensure that <features.h> is included before __GLIBC__ is tested.
16311         * lib/wchar.in.h: Include <features.h>.
16312         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
16313         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
16314         Reported by Mike Frysinger <vapier@gentoo.org>.
16315
16316         Ensure that <features.h> is included before __GLIBC__ is tested.
16317         * lib/arpa_inet.in.h: Include <features.h>.
16318         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
16319         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
16320         Reported by Mike Frysinger <vapier@gentoo.org>.
16321
16322         Ensure that <features.h> is included before __GLIBC__ is tested.
16323         * build-aux/link-warning.h: Include <features.h>.
16324         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
16325         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
16326         Reported by Mike Frysinger <vapier@gentoo.org>.
16327
16328         Ensure that <features.h> is included before __GLIBC__ is tested.
16329         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
16330         Reported by Mike Frysinger <vapier@gentoo.org>.
16331
16332 2010-11-20  Bruno Haible  <bruno@clisp.org>
16333
16334         memmem: Fix autoconf test.
16335         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
16336
16337 2010-11-20  Bruno Haible  <bruno@clisp.org>
16338
16339         Port to uClibc.
16340         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
16341         * lib/fcntl.in.h: Likewise.
16342         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
16343         * lib/mbrtowc.c (mbrtowc): Likewise.
16344         * lib/relocatable.c (find_shared_library_fullname): Likewise.
16345         * lib/strerror_r.c: Likewise.
16346         * lib/unistr/u8-strnlen.c: Likewise.
16347         * lib/vasnprintf.c (decimal_point_char): Likewise.
16348         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16349         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
16350         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
16351         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16352         * tests/test-sigaction.c (handler, main): Likewise.
16353         * lib/freading.h: Treat uClibc like a non-glibc platform.
16354         * lib/freading.c: Likewise.
16355         * lib/gettext.h: Likewise.
16356         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
16357         Likewise.
16358         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
16359         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
16360         * lib/propername.c (proper_name_utf8): Likewise.
16361         * lib/spawn.in.h: Likewise.
16362         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
16363         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
16364         mem_cd_iconveh_internal): Likewise.
16365         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
16366         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
16367         strstr, strcasestr): Likewise.
16368         * lib/unicodeio.c (unicode_to_mb): Likewise.
16369         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
16370         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
16371         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
16372         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
16373         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
16374         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
16375         * lib/unistr/u8-stpncpy.c: Likewise.
16376         * lib/vasnprintf.c (VASNPRINTF): Likewise.
16377         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
16378         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16379         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16380         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16381         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
16382         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
16383         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
16384         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
16385         Likewise.
16386         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16387         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
16388         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
16389         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16390         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16391         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16392         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16393         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16394         * tests/test-getopt.h (OPTIND_MIN): Likewise.
16395         * tests/test-striconveha.c (main): Likewise.
16396         * tests/test-vasnprintf-posix.c (test_function): Likewise.
16397         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
16398         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
16399         * doc/posix-functions/getline.texi: Likewise.
16400         Reported by Mike Frysinger <vapier@gentoo.org>.
16401
16402 2010-11-20  Bruno Haible  <bruno@clisp.org>
16403
16404         nproc: Fix condition.
16405         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
16406         HAVE_PTHREAD_AFFINITY_NP.
16407
16408 2010-11-20  Bruno Haible  <bruno@clisp.org>
16409
16410         Fix a comment.
16411         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
16412
16413 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
16414
16415         ftoastr: don't assume snprintf
16416         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
16417         Implement a subset of snprintf here, by using sprintf safely.
16418         * modules/ftoastr (Depends-on): Remove snprintf.
16419
16420 2010-11-19  Jim Meyering  <meyering@redhat.com>
16421
16422         test-rename.h: fix compilation failure
16423         * tests/test-rename.h (test_rename): Add omitted "}".
16424
16425 2010-11-17  Jim Meyering  <meyering@redhat.com>
16426
16427         maint.mk: add a URL discussing the no-@acronym policy
16428         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
16429
16430 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
16431
16432         ftoastr: depend on snprintf, improve comments
16433         * lib/ftoastr.c: Also mention Loitsch's draft.
16434         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
16435         needed in the current implementation, but it might simplify
16436         speeding up the code later.
16437         * modules/ftoastr: Depend on snprintf; this improves portability.
16438         Suggested by Bruno Haible in the same email.
16439
16440         ftoastr: port to hosts lacking strtof and strtold
16441         Problem reported by Bruno Haible in
16442         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
16443         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
16444         environment and strtold (and presumably strtof) are not available.
16445         * modules/ftoastr (Files): Add m4/c-strtod.m4.
16446         (configure.ac): Require gl_C99_STRTOLD.
16447
16448 2010-11-18  Bruno Haible  <bruno@clisp.org>
16449
16450         c-strtold: Avoid link error on AIX 7.
16451         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
16452         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
16453         (gl_C_STRTOLD): Test whether strtold_l exists.
16454         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16455
16456 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
16457
16458         intprops: new macro INT_BITS_STRLEN_BOUND
16459         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
16460         ftoastr.h.  This exposes an internal of intprops.h that was formerly
16461         not exposed.  Also, it uses a slightly tighter bound than before;
16462         though this makes no practical difference, we might as well be as
16463         tight as we easily can.
16464
16465         ftoastr: new module, for lossless conversion of floats to short strings
16466         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
16467         * modules/ftoastr: New files.
16468
16469 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
16470
16471         bootstrap: port to Solaris sed
16472         * build-aux/bootstrap (get_version): Port to Solaris sed.
16473         See Ralf Wildenhues's note in
16474         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
16475
16476 2010-11-14  Jim Meyering  <meyering@redhat.com>
16477
16478         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
16479         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
16480         and move definition closer to sole use.
16481
16482 2010-11-13  Jim Meyering  <meyering@redhat.com>
16483
16484         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
16485         Now we require at least autoconf-2.59, which means the work-around
16486         is no longer needed.
16487         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
16488         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16489         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
16490         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
16491         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16492
16493 2010-11-13  Bruno Haible  <bruno@clisp.org>
16494
16495         rename, renameat: Avoid test failures at NFS mounted locations.
16496         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
16497         functions.
16498         (test_rename): Use assert_nonexistent.
16499         * tests/test-rename.c: Include <dirent.h>.
16500         * tests/test-renameat.c: Likewise.
16501         Reported by Gary V. Vaughan <gary@gnu.org>.
16502
16503         rename, renameat: Document Linux bug with NFS
16504         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
16505         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
16506         * doc/posix-functions/renameat.texi: Likewise.
16507         Suggested by Eric Blake.
16508
16509 2010-11-13  Bruno Haible  <bruno@clisp.org>
16510
16511         rename test: Add comments.
16512         * tests/test-rename.h (test_rename): Add structure and comments.
16513
16514 2010-11-13  Eric Blake  <eblake@redhat.com>
16515
16516         maintainer-makefile: cover a few more files
16517         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
16518         scripts generated within C files, for libvirt.
16519
16520 2010-11-13  Bruno Haible  <bruno@clisp.org>
16521
16522         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
16523         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
16524         character, return the number of bytes that belong together, not always
16525         1.
16526         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
16527         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
16528         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
16529         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
16530         number of bytes of an invalid character.
16531         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
16532         (main): Invoke it.
16533         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
16534         results.
16535         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
16536         malformed byte sequences.
16537         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
16538         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
16539         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
16540         Reported by Ben Pfaff and Paolo Bonzini.
16541
16542 2010-11-13  Bruno Haible  <bruno@clisp.org>
16543
16544         openat: Work around glibc bug with fchownat() and empty file names.
16545         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
16546         (gl_FUNC_FCHOWNAT): Invoke it.
16547         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
16548         * doc/posix-functions/fchownat.texi: Document the glibc bug.
16549         Reported by Gary V. Vaughan <gary@gnu.org>.
16550
16551 2010-11-13  Bruno Haible  <bruno@clisp.org>
16552
16553         openat: Ensure autoconf macro ordering.
16554         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
16555         gl_USE_SYSTEM_EXTENSIONS.
16556         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
16557
16558 2010-11-13  Bruno Haible  <bruno@clisp.org>
16559
16560         Update comments.
16561         * lib/unistr/u8-check.c: Update file name in comments.
16562         * lib/unistr/u8-mblen.c: Likewise.
16563         * lib/unistr/u8-prev.c: Likewise.
16564         * lib/unistr/u8-strmblen.c: Likewise.
16565         * lib/unistr/u8-strmbtouc.c: Likewise.
16566
16567 2010-11-13  Jim Meyering  <meyering@redhat.com>
16568
16569         tests: avoid test failure on Solaris 10 due to lack of PATH export
16570         * tests/test-update-copyright.sh: Don't forget to export PATH.
16571
16572         init.sh: ensure that IFS is defined, just in case...
16573         * tests/init.sh (setup_): Ensure that IFS is defined,
16574         so that saving and restoring it works as expected.  This
16575         appears to be useful at least for an old version of dash
16576         from a long time ago (RH 6).  See here for details:
16577         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
16578
16579         maint.mk: tighten "test a == b" check
16580         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
16581         test to files that contain something like #!/bin/sh.
16582         Without this, coreutils would get two false positives in
16583         the comments of C source files.
16584
16585 2010-11-12  Eric Blake  <eblake@redhat.com>
16586
16587         bootstrap: fix typo in previous attempt
16588         * build-aux/bootstrap (buildreq): Correct the grouping.
16589         Reported by Paul Eggert.
16590
16591         maintainer-makefile: prohibit test x == x
16592         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
16593         Based on a report by Matthias Bolte.
16594
16595         bootstrap: allow FreeBSD gzip
16596         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
16597         which has no '.' and goes to stderr.
16598         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
16599         Reported by Matthias Bolte.
16600
16601         maintainer-makefile: check for i18n setup
16602         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
16603         will likely work.
16604
16605 2010-11-12  Bruno Haible  <bruno@clisp.org>
16606
16607         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
16608         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
16609         * lib/nanosleep.c (nanosleep): Likewise.
16610
16611 2010-11-11  Bruno Haible  <bruno@clisp.org>
16612
16613         fcntl-h: Fix for use of C++ on glibc systems.
16614         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16615         also on glibc systems in C++ mode.
16616         Reported by Gary V. Vaughan <gary@gnu.org>.
16617
16618 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16619
16620         mknod: avoid false failure with dash
16621         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
16622
16623 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
16624
16625         unlink: Fix "is it should" typo in diagnostic.
16626         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
16627         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
16628
16629 2010-11-11  Bruno Haible  <bruno@clisp.org>
16630
16631         Tests for module 'strerror_r-posix'.
16632         * modules/strerror_r-posix-tests: New file.
16633         * tests/test-strerror_r.c: New file.
16634         * tests/test-string-c++.cc: Check the signature of strerror_r.
16635
16636         New module 'strerror_r-posix'.
16637         * lib/string.in.h (strerror_r): New declaration.
16638         * lib/strerror_r.c: New file.
16639         * m4/strerror_r.m4: New file.
16640         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
16641         of strerror_r.
16642         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
16643         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
16644         * modules/strerror_r-posix: New file.
16645         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
16646         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
16647         * doc/posix-functions/strerror_r.texi: Mention the new module and the
16648         portability problems.
16649
16650 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
16651
16652         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
16653         line is also considered for output. Quoted function name in shell
16654         command, so temporary files for functions like MyClass::operator()
16655         are removed correctly without errors.
16656
16657 2010-11-09  Bruno Haible  <bruno@clisp.org>
16658
16659         * doc/posix-functions/strerror.texi: List more failing platforms.
16660
16661         * doc/posix-functions/strerror.texi: Add a comment.
16662
16663 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
16664
16665         fdopendir: fix bug on MacOS X when low on file descriptors
16666
16667         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
16668         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
16669         All callers changed.
16670         (fdopendir): Invoke save_cwd at the top level, not after using
16671         multiple dup() calls to use up file descriptors.  Then retry
16672         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
16673         less than the maximum number of open file descriptors, because
16674         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
16675         on Mac OS X 10.6.4 for tar 1.24
16676         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
16677         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
16678         and for tar 1.25
16679         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
16680
16681 2010-11-07  Bruno Haible  <bruno@clisp.org>
16682
16683         vasnprintf: Support I flag on glibc systems.
16684         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
16685         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
16686         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
16687         snprintf function.
16688         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
16689         glibc systems.
16690         * tests/test-vasnprintf-posix3.c: New file.
16691         * modules/vasnprintf-posix-tests (Files): Add it.
16692         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
16693
16694 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16695
16696         [html] Fix copy/paste bug: Use unique name for compiler warnings.
16697         * MODULES.html.sh: For compiler warnings, use name
16698         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
16699
16700 2010-11-05  Eric Blake  <eblake@redhat.com>
16701
16702         ceil, floor: avoid spurious failure with icc
16703         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
16704         [denormals-as-zero] when optimizing without -mieee-fp option.
16705         * tests/test-floorf2.c (floorf_reference): Likewise.
16706         * tests/test-ceilf1.c (dummy): New function.
16707         (main): Use it to outsmart icc's optimization.
16708         * tests/test-floorf1.c (dummy, main): Likewise.
16709
16710         tests: require working signbit
16711         * modules/ceilf-tests (Depends-on): Add signbit.
16712         * modules/ceill-tests (Depends-on): Likewise.
16713         * modules/floorf-tests (Depends-on): Likewise.
16714         * modules/floorl-tests (Depends-on): Likewise.
16715         * modules/round-tests (Depends-on): Likewise.
16716         * modules/roundf-tests (Depends-on): Likewise.
16717         * modules/roundl-tests (Depends-on): Likewise.
16718         * modules/trunc-tests (Depends-on): Likewise.
16719         * modules/truncf-tests (Depends-on): Likewise.
16720         * modules/truncl-tests (Depends-on): Likewise.
16721
16722         strtod: work around icc bug
16723         * lib/strtod.c (minus_zero): Define to working value.
16724         (strtod): Use it to avoid icc bug.
16725
16726         copysign: enhance tests
16727         * modules/copysign-tests (Files): Add minus-zero.h.
16728         * tests/test-copysign.c (main): Also test zeros.
16729
16730 2010-11-04  Eric Blake  <eblake@redhat.com>
16731
16732         ceil, floor, round, trunc: enhance tests of -0
16733         * tests/test-ceilf1.c (main): Ensure correct sign of result.
16734         * tests/test-ceill.c (main): Likewise.
16735         * tests/test-floorf1.c (main): Likewise.
16736         * tests/test-floorl.c (main): Likewise.
16737         * tests/test-round1.c (main): Likewise.
16738         * tests/test-roundf1.c (main): Likewise.
16739         * tests/test-roundl.c (main): Likewise.
16740         * tests/test-trunc1.c (main): Likewise.
16741         * tests/test-truncf1.c (main): Likewise.
16742         * tests/test-truncl.c (main): Likewise.
16743
16744 2010-11-04  Eric Blake  <eblake@redhat.com>
16745
16746         frexp, tests: work around ICC bug with -zero
16747         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
16748         works with more compilers.
16749         * tests/minus-zero.h: New file.
16750         * modules/ceilf-tests (Files): Include it.
16751         * modules/ceill-tests (Files): Likewise.
16752         * modules/floorf-tests (Files): Likewise.
16753         * modules/floorl-tests (Files): Likewise.
16754         * modules/frexp-nolibm-tests (Files): Likewise.
16755         * modules/frexp-tests (Files): Likewise.
16756         * modules/frexpl-nolibm-tests (Files): Likewise.
16757         * modules/frexpl-tests (Files): Likewise.
16758         * modules/isnan-tests (Files): Likewise.
16759         * modules/isnand-nolibm-tests (Files): Likewise.
16760         * modules/isnand-tests (Files): Likewise.
16761         * modules/isnanf-nolibm-tests (Files): Likewise.
16762         * modules/isnanf-tests (Files): Likewise.
16763         * modules/isnanl-nolibm-tests (Files): Likewise.
16764         * modules/isnanl-tests (Files): Likewise.
16765         * modules/round-tests (Files): Likewise.
16766         * modules/roundf-tests (Files): Likewise.
16767         * modules/roundl-tests (Files): Likewise.
16768         * modules/ldexpl-tests (Files): Likewise.
16769         * modules/signbit-tests (Files): Likewise.
16770         * modules/snprintf-posix-tests (Files): Likewise.
16771         * modules/sprintf-posix-tests (Files): Likewise.
16772         * modules/strtod-tests (Files): Likewise.
16773         * modules/trunc-tests (Files): Likewise.
16774         * modules/truncf-tests (Files): Likewise.
16775         * modules/truncl-tests (Files): Likewise.
16776         * modules/vsnprintf-posix-tests (Files): Likewise.
16777         * modules/vsprintf-posix-tests (Files): Likewise.
16778         * modules/vasnprintf-posix-tests (Files): Likewise.
16779         * modules/vasprintf-posix-tests (Files): Likewise.
16780         * tests/test-ceilf1.c (main): Use it.
16781         * tests/test-ceill.c (main): Likewise.
16782         * tests/test-floorf1.c (main): Likewise.
16783         * tests/test-floorl.c (main): Likewise.
16784         * tests/test-frexp.c (main): Likewise.
16785         * tests/test-frexpl.c (main): Likewise.
16786         * tests/test-isnan.c (main): Likewise.
16787         * tests/test-isnand.h (main): Likewise.
16788         * tests/test-isnanf.h (main): Likewise.
16789         * tests/test-isnanl.h (main): Likewise.
16790         * tests/test-ldexpl.c (main): Likewise.
16791         * tests/test-round.c (main): Likewise.
16792         * tests/test-roundf.c (main): Likewise.
16793         * tests/test-roundl.c (main): Likewise.
16794         * tests/test-signbit.c (test_signbitf, test_signbitd)
16795         (test_signbitl): Likewise.
16796         * tests/test-snprintf-posix.h (test_function): Likewise.
16797         * tests/test-sprintf-posix.h (test_function): Likewise.
16798         * tests/test-strtod.c (main): Likewise.
16799         * tests/test-trunc1.c (main): Likewise.
16800         * tests/test-truncf1.c (main): Likewise.
16801         * tests/test-truncl.c (main): Likewise.
16802
16803         isnanl: work around icc bug
16804         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
16805
16806 2010-11-03  Eric Blake  <eblake@redhat.com>
16807
16808         tests: fix compiler warnings
16809         * tests/test-getopt.h (test_getopt): Fix condition.
16810         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16811         * tests/test-pipe2.c (main): Likewise.
16812         * tests/test-quotearg-simple.c (main): Avoid icc warning.
16813
16814         utimens: fix broken m4 test
16815         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
16816
16817 2010-10-28  Bruno Haible  <bruno@clisp.org>
16818
16819         posix_spawn*, getdtablesize: Relax license.
16820         * modules/posix_spawn (License): Change to LGPLv2+.
16821         * modules/posix_spawnp (License): Likewise.
16822         * modules/posix_spawn-internal (License): Likewise.
16823         * modules/posix_spawnattr_init (License): Likewise.
16824         * modules/posix_spawnattr_getflags (License): Likewise.
16825         * modules/posix_spawnattr_setflags (License): Likewise.
16826         * modules/posix_spawnattr_getpgroup (License): Likewise.
16827         * modules/posix_spawnattr_setpgroup (License): Likewise.
16828         * modules/posix_spawnattr_getschedparam (License): Likewise.
16829         * modules/posix_spawnattr_setschedparam (License): Likewise.
16830         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
16831         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
16832         * modules/posix_spawnattr_getsigdefault (License): Likewise.
16833         * modules/posix_spawnattr_setsigdefault (License): Likewise.
16834         * modules/posix_spawnattr_getsigmask (License): Likewise.
16835         * modules/posix_spawnattr_setsigmask (License): Likewise.
16836         * modules/posix_spawnattr_destroy (License): Likewise.
16837         * modules/posix_spawn_file_actions_init (License): Likewise.
16838         * modules/posix_spawn_file_actions_addclose (License): Likewise.
16839         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
16840         * modules/posix_spawn_file_actions_addopen (License): Likewise.
16841         * modules/posix_spawn_file_actions_destroy (License): Likewise.
16842         * modules/getdtablesize (License): Likewise.
16843         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
16844
16845 2010-10-26  Bruno Haible  <bruno@clisp.org>
16846
16847         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
16848         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
16849         Cygwin and mingw.
16850         Suggested by Eric Blake.
16851
16852 2010-10-26  Bruno Haible  <bruno@clisp.org>
16853
16854         stdio: Work around compilation error due to renameat() on Solaris 10.
16855         * lib/stdio.in.h: Include <unistd.h> on Solaris.
16856         * lib/renameat.c: Don't include <unistd.h> here.
16857         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
16858         Reported by Paul Eggert and Eric Blake.
16859
16860 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
16861
16862         renameat: port to Solaris 10, which declares renameat in unistd.h
16863
16864         * lib/renameat.c: Include unistd.h before stdio.h, because
16865         Solaris 10 declares renameat in unistd.h.  Problem encountered
16866         when building GNU tar 1.24 on Solaris 10.
16867
16868 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16869
16870         fdopendir: fix C89 compilation
16871         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
16872         compilers.
16873
16874 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
16875
16876         inttostr: simplify by removing unnecessary redundancy
16877         * lib/anytostr.c: Don't include verify.h.
16878         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
16879         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
16880         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
16881         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
16882         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
16883         Likewise.
16884         * modules/inttostr (Depends-on): Remove 'verify'.
16885
16886 2010-10-23  Bruno Haible  <bruno@clisp.org>
16887
16888         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
16889         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
16890         Reported by Eric Blake.
16891
16892 2010-10-23  Bruno Haible  <bruno@clisp.org>
16893
16894         Tests: Fix LOCALE_JA on MirBSD 10.
16895         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
16896         to an UTF-8 locale.
16897         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
16898         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16899         Reported by Eric Blake.
16900
16901 2010-10-21  Bruno Haible  <bruno@clisp.org>
16902
16903         nl_langinfo test: Avoid test failure on NetBSD 5.
16904         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
16905         Reported by Eric Blake.
16906
16907 2010-10-21  Eric Blake  <eblake@redhat.com>
16908
16909         c-stack: work around libsigsegv 2.8 bug
16910         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
16911         overflow on at least PowerPC64.
16912
16913 2010-10-17  Bruno Haible  <bruno@clisp.org>
16914
16915         userspec: Drop redundant file.
16916         * modules/userspec (Files): Remove lib/inttostr.h.
16917
16918 2010-10-17  Bruno Haible  <bruno@clisp.org>
16919
16920         nl_langinfo tests: Silence some warnings.
16921         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
16922         Reported by Jim Meyering.
16923
16924 2010-10-17  Bruno Haible  <bruno@clisp.org>
16925
16926         Make use of GCC's attribute __alloc_size__.
16927         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
16928         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
16929         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
16930         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
16931         __alloc_size__.
16932         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
16933         Suggested by Jim Meyering.
16934
16935 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
16936
16937         bootstrap: anchor .gitignore entries.
16938         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
16939         with...
16940         (insert_vc_ignore): ... this new function, which prepends `/' to
16941         all .gitignore entries before passing them to
16942         insert_sorted_if_absent.
16943
16944 2010-10-16  Bruno Haible  <bruno@clisp.org>
16945
16946         nextafter: Fix configure check.
16947         * modules/nextafter (configure.ac): Correct expected prototype.
16948
16949 2010-10-16  Bruno Haible  <bruno@clisp.org>
16950
16951         termios: Update documentation.
16952         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
16953
16954 2010-10-16  Bruno Haible  <bruno@clisp.org>
16955
16956         tests: Make them compile with TinyCC.
16957         * tests/test-strstr.c (main): Remove parentheses around array
16958         initializer.
16959
16960 2010-10-15  Eric Blake  <eblake@redhat.com>
16961
16962         ignore-value: make header idempotent
16963         * lib/ignore-value.h: Add double-inclusion guards.
16964         Reported by Stefan Berger.
16965
16966 2010-10-15  Jim Meyering  <meyering@redhat.com>
16967
16968         GNUmakefile: handle "stable" target, not "major"
16969         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
16970         lists in maint.mk and announce-gen.  Without this, "make stable"
16971         would fail to ensure that $(VERSION) is up to date.
16972
16973 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
16974
16975         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
16976         & co.
16977
16978 2010-10-14  Bruno Haible  <bruno@clisp.org>
16979
16980         vasnprintf: Don't set errno to 0.
16981         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
16982         block that sets it to 0.
16983         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
16984
16985 2010-10-14  Bruno Haible  <bruno@clisp.org>
16986
16987         socketlib: Fix.
16988         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
16989         gl_PREREQ_SYS_H_WINSOCK2.
16990         Reported by Ian Beckwith <ianb@erislabs.net>.
16991
16992 2010-10-13  Jim Meyering  <meyering@redhat.com>
16993
16994         test-select-stdin.c: avoid warn_unused_result warnings
16995         * tests/test-select-stdin.c: Include "macros.h".
16996         ASSERT that read and fflush succeed.
16997
16998 2010-10-13  Jim Meyering  <meyering@redhat.com>
16999
17000         git-version-gen: do require git-VC'd files in cwd
17001         * build-aux/git-version-gen: Reject a git version string
17002         if there are no commits associated with the current directory.
17003         This avoids an unlikely false-positive (unrelated dir whose parent
17004         repository also contains a tag matching v*), as pointed out
17005         by Giuseppe Scrivano in
17006         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
17007
17008 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
17009
17010         argv-iter: omit nonconforming declaration
17011         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
17012         enum arg_iter_err declaration, which doesn't conform to C99.
17013         Solaris 10 cc warns about this.
17014
17015 2010-10-13  Eric Blake  <eblake@redhat.com>
17016
17017         termios: fix compilation on mingw
17018         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
17019         (gl_TERMIOS_H): Adjust it on mingw.
17020         * modules/termios (Makefile.am): Substitute new key.
17021         * lib/termios.in.h (includes): Make include_next conditional.
17022         * doc/posix-headers/termios.texi (termios.h): Update
17023         documentation.
17024         Reported by Daniel P. Berrange.
17025
17026 2010-10-13  Jim Meyering  <meyering@redhat.com>
17027
17028         git-version-gen: don't require that .git/ be in the current dir
17029         * build-aux/git-version-gen: Adjust this script so that it works
17030         when run from any working directory beneath the top-level .git/-
17031         containing directory.  Inspired by a patch from Giuseppe Scrivano,
17032         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
17033
17034         test-select: avoid warn_unused_result warnings
17035         * tests/test-select.c: Include "macros.h".
17036         ASSERT that each call to read, write, and pipe succeeds.
17037         While not technically required, also check each "close".
17038         * modules/select-tests (Files): Add tests/macros.h.
17039
17040         test-symlinkat: remove declaration of unused local
17041         * tests/test-symlinkat.c (main): Remove unused local, "buf".
17042
17043         test-inttostr: avoid shadowing warnings
17044         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
17045         and use malloc rather than the stack for the same reason as
17046         mentioned in the comment justifying the other allocation.
17047
17048 2010-10-11  Bruno Haible  <bruno@clisp.org>
17049
17050         stdlib: Allow multiple gnulib generated replacements to coexist.
17051         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
17052         Reported by Sam Steingold <sds@gnu.org>.
17053
17054 2010-10-11  Jim Meyering  <meyering@redhat.com>
17055
17056         fix a documentation typo
17057         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
17058
17059 2010-10-11  Eric Blake  <eblake@redhat.com>
17060
17061         futimens: work around Solaris 11 bug
17062         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
17063         * tests/test-futimens.h (test_futimens): Enhance, rather than
17064         weaken test.
17065         * doc/posix-functions/futimens.texi (futimens): Document the bug.
17066
17067 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
17068
17069         Indentation.
17070         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
17071         higher-level operators more to the left.
17072
17073 2010-10-11  Jim Meyering  <meyering@redhat.com>
17074
17075         test-futimens: avoid unwarranted test failure on Solaris 5.11
17076         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
17077         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
17078         because it tries to dereference the NULL name argument.
17079
17080 2010-10-11  Bruno Haible  <bruno@clisp.org>
17081
17082         Indentation.
17083         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
17084         indentation.
17085
17086 2010-10-11  Jim Meyering  <meyering@redhat.com>
17087
17088         spawn.in.h: make indentation consistent with parentheses
17089         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
17090         Make indentation consistent with parentheses.
17091
17092 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
17093
17094         Fix mismatched parens in previous commit
17095         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
17096         parens.
17097
17098 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
17099
17100         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
17101
17102         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
17103         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
17104         * lib/malloca.c: Include "verify.h".
17105         (verify1): Remove, replacing with a verify call.
17106         * lib/relocwrapper.c (verify1): Likewise.
17107         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
17108         Likewise.
17109         * modules/malloca (Depends-on): Add 'verify'.
17110         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
17111         * modules/vasnprintf (Depends-on): Add 'verify'.
17112         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17113         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17114         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17115         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17116         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17117         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17118         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17119
17120         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
17121
17122         Formerly the style was sometimes 2*X - 1, because the C standard
17123         was wrongly thought to disallow ?: in integral constant expressions.
17124         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
17125         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
17126         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17127         * lib/stdint.in.h (_verify_intmax_size): Likewise.
17128         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
17129         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
17130         verify that time_t cannot be floating.
17131
17132 2010-10-08  Eric Blake  <eblake@redhat.com>
17133
17134         time: enforce recent POSIX ruling that time_t is integral
17135         * lib/time.in.h (__time_t_must_be_integral): Detect any
17136         problematic systems, allowing the rest of gnulib to assume POSIX.
17137
17138 2010-10-08  Jim Meyering  <meyering@redhat.com>
17139
17140         fdopendir: fix a bug on systems lacking openat and /proc support
17141         OpenBSD 4.7 is one such system.  The most noticeable effect was
17142         failure of any application making nontrivial use of fts: rm, du,
17143         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
17144           ./rm: traversal failed: `a': Bad file descriptor
17145         Debugging that, you see that even though FD 6 was closed just
17146         prior to the opendir call in fd_clone_opendir, its resulting
17147         dir->dd_fd was 8, rather than the expected value of 6:
17148
17149         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
17150         93                close (fd);
17151         (gdb) n
17152         94                dir = fd_clone_opendir (dupfd);
17153         (gdb) n
17154         95                saved_errno = errno;
17155         (gdb) p dir->dd_fd
17156         $11 = 8
17157
17158         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
17159         The problem is that on OpenBSD, fd_clone_opendir has to resort
17160         to using the old-style save/restore CWD mechanism, due to its
17161         lack of openat/proc support, and *that* would steal the FD (6)
17162         that opendir was supposed to use.
17163
17164         The fix is to squirrel away the desired FD so that save_cwd uses a
17165         different one, and then free the dest FD right before calling opendir.
17166         That guarantees opendir will use the required file descriptor.
17167
17168         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
17169
17170 2010-10-08  Bruno Haible  <bruno@clisp.org>
17171
17172         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
17173         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
17174
17175 2010-10-08  Bruno Haible  <bruno@clisp.org>
17176
17177         nanosleep: Make replacement POSIX compliant.
17178         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
17179         is out of range.
17180         Reported by Jim Meyering.
17181
17182 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17183
17184         bootstrap: add hook for altering gnulib.mk, for Bison
17185         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
17186         the Bison bootstrapping process can rewrite file names and variables
17187         in this file before later parts of 'bootstrap' use the file.
17188         Bison wants to include lib/gnulib.mk from the top-level makefile,
17189         so it needs the file names in this file to be relative to the top
17190         level, not relative to lib; plus it needs variable names to be
17191         rewritten.
17192         (slurp): Use the new function.
17193
17194         bootstrap: reformat for readability
17195         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
17196
17197 2010-10-08  Eric Blake  <eblake@redhat.com>
17198
17199         docs: update cygwin progress
17200         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
17201         1.7.7.
17202         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
17203         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
17204         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
17205         * doc/posix-functions/carg.texi (carg): Likewise.
17206         * doc/posix-functions/cargf.texi (cargf): Likewise.
17207         * doc/posix-functions/casin.texi (casin): Likewise.
17208         * doc/posix-functions/casinf.texi (casinf): Likewise.
17209         * doc/posix-functions/casinh.texi (casinh): Likewise.
17210         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
17211         * doc/posix-functions/catan.texi (catan): Likewise.
17212         * doc/posix-functions/catanf.texi (catanf): Likewise.
17213         * doc/posix-functions/catanh.texi (catanh): Likewise.
17214         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
17215         * doc/posix-functions/ccos.texi (ccos): Likewise.
17216         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
17217         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
17218         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
17219         * doc/posix-functions/cexp.texi (cexp): Likewise.
17220         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
17221         * doc/posix-functions/cimag.texi (cimag): Likewise.
17222         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
17223         * doc/posix-functions/clog.texi (clog): Likewise.
17224         * doc/posix-functions/clogf.texi (clogf): Likewise.
17225         * doc/posix-functions/conj.texi (conj): Likewise.
17226         * doc/posix-functions/conjf.texi (conjf): Likewise.
17227         * doc/posix-functions/cpow.texi (cpow): Likewise.
17228         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
17229         * doc/posix-functions/cproj.texi (cproj): Likewise.
17230         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
17231         * doc/posix-functions/creal.texi (creal): Likewise.
17232         * doc/posix-functions/crealf.texi (crealf): Likewise.
17233         * doc/posix-functions/csin.texi (csin): Likewise.
17234         * doc/posix-functions/csinf.texi (csinf): Likewise.
17235         * doc/posix-functions/csinh.texi (csinh): Likewise.
17236         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
17237         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
17238         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
17239         * doc/posix-functions/ctan.texi (ctan): Likewise.
17240         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
17241         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
17242         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
17243         * doc/posix-headers/complex.texi (complex.h): Likewise.
17244
17245 2010-10-07  Jim Meyering  <meyering@redhat.com>
17246
17247         parse-datetime: avoid compilation failure on OpenBSD 4.7
17248         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
17249         This works around a compilation failure on OpenBSD 4.7:
17250         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
17251
17252 2010-10-07  Eric Blake  <eblake@redhat.com>
17253
17254         docs: update cygwin progress
17255         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
17256         1.7.6.
17257         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
17258         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
17259         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
17260         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
17261         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
17262         Likewise.
17263         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
17264         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
17265         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
17266         Likewise.
17267         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
17268         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
17269         Likewise.
17270         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
17271         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
17272         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
17273         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
17274         Likewise.
17275         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
17276         Likewise.
17277         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
17278
17279         docs: update parse-datetime history
17280         * doc/parse-datetime.texi (Authors of parse_datetime): Better
17281         documentation of this function's history and alternatives.
17282
17283         cygwin: use more robust version check
17284         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
17285         exclude an eventual cygwin 1.9.1.
17286         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17287         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
17288         (gl_FUNC_STRCASESTR): Likewise.
17289         Reported by Bruno Haible.
17290
17291 2010-10-06  Bruno Haible  <bruno@clisp.org>
17292
17293         string, sys_select: Avoid #including large headers unless necessary.
17294         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
17295         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
17296         OSF/1, BeOS, Haiku.
17297         Reported by Jim Meyering.
17298
17299 2010-10-05  Eric Blake  <eblake@redhat.com>
17300
17301         memmem, strstr, strcasestr: fix bug with long periodic needle
17302         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
17303         periodic needle having false positive.
17304         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
17305         and cygwin 1.7.7.
17306         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
17307         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
17308         (gl_FUNC_STRCASESTR): Likewise.
17309         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17310         * tests/test-memmem.c (main): Expose the bug.
17311         * tests/test-strcasestr.c (main): Likewise.
17312         * tests/test-strstr.c (main): Likewise.
17313         * tests/test-c-strcasestr.c (main): Likewise.
17314         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
17315         * doc/posix-functions/strstr.texi (strstr): Likewise.
17316         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
17317         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
17318
17319 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
17320
17321         parse-datetime: do some more renaming
17322         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
17323         parse_datetime, not get_date.  Mention the renaming.
17324         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
17325         in comments.
17326         * m4/bison.m4: Likewise.
17327
17328 2010-10-05  Eric Blake  <eblake@redhat.com>
17329
17330         parse-datetime: better name than get_date
17331         * NEWS: Reword the deprecation notice.
17332         * modules/get_date: Rename to modules/parse-datetime.
17333         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
17334         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
17335         * lib/get_date.y: Rename to lib/parse-datetime.y.
17336         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
17337         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
17338         * doc/getdate.texi: Provide fallback wrapper.
17339         * lib/getdate.h: Move guts, and wrap...
17340         * lib/parse-datetime.h: ...new file.
17341         * lib/parse-datetime.y (get_date): Rename...
17342         (parse_datetime): ...to this.
17343         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
17344         (gl_PARSE_DATETIME): ...to this.
17345         * doc/posix-functions/getdate.texi (get_date): Provide fallback
17346         documentation.
17347         * modules/getdate (Files): Provide fallback docs and header.
17348         (Notice, Depends-on): Update references.
17349         * tests/test-parse-datetime.c: Likewise.
17350         * DEPENDENCIES: Likewise.
17351         * MODULES.html.sh (Date and time <time.h>): Likewise.
17352         * doc/parse-datetime.texi (Date input formats)
17353         (Authors of parse_datetime): Likewise.
17354         * modules/parse-datetime (Files, configure.ac, Makefile.am)
17355         (Include): Likewise.
17356         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
17357         * gnulib-tool: Likewise.
17358         * m4/bison.m4 (gl_BISON): Likewise.
17359         Suggested by Bruno Haible.
17360
17361 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
17362
17363         more ports to Solaris tr, which needs [] around ranges
17364         * gnulib-tool: Solaris tr needs [] around ranges.
17365         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17366         * tests/test-pipe-filter-gi1.c (main): Likewise.
17367         * tests/test-pipe-filter-ii1.c (main): Likewise.
17368
17369 2010-10-05  Eric Blake  <eblake@redhat.com>
17370
17371         bootstrap: fix Solaris regression
17372         * build-aux/bootstrap (check_versions): Solaris tr still needs []
17373         around ranges.
17374         Reported by Pádraig Brady.
17375
17376         bootstrap: work with pkg-config
17377         * build-aux/bootstrap (check_versions): Also transliterate - in
17378         prerequisite name.
17379         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
17380         prerequisites that were already found, to avoid confusion.
17381         Reported by Justin Clift.
17382
17383         faccessat: remove unused wrappers
17384         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
17385         presence of these wrappers dragged in -lgen on Solaris.
17386         Reported by Clemens Brogi; fix suggested by Paul Eggert.
17387
17388 2010-10-05  Jim Meyering  <meyering@redhat.com>
17389
17390         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
17391         * Makefile (sc_pragma_columns): New syntax-check rule.
17392
17393 2010-10-04  Bruno Haible  <bruno@clisp.org>
17394
17395         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
17396         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
17397         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
17398         Reported by Bruce Korb and Eric Blake.
17399
17400 2010-10-04  Bruno Haible  <bruno@clisp.org>
17401
17402         threadlib: Make option --with-libpth-prefix work.
17403         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
17404         use $LIBPTH, not just -lpth.
17405
17406 2010-10-04  Bruno Haible  <bruno@clisp.org>
17407
17408         Avoid line length limitation from HP NonStop system header files.
17409         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
17410         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
17411         * lib/ctype.in.h: Likewise.
17412         * lib/dirent.in.h: Likewise.
17413         * lib/errno.in.h: Likewise.
17414         * lib/fcntl.in.h: Likewise.
17415         * lib/float.in.h: Likewise.
17416         * lib/getopt.in.h: Likewise.
17417         * lib/iconv.in.h: Likewise.
17418         * lib/inttypes.in.h: Likewise.
17419         * lib/langinfo.in.h: Likewise.
17420         * lib/locale.in.h: Likewise.
17421         * lib/math.in.h: Likewise.
17422         * lib/netdb.in.h: Likewise.
17423         * lib/netinet_in.in.h: Likewise.
17424         * lib/poll.in.h: Likewise.
17425         * lib/pthread.in.h: Likewise.
17426         * lib/pty.in.h: Likewise.
17427         * lib/sched.in.h: Likewise.
17428         * lib/se-selinux.in.h: Likewise.
17429         * lib/search.in.h: Likewise.
17430         * lib/signal.in.h: Likewise.
17431         * lib/spawn.in.h: Likewise.
17432         * lib/stdarg.in.h: Likewise.
17433         * lib/stddef.in.h: Likewise.
17434         * lib/stdint.in.h: Likewise.
17435         * lib/stdio.in.h: Likewise.
17436         * lib/stdlib.in.h: Likewise.
17437         * lib/string.in.h: Likewise.
17438         * lib/strings.in.h: Likewise.
17439         * lib/sys_file.in.h: Likewise.
17440         * lib/sys_ioctl.in.h: Likewise.
17441         * lib/sys_select.in.h: Likewise.
17442         * lib/sys_socket.in.h: Likewise.
17443         * lib/sys_stat.in.h: Likewise.
17444         * lib/sys_time.in.h: Likewise.
17445         * lib/sys_times.in.h: Likewise.
17446         * lib/sys_utsname.in.h: Likewise.
17447         * lib/sys_wait.in.h: Likewise.
17448         * lib/sysexits.in.h: Likewise.
17449         * lib/termios.in.h: Likewise.
17450         * lib/time.in.h: Likewise.
17451         * lib/unistd.in.h: Likewise.
17452         * lib/wchar.in.h: Likewise.
17453         * lib/wctype.in.h: Likewise.
17454         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
17455         * modules/ctype (Makefile.am): Likewise.
17456         * modules/dirent (Makefile.am): Likewise.
17457         * modules/errno (Makefile.am): Likewise.
17458         * modules/fcntl-h (Makefile.am): Likewise.
17459         * modules/float (Makefile.am): Likewise.
17460         * modules/getopt-posix (Makefile.am): Likewise.
17461         * modules/iconv-h (Makefile.am): Likewise.
17462         * modules/inttypes (Makefile.am): Likewise.
17463         * modules/langinfo (Makefile.am): Likewise.
17464         * modules/locale (Makefile.am): Likewise.
17465         * modules/math (Makefile.am): Likewise.
17466         * modules/netdb (Makefile.am): Likewise.
17467         * modules/netinet_in (Makefile.am): Likewise.
17468         * modules/poll-h (Makefile.am): Likewise.
17469         * modules/pthread (Makefile.am): Likewise.
17470         * modules/pty (Makefile.am): Likewise.
17471         * modules/sched (Makefile.am): Likewise.
17472         * modules/search (Makefile.am): Likewise.
17473         * modules/selinux-h (Makefile.am): Likewise.
17474         * modules/signal (Makefile.am): Likewise.
17475         * modules/spawn (Makefile.am): Likewise.
17476         * modules/stdarg (Makefile.am): Likewise.
17477         * modules/stddef (Makefile.am): Likewise.
17478         * modules/stdint (Makefile.am): Likewise.
17479         * modules/stdio (Makefile.am): Likewise.
17480         * modules/stdlib (Makefile.am): Likewise.
17481         * modules/string (Makefile.am): Likewise.
17482         * modules/strings (Makefile.am): Likewise.
17483         * modules/sys_file (Makefile.am): Likewise.
17484         * modules/sys_ioctl (Makefile.am): Likewise.
17485         * modules/sys_select (Makefile.am): Likewise.
17486         * modules/sys_socket (Makefile.am): Likewise.
17487         * modules/sys_stat (Makefile.am): Likewise.
17488         * modules/sys_time (Makefile.am): Likewise.
17489         * modules/sys_times (Makefile.am): Likewise.
17490         * modules/sys_utsname (Makefile.am): Likewise.
17491         * modules/sys_wait (Makefile.am): Likewise.
17492         * modules/sysexits (Makefile.am): Likewise.
17493         * modules/termios (Makefile.am): Likewise.
17494         * modules/time (Makefile.am): Likewise.
17495         * modules/unistd (Makefile.am): Likewise.
17496         * modules/wchar (Makefile.am): Likewise.
17497         * modules/wctype (Makefile.am): Likewise.
17498
17499 2010-10-04  Bruno Haible  <bruno@clisp.org>
17500
17501         read-file tests: Avoid a test failure on NonStop Kernel.
17502         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
17503         a regular file.
17504         Reported by Joachim Schmitz <schmitz@hp.com>.
17505
17506 2010-10-03  Bruno Haible  <bruno@clisp.org>
17507
17508         gnulib-tool: Fixes for --create-testdir with --libtool.
17509         * gnulib-tool (func_get_automake_snippet): Don't augment
17510         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
17511         an executable.
17512         (func_create_testdir): Handle module 'alloca' like func_import.
17513         Reported by Bruce Korb <bruce.korb@gmail.com>.
17514
17515 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
17516
17517         Avoid some lines longer than 80 characters.
17518         * lib/stdint.in.h: Break long comment lines.
17519         * lib/math.in.h: Likewise.
17520         (_GL_NUM_UINT_WORDS): New macro, for readability.
17521         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
17522         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
17523         * lib/stdlib.in.h: Likewise.
17524         * lib/spawn.in.h: Likewise.
17525         * lib/sys_socket.in.h: Update an URL.
17526         * lib/sys_stat.in.h: Break long line.
17527
17528 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
17529
17530         Improve pmccabe2html.
17531         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
17532         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
17533         when the sources change. Remove the line in the HTML about "Used
17534         ranges" (which implied that there might be other unused ranges),
17535         rename "Resume" to "Summary" (easier to understand for more users).
17536         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
17537         styles, and some unnecessary blank lines.
17538
17539 2010-10-03  Bruno Haible  <bruno@clisp.org>
17540             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
17541
17542         acl: Add support for ACLs on NonStop Kernel.
17543         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
17544         Check whether the function aclsort() exists.
17545         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
17546         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
17547         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17548         (acl_nontrivial [HAVE_ACLSORT]: New function.
17549         (file_has_acl): Implement for NonStop Kernel.
17550         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17551         (qset_acl): Implement for NonStop Kernel.
17552         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
17553         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17554         (main): Implement for NonStop Kernel.
17555         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
17556         Kernel. Handle this flavor.
17557         * tests/test-set-mode-acl.sh: Likewise.
17558         * tests/test-copy-acl.sh: Likewise.
17559         * tests/test-copy-file.sh: Likewise.
17560
17561 2010-10-03  Bruno Haible  <bruno@clisp.org>
17562
17563         Info about ACLs on NonStop Kernel.
17564         * doc/acl-resources.txt: Add info about NonStop Kernel.
17565         References by Joachim Schmitz <schmitz@hp.com>.
17566
17567 2010-10-02  Bruno Haible  <bruno@clisp.org>
17568
17569         Define missing EDQUOT on NonStop Kernel.
17570         * lib/errno.in.h (EDQUOT): Assign a value if missing.
17571         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
17572         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
17573         missing.
17574         * doc/posix-headers/errno.texi: Mention the NSK bug.
17575         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
17576         Reported by Joachim Schmitz <schmitz@hp.com>.
17577
17578 2010-10-02  Bruno Haible  <bruno@clisp.org>
17579
17580         Update doc for POSIX:2008.
17581         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
17582         Update URL of POSIX specification.
17583
17584 2010-10-02  Bruno Haible  <bruno@clisp.org>
17585
17586         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
17587         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
17588         from gnulib, not from Automake.
17589
17590 2010-10-02  Bruno Haible  <bruno@clisp.org>
17591
17592         New module 'system-posix'.
17593         * modules/system-posix: New file.
17594         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
17595         module is present.
17596         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17597         GNULIB_SYSTEM_POSIX.
17598         * modules/stdlib (Depends-on): Remove sys_wait.
17599         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
17600         * doc/posix-functions/system.texi: Mention the new module.
17601         * doc/posix-headers/stdlib.texi: Likewise.
17602         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
17603         define test_sys_wait_macros to a no-op.
17604         Reported by Sam Steingold <sds@gnu.org>.
17605
17606 2010-09-30  Bruno Haible  <bruno@clisp.org>
17607
17608         More renaming from 'getdate' to 'get_date'.
17609         * doc/get_date.texi: Renamed from doc/getdate.texi.
17610         * modules/get_date (Files): Update.
17611         * MODULES.html.sh (Date and time <time.h>): Update.
17612         * DEPENDENCIES: Update.
17613         * gnulib-tool: Update comment.
17614         * m4/bison.m4 (gl_BISON): Likewise.
17615         * m4/get_date.m4 (gl_GET_DATE): Likewise.
17616
17617 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
17618
17619         bootstrap: support ACLOCAL_FLAGS during aclocal
17620         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
17621         can add additional -I dir for third-party .m4 files.
17622
17623 2010-09-30  Eric Blake  <eblake@redhat.com>
17624
17625         bootstrap: use glibtoolize on MacOS
17626         * build-aux/bootstrap (check_versions): Convert libtool into
17627         libtoolize.
17628         (tool search): Move libtool check earlier, and look for
17629         glibtoolize for MacOS.
17630         (gnulib_tool_options): Auto-add --libtool when appropriate.
17631         Reported by Justin Clift.
17632
17633         poll: fix typo that broke test on MacOS
17634         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
17635         Reported by Justin Clift.
17636
17637         getdate: rename to get_date
17638         Note: getdate.h is not renamed, to minimize client impact.
17639         * modules/getdate: Mark obsolete.  Move old contents...
17640         * modules/get_date: ...to new module name.
17641         * modules/getdate-tests: Move...
17642         * modules/get_date-tests: ...here.
17643         * m4/getdate.m4: Move...
17644         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
17645         * lib/getdate.y: Move...
17646         * lib/get_date.y: ...here.
17647         * tests/test-getdate.c: Move...
17648         * tests/test-get_date.c: ...here.
17649         * doc/posix-functions/getdate.texi (getdate): Update name.
17650         * NEWS: Mention the change.
17651
17652 2010-09-29  Bruno Haible  <bruno@clisp.org>
17653
17654         Separate the module 'waitpid' from the module 'sys_wait'.
17655         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
17656         present.
17657         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
17658         gl_MODULE_INDICATOR_FOR_TESTS.
17659         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
17660         * modules/sys_wait (Depends-on): Remove waitpid.
17661         (Makefile.am): Substitute GNULIB_WAITPID.
17662         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
17663         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
17664         signature only if the 'waitpid' module is present.
17665         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
17666         * NEWS: Mention the change.
17667         * modules/grantpt (Depends-on): Add waitpid.
17668         * modules/wait-process (Depends-on): Likewise.
17669
17670 2010-09-29  Bruno Haible  <bruno@clisp.org>
17671
17672         More tests for module 'sys_wait'.
17673         * modules/sys_wait-c++-tests: New file.
17674         * tests/test-sys_wait-c++.cc: New file.
17675         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
17676         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
17677
17678 2010-09-29  Bruno Haible  <bruno@clisp.org>
17679
17680         New module 'waitpid'.
17681         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
17682         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
17683         Don't include <process.h>.
17684         (waitpid): Declare only, using modern idiom.
17685         * m4/waitpid.m4: New file.
17686         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
17687         * modules/waitpid: New file.
17688         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
17689         (Makefile.am): Update.
17690         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
17691
17692 2010-09-28  Bruno Haible  <bruno@clisp.org>
17693
17694         poll: Assume ANSI C.
17695         * lib/poll.c (poll): Use an ANSI C declaration.
17696
17697 2010-09-28  Bruno Haible  <bruno@clisp.org>
17698
17699         poll-h: Create poll.h on all platforms.
17700         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
17701         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
17702         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
17703         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
17704         (gl_REPLACE_POLL_H): Don't set POLL_H.
17705         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
17706         * modules/poll-h (Depends-on): Add include_next.
17707         (Makefile.am): Create poll.h unconditionally. Substitute also
17708         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
17709
17710 2010-09-28  Bruno Haible  <bruno@clisp.org>
17711
17712         Tests for module 'poll-h'.
17713         * modules/poll-h-c++-tests: New file.
17714         * tests/test-poll-h-c++.cc: New file.
17715
17716         Tests for module 'poll-h'.
17717         * modules/poll-h-tests: New file.
17718         * tests/test-poll-h.c: New file.
17719
17720 2010-09-28  Bruno Haible  <bruno@clisp.org>
17721
17722         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
17723         * modules/poll-h (Depends-on): Add 'extensions'.
17724
17725 2010-09-28  Bruno Haible  <bruno@clisp.org>
17726
17727         New module 'poll-h'.
17728         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
17729         (poll): Use modern idiom.
17730         * modules/poll-h: New file.
17731         * modules/poll (Files): Remove lib/poll.in.h.
17732         (Depends-on): Add poll-h.
17733         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
17734         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
17735         * m4/poll_h.m4: New file.
17736         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
17737         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
17738         and invoke gl_REPLACE_POLL_H.
17739         * lib/poll.c: Use common idiom.
17740         * tests/test-poll.c: Likewise.
17741         * doc/posix-headers/poll.texi: Mention the poll-h module.
17742         Suggested by Eric Blake.
17743
17744 2010-09-26  Bruno Haible  <bruno@clisp.org>
17745
17746         sys_wait: Implement WSTOPSIG.
17747         * lib/sys_wait.in.h (WSTOPSIG): New macro.
17748         Reported by Simon Josefsson.
17749
17750 2010-09-26  Simon Josefsson  <simon@josefsson.org>
17751
17752         stdlib, sys_wait: Avoid compilation error on mingw.
17753         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
17754
17755 2010-09-26  Bruno Haible  <bruno@clisp.org>
17756
17757         stdlib tests: Avoid code duplication.
17758         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
17759         * modules/sys_wait-tests (Files): Likewise.
17760         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
17761         * tests/test-stdlib.c: Include test-sys_wait.h.
17762         (main): Invoke test_sys_wait_macros.
17763         * tests/test-sys_wait.c: Include test-sys_wait.h.
17764         (main): Invoke test_sys_wait_macros.
17765
17766 2010-09-25  Simon Josefsson  <simon@josefsson.org>
17767
17768         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
17769         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
17770         sure Windows sockets are working before calling getaddrinfo.
17771         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
17772         * doc/gnulib.texi (Windows sockets): Fix typo.
17773
17774 2010-09-25  Bruno Haible  <bruno@clisp.org>
17775
17776         Tests for module 'regex-quote'.
17777         * modules/regex-quote-tests: New file.
17778         * tests/test-regex-quote.c: New file.
17779
17780         New module 'regex-quote'.
17781         * lib/regex-quote.h: New file.
17782         * lib/regex-quote.c: New file.
17783         * modules/regex-quote: New file.
17784         Suggested by Reuben Thomas <rrt@sc3d.org>.
17785
17786 2010-09-24  Bruno Haible  <bruno@clisp.org>
17787
17788         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
17789         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
17790
17791 2010-09-23  Bruno Haible  <bruno@clisp.org>
17792
17793         setenv: Relax license.
17794         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
17795         Blake.
17796         Requested by Eric Blake.
17797
17798 2010-09-22  Bruno Haible  <bruno@clisp.org>
17799
17800         termios: Relax license.
17801         * modules/termios (License): Change to LGPLv2+.
17802         Requested by Eric Blake.
17803
17804 2010-09-22  Bruno Haible  <bruno@clisp.org>
17805
17806         threadlib: Allow the package to change the default to 'no'.
17807         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
17808         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
17809         Reported by Paul Eggert.
17810
17811 2010-09-22  Pádraig Brady  <P@draigbrady.com>
17812             Bruno Haible  <bruno@clisp.org>
17813
17814         Fix endless loop in mbmemcasecoll.
17815         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
17816         byte.
17817         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
17818
17819 2010-09-22  Bruno Haible  <bruno@clisp.org>
17820
17821         Tests for module 'memcoll'.
17822         * modules/memcoll-tests: New file.
17823         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
17824
17825         memcoll, xmemcoll: Clarify size vs. length.
17826         * modules/memcoll.c (memcoll0): Clarify specification.
17827         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
17828         passed to collate_error.
17829
17830 2010-09-22  Bruno Haible  <bruno@clisp.org>
17831
17832         Tests for module 'memcasecmp'.
17833         * modules/memcasecmp-tests: New file.
17834         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
17835
17836 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
17837
17838         * lib/pthread.in.h: Add split double-inclusion guard, and include
17839         system <pthread.h> if there is one.  Use @@-style as in other
17840         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
17841         pthread.h doesn't.
17842         (pthread_mutexattr_destroy, pthread_mutexattr_init):
17843         (pthread_mutexattr_settype, pthread_mutex_trylock):
17844         New static inline functions, if there's no system <pthread.h>.
17845         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
17846         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
17847         Approximate with mutexes if the system lacks spinlocks, as in
17848         MacOS.
17849         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
17850         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
17851         @@-style.  Check for spinlocks separately.
17852         (gl_PTHREAD_DEFAULTS): New macro.
17853         * modules/pthread: Redo to use a more typical style for in.h files.
17854
17855 2010-09-21  Eric Blake  <eblake@redhat.com>
17856
17857         net_if: enhance tests
17858         * tests/test-net_if.c (main): Move signature checks earlier.
17859         Print failures to stderr.
17860         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
17861         Document the bug that we do not yet fix.
17862
17863 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
17864
17865         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
17866         about gnulib, not GSS.
17867
17868 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
17869
17870         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
17871         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
17872         for Emacs.
17873         * build-aux/pmccabe2html: Make Makefile.am example code more
17874         cut-and-paste friendly.
17875
17876 2010-09-21  Simon Josefsson  <simon@josefsson.org>
17877
17878         * tests/test-net_if.c: New file.
17879         * modules/net_if-tests: New file.
17880
17881 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
17882
17883         pthread: add pthread_spin_destroy
17884         * lib/pthread.in.h (pthread_spin_destroy): New function.
17885
17886 2010-09-19  Bruno Haible  <bruno@clisp.org>
17887
17888         gnulib-tool: Fix --help output.
17889         * gnulib-tool (func_usage): Fix help message.
17890         Reported by Reuben Thomas <rrt@sc3d.org>.
17891
17892 2010-09-18  Jim Meyering  <meyering@redhat.com>
17893
17894         maint.mk: avoid unexpanded \n in two diagnostics
17895         * top/maint.mk (sc_prohibit_always_true_header_tests):
17896         Don't use a literal \n in a halt=... assignment.  It would not be
17897         expanded, and the two \n bytes would appear in the diagnostic output
17898         rather than the desired newline.  Use halt=$$(printf ... instead.
17899         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
17900
17901 2010-09-18  Bruno Haible  <bruno@clisp.org>
17902
17903         netinet_in: Doc tweak.
17904         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
17905         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17906
17907 2010-09-18  Jim Meyering  <meyering@redhat.com>
17908
17909         init.sh: correct an outdated comment
17910         * tests/init.sh (create_exe_shims_):  s/function/alias/
17911
17912         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
17913         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
17914         a file named "*.exe" is removed between the glob expansion and the
17915         processing of that oddly named file.
17916
17917 2010-09-17  Eric Blake  <eblake@redhat.com>
17918
17919         mirbsd: add some more support
17920         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
17921         in BSD family.
17922         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
17923         devices as OpenBSD.
17924         * m4/host-os.m4 (mirbsd): Add MirBSD.
17925
17926         tests: fix unportable assumption on sys/wait.h
17927         * tests/test-sys_wait.c (main): Relax test.
17928         * tests/test-stdlib.c (main): Likewise.
17929
17930         init.sh: accomodate directory with no .exes
17931         * tests/init.sh: Accomodate directory containing only scripts.
17932
17933         tests: avoid compiler warning
17934         * tests/test-stdlib.c (main): Use the variable.
17935
17936         fdutimens, fdutimensat: update signature, again
17937         * lib/utimens.h (gl_futimens): Delete, and move signature...
17938         (fdutimens): ...here.
17939         (fdutimensat): Rearrange signature.
17940         (lutimensat): Rename variable for clarity.
17941         * lib/fdutimensat.c (fdutimensat): Update signature.
17942         * lib/utimens.c (fdutimens): Likewise.
17943         (gl_futimens): Delete.
17944         (utimens, lutimens): Update callers.
17945         * lib/futimens.c (futimens): Likewise.
17946         * tests/test-fdutimensat.c: Likewise.
17947         * tests/test-utimens.c: Likewise.
17948         * tests/test-futimens.h: Update comment.
17949         * NEWS: Mention this.
17950         Suggested by Paul Eggert.
17951
17952 2010-09-17  Bruno Haible  <bruno@clisp.org>
17953
17954         Take over the maintenance of some older macros from Autoconf.
17955         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
17956         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
17957         GNU Autoconf.
17958         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
17959         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
17960
17961 2010-09-17  Eric Blake  <eblake@redhat.com>
17962
17963         fdutimensat: drop atflag validation
17964         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
17965         with valid fd, to close a race scenario where futimens is
17966         unsupported and FILE was replaced by a symlink.
17967         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
17968         accordingly.
17969         Suggested by Paul Eggert.
17970
17971 2010-09-16  Bruno Haible  <bruno@clisp.org>
17972
17973         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
17974         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
17975
17976 2010-09-16  Bruno Haible  <bruno@clisp.org>
17977
17978         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
17979         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
17980         login_tty exists.
17981         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17982
17983 2010-09-16  Bruno Haible  <bruno@clisp.org>
17984
17985         login_tty: Make the replacement code work on BSD systems.
17986         * lib/login_tty.c: Include <sys/ioctl.h>.
17987         (login_tty): Use ioctl TIOCSCTTY when available.
17988         * modules/login_tty (Depends-on): Add sys_ioctl.
17989         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17990
17991 2010-09-16  Bruno Haible  <bruno@clisp.org>
17992
17993         login_tty: Stricter unit test.
17994         * modules/login_tty-tests (Depends-on): Add tcgetsid.
17995         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
17996         and tcgetsid() after login_tty.
17997         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17998
17999 2010-09-16  Bruno Haible  <bruno@clisp.org>
18000
18001         New module 'tcgetsid'.
18002         * lib/tcgetsid.c: New file.
18003         * m4/tcgetsid.m4: New file.
18004         * modules/tcgetsid: New file.
18005         * modules/termios (Depends-on): Add c++defs, warn-on-use.
18006         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
18007         GNULIB_TCGETSID, HAVE_TCGETSID.
18008         * lib/termios.in.h: Include <sys/types.h>.
18009         (tcgetsid): New declaration.
18010         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
18011         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
18012         * doc/posix-functions/tcgetsid.texi: Mention the new module.
18013         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
18014
18015 2010-09-16  Bruno Haible  <bruno@clisp.org>
18016
18017         Tests for module 'termios'.
18018         * modules/termios-c++-tests: New file.
18019         * modules/termios-tests: New file.
18020         * tests/test-termios-c++.cc: New file.
18021         * tests/test-termios.c: New file.
18022
18023         New module 'termios'.
18024         * modules/termios: New file.
18025         * lib/termios.in.h: New file.
18026         * m4/termios_h.m4: New file.
18027         * doc/posix-headers/termios.texi: Mention the new module.
18028
18029 2010-09-16  Eric Blake  <eblake@redhat.com>
18030
18031         fdutimensat: add an atflag parameter
18032         * lib/fdutimensat.c (fdutimensat): Add new parameter.
18033         * lib/utimens.h (fdutimensat): Update prototype.
18034         * tests/test-fdutimensat.c: Adjust test to match.
18035         * NEWS: Document the change.
18036         Suggested by Paul Eggert.
18037
18038 2010-09-16  Bruno Haible  <bruno@clisp.org>
18039
18040         Fix typos in comments.
18041         * lib/striconveh.h: Fix typo in comment.
18042         * lib/login_tty.c (login_tty): Likewise.
18043
18044 2010-09-15  Bruno Haible  <bruno@clisp.org>
18045
18046         stdlib: clarify MirBSD WEXITSTATUS bug
18047         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
18048         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18049
18050 2010-09-15  Eric Blake  <eblake@redhat.com>
18051
18052         stdlib: work around MirBSD WEXITSTATUS bug
18053         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
18054         * modules/stdlib (Depends-on): Add sys_wait.
18055         * tests/test-sys_wait.c (main): Enhance test.
18056         * tests/test-stdlib.c (main): Likewise.
18057         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
18058
18059         docs: mention MacOS issue with WEXITSTATUS(constant)
18060         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
18061         issue.
18062         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18063
18064         strnlen: add tests
18065         * modules/strnlen-tests: New file.
18066         * tests/test-strnlen.c: Likewise.
18067
18068 2010-09-14  Bruno Haible  <bruno@clisp.org>
18069
18070         unistr/base: Avoid link errors when module 'libunistring' is also used.
18071         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
18072         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
18073         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
18074         Declare also when HAVE_LIBUNISTRING is set.
18075         Reported by Pádraig Brady <P@draigbrady.com>.
18076
18077 2010-09-14  Eric Blake  <eblake@redhat.com>
18078
18079         test-rawmemchr: make more robust
18080         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
18081         (Depends-on, configure.ac): Add needed prerequisites to use it.
18082         * modules/memchr-tests (Files, Depends-on, configure.ac):
18083         Likewise, to avoid implicit reliance on memchr module prereqs.
18084         * tests/test-memchr.c (main): Ensure proper masking.
18085         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
18086         reads.
18087
18088         memchr: detect glibc Alpha bug
18089         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
18090         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
18091         Alpha.
18092         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
18093         * tests/test-memchr.c (main): Enhance test.
18094         Reported by Nelson H. F. Beebe.
18095
18096 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18097
18098         fts, getcwd, glob: audit for dirfd returning -1
18099         * lib/fts.c (opendir): Remove #define; no longer used.
18100         (opendirat): New arg PDIR_FD.  All callers changed.
18101         (fts_build, _opendir2): Use new opendirat to avoid the need for
18102         dirfd, or for checking whether dirfd returns a negative value.
18103         Don't use opendir; always use openat followed by fdopendir.
18104         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
18105         it.
18106         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
18107         returns -1 here.
18108         * modules/fts (Depends-on): Remove dirfd.
18109         * modules/getcwd (Depends-on): Likewise.
18110
18111 2010-09-13  Eric Blake  <eblake@redhat.com>
18112
18113         float: fix broken MirBSD header
18114         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
18115         * doc/posix-headers/float.texi (float.h): Document it.
18116
18117 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18118
18119         fts: use O_NOFOLLOW to avoid race condition when opening a directory
18120         * lib/fts.c (opendirat): New arg extra_flags.
18121         (__opendir2): Use it to avoid following symlinks when opening
18122         a directory, if symlinks are not supposed to be followed.  See
18123         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
18124
18125         fdopendir: preserve argument fd before returning
18126         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
18127         (fdopendir_with_dup, fd_clone_opendir): New static functions.
18128         (fdopendir): Use them, arranging for FD to be open to the same
18129         directory that it was when it started.  (It might be temporarily
18130         closed while fdopendir is running, so this not thread- or
18131         signal-safe.)  Be careful to do the right thing even when file
18132         descriptors are scarce and dup fails with errno == EMFILE.  See
18133         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
18134
18135 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
18136
18137         regex: Pass the system regex if its only problem is 32-bit regoff_t.
18138         * NEWS: Document change.
18139         * m4/regex.m4: Disable test for regoff_t size.
18140
18141 2010-09-13  Jim Meyering  <meyering@redhat.com>
18142
18143         fts: don't operate on an invalid file descriptor after failed dup
18144         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
18145         negative file descriptor.
18146
18147 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
18148
18149         savedir: add streamsavedir, deprecate fdsavedir
18150         * NEWS: Mention deprecation of fdsavedir.
18151         * lib/savedir.c (streamsavedir): New extern function, whose name
18152         ends in "savedir" to be consistent with the others.  This differs
18153         from savedirstream in that it doesn't close its argument.  The
18154         next version of GNU tar will use this instead of fdsavedir, to
18155         avoid some race conditions and conserve file descriptors.
18156         (savedirstream): Reimplement as a wrapper around streamsavedir.
18157         (fdsavedir): Add a comment deprecating this function.  As far as
18158         I know, only GNU tar used it, and GNU tar doesn't need it any more.
18159         * lib/savedir.h (streamsavedir): New decl.
18160         (fdsavedir): Add a comment deprecating this.
18161
18162 2010-09-10  Bruno Haible  <bruno@clisp.org>
18163
18164         langinfo: Fix last commit.
18165         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
18166         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
18167         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18168
18169 2010-09-10  Bruno Haible  <bruno@clisp.org>
18170
18171         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
18172         * lib/progreloc.c (O_EXEC): Define fallback.
18173
18174 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
18175
18176         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
18177         * NEWS: Document recent changes to fcntl-h.
18178         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
18179         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
18180         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
18181         Similarly for O_SEARCH; this last was already true, but not documented.
18182         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
18183         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
18184         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
18185         Likewise.
18186         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
18187         is zero, not whether it is defined.
18188         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
18189         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
18190         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
18191
18192 2010-09-10  Bruno Haible  <bruno@clisp.org>
18193
18194         langinfo, nl_langinfo: Fix for IRIX 5.3.
18195         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
18196         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
18197         HAVE_LANGINFO_YESEXPR.
18198         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
18199         HAVE_LANGINFO_YESEXPR.
18200         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
18201         HAVE_LANGINFO_T_FMT_AMPM is 0.
18202         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
18203         HAVE_LANGINFO_YESEXPR is 0.
18204         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
18205         NOEXPR.
18206         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
18207         * doc/posix-functions/nl_langinfo.texi: Likewise.
18208         Reported by Eric Blake.
18209
18210 2010-09-10  Bruno Haible  <bruno@clisp.org>
18211
18212         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
18213         * doc/glibc-functions/login_tty.texi: Mention the include file problem
18214         on FreeBSD 8.0 and OpenBSD 4.6.
18215         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
18216         * m4/pty_h.m4 (gl_PTY_H): Likewise.
18217         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
18218         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
18219         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
18220         ac_includes_default.
18221         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18222
18223 2010-09-09  Eric Blake  <eblake@redhat.com>
18224
18225         strsignal: work around NetBSD bug
18226         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
18227         * lib/string.in.h (includes): Likewise.
18228         * doc/posix-functions/strsignal.texi (strsignal): Document the
18229         bug.
18230         Reported by Nelson H. F. Beebe.
18231
18232         gnulib-tool: work with NetBSD /bin/sh
18233         * gnulib-tool (func_cache_var, func_cache_lookup_module)
18234         (func_get_description, func_get_comment, func_get_status)
18235         (func_get_notice, func_get_applicability, func_get_filelist)
18236         (func_get_dependencies, func_get_autoconf_early_snippet)
18237         (func_get_autoconf_snippet, func_get_automake_snippet)
18238         (func_get_include_directive, func_get_link_directive)
18239         (func_get_license, func_get_maintainer, func_import): Avoid
18240         shell syntax errors from parsing syntax extensions.
18241
18242 2010-09-09  Bruno Haible  <bruno@clisp.org>
18243
18244         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
18245         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
18246         a reliable way to determine whether the 'alias' command works.
18247
18248 2010-09-08  Jim Meyering  <meyering@redhat.com>
18249
18250         init.sh: penalize a set-x-impaired shell; don't disqualify it
18251         * tests/init.sh: Too many shells corrupt application stderr when
18252         you set -x, so we can't afford to disqualify them, since at least
18253         on Irix-6.5, that would disqualify all bourne shells.
18254         Instead, use a two-pass approach.
18255         On the first pass, try to find a shell that meets the stricter
18256         condition that set -x does not corrupt stderr.
18257         If no shell meets the stricter condition, retest each candidate
18258         shell, but without that extra condition.  Finally, when
18259         VERBOSE=yes is requested and set -x might cause trouble, simply
18260         issue a warning and refrain from enabling debug output.
18261
18262 2010-09-08  Eric Blake  <eblake@redhat.com>
18263
18264         unsetenv: fix OpenBSD bug
18265         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
18266         * doc/posix-functions/unsetenv.texi (unsetenv): Update
18267         documentation.
18268         Reported by Jim Meyering.
18269
18270         strtod: work around IRIX 6.5 bug
18271         * lib/strtod.c (strtod): Reparse number on shorter string if
18272         exponent parse was invalid.
18273         * tests/test-strtod.c (main): Add check for "0x1p 2".
18274         Reported by Tom G. Christensen.
18275
18276         getopt: optimize previous patch
18277         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
18278         empty variable.  Speed up awk script.
18279         Reported by Paolo Bonzini.
18280
18281 2010-09-08  Jim Meyering  <meyering@redhat.com>
18282
18283         test.sh: disqualify shells for which set -x corrupts stderr
18284         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
18285         and OpenBSD 4.7.  They make it so with "set -x", environment settings
18286         appear in stderr output.  For example, this command:
18287             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
18288         prints "P=1" on those two systems:
18289
18290 2010-09-08  Bruno Haible  <bruno@clisp.org>
18291
18292         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
18293         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
18294         commands, because some shells ignore redirections when there is an
18295         error in the command lookup.
18296         Reported by Eric Blake.
18297
18298 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
18299
18300         * lib/regex.h: Fix a mention of `regex_compile' (should be
18301         `re_compile_pattern').
18302         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
18303         (re_set_registers): Correct name of parameter in comment.
18304
18305         * doc/regex.texi: Add documentation for missing syntax flags.
18306         Remove commented-out documentation of defunct syntax option
18307         RE_NO_EMPTY_ALTS.
18308         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
18309         Add documentation of re_set_registers.
18310         Document trick to re-use a pattern buffer by setting fastmap manually.
18311         Update documentation of struct re_pattern_buffer per public members.
18312         Uncomment documentation of equivalence class operators and
18313         collating symbol operators, since they are now implemented,
18314         Explain leftmost-longest matching in relation to alternatives.
18315         Tidy documentation of substring matching.
18316         Remove POSIX documentation, which is done better in
18317         glibc, and refer the reader there. Keep BSD API documentation, as
18318         that is not readily available elsewhere.
18319
18320 2010-09-07  Eric Blake  <eblake@redhat.com>
18321
18322         getopt: handle POSIXLY_CORRECT set but not exported
18323         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
18324         export state of POSIXLY_CORRECT, due to bash set -o posix.
18325         Reported by Dustin J. Mitchell.
18326
18327 2010-09-05  Bruno Haible  <bruno@clisp.org>
18328
18329         gnulib-tool: Highlight the changed options.
18330         * gnulib-tool (func_usage): Display the --import, --add-import,
18331         --remove-import explanations in bold font.
18332
18333 2010-09-06  Karl Berry  <karl@gnu.org>
18334
18335         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
18336
18337 2010-09-05  Bruno Haible  <bruno@clisp.org>
18338
18339         uniwidth/width: Update comment.
18340         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
18341         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
18342
18343 2010-09-05  Bruno Haible  <bruno@clisp.org>
18344
18345         isinf, isnan: Relax license.
18346         * modules/isinf (License): Change from GPL to LGPL, with consent from
18347         Ben Pfaff.
18348         * modules/isnan (License): Likewise.
18349         Requested by Ludovic Courtès.
18350
18351 2010-09-04  Bruno Haible  <bruno@clisp.org>
18352
18353         gnulib-tool: Help migration from --import to --add-import or --update.
18354         * gnulib-tool: Emit a verbose error message when --import is used
18355         without any module name.
18356
18357 2010-09-04  Bruno Haible  <bruno@clisp.org>
18358
18359         Update doc about gnulib-tool.
18360         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
18361         'gnulib-tool --update' in more detail.
18362         Reported by Eric Blake.
18363
18364 2010-09-04  Bruno Haible  <bruno@clisp.org>
18365
18366         gnulib-tool: Change --import. New options --add/remove-import.
18367         * gnulib-tool: New options --add-import, --remove-import.
18368         (func_usage): Document them.
18369         (have_associative): Define always.
18370         (func_import): In import mode, don't merge the specified settings with
18371         the cached settings. Implement remove-import mode.
18372         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
18373         Explain when to use them versus --import.
18374         (Simple update): Use --add-import instead of --import.
18375         * NEWS: Mention the change.
18376
18377 2010-09-04  Bruno Haible  <bruno@clisp.org>
18378
18379         * doc/gnulib-tool.texi (Initial import): Update paragraph about
18380         separate gnulib.mk.
18381
18382 2010-09-04  Bruno Haible  <bruno@clisp.org>
18383
18384         gnulib-tool: Don't talk about CVS any more.
18385         * gnulib-tool (func_usage, func_import): Write "version control"
18386         instead of CVS.
18387
18388 2010-09-04  Jim Meyering  <meyering@redhat.com>
18389
18390         maint.mk: avoid obscure sc_copyright_check failure in coreutils
18391         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
18392         false positives (whose names may be ill-chosen) when searching
18393         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
18394         would cause a false-positive.
18395
18396         avoid coreutils "make distcheck" failure
18397         Coreutils tests with an absolute build directory name that contains
18398         a space.  Not quoting this directory name caused a failure.
18399         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
18400         * tests/test-vc-list-files-cvs.sh: Likewise.
18401
18402 2010-09-04  Bruno Haible  <bruno@clisp.org>
18403
18404         gnulib-tool: Avoid error when run in a package without Makefile.am.
18405         * gnulib-tool: When collecting the m4dirs in a package that does not
18406         have a Makefile.am, eliminate those directories that contain no
18407         gnulib-cache.m4. Fix expression that counts these directories.
18408
18409 2010-09-04  Bruno Haible  <bruno@clisp.org>
18410
18411         update-copyright test: Improve output when perl is missing or too old.
18412         * tests/test-update-copyright.sh: Move test of Perl version down after
18413         the test whether Perl exists. Provide an explanation relating Perl's
18414         error message to Automake's SKIP: message.
18415
18416 2010-09-04  Bruno Haible  <bruno@clisp.org>
18417
18418         Don't augment PATH in TESTS_ENVIRONMENT.
18419         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
18420         set abs_aux_dir instead of augmenting PATH.
18421         * modules/vc-list-files-tests (Makefile.am): Likewise.
18422         * tests/test-update-copyright.sh: Augment PATH here.
18423         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
18424         path_prepend_.
18425         * tests/test-vc-list-files-git.sh: Likewise.
18426
18427 2010-09-04  Jim Meyering  <meyering@redhat.com>
18428
18429         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
18430         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
18431
18432 2010-09-04  Bruno Haible  <bruno@clisp.org>
18433
18434         strdup: Fix compilation error in C++ mode.
18435         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
18436         the macro.
18437
18438 2010-09-04  Bruno Haible  <bruno@clisp.org>
18439
18440         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
18441         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
18442         macro into a function.
18443         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18444
18445 2010-09-04  Bruno Haible  <bruno@clisp.org>
18446
18447         Set PATH_SEPARATOR the same way autoconf does.
18448         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
18449         the value of PATH_SEPARATOR the same way autoconf-generated configure
18450         scripts do.
18451         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
18452         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
18453
18454 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18455
18456         Set PATH_SEPARATOR the same way autoconf does.
18457         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
18458         the same way autoconf-generated configure scripts do.
18459         * posix-modules: Likewise.
18460
18461 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18462
18463         hash: fix safe_hasher const typo
18464         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
18465         const; otherwise, there is a type error later.
18466
18467 2010-09-02  Jim Meyering  <meyering@redhat.com>
18468
18469         test-update-copyright.sh: require perl 5.8.0
18470         * tests/test-update-copyright.sh: Require 5.8.0,
18471         which Tom G. Christensen has confirmed is adequate,
18472         while 5.6.1 is not.
18473
18474 2010-09-02  Eric Blake  <eblake@redhat.com>
18475
18476         tests: init.sh improvements for re-exec'ing with zsh
18477         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
18478         -vx through shell re-exec.
18479         Reported by Tom G. Christensen.
18480
18481         wctype: fix typo in previous commit
18482         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
18483         Reported by Ludovic Courtès.
18484
18485 2010-09-02  Jim Meyering  <meyering@redhat.com>
18486
18487         test-update-copyright.sh: skip test if Perl is too old
18488         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
18489         Reported by Tom G. Christensen.
18490
18491 2010-09-02  Bruno Haible  <bruno@clisp.org>
18492
18493         wctype: Avoid compilation error on IRIX 6.5.30.
18494         * lib/wctype.in.h (iswblank): Declare with a replacement if
18495         REPLACE_ISWBLANK is set.
18496         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
18497         declared. Set REPLACE_ISWBLANK.
18498         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
18499         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
18500         * doc/posix-headers/wctype.texi: Likewise.
18501         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18502
18503 2010-09-01  Bruno Haible  <bruno@clisp.org>
18504
18505         New module 'socketlib'.
18506         * modules/socketlib: New file.
18507         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
18508         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
18509         * modules/sockets (Depends-on): Add socketlib.
18510         Suggested by Sam Steingold <sds@gnu.org>.
18511
18512 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18513
18514         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
18515
18516         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
18517         when one needs search access to a directory but not read access.
18518         On systems where it is available, it works in some cases where
18519         O_RDONLY does not, namely on directories that are searchable but
18520         not readable, and which need only to be searchable.  If O_SEARCH
18521         is not available, fall back to the traditional method of using
18522         O_RDONLY.
18523
18524         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
18525         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
18526         when opening a directory that needs only to be searchable.
18527         * lib/chdir-safer.c (chdir_no_follow): Likewise.
18528         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
18529         * lib/openat-proc.c (openat_proc_name): Likewise.
18530         * lib/openat.c (openat_needs_fchdir): Likewise.
18531         * lib/save-cwd.c (save_cwd): Likewise.
18532         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
18533
18534 2010-08-28  Bruno Haible  <bruno@clisp.org>
18535
18536         New module 'host-cpu-c-abi'.
18537         * modules/host-cpu-c-abi: New file.
18538         * m4/host-cpu-c-abi.m4: New file, based on part of
18539         clisp/src/m4/general.m4.
18540         Requested by Sam Steingold <sds@gnu.org>.
18541
18542 2010-08-31  Eric Blake  <eblake@redhat.com>
18543         and Jim Meyering  <meyering@redhat.com>
18544
18545         hash: factor, and guard against misbehaving hasher function
18546         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
18547         of table->hasher's return value.  Also protect against a hash value
18548         so large that adding it to table->bucket results in a NULL pointer.
18549         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
18550         Use it in place of open-coded check-and-abort.
18551
18552 2010-08-30  Bruno Haible  <bruno@clisp.org>
18553
18554         hash: silence spurious clang warning
18555         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
18556         Reported by Eric Blake.
18557
18558 2010-08-30  Eric Blake  <eblake@redhat.com>
18559
18560         strstr, memmem, strcasestr: avoid leaked shell message
18561         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
18562         FreeBSD.
18563         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18564         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18565
18566         tests: silence clang warning
18567         * tests/test-malloca.c (do_allocation): Avoid dead store.
18568
18569 2010-08-29  Bruno Haible  <bruno@clisp.org>
18570
18571         gettext: Fix recent mistake.
18572         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
18573
18574 2010-08-29  Bruno Haible  <bruno@clisp.org>
18575
18576         selinux-h: Offer a --without-selinux option.
18577         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
18578         --without-selinux was specified, skip all tests and define
18579         HAVE_SELINUX_SELINUX_H to 0.
18580         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
18581         set LIB_SELINUX to empty.
18582         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
18583         gl_LIBSELINUX. If --without-selinux was specified, replace
18584         selinux/context.h.
18585         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
18586
18587 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18588             Bruno Haible  <bruno@clisp.org>
18589
18590         Make the module 'realloc-gnu' work again on AIX and OSF/1.
18591         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
18592         of HAVE_REALLOC.
18593         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
18594         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
18595         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
18596         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
18597
18598 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18599             Bruno Haible  <bruno@clisp.org>
18600
18601         Make the module 'calloc-gnu' work again on AIX and OSF/1.
18602         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
18603         HAVE_CALLOC.
18604         * lib/xmalloc.c: Update accordingly.
18605         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
18606         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
18607         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
18608
18609 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18610             Bruno Haible  <bruno@clisp.org>
18611
18612         Make the module 'malloc-gnu' work again on AIX and OSF/1.
18613         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
18614         HAVE_MALLOC.
18615         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
18616         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
18617         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
18618
18619 2010-08-29  Bruno Haible  <bruno@clisp.org>
18620
18621         Update modules list.
18622         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
18623         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
18624         (String handling <string.h>): Add astrxfrm.
18625         (File system functions): Add readlinkat.
18626
18627 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18628
18629         Tests for module 'realloc-gnu'.
18630         * modules/realloc-gnu-tests: New file.
18631         * tests/test-realloc-gnu.c: New file.
18632
18633         Tests for module 'calloc-gnu'.
18634         * modules/calloc-gnu-tests: New file.
18635         * tests/test-calloc-gnu.c: New file.
18636
18637         Tests for module 'malloc-gnu'.
18638         * modules/malloc-gnu-tests: New file.
18639         * tests/test-malloc-gnu.c: New file.
18640
18641 2010-08-28  Bruno Haible  <bruno@clisp.org>
18642
18643         Rename module 'realloc' -> 'realloc-gnu'.
18644         * modules/realloc-gnu: New file, copied from modules/realloc.
18645         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
18646         obsolete.
18647         * modules/mgetgroups (Depends-on): Update.
18648         * doc/posix-functions/realloc.texi: Update.
18649         * NEWS: Mention the change.
18650
18651         Rename module 'calloc' -> 'calloc-gnu'.
18652         * modules/calloc-gnu: New file, copied from modules/calloc.
18653         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
18654         obsolete.
18655         * doc/posix-functions/calloc.texi: Update.
18656         * NEWS: Mention the change.
18657
18658         Rename module 'malloc' -> 'malloc-gnu'.
18659         * modules/malloc-gnu: New file, copied from modules/malloc.
18660         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
18661         obsolete.
18662         * modules/argp (Depends-on): Update.
18663         * modules/regex (Depends-on): Update.
18664         * doc/posix-functions/malloc.texi: Update.
18665         * NEWS: Mention the change.
18666
18667 2010-08-28  Eric Blake  <eblake@redhat.com>
18668
18669         pread, pwrite: add missing dependency
18670         * modules/pread (Depends-on): Add extensions.
18671         * modules/pwrite (Depends-on): Likewise.
18672
18673 2010-08-28  Bruno Haible  <bruno@clisp.org>
18674
18675         unistr/u*-strchr: Fix tests dependencies.
18676         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
18677         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
18678         Reported by Ian Beckwith <ianb@erislabs.net>.
18679
18680 2010-08-28  Bruno Haible  <bruno@clisp.org>
18681
18682         read-file: Don't occupy too much unused memory.
18683         * lib/read-file.c (fread_file): Shrink the buffer at the end.
18684
18685 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
18686             Eric Blake  <eblake@redhat.com>
18687             Bruno Haible  <bruno@clisp.org>
18688
18689         read-file: Avoid memory reallocations with regular files.
18690         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
18691         (fread_file): With regular files, use the remaining length as the
18692         initial buffer size.  Check against overflow.
18693         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
18694         sys_stat.
18695
18696 2010-08-28  Bruno Haible  <bruno@clisp.org>
18697
18698         ftello: Relax license.
18699         * modules/ftello (License): Relax to LGPLv2+.
18700         Reported by Eric Blake.
18701
18702 2010-08-28  Bruno Haible  <bruno@clisp.org>
18703
18704         Avoid relocwrapper link errors due to gnulib replacement functions.
18705         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
18706         function.
18707         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18708
18709 2010-08-28  Bruno Haible  <bruno@clisp.org>
18710
18711         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
18712         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
18713         defined.
18714         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
18715         Suggested by Eric Blake.
18716
18717 2010-08-28  Bruno Haible  <bruno@clisp.org>
18718
18719         sys_socket, netdb: Ensure socklen_t gets defined.
18720         * modules/sys_socket (Depends-on): Add socklen.
18721         * modules/netdb (Depends-on): Likewise.
18722         * modules/getaddrinfo (Depends-on): Remove socklen.
18723         * modules/getsockopt (Depends-on): Likewise.
18724         * modules/setsockopt (Depends-on): Likewise.
18725         * tests/test-sys_socket.c: Check that socklen_t is defined.
18726         * tests/test-netdb.c: Likewise.
18727         * m4/socklen.m4: Update comments.
18728         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18729
18730 2010-08-27  Eric Blake  <eblake@redhat.com>
18731
18732         login_tty: add missing dependency
18733         * modules/login_tty (Depends-on): Add pty.
18734
18735 2010-08-26  Eric Blake  <eblake@redhat.com>
18736
18737         lib-symbol-versions: fix m4 quoting
18738         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
18739         format for AC_LINK_IFELSE.
18740
18741         glob: fix compile test
18742         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
18743
18744         btowc: fix missing file
18745         * modules/btowc (Files): Also ship locale-fr.m4.
18746
18747         lseek: fix link test
18748         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
18749         AC_LINK_IFELSE.
18750
18751         include_next: silence autoconf 2.68 warning
18752         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
18753         AC_COMPILE_IFELSE as special.
18754         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
18755         autoconf < 2.68.
18756
18757         acl: fix compilation test
18758         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
18759         AC_COMPILE_IFELSE.
18760
18761 2010-08-26  Bruno Haible  <bruno@clisp.org>
18762
18763         Modernize AC_TRY_RUN invocations.
18764         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
18765         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18766         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
18767         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
18768         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
18769         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
18770         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18771         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18772         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18773         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18774         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18775         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18776         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18777         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18778         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18779         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18780         gl_MBRLEN_NUL_RETVAL): Likewise.
18781         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18782         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
18783         Likewise.
18784         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18785         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18786         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18787         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18788         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
18789         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
18790         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
18791         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
18792         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
18793         Likewise.
18794         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
18795         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
18796         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18797         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18798         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18799         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18800         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18801         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
18802         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18803         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18804
18805 2010-08-26  Bruno Haible  <bruno@clisp.org>
18806
18807         Modernize AC_TRY_LINK invocations.
18808         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
18809         AC_TRY_LINK.
18810         * m4/argp.m4 (gl_ARGP): Likewise.
18811         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
18812         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18813         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
18814         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
18815         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
18816         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
18817         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
18818         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
18819         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
18820         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
18821         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
18822         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
18823         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
18824         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18825         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
18826         * m4/hostent.m4 (gl_HOSTENT): Likewise.
18827         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18828         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
18829         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
18830         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
18831         Likewise.
18832         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
18833         Likewise.
18834         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
18835         Likewise.
18836         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
18837         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
18838         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
18839         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
18840         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
18841         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18842         * m4/servent.m4 (gl_SERVENT): Likewise.
18843         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
18844         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
18845         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
18846         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
18847         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18848         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
18849         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
18850         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18851         * modules/tsearch-tests (configure.ac): Likewise.
18852
18853 2010-08-26  Bruno Haible  <bruno@clisp.org>
18854
18855         Modernize AC_TRY_COMPILE invocations.
18856         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
18857         AC_TRY_COMPILE.
18858         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
18859         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
18860         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18861         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
18862         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18863         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18864         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18865         * m4/lock.m4 (gl_LOCK): Likewise.
18866         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
18867         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18868         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
18869         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
18870         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18871         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
18872         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
18873         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
18874         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18875         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18876         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18877         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18878         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
18879         extraneous semicolon.
18880
18881 2010-08-26  Jim Meyering  <meyering@redhat.com>
18882
18883         stat-time: relax license LGPL
18884         * modules/stat-time (License): Change from GPL to LGPL,
18885         with consent from all contributors, for use in libguile.
18886         Requested by Ludovic Courtès.
18887
18888 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
18889
18890         poll: return immediately on POLLHUP.
18891         * lib/poll.c (poll): Always set timeout before wait_timeout is
18892         computed.
18893
18894 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18895
18896         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
18897         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
18898         rmdir ("dir/.//"), unlinkat.
18899
18900 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18901
18902         stdbool: avoid spurious failure with modern xlc
18903         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
18904
18905 2010-08-24  Bruno Haible  <bruno@clisp.org>
18906
18907         getloadavg: simplify code
18908         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
18909         gl_have_func. Update comments.
18910
18911 2010-08-24  Eric Blake  <eblake@redhat.com>
18912
18913         getloadavg: don't define SVR4 on cygwin
18914         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
18915         only define SVR4 when -lkvm is required.
18916         Reported by Yaakov Selkowitz.
18917
18918 2010-08-24  Bruno Haible  <bruno@clisp.org>
18919
18920         priv-set: fix comment
18921         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
18922
18923 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18924
18925         priv-set: fix comments
18926         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
18927         to match code, as suggested by David Bartley in:
18928         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
18929
18930 2010-08-23  Eric Blake  <eblake@redhat.com>
18931
18932         stdbool: avoid rejecting clang
18933         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
18934         * tests/test-stdbool.c: Enable more tests if using the system
18935         <stdbool.h> instead of the gnulib replacement.
18936         (main): Move xlc bug test to a runtime test for all compilers.
18937         Reported by Anders Kaseorg.
18938
18939         argz: fix shell quoting issue
18940         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
18941         Reported by Charles Wilson.
18942
18943 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
18944             Erik Faye-Lund <kusmabite@gmail.com>
18945
18946         poll, select: handle ERROR_BROKEN_PIPE.
18947         * lib/poll.c (win32_compute_revents): Return POLLHUP when
18948         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
18949         * lib/select.c (win32_compute_revents): Do not mark a pipe
18950         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
18951
18952 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
18953
18954         fts: allow compilation with C++
18955         * lib/fts_.h: Specify extern "C" linkage with C++.
18956
18957 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18958
18959         Fix gnulib-tool sed script de-commentation for AIX sed.
18960         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
18961         sed.
18962
18963 2010-08-17  Eric Blake  <eblake@redhat.com>
18964
18965         test-stddef: test for (some) offsetof bugs
18966         * tests/test-stddef.c: Enhance test to ensure correct type of
18967         offsetof.
18968         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
18969         that we are not fixing at this time.
18970
18971 2010-08-15  Bruno Haible  <bruno@clisp.org>
18972
18973         stpncpy: Allow stpncpy to be defined as a macro.
18974         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
18975         if it's already correctly declared.
18976         * lib/string.in.h (stpncpy): Undefine before redefining.
18977         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
18978
18979 2010-08-14  Bruno Haible  <bruno@clisp.org>
18980
18981         Rename module 'memxfrm' to 'amemxfrm'.
18982         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
18983         (amemxfrm): Renamed from memxfrm.
18984         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
18985         (amemxfrm): Renamed from memxfrm.
18986         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
18987         * NEWS: Mention the change.
18988         * MODULES.html.sh (String handling <string.h>): Update.
18989         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
18990         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
18991         * lib/unicase/u16-casexfrm.c: Likewise.
18992         * lib/unicase/u32-casexfrm.c: Likewise.
18993         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
18994         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
18995         * lib/uninorm/u16-normxfrm.c: Likewise.
18996         * lib/uninorm/u32-normxfrm.c: Likewise.
18997         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
18998         memxfrm.
18999         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
19000         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
19001         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
19002         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
19003         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
19004         Suggested by Paul Eggert.
19005
19006 2010-08-14  Bruno Haible  <bruno@clisp.org>
19007
19008         Tests for module 'astrxfrm'.
19009         * modules/astrxfrm-tests: New file.
19010         * tests/test-astrxfrm.c: New file.
19011
19012         New module 'astrxfrm'.
19013         * lib/astrxfrm.h: New file.
19014         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
19015         * modules/astrxfrm: New file.
19016
19017 2010-08-14  Reuben Thomas <rrt@sc3d.org>
19018
19019         regex: Tweak doc.
19020         * doc/regex.texi (Overview): Don't mention regex.c.
19021         (GNU Regular Expression Compiling): Likewise.
19022         (Match-end-of-line Operator): Mention 'not_eol'.
19023
19024 2010-08-14  Brian Gough  <bjg@gnu.org>
19025             Bruno Haible  <bruno@clisp.org>
19026
19027         git-merge-changelog: add doc relating to use with bzr and hg.
19028         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
19029
19030 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
19031
19032         pthread: fix pthread.h creation for srcdir != builddir
19033         * modules/pthread (Makefile.am): Fix the rule to work also in a
19034         non-srcdir build.
19035
19036 2010-08-13  Karl Berry  <karl@gnu.org>
19037
19038         * doc/regex.texi (Predefined Syntaxes): @smallexample.
19039         * doc/posix-*/*: force line break before @url of POSIX
19040         specifications.
19041         Suggested by Werner Lemberg.
19042
19043 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19044
19045         strtod: fix const diagnostic
19046         * lib/strtod.c (strtod): Don't assign const char * to char *,
19047         as this elicits a warning from GCC when warnings are enabled.
19048
19049 2010-08-10  Pádraig Brady <P@draigbrady.com>
19050         and Eric Blake  <eblake@redhat.com>
19051
19052         copy-acl: ignore ENOTSUP on HP-UX
19053         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
19054         so that it is available for HP-UX.
19055         * lib/copy-acl.c (qcopy_acl): Use it.
19056         Reported by Patrick M. Callahan.
19057
19058 2010-08-10  Eric Blake  <eblake@redhat.com>
19059
19060         open, chown: relax license
19061         * modules/open (License): Change to LGPLv2+, with consent by all
19062         authors, for use in augeas.
19063         * modules/chown (License): Likewise.
19064         * modules/lchown (Likewise): Likewise.
19065         Requested by Adam Stokes.
19066
19067 2010-08-09  Karl Berry  <karl@gnu.org>
19068
19069         * build-aux/ar-lib: new file, import from Automake.
19070         * config/srclist.txt: autocheck for updates.
19071
19072 2010-08-09  Eric Blake  <eblake@redhat.com>
19073
19074         readlinkat: adjust client modules
19075         * modules/areadlinkat (Depends-on): Use readlinkat, not
19076         symlinkat.
19077         * modules/areadlinkat-with-size (Depends-on): Likewise.
19078
19079         mknod: be more vocal about danger of running tests as root
19080         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
19081         root, since that is just asking for problems.
19082         Suggested by Bruno Haible, based on a report by Rainer Tammer.
19083
19084         readlinkat: split into its own module
19085         * modules/symlinkat: Split readlinkat...
19086         * modules/readlinkat: ...into separate module.
19087         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
19088         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
19089         * lib/symlinkat.c (readlinkat): Move...
19090         * lib/readlinkat.c: ...into new file.
19091         * modules/symlinkat-tests: Split readlinkat test...
19092         * modules/readlinkat-tests: ...into separate module.
19093         * tests/test-symlinkat.c: Split...
19094         * tests/test-readlinkat.c: ...into new file.
19095         * NEWS: Document the split.
19096         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19097         * lib/unistd.in.h (readlinkat): Likewise.
19098         Suggested by Bruno Haible.
19099
19100 2010-08-08  Bruno Haible  <bruno@clisp.org>
19101
19102         memxfrm: Speed up.
19103         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
19104         that usually only one call to strxfrm is necessary for each string
19105         part.
19106         Reported by Paul Eggert <eggert@cs.ucla.edu>.
19107
19108 2010-08-07  Karl Berry  <karl@gnu.org>
19109
19110         * doc/posix-headers/limits.texi,
19111         * doc/posix-functions/malloc.texi,
19112         * doc/posix-functions/strsignal.texi: missing @item.
19113         * doc/ld-version-script.texi: spurious leading i.
19114         * doc/regex.texi (Interval Operators): no commas inside @var.
19115
19116 2010-08-01  Bruno Haible  <bruno@clisp.org>
19117
19118         Integrate the regex documentation.
19119         * doc/gnulib.texi: Define 'cn' index.
19120         (Regular expressions): New a chapter that includes regex.texi and
19121         regexprops-generic.texi.
19122         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
19123         syntax.
19124
19125         Whitespace cleanup.
19126         * doc/regex.texi: Remove trailing spaces.
19127
19128         Add regex documentation.
19129         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
19130         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
19131         Written by Kathy A. Hargreaves and Karl Berry.
19132
19133 2010-08-01  Bruno Haible  <bruno@clisp.org>
19134
19135         link: Update documentation.
19136         * doc/posix-functions/link.texi: Update regarding Solaris.
19137
19138 2010-07-31  Bruno Haible  <bruno@clisp.org>
19139
19140         Update modules list.
19141         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
19142         (String handling <string.h>): Add memcmp2, memxfrm.
19143         (Container data structures): Add xlist, xsublist, xoset.
19144         (Core language properties): Add alignof, unused-parameter.
19145         (Process control, Numeric conversion functions <stdlib.h>): Renamed
19146         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
19147         (Unibyte characters <ctype.h>): New section.
19148         (String handling <string.h>): New section.
19149         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
19150         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
19151         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
19152         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
19153         tan, tanh, tanl, y0, y1, yn.
19154         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
19155         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
19156         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
19157         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
19158         unlockpt, vdprintf, vdprintf-posix.
19159         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
19160         (File system functions): Add concat-filename, sys_file, sys_ioctl,
19161         xconcat-filename.
19162         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
19163         getdtablesize, pipe2, pipe2-safer.
19164         (Security): New section.
19165         (Networking functions): Add accept4.
19166         (Signal handling): Add sigpipe.
19167         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
19168         mbmemcasecoll.
19169         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
19170         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
19171         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
19172         pipe-filter-ii.
19173         (Misc): Add argp-version-etc, login_tty, parse-duration.
19174
19175 2010-07-31  Bruno Haible  <bruno@clisp.org>
19176
19177         Improve doc in MODULES.html.
19178         * modules/linkat (Description): Add the word "function".
19179         * modules/mkfifo (Description): Likewise.
19180         * modules/mknod (Description): Likewise.
19181         * modules/remove (Description): Likewise.
19182         * modules/renameat (Description): Likewise.
19183         * modules/stat (Description): Likewise.
19184         * modules/symlink (Description): Likewise.
19185         * modules/unlink (Description): Likewise.
19186
19187 2010-07-31  Bruno Haible  <bruno@clisp.org>
19188
19189         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
19190         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
19191         option --enable/disable-c++ instead of --enable/disable-cxx.
19192         * NEWS: Mention the change.
19193
19194 2010-07-31  Bruno Haible  <bruno@clisp.org>
19195
19196         readlink, areadlink: Relax test a bit.
19197         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
19198         alternative to ENOTDIR.
19199         * tests/test-areadlink.h (test_areadlink): Likewise.
19200         Reported by Rainer Tammer.
19201
19202 2010-07-31  Bruno Haible  <bruno@clisp.org>
19203
19204         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
19205         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
19206         character, perform the search using U_STRCHR.
19207         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
19208         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
19209         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
19210         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
19211         Suggested by Paolo Bonzini.
19212
19213 2010-07-31  Bruno Haible  <bruno@clisp.org>
19214
19215         unistr/u*-strstr: Fix dependencies.
19216         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
19217         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
19218         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
19219
19220 2010-07-31  Bruno Haible  <bruno@clisp.org>
19221
19222         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
19223         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
19224         the beginning of the loop.
19225         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
19226         cases in 'switch' statement.
19227
19228         unistr/u8-strchr: Fix several bugs.
19229         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
19230         the string. When not found, return NULL, not a pointer near the end.
19231
19232         More tests for unistr/u8-strchr.
19233         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
19234         that the function does not read past the first occurrence of the byte
19235         being searched.
19236         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
19237         * tests/unistr/test-u16-strchr.c (main): New function.
19238         * tests/unistr/test-u32-strchr.c (main): New function.
19239
19240 2010-07-31  Bruno Haible  <bruno@clisp.org>
19241
19242         posix-modules: Ignore backup files of documentation files.
19243         * posix-modules: grep only through files named *.texi.
19244
19245 2010-07-31  Bruno Haible  <bruno@clisp.org>
19246
19247         symlinkat: Fix documentation.
19248         * doc/posix-functions/readlinkat.texi: Fix module name.
19249
19250 2010-07-31  Bruno Haible  <bruno@clisp.org>
19251
19252         fchownat: Replace also when chown has the trailing slash bug.
19253         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
19254         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
19255         introduced on 2010-04-10.
19256         Reported by Rainer Tammer.
19257
19258 2010-07-31  Bruno Haible  <bruno@clisp.org>
19259
19260         linkat: Work around AIX 7.1 bug.
19261         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
19262         whether linkat handles trailing slash correctly. If not, replace linkat
19263         and define LINKAT_TRAILING_SLASH_BUG.
19264         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
19265         check whether (fd1,file1) points to a directory if file1 or file2 ends
19266         in a slash. Code taken from lib/link.c.
19267         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
19268         Reported by Rainer Tammer.
19269
19270 2010-07-31  Bruno Haible  <bruno@clisp.org>
19271
19272         Correctly determine whether pow is available in libc on AIX 7 with xlc.
19273         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
19274         This disables an xlc optimization that was causing wrong test results.
19275         Reported by Rainer Tammer.
19276
19277 2010-07-31  Bruno Haible  <bruno@clisp.org>
19278
19279         iconv: Work around AIX 6.1..7.1 bug.
19280         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
19281         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
19282         cross-compiling, guess no on all versions of AIX.
19283         Reported by Rainer Tammer.
19284
19285 2010-07-31  Bruno Haible  <bruno@clisp.org>
19286
19287         readlink: Relax test a bit.
19288         * tests/test-readlink.h (test_readlink): Allow different errno value
19289         when readlink is called with a file name that ends in / and refers to
19290         a file.
19291         Suggested by Eric Blake.
19292         Reported by Rainer Tammer.
19293
19294 2010-07-31  Bruno Haible  <bruno@clisp.org>
19295
19296         copysign: Does not require -lm on glibc systems.
19297         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
19298         gl_COMMON_DOUBLE_MATHFUNC.
19299         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
19300
19301 2010-07-31  Bruno Haible  <bruno@clisp.org>
19302
19303         duplocale: Work around AIX 7.1 bug.
19304         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
19305         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
19306         * lib/duplocale.c (rpl_duplocale): Update comment.
19307         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
19308         Reported by Rainer Tammer.
19309
19310 2010-07-30  Bruno Haible  <bruno@clisp.org>
19311
19312         dirfd: Avoid link error on AIX 7.1.
19313         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
19314         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
19315         exist, set REPLACE_DIRFD.
19316         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
19317         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
19318         * doc/posix-functions/dirfd.texi: Update.
19319         Reported by Rainer Tammer.
19320
19321 2010-07-30  Eric Blake  <eblake@redhat.com>
19322
19323         strtod: next round of AIX fixes
19324         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
19325         exponent.
19326         * tests/test-strtod.c (main): Enhance tests.
19327         * doc/posix-functions/strtod.texi (strtod): Document next bug.
19328         Reported by Rainer Tammer.
19329
19330         futimens: fix configure check
19331         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
19332         Reported by Bruno Haible.
19333
19334 2010-07-30  Bruno Haible  <bruno@clisp.org>
19335
19336         getline: Update regarding AIX.
19337         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
19338         Reported by Rainer Tammer.
19339
19340 2010-07-30  Bruno Haible  <bruno@clisp.org>
19341
19342         wcwidth: Drop replacement on AIX 7.
19343         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
19344         AIX 7.
19345         Reported by Rainer Tammer.
19346
19347 2010-07-30  Bruno Haible  <bruno@clisp.org>
19348
19349         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
19350         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
19351         a 'char *'.
19352         Reported by Rainer Tammer.
19353
19354 2010-07-30  Bruno Haible  <bruno@clisp.org>
19355
19356         unlink: Update regarding AIX.
19357         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
19358         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
19359         Reported by Rainer Tammer.
19360
19361 2010-07-30  Bruno Haible  <bruno@clisp.org>
19362
19363         symlink: Update regarding AIX.
19364         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
19365         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
19366         Reported by Rainer Tammer.
19367
19368 2010-07-30  Bruno Haible  <bruno@clisp.org>
19369
19370         strndup: Update regarding AIX.
19371         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
19372         AIX 7.
19373         Reported by Rainer Tammer.
19374
19375 2010-07-30  Bruno Haible  <bruno@clisp.org>
19376
19377         stat: Update regarding AIX.
19378         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
19379         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
19380         Reported by Rainer Tammer.
19381
19382 2010-07-30  Bruno Haible  <bruno@clisp.org>
19383
19384         truncl: Fix autoconf test.
19385         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
19386         whether truncl works.
19387         Reported by Rainer Tammer.
19388
19389 2010-07-30  Bruno Haible  <bruno@clisp.org>
19390
19391         round: Update regarding AIX.
19392         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
19393         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
19394         Reported by Rainer Tammer.
19395
19396 2010-07-30  Bruno Haible  <bruno@clisp.org>
19397
19398         rename: Update regarding AIX.
19399         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
19400         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
19401         Reported by Rainer Tammer.
19402
19403 2010-07-30  Bruno Haible  <bruno@clisp.org>
19404
19405         printf.m4: Update regarding AIX.
19406         * m4/printf.m4: Update comments regarding AIX.
19407         Reported by Rainer Tammer.
19408
19409 2010-07-30  Bruno Haible  <bruno@clisp.org>
19410
19411         iconv: Update regarding AIX.
19412         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
19413         AIX 7.
19414         Reported by Rainer Tammer.
19415
19416 2010-07-30  Bruno Haible  <bruno@clisp.org>
19417
19418         getopt: Update regarding AIX.
19419         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
19420         no on AIX.
19421         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
19422         Reported by Rainer Tammer.
19423
19424 2010-07-30  Bruno Haible  <bruno@clisp.org>
19425
19426         ldexpl; Update regarding AIX.
19427         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
19428         on AIX 7.
19429         Reported by Rainer Tammer.
19430
19431 2010-07-30  Bruno Haible  <bruno@clisp.org>
19432
19433         frexpl: Update regarding AIX.
19434         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
19435         on AIX 7.
19436         Reported by Rainer Tammer.
19437
19438 2010-07-30  Bruno Haible  <bruno@clisp.org>
19439
19440         open, fopen: Update regarding AIX.
19441         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
19442         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
19443         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
19444         * doc/posix-functions/fopen.texi: Likewise.
19445         Reported by Rainer Tammer.
19446
19447 2010-07-30  Bruno Haible  <bruno@clisp.org>
19448
19449         chown: Update doc regarding AIX.
19450         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
19451         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
19452         Reported by Rainer Tammer.
19453
19454 2010-07-30  Eric Blake  <eblake@redhat.com>
19455
19456         strtod: fix bug in replacement function on AIX
19457         * lib/strtod.c (strtod): Special case broken "0x" parse in
19458         underlying strtod.
19459         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
19460         * doc/posix-functions/strtod.texi (strtod): Likewise.
19461         Reported by Rainer Tammer.
19462
19463 2010-07-30  Bruno Haible  <bruno@clisp.org>
19464
19465         mbrlen: Fix cross-compilation guess for AIX.
19466         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
19467         guess. Leftover from 2008-12-22.
19468
19469 2010-07-30  Bruno Haible  <bruno@clisp.org>
19470
19471         mbrtowc: Fix cross-compilation guess for AIX.
19472         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
19473         guess. Leftover from 2008-12-21.
19474
19475 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
19476
19477         init.sh: work around trap limitation of some shells
19478         * tests/init.sh (setup_): Move exit trap outside of shell function.
19479
19480 2010-07-29  Eric Blake  <eblake@redhat.com>
19481
19482         strtod: aid debugging
19483         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
19484         understanding why strtod is rejected.
19485
19486 2010-07-28  Bruno Haible  <bruno@clisp.org>
19487
19488         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
19489         * lib/unistr/u8-chr.c: Include <string.h>.
19490         * tests/unistr/test-u8-chr.c: Likewise.
19491         * tests/unistr/test-u16-chr.c: Likewise.
19492         * tests/unistr/test-u32-chr.c: Likewise.
19493         * tests/unistr/test-u8-strchr.c: Likewise.
19494         * tests/unistr/test-u16-strchr.c: Likewise.
19495         * tests/unistr/test-u32-strchr.c: Likewise.
19496         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
19497         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
19498         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
19499         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
19500
19501 2010-07-28  Bruno Haible  <bruno@clisp.org>
19502
19503         Use spaces for indentation, not tabs.
19504         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
19505
19506 2010-07-27  Bruno Haible  <bruno@clisp.org>
19507
19508         mbspcasecmp: Fix function specification.
19509         * lib/string.in.h (mbspcasecmp): Fix specification comment.
19510         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
19511         Reported by Eric Blake <eblake@redhat.com>.
19512
19513 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
19514
19515         timespec: use cast and not conditional, as truncation isn't possible
19516         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
19517         instead of a conditional.  Comment about the situation in more detail.
19518         This undoes most of the 2009-10-29 patch.
19519
19520 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
19521
19522         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
19523         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
19524         * lib/unistr/u8-strchr.c: Likewise.
19525         * modules/unistr/u8-chr: Depend on memchr.
19526
19527         unistr/u*-strchr: add tests
19528         * modules/unistr/u8-strchr-tests: New file.
19529         * modules/unistr/u16-strchr-tests: New file.
19530         * modules/unistr/u32-strchr-tests: New file.
19531         * tests/unistr/test-strchr.h: New file.
19532         * tests/unistr/test-u8-strchr.c: New file.
19533         * tests/unistr/test-u16-strchr.c: New file.
19534         * tests/unistr/test-u32-strchr.c: New file.
19535
19536         unistr/u*-chr: test multibyte sequences more
19537         * tests/unistr/test-chr.h: Do complete testing of the characters in the
19538         test vector.
19539         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
19540         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
19541         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
19542
19543         unistr/u*-chr: test multibyte sequences
19544         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
19545
19546         unistr/u*-chr: prepare for multibyte tests
19547         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
19548         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
19549         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
19550         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
19551         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
19552         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
19553
19554 2010-07-18  Bruno Haible  <bruno@clisp.org>
19555
19556         unistr/u8-strchr: Optimize non-ASCII argument case.
19557         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
19558         because the first byte often matches anyway.
19559         Reported by Pádraig Brady <P@draigbrady.com>.
19560
19561 2010-07-15  Karl Berry  <karl@gnu.org>
19562
19563         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
19564
19565 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
19566
19567         getcwd: on Solaris, work better if ancestors are inaccessible
19568         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
19569         buffer and size, try again with a large buffer.  This works better
19570         on Solaris, since its getcwd succeeds even if the path to the root
19571         is inaccessible, and this is helpful in common cases such as .zfs
19572         hidden directories.  Problem reported by J Chapman Flack in
19573         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
19574         Use system getcwd if it's declared, not merely if it's partly
19575         working; use the partly-working test only to avoid needless effort
19576         if the system getcwd fails.
19577         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
19578         comment that was already obsolete and is now even more obsolete.
19579         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
19580         now might call strdup.
19581
19582 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
19583
19584         pthread: Add enough so that coreutils/src/sort.c compiles.
19585         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
19586         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
19587         gnulib. Include <sched.h> and <time.h>, as per POSIX.
19588         Include <sys/types.h>, in case it defines pthread_t.
19589         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
19590         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
19591         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
19592         (pthread_rwlockattr_t, pthread_spinlock_t):
19593         New typedefs, if HAVE_PTHREAD_T is not defined.
19594         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
19595         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
19596         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
19597         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
19598         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
19599         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
19600         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
19601         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
19602         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
19603         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
19604         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
19605         New macros.
19606         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
19607         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
19608         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
19609         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
19610         (pthread_spin_unlock): New dummy functions.
19611         (pthread_create): Return EAGAIN; don't set errno.
19612         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
19613         require AC_C_INLINE.
19614         * modules/pthread (Depends-on): Add sched, time.
19615         (pthread.h): Use AM_V_GEN.
19616
19617 2010-07-13  Bruno Haible  <bruno@clisp.org>
19618
19619         striconveh: Don't malloc memory if the result buffer is sufficient.
19620         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
19621         buffer if its size is sufficient.
19622         Reported by Ludovic Courtès <ludo@gnu.org>.
19623
19624 2010-07-13  Bruno Haible  <bruno@clisp.org>
19625
19626         strtod: Add safety check.
19627         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
19628
19629 2010-07-12  Bruno Haible  <bruno@clisp.org>
19630
19631         Unify tests that set gl_cv_func_ldexpl_no_libm.
19632         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
19633         gl_FUNC_LDEXPL.
19634         (gl_FUNC_LDEXPL): Invoke it.
19635         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
19636
19637 2010-07-12  Bruno Haible  <bruno@clisp.org>
19638
19639         Unify tests that set gl_cv_func_ldexp_no_libm.
19640         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
19641         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
19642         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
19643         (configure.ac): Simply invoke gl_FUNC_LDEXP.
19644         * modules/strtod (Files): Add m4/ldexp.m4.
19645
19646 2010-07-12  Bruno Haible  <bruno@clisp.org>
19647
19648         Unify tests that set gl_cv_func_frexpl_no_libm.
19649         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
19650         gl_FUNC_FREXPL_NO_LIBM.
19651         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
19652         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
19653
19654 2010-07-12  Bruno Haible  <bruno@clisp.org>
19655
19656         Unify tests that set gl_cv_func_frexp_no_libm.
19657         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
19658         gl_FUNC_FREXP_NO_LIBM.
19659         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
19660         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
19661
19662 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
19663
19664         memcoll: clarify sizes versus lengths, document better, and tweak perf
19665         * lib/memcoll.c (strcoll_loop, memcoll0):
19666         Improve quality of descriptive comments.  Name variables
19667         consistently as to whether they are lengths (which do not include
19668         terminating null) versus sizes (which do).
19669         * lib/xmemcoll.c (xmemcoll0): Likewise.
19670         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
19671         returned when s1size == 0; this is easier to compile and saves
19672         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
19673
19674 2010-07-12  Bruno Haible  <bruno@clisp.org>
19675
19676         Tests for module '_Exit'.
19677         * modules/_Exit-tests: New file.
19678         * tests/test-_Exit.sh: New file.
19679         * tests/test-_Exit.c: New file.
19680
19681         New module '_Exit'.
19682         * lib/stdlib.in.h (__attribute__): New macro.
19683         (_Exit): New declaration.
19684         * lib/_Exit.c: New file.
19685         * m4/_Exit.m4: New file.
19686         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
19687         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
19688         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
19689         * modules/_Exit: New file.
19690         * tests/test-stdlib-c++.cc (_Exit): Check signature.
19691         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
19692
19693 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
19694
19695         strtod: make it more-accurate typically, and don't require libm
19696         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
19697         Include limits.h.  Don't include string.h.
19698         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
19699         (locale_isspace): New function, so that no casts are needed to
19700         check whether *s is a space.
19701         (ldexp): Provide an unused dummy if not available.
19702         (scale_radix_exp, parse_number, underlying_strtod): New functions.
19703         (strtod): Use them.  This implementation prefers to use the
19704         underlying strtod if available, falling back on our own code
19705         only to fix known bugs.  This is more likely to produce an
19706         accurate result.  Also, it avoids the use of libm functions.
19707         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
19708         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
19709         was absent, but it caused a test failure with coreutils.
19710         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
19711         with libm.
19712         * modules/strtod (Makefile.am, Link): libm is no longer needed.
19713         * modules/strtod-tests (Makefile.am): Likewise.
19714
19715 2010-07-11  Pádraig Brady  <P@draigBrady.com>
19716             Bruno Haible  <bruno@clisp.org>
19717
19718         unistr/u8-strchr: Optimize ASCII argument case.
19719         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
19720
19721 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
19722
19723         (x)memcoll: minor tweaks
19724         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
19725         is after the type that it qualifies.
19726         (memcoll0): Likewise.
19727         * lib/memcoll.h (memcoll0): Likewise.
19728         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
19729         * lib/xmemcoll.h (xmemcoll0): Likewise.
19730         * lib/memcoll.c (memcoll0): Correct the comment.  This function
19731         differs from memcoll in that the NUL byte is part of the argument.
19732         Omit the abort-checks, as performance is a real issue here.  Plus,
19733         the checks were wrong anyway (an off-by-one error).  Omit local
19734         variable 'diff', as it's a bit clearer that way.
19735         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
19736         no longer needed.
19737
19738 2010-07-08  Chen Guo <chenguo4@yahoo.com>
19739
19740         (x)memcoll: speedup when input is known to be NUL delimited
19741         * lib/memcoll.c: Include stdlib.
19742         (memcoll0): New function.
19743         (strcoll_loop): New function, refactored for use in both memcoll
19744         and memcoll0.
19745         * lib/memcoll.h (memcoll0): Add prototype.
19746         * lib/xmemcoll.c (xmemcoll0): New function.
19747         (collate_error): New function, refactored for use in both xmemcoll
19748         and xmemcoll0.
19749         * lib/xmemcoll.h (xmemcoll0): Add prototype.
19750         * m4/memcoll.m4: add inline invocation.
19751
19752 2010-07-06  Pádraig Brady  <P@draigBrady.com>
19753
19754         * build-aux/bootstrap: Remove any local translations
19755         from the translation project synchronization directory,
19756         so that local only translations are not distributed.
19757
19758 2010-07-04  Bruno Haible  <bruno@clisp.org>
19759
19760         fsusage: Clarify which code applies to which platforms.
19761         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
19762         platform.
19763         * lib/fsusage.c (get_fs_usage): Likewise.
19764
19765 2010-07-04  Bruno Haible  <bruno@clisp.org>
19766
19767         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
19768         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
19769         Reported by Martin Lambers <marlam@marlam.de>.
19770
19771 2010-07-04  Jim Meyering  <meyering@redhat.com>
19772
19773         hash: once again explicitly disallow insertion of NULL
19774         * lib/hash.c (hash_insert0): Reinstate just-removed test:
19775         inserting a NULL pointer cannot work with these functions.
19776         Add a comment with details.
19777         This reverts part of the 2010-07-01 commit, 5bef1a35
19778         "hash: extend module to deal with non-pointer keys".
19779
19780 2010-07-01  Bruno Haible  <bruno@clisp.org>
19781
19782         stdbool: Update doc.
19783         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
19784         Info from Christian Weisgerber <naddy@mips.inka.de>.
19785
19786 2010-07-01  Jim Meyering  <meyering@redhat.com>
19787
19788         hash: extend module to deal with non-pointer keys
19789         * lib/hash.c (hash_insert0): New interface, much like hash_insert
19790         but that allows insertion of non-pointer entries.
19791         Do not disallow an ENTRY value of NULL.
19792         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
19793         * lib/hash.h (hash_insert0): Declare.
19794
19795 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19796
19797         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
19798         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
19799         not present (i.e. with autoconf 2.59 and when using gettextize, not
19800         gnulib), require AC_GNU_SOURCE instead.
19801
19802 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
19803
19804         idpriv-drop: Fix tests.
19805         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
19806         not to the test-idpriv-droptemp program.
19807
19808 2010-06-29  Bruno Haible  <bruno@clisp.org>
19809
19810         string: Fix syntax error with g++ 2.96.
19811         * lib/string.in.h (__pure__): Remove definition.
19812         (_GL_ATTRIBUTE_PURE): New macro.
19813         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
19814         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
19815         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19816
19817 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
19818
19819         unitypes: Fix bug introduced on 2010-05-18.
19820         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
19821
19822 2010-06-22  Eric Blake  <eblake@redhat.com>
19823
19824         memmem: slight optimization
19825         * lib/str-two-way.h (critical_factorization): Update comments.
19826         Reduce work during factorization phase.
19827         Reported by Carlos Bueno <carlos@bueno.org>.
19828
19829 2010-06-21  Bruno Haible  <bruno@clisp.org>
19830
19831         Fix HAVE_CALLOC_POSIX misnomer.
19832         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
19833         !HAVE_CALLOC_POSIX.
19834         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
19835         HAVE_CALLOC_POSIX.
19836         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
19837         instead of HAVE_CALLOC_POSIX.
19838         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
19839         HAVE_CALLOC_POSIX.
19840
19841         Use modern idiom for calloc() replacement.
19842         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
19843         AC_FUNC_CALLOC.
19844         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
19845         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
19846         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19847         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
19848         (gl_REPLACE_CALLOC): New macro.
19849
19850 2010-06-21  Bruno Haible  <bruno@clisp.org>
19851
19852         Fix HAVE_REALLOC_POSIX misnomer.
19853         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
19854         !HAVE_REALLOC_POSIX.
19855         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
19856         HAVE_REALLOC_POSIX.
19857         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
19858         instead of HAVE_REALLOC_POSIX.
19859         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
19860         HAVE_REALLOC_POSIX.
19861
19862         Use modern idiom for realloc() replacement.
19863         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
19864         AC_FUNC_REALLOC.
19865         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
19866         Autoconf's AC_FUNC_REALLOC.
19867         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19868         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
19869         (gl_REPLACE_REALLOC): New macro.
19870         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
19871
19872 2010-06-21  Bruno Haible  <bruno@clisp.org>
19873
19874         Fix HAVE_MALLOC_POSIX misnomer.
19875         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
19876         !HAVE_MALLOC_POSIX.
19877         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
19878         HAVE_MALLOC_POSIX.
19879         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
19880         instead of HAVE_MALLOC_POSIX.
19881         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
19882         HAVE_MALLOC_POSIX.
19883
19884         Use modern idiom for malloc() replacement.
19885         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
19886         AC_FUNC_MALLOC.
19887         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
19888         Autoconf's AC_FUNC_MALLOC.
19889         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19890         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
19891         (gl_REPLACE_MALLOC): New macro.
19892         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
19893
19894 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
19895
19896         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
19897         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
19898         This macro takes 3 arguments, not 4.
19899
19900 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
19901
19902         ipv6: fix detection under mingw
19903         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
19904         in6_addr.
19905
19906 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
19907
19908         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
19909         that strtod() works when cross-compiling to a glibc version known
19910         to work.
19911
19912 2010-06-15  Bruno Haible  <bruno@clisp.org>
19913
19914         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
19915
19916 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
19917
19918         select: Correct timeout.
19919         * lib/select.c (rpl_select): Compute wait_timeout correctly.
19920
19921 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19922
19923         git-version-gen: init shell var to avoid env var influence
19924         * build-aux/git-version-gen (v): Init shell var to empty.
19925
19926 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
19927
19928         priv-set: Don't assume that priv.h exists merely because getppriv does.
19929         See Jan Andersen's bug report about AIX 5L in
19930         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
19931         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
19932         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
19933         * lib/priv-set.h: Likewise.
19934         * tests/test-priv-set.c: Likewise.
19935
19936 2010-06-13  Bruno Haible  <bruno@clisp.org>
19937
19938         relocatable: Make it easier to test whether to install wrappers.
19939         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
19940         RELOCATABLE_VIA_WRAPPER.
19941
19942 2010-06-13  Bruno Haible  <bruno@clisp.org>
19943
19944         gnulib-tool: Display specified modules and dependencies differently.
19945         * gnulib-tool (func_show_module_list): New function.
19946         (func_import, func_create_testdir): Invoke it.
19947         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
19948
19949 2010-06-13  Bruno Haible  <bruno@clisp.org>
19950
19951         gnulib-tool: Align code of func_import and func_create_testdir.
19952         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
19953         specified_modules.
19954
19955 2010-06-12  Jim Meyering  <meyering@redhat.com>
19956
19957         test-inttostr: avoid spurious failure on Solaris 9
19958         * tests/test-inttostr.c (main): Skip the test when snprintf fails
19959         to accept "%ju".  Reported by Bruno Haible.
19960
19961 2010-06-11  Jim Meyering  <meyering@redhat.com>
19962
19963         test-sys_socket: mark variables as used more readably
19964         * tests/test-sys_socket.c (main): Mark otherwise unused variables
19965         as "used" explicitly via (void) statement casts.  This is more
19966         readable than using them in an artificial return expression.
19967         Suggestion from Bruno Haible.
19968
19969 2010-06-11  Bruno Haible  <bruno@clisp.org>
19970
19971         Avoid some more warnings from "gcc -Wwrite-strings".
19972         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
19973         to 'const char *'.
19974         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
19975         * tests/test-c-strcasestr.c (main): Likewise.
19976         * tests/test-mbscasestr1.c (main): Likewise.
19977         * tests/test-mbscasestr2.c (main): Likewise.
19978         * tests/test-memmem.c (main): Likewise.
19979         * tests/test-strstr.c (main): Likewise.
19980         * tests/test-strcasestr.c (main): Likewise.
19981
19982 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19983
19984         init.sh: change framework_failure_ to fail with status 99, not 1
19985         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
19986         automake's parallel-tests rule that this is an unexpected failure,
19987         even if the test is listed in XFAIL_TESTS.
19988
19989 2010-06-11  Jim Meyering  <meyering@redhat.com>
19990
19991         test-inttostr: avoid warnings about 4-6KB literal strings
19992         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
19993         Include "macros.h", for its definition of ASSERT.
19994         (CK): s/assert/ASSERT/
19995         * modules/inttostr-tests (Files): Add macros.h.
19996
19997         init.sh: don't use $ME_ or skip_ before they are defined
19998         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
19999         their first uses.  Also hoist their companions: warn_, fail_,
20000         framework_failure_, $stderr_fileno.  Prompted by a patch from
20001         Stefano Lattarini.
20002
20003         test-sys_socket: avoid set-but-not-used warnings from gcc
20004         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
20005         avoid warning about set-but-not-used variables.
20006
20007         test-xvasprintf: avoid 'const' discard warnings
20008         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
20009         "const" when assigning from literal strings.
20010         (test_xasprintf): Add "void" in function argument list to placate
20011         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
20012
20013         tests: avoid compilation warnings in argmatch and exclude tests...
20014         in packages that define ARGMATCH_DIE_DECL, like coreutils.
20015         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
20016         Since it always exits, declare with the "noreturn" attribute.
20017         * tests/test-argmatch.c: Likewise.
20018
20019         tests: avoid 'const' discard warnings in mbsstr tests
20020         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
20021         * tests/test-mbsstr2.c (main): Likewise.
20022
20023         test-verify: avoid warning from gcc's -Wmissing-declarations
20024         * tests/test-verify.c (function): Declare to be static.
20025
20026         test-inttostr.c: include <string.h> for use of strcmp
20027         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
20028
20029         test-linkat: avoid failed assertion on "other" architectures
20030         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
20031         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
20032         sparc: https://bugs.launchpad.net/bugs/591968
20033
20034 2010-06-11  Jim Meyering  <meyering@redhat.com>
20035
20036         printf.m4: avoid autoconf's "Expanded Before Required" warning
20037         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
20038         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
20039         autoconf warning.
20040
20041 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
20042
20043         Replacement header templates are now named with ".in", not "_".
20044         * doc/gnulib-intro.texi: Correct.
20045
20046 2010-06-10  Jim Meyering  <meyering@redhat.com>
20047
20048         inttostr-tests: depend on snprintf, not snprintf-posix
20049         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
20050         snprintf-posix, to avoid this aclocal failure:
20051           missing file gnulib-tests/vasnprintf.c
20052           configure.ac:45: error: expected source file, required through \
20053           AC_LIBSOURCES, not found
20054
20055 2010-06-10  Jim Meyering  <meyering@redhat.com>
20056
20057         inttostr: add a new function, inttostr, and tests
20058         The namesake function was not available.  The existence of the
20059         template file, inttostr.c makes its addition nontrivial.
20060         * lib/anytostr.c: Rename from inttostr.c.
20061         (anytostr): Rename from inttostr.
20062         * lib/inttostr.c: New file.
20063         * modules/inttostr (Files): Add anytostr.c.
20064         (Makefile.am): Set lib_SOURCES instead of ...
20065         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
20066         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
20067         * lib/offtostr.c: Likewise.
20068         * lib/uinttostr.c: Likewise.
20069         * lib/umaxtostr.c: Likewise.
20070         * modules/inttostr-tests: New file.
20071         * tests/test-inttostr.c: New file.  Test these functions.
20072
20073 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
20074             Bruno Haible  <bruno@clisp.org>
20075
20076         Add "Extending Gnulib" chapter to manual.
20077         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
20078         chapter.
20079         (Extending Gnulib): New chapter.
20080         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
20081         chapter.
20082
20083 2010-06-09  Bruno Haible  <bruno@clisp.org>
20084
20085         Avoid relocwrapper link errors due to gnulib replacement functions.
20086         * lib/areadlink.c: Use the system's malloc, realloc functions.
20087         (areadlink): Set errno to ENOMEM explicitly.
20088         * modules/areadlink (Depends-on): Remove malloc-posix.
20089         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20090
20091 2010-06-09  Bruno Haible  <bruno@clisp.org>
20092
20093         Avoid relocwrapper link errors due to gnulib replacement functions.
20094         * lib/canonicalize-lgpl.c: Use the system's malloc function.
20095         * lib/malloca.c: Likewise.
20096         * lib/relocatable.c: Likewise.
20097         * lib/progreloc.c: Use the system's malloc, sprintf functions.
20098         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
20099         * lib/setenv.c: Use the system's malloc, realloc functions.
20100         * lib/strerror.c: Use the system's sprintf function.
20101         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20102
20103 2010-06-04  Bruno Haible  <bruno@clisp.org>
20104
20105         Prefer documented low-level autoconf macro names.
20106         * m4/lib-link.m4: Use m4_translit instead of translit.
20107         * m4/environ.m4: Likewise.
20108         * m4/mathfunc.m4: Likewise.
20109         * m4/onceonly.m4: Likewise.
20110         * m4/stdint.m4: Likewise.
20111         Suggested by Eric Blake.
20112
20113 2010-06-04  Martin Lambers  <marlam@marlam.de>
20114             Bruno Haible  <bruno@clisp.org>
20115
20116         havelib: Allow library names with '+' characters.
20117         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20118         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
20119
20120 2010-06-09  Bruno Haible  <bruno@clisp.org>
20121
20122         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
20123         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
20124         realloc failed.
20125
20126 2010-06-08  Peter Simons  <simons@cryp.to>
20127
20128         maint.mk: make the news-check rule more configurable
20129         * top/maint.mk (news-check-lines-spec): New variable.
20130         (news-check): Use "sed -n 1,10p" in place of "head".
20131
20132 2010-06-07  Jim Meyering  <meyering@redhat.com>
20133
20134         do-release-commit-and-tag: fix typo in --help
20135         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
20136
20137         regex: avoid new dead-code warning with gcc-4.6.0
20138         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
20139         if-block containing a while-loop.  It's been unused for at least
20140         5 years.
20141
20142 2010-06-05  Bruno Haible  <bruno@clisp.org>
20143
20144         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
20145         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
20146
20147 2010-06-04  Bruno Haible  <bruno@clisp.org>
20148
20149         Update to GNU gettext 0.18.1.
20150         * modules/gettext (configure.ac): Require gettext infrastructure from
20151         version 0.18.1.
20152
20153 2010-06-03  Bruno Haible  <bruno@clisp.org>
20154
20155         Don't use AC_LIBOBJ with file names in subdirectories.
20156         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
20157         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
20158         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
20159         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
20160         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
20161         gl_LIBUNISTRING_LIBSOURCE.
20162         (Makefile.am): Augment lib_SOURCES here, conditionally.
20163         * NEWS: Drop requirement for Automake option 'subdir-objects'.
20164
20165 2010-06-03  Bruno Haible  <bruno@clisp.org>
20166
20167         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
20168         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
20169         expansion does not end with a newline.
20170         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
20171         unnecessary newline.
20172
20173 2010-06-03  Bruno Haible  <bruno@clisp.org>
20174
20175         Reduce dependencies.
20176         * tests/test-quotearg.h: New file, extracted from
20177         tests/test-quotearg.c.
20178         * tests/test-quotearg-simple.c: New file, extracted from
20179         tests/test-quotearg.c.
20180         * tests/test-quotearg.c: Don't include <ctype.h>.
20181         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
20182         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
20183         use_quote_double_quotes, use_quotearg_colon): Moved to
20184         tests/test-quotearg.h.
20185         (results_g, flag_results, custom_quotes, custom_results): Moved
20186         to tests/test-quotearg-simple.c.
20187         (main): Moved the part that does not depend on gettext to
20188         tests/test-quotearg-simple.c. Return 77 if the test cannot be
20189         performed.
20190         * modules/quotearg-simple: New file.
20191         * modules/quotearg-simple-tests: New file.
20192         * modules/quotearg (Depends-on): Add quotearg-simple.
20193         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
20194         (Files): Add tests/test-quotearg.h.
20195         Reported by Paolo Bonzini.
20196
20197 2010-06-03  Bruno Haible  <bruno@clisp.org>
20198
20199         Reduce dependencies.
20200         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
20201
20202 2010-06-03  Bruno Haible  <bruno@clisp.org>
20203
20204         time: Undefine more broken macros.
20205         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
20206         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
20207         Reported by Eric Blake.
20208
20209 2010-06-03  Bruno Haible  <bruno@clisp.org>
20210
20211         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
20212         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
20213         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
20214         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
20215         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
20216         Reported by Ludovic Courtès <ludo@gnu.org>.
20217
20218 2010-06-02  Eric Blake  <eblake@redhat.com>
20219
20220         time: work with mingw + pthreads-win32 library
20221         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
20222         if timespec is defined only in pthread.h.
20223         * modules/time (Makefile.am): Substitute it.
20224         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
20225         <pthread.h>, when needed.
20226         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
20227         from the library.
20228
20229 2010-05-31  Bruno Haible  <bruno@clisp.org>
20230
20231         Avoid expanding two macros in the wrong order.
20232         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
20233         gl_LIBUNISTRING if it is defined.
20234         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
20235         autoconf >= 2.64.
20236         Reported by Ludovic Courtès <ludo@gnu.org>.
20237
20238 2010-05-27  Jim Meyering  <meyering@redhat.com>
20239
20240         maint.mk: also prohibit "#undef" of always-defined symbols
20241         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
20242         Allow more than one space before the symbol name.
20243         (sc_prohibit_always-defined_macros): Use grep's -E, now that
20244         the regexp uses alternation.
20245
20246 2010-05-26  Eric Blake  <eblake@redhat.com>
20247
20248         maint.mk: avoid echo -e
20249         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
20250         Convert all uses of echo -* to printf.
20251         Reported by Matthias Bolte.
20252
20253 2010-05-25  Bruno Haible  <bruno@clisp.org>
20254
20255         Update to GNU gettext 0.18, part 2.
20256         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
20257         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
20258
20259 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20260
20261         Add missing include in test-pwrite.c.
20262         * tests/test-pwrite.c: Include string.h, for strcmp.
20263
20264 2010-05-24  Bruno Haible  <bruno@clisp.org>
20265
20266         * NEWS: Mention requirement for Automake option 'subdir-objects'.
20267
20268 2010-05-24  Bruno Haible  <bruno@clisp.org>
20269
20270         Don't use conversion with transliteration in u{8,16,32}_strcoll.
20271         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
20272         iconveh_error argument.
20273         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
20274         U_STRCONV_TO_LOCALE.
20275         * lib/unistr/u16-strcoll.c: Likewise.
20276         * lib/unistr/u32-strcoll.c: Likewise.
20277         * modules/unistr/u8-strcoll (Depends-on): Add
20278         uniconv/u8-strconv-to-enc, localcharset. Remove
20279         uniconv/u8-strconv-to-locale.
20280         (configure.ac): Bump version number.
20281         * modules/unistr/u16-strcoll (Depends-on): Add
20282         uniconv/u16-strconv-to-enc, localcharset. Remove
20283         uniconv/u16-strconv-to-locale.
20284         (configure.ac): Bump version number.
20285         * modules/unistr/u32-strcoll (Depends-on): Add
20286         uniconv/u32-strconv-to-enc, localcharset. Remove
20287         uniconv/u32-strconv-to-locale.
20288         (configure.ac): Bump version number.
20289
20290 2010-05-24  Bruno Haible  <bruno@clisp.org>
20291
20292         Avoid a test failure on NetBSD 5.0.
20293         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
20294         an iconv() bug.
20295
20296 2010-05-24  Bruno Haible  <bruno@clisp.org>
20297
20298         Adjust #include directive style.
20299         * modules/regex (Includes): Recommend to write <regex.h>.
20300
20301 2010-05-24  Bruno Haible  <bruno@clisp.org>
20302
20303         regex: Don't require alloca.
20304         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
20305         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
20306         only inside if (0).
20307
20308 2010-05-23  Jim Meyering  <meyering@redhat.com>
20309
20310         test-renameat.c: include <sys/stat.h>
20311         * tests/test-renameat.c: Include <sys/stat.h>; required for
20312         definition of S_IS* macros.
20313
20314 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
20315
20316         Update maintainer documentation for 'relocatable-prog' module.
20317         * doc/relocatable-maint.texi: Update.
20318         Comments by Bruno Haible.
20319
20320 2010-05-23  Bruno Haible  <bruno@clisp.org>
20321
20322         git-merge-changelog: Enable --split-merged-entry by default.
20323         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
20324         (usage): Don't mention this option any more.
20325         Reported by Ralf Wildenhues.
20326
20327 2010-05-23  Jim Meyering  <meyering@redhat.com>
20328
20329         test-pwrite: do not leave behind a test file named "out"
20330         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
20331         The trivial-looking use of init.sh is really necessary.
20332         It ensures that the temporary file, "out", is created in
20333         a temporary directory, and removed upon termination.
20334         * tests/test-pwrite.sh: Re-add file.
20335         * modules/pwrite-tests: Reference it.
20336
20337 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20338
20339         Fix output redirection buglet in init.sh.
20340         * tests/init.sh: Fix redirection of stderr.
20341
20342 2010-05-20  Simon Josefsson  <simon@josefsson.org>
20343
20344         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
20345
20346 2010-05-17  Simon Josefsson  <simon@josefsson.org>
20347
20348         * modules/valgrind-tests: New file.
20349         * m4/valgrind-tests.m4: New file.
20350         * doc/valgrind-tests.texi: New file.
20351         * doc/gnulib.texi (Running self-tests under valgrind): New
20352         section.
20353
20354 2010-05-19  Bruno Haible  <bruno@clisp.org>
20355
20356         Clean up dead code in recent commit.
20357         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
20358         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
20359         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
20360         Suggested by Paolo Bonzini.
20361
20362 2010-05-19  Bruno Haible  <bruno@clisp.org>
20363
20364         Avoid valgrind error reports from libunistring.
20365         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
20366         * modules/libunistring (Files): Add it.
20367         * modules/libunistring-optional (Files): Likewise.
20368
20369 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
20370             Bruno Haible  <bruno@clisp.org>
20371
20372         New module 'libunistring-optional'.
20373         * modules/libunistring-optional: New file.
20374         * m4/libunistring-base.m4: New file.
20375         * m4/libunistring-optional.m4: New file.
20376         * lib/unicase.in.h: Renamed from lib/unicase.h.
20377         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
20378         * lib/unictype.in.h: Renamed from lib/unictype.h.
20379         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
20380         * lib/uniname.in.h: Renamed from lib/uniname.h.
20381         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
20382         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
20383         * lib/unistr.in.h: Renamed from lib/unistr.h.
20384         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
20385         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
20386         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
20387         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
20388         gl_LIBUNISTRING. If the library was found, determine the installed
20389         version and set LIBUNISTRING_VERSION.
20390         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
20391         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
20392         handle a configuration option --with-included-libunistring.
20393         * modules/libunistring (Files): Add m4/absolute-header.m4.
20394         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
20395         Add m4/libunistring-base.m4.
20396         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20397         (Makefile.am): Build unicase.h from unicase.in.h.
20398         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
20399         Add m4/libunistring-base.m4.
20400         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20401         (Makefile.am): Build uniconv.h from uniconv.in.h.
20402         * modules/unictype/base (Files): Use unictype.in.h instead of
20403         unictype.h. Add m4/libunistring-base.m4.
20404         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20405         (Makefile.am): Build unictype.h from unictype.in.h.
20406         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
20407         Add m4/libunistring-base.m4.
20408         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20409         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
20410         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
20411         Add m4/libunistring-base.m4.
20412         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20413         (Makefile.am): Build uniname.h from uniname.in.h.
20414         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
20415         Add m4/libunistring-base.m4.
20416         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20417         (Makefile.am): Build uninorm.h from uninorm.in.h.
20418         * modules/unistdio/base (Files): Use unistdio.in.h instead of
20419         unistdio.h. Add m4/libunistring-base.m4.
20420         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20421         (Makefile.am): Build unistdio.h from unistdio.in.h.
20422         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
20423         Add m4/libunistring-base.m4.
20424         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20425         (Makefile.am): Build unistr.h from unistr.in.h.
20426         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
20427         Add m4/libunistring-base.m4.
20428         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20429         (Makefile.am): Build unitypes.h from unitypes.in.h.
20430         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
20431         Add m4/libunistring-base.m4.
20432         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20433         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
20434         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
20435         uniwidth.h. Add m4/libunistring-base.m4.
20436         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20437         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
20438         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
20439         instead of augmenting lib_SOURCES.
20440         * modules/unicase/empty-suffix-context: Likewise.
20441         * modules/unicase/locale-language: Likewise.
20442         * modules/unicase/tolower: Likewise.
20443         * modules/unicase/totitle: Likewise.
20444         * modules/unicase/toupper: Likewise.
20445         * modules/unicase/u8-casecmp: Likewise.
20446         * modules/unicase/u8-casecoll: Likewise.
20447         * modules/unicase/u8-casefold: Likewise.
20448         * modules/unicase/u8-casexfrm: Likewise.
20449         * modules/unicase/u8-ct-casefold: Likewise.
20450         * modules/unicase/u8-ct-tolower: Likewise.
20451         * modules/unicase/u8-ct-totitle: Likewise.
20452         * modules/unicase/u8-ct-toupper: Likewise.
20453         * modules/unicase/u8-is-cased: Likewise.
20454         * modules/unicase/u8-is-casefolded: Likewise.
20455         * modules/unicase/u8-is-lowercase: Likewise.
20456         * modules/unicase/u8-is-titlecase: Likewise.
20457         * modules/unicase/u8-is-uppercase: Likewise.
20458         * modules/unicase/u8-prefix-context: Likewise.
20459         * modules/unicase/u8-suffix-context: Likewise.
20460         * modules/unicase/u8-tolower: Likewise.
20461         * modules/unicase/u8-totitle: Likewise.
20462         * modules/unicase/u8-toupper: Likewise.
20463         * modules/unicase/u16-casecmp: Likewise.
20464         * modules/unicase/u16-casecoll: Likewise.
20465         * modules/unicase/u16-casefold: Likewise.
20466         * modules/unicase/u16-casexfrm: Likewise.
20467         * modules/unicase/u16-ct-casefold: Likewise.
20468         * modules/unicase/u16-ct-tolower: Likewise.
20469         * modules/unicase/u16-ct-totitle: Likewise.
20470         * modules/unicase/u16-ct-toupper: Likewise.
20471         * modules/unicase/u16-is-cased: Likewise.
20472         * modules/unicase/u16-is-casefolded: Likewise.
20473         * modules/unicase/u16-is-lowercase: Likewise.
20474         * modules/unicase/u16-is-titlecase: Likewise.
20475         * modules/unicase/u16-is-uppercase: Likewise.
20476         * modules/unicase/u16-prefix-context: Likewise.
20477         * modules/unicase/u16-suffix-context: Likewise.
20478         * modules/unicase/u16-tolower: Likewise.
20479         * modules/unicase/u16-totitle: Likewise.
20480         * modules/unicase/u16-toupper: Likewise.
20481         * modules/unicase/u32-casecmp: Likewise.
20482         * modules/unicase/u32-casecoll: Likewise.
20483         * modules/unicase/u32-casefold: Likewise.
20484         * modules/unicase/u32-casexfrm: Likewise.
20485         * modules/unicase/u32-ct-casefold: Likewise.
20486         * modules/unicase/u32-ct-tolower: Likewise.
20487         * modules/unicase/u32-ct-totitle: Likewise.
20488         * modules/unicase/u32-ct-toupper: Likewise.
20489         * modules/unicase/u32-is-cased: Likewise.
20490         * modules/unicase/u32-is-casefolded: Likewise.
20491         * modules/unicase/u32-is-lowercase: Likewise.
20492         * modules/unicase/u32-is-titlecase: Likewise.
20493         * modules/unicase/u32-is-uppercase: Likewise.
20494         * modules/unicase/u32-prefix-context: Likewise.
20495         * modules/unicase/u32-suffix-context: Likewise.
20496         * modules/unicase/u32-tolower: Likewise.
20497         * modules/unicase/u32-totitle: Likewise.
20498         * modules/unicase/u32-toupper: Likewise.
20499         * modules/unicase/ulc-casecmp: Likewise.
20500         * modules/unicase/ulc-casecoll: Likewise.
20501         * modules/unicase/ulc-casexfrm: Likewise.
20502         * modules/uniconv/u8-conv-from-enc: Likewise.
20503         * modules/uniconv/u8-conv-to-enc: Likewise.
20504         * modules/uniconv/u8-strconv-from-enc: Likewise.
20505         * modules/uniconv/u8-strconv-from-locale: Likewise.
20506         * modules/uniconv/u8-strconv-to-enc: Likewise.
20507         * modules/uniconv/u8-strconv-to-locale: Likewise.
20508         * modules/uniconv/u16-conv-from-enc: Likewise.
20509         * modules/uniconv/u16-conv-to-enc: Likewise.
20510         * modules/uniconv/u16-strconv-from-enc: Likewise.
20511         * modules/uniconv/u16-strconv-from-locale: Likewise.
20512         * modules/uniconv/u16-strconv-to-enc: Likewise.
20513         * modules/uniconv/u16-strconv-to-locale: Likewise.
20514         * modules/uniconv/u32-conv-from-enc: Likewise.
20515         * modules/uniconv/u32-conv-to-enc: Likewise.
20516         * modules/uniconv/u32-strconv-from-enc: Likewise.
20517         * modules/uniconv/u32-strconv-from-locale: Likewise.
20518         * modules/uniconv/u32-strconv-to-enc: Likewise.
20519         * modules/uniconv/u32-strconv-to-locale: Likewise.
20520         * modules/unictype/bidicategory-byname: Likewise.
20521         * modules/unictype/bidicategory-name: Likewise.
20522         * modules/unictype/bidicategory-of: Likewise.
20523         * modules/unictype/bidicategory-test: Likewise.
20524         * modules/unictype/block-list: Likewise.
20525         * modules/unictype/block-test: Likewise.
20526         * modules/unictype/category-C: Likewise.
20527         * modules/unictype/category-Cc: Likewise.
20528         * modules/unictype/category-Cf: Likewise.
20529         * modules/unictype/category-Cn: Likewise.
20530         * modules/unictype/category-Co: Likewise.
20531         * modules/unictype/category-Cs: Likewise.
20532         * modules/unictype/category-L: Likewise.
20533         * modules/unictype/category-Ll: Likewise.
20534         * modules/unictype/category-Lm: Likewise.
20535         * modules/unictype/category-Lo: Likewise.
20536         * modules/unictype/category-Lt: Likewise.
20537         * modules/unictype/category-Lu: Likewise.
20538         * modules/unictype/category-M: Likewise.
20539         * modules/unictype/category-Mc: Likewise.
20540         * modules/unictype/category-Me: Likewise.
20541         * modules/unictype/category-Mn: Likewise.
20542         * modules/unictype/category-N: Likewise.
20543         * modules/unictype/category-Nd: Likewise.
20544         * modules/unictype/category-Nl: Likewise.
20545         * modules/unictype/category-No: Likewise.
20546         * modules/unictype/category-P: Likewise.
20547         * modules/unictype/category-Pc: Likewise.
20548         * modules/unictype/category-Pd: Likewise.
20549         * modules/unictype/category-Pe: Likewise.
20550         * modules/unictype/category-Pf: Likewise.
20551         * modules/unictype/category-Pi: Likewise.
20552         * modules/unictype/category-Po: Likewise.
20553         * modules/unictype/category-Ps: Likewise.
20554         * modules/unictype/category-S: Likewise.
20555         * modules/unictype/category-Sc: Likewise.
20556         * modules/unictype/category-Sk: Likewise.
20557         * modules/unictype/category-Sm: Likewise.
20558         * modules/unictype/category-So: Likewise.
20559         * modules/unictype/category-Z: Likewise.
20560         * modules/unictype/category-Zl: Likewise.
20561         * modules/unictype/category-Zp: Likewise.
20562         * modules/unictype/category-Zs: Likewise.
20563         * modules/unictype/category-and: Likewise.
20564         * modules/unictype/category-and-not: Likewise.
20565         * modules/unictype/category-byname: Likewise.
20566         * modules/unictype/category-name: Likewise.
20567         * modules/unictype/category-none: Likewise.
20568         * modules/unictype/category-of: Likewise.
20569         * modules/unictype/category-or: Likewise.
20570         * modules/unictype/category-test: Likewise.
20571         * modules/unictype/combining-class: Likewise.
20572         * modules/unictype/ctype-alnum: Likewise.
20573         * modules/unictype/ctype-alpha: Likewise.
20574         * modules/unictype/ctype-blank: Likewise.
20575         * modules/unictype/ctype-cntrl: Likewise.
20576         * modules/unictype/ctype-digit: Likewise.
20577         * modules/unictype/ctype-graph: Likewise.
20578         * modules/unictype/ctype-lower: Likewise.
20579         * modules/unictype/ctype-print: Likewise.
20580         * modules/unictype/ctype-punct: Likewise.
20581         * modules/unictype/ctype-space: Likewise.
20582         * modules/unictype/ctype-upper: Likewise.
20583         * modules/unictype/ctype-xdigit: Likewise.
20584         * modules/unictype/decimal-digit: Likewise.
20585         * modules/unictype/digit: Likewise.
20586         * modules/unictype/mirror: Likewise.
20587         * modules/unictype/numeric: Likewise.
20588         * modules/unictype/property-alphabetic: Likewise.
20589         * modules/unictype/property-ascii-hex-digit: Likewise.
20590         * modules/unictype/property-bidi-arabic-digit: Likewise.
20591         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
20592         * modules/unictype/property-bidi-block-separator: Likewise.
20593         * modules/unictype/property-bidi-boundary-neutral: Likewise.
20594         * modules/unictype/property-bidi-common-separator: Likewise.
20595         * modules/unictype/property-bidi-control: Likewise.
20596         * modules/unictype/property-bidi-embedding-or-override: Likewise.
20597         * modules/unictype/property-bidi-eur-num-separator: Likewise.
20598         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
20599         * modules/unictype/property-bidi-european-digit: Likewise.
20600         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
20601         * modules/unictype/property-bidi-left-to-right: Likewise.
20602         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
20603         * modules/unictype/property-bidi-other-neutral: Likewise.
20604         * modules/unictype/property-bidi-pdf: Likewise.
20605         * modules/unictype/property-bidi-segment-separator: Likewise.
20606         * modules/unictype/property-bidi-whitespace: Likewise.
20607         * modules/unictype/property-byname: Likewise.
20608         * modules/unictype/property-combining: Likewise.
20609         * modules/unictype/property-composite: Likewise.
20610         * modules/unictype/property-currency-symbol: Likewise.
20611         * modules/unictype/property-dash: Likewise.
20612         * modules/unictype/property-decimal-digit: Likewise.
20613         * modules/unictype/property-default-ignorable-code-point: Likewise.
20614         * modules/unictype/property-deprecated: Likewise.
20615         * modules/unictype/property-diacritic: Likewise.
20616         * modules/unictype/property-extender: Likewise.
20617         * modules/unictype/property-format-control: Likewise.
20618         * modules/unictype/property-grapheme-base: Likewise.
20619         * modules/unictype/property-grapheme-extend: Likewise.
20620         * modules/unictype/property-grapheme-link: Likewise.
20621         * modules/unictype/property-hex-digit: Likewise.
20622         * modules/unictype/property-hyphen: Likewise.
20623         * modules/unictype/property-id-continue: Likewise.
20624         * modules/unictype/property-id-start: Likewise.
20625         * modules/unictype/property-ideographic: Likewise.
20626         * modules/unictype/property-ids-binary-operator: Likewise.
20627         * modules/unictype/property-ids-trinary-operator: Likewise.
20628         * modules/unictype/property-ignorable-control: Likewise.
20629         * modules/unictype/property-iso-control: Likewise.
20630         * modules/unictype/property-join-control: Likewise.
20631         * modules/unictype/property-left-of-pair: Likewise.
20632         * modules/unictype/property-line-separator: Likewise.
20633         * modules/unictype/property-logical-order-exception: Likewise.
20634         * modules/unictype/property-lowercase: Likewise.
20635         * modules/unictype/property-math: Likewise.
20636         * modules/unictype/property-non-break: Likewise.
20637         * modules/unictype/property-not-a-character: Likewise.
20638         * modules/unictype/property-numeric: Likewise.
20639         * modules/unictype/property-other-alphabetic: Likewise.
20640         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
20641         * modules/unictype/property-other-grapheme-extend: Likewise.
20642         * modules/unictype/property-other-id-continue: Likewise.
20643         * modules/unictype/property-other-id-start: Likewise.
20644         * modules/unictype/property-other-lowercase: Likewise.
20645         * modules/unictype/property-other-math: Likewise.
20646         * modules/unictype/property-other-uppercase: Likewise.
20647         * modules/unictype/property-paired-punctuation: Likewise.
20648         * modules/unictype/property-paragraph-separator: Likewise.
20649         * modules/unictype/property-pattern-syntax: Likewise.
20650         * modules/unictype/property-pattern-white-space: Likewise.
20651         * modules/unictype/property-private-use: Likewise.
20652         * modules/unictype/property-punctuation: Likewise.
20653         * modules/unictype/property-quotation-mark: Likewise.
20654         * modules/unictype/property-radical: Likewise.
20655         * modules/unictype/property-sentence-terminal: Likewise.
20656         * modules/unictype/property-soft-dotted: Likewise.
20657         * modules/unictype/property-space: Likewise.
20658         * modules/unictype/property-terminal-punctuation: Likewise.
20659         * modules/unictype/property-test: Likewise.
20660         * modules/unictype/property-titlecase: Likewise.
20661         * modules/unictype/property-unassigned-code-value: Likewise.
20662         * modules/unictype/property-unified-ideograph: Likewise.
20663         * modules/unictype/property-uppercase: Likewise.
20664         * modules/unictype/property-variation-selector: Likewise.
20665         * modules/unictype/property-white-space: Likewise.
20666         * modules/unictype/property-xid-continue: Likewise.
20667         * modules/unictype/property-xid-start: Likewise.
20668         * modules/unictype/property-zero-width: Likewise.
20669         * modules/unictype/scripts: Likewise.
20670         * modules/unictype/syntax-c-ident: Likewise.
20671         * modules/unictype/syntax-c-whitespace: Likewise.
20672         * modules/unictype/syntax-java-ident: Likewise.
20673         * modules/unictype/syntax-java-whitespace: Likewise.
20674         * modules/unilbrk/u8-possible-linebreaks: Likewise.
20675         * modules/unilbrk/u8-width-linebreaks: Likewise.
20676         * modules/unilbrk/u16-possible-linebreaks: Likewise.
20677         * modules/unilbrk/u16-width-linebreaks: Likewise.
20678         * modules/unilbrk/u32-possible-linebreaks: Likewise.
20679         * modules/unilbrk/u32-width-linebreaks: Likewise.
20680         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
20681         * modules/unilbrk/ulc-width-linebreaks: Likewise.
20682         * modules/uniname/uniname: Likewise.
20683         * modules/uninorm/canonical-decomposition: Likewise.
20684         * modules/uninorm/composition: Likewise.
20685         * modules/uninorm/decomposing-form: Likewise.
20686         * modules/uninorm/decomposition: Likewise.
20687         * modules/uninorm/filter: Likewise.
20688         * modules/uninorm/nfc: Likewise.
20689         * modules/uninorm/nfd: Likewise.
20690         * modules/uninorm/nfkc: Likewise.
20691         * modules/uninorm/nfkd: Likewise.
20692         * modules/uninorm/u8-normalize: Likewise.
20693         * modules/uninorm/u8-normcmp: Likewise.
20694         * modules/uninorm/u8-normcoll: Likewise.
20695         * modules/uninorm/u8-normxfrm: Likewise.
20696         * modules/uninorm/u16-normalize: Likewise.
20697         * modules/uninorm/u16-normcmp: Likewise.
20698         * modules/uninorm/u16-normcoll: Likewise.
20699         * modules/uninorm/u16-normxfrm: Likewise.
20700         * modules/uninorm/u32-normalize: Likewise.
20701         * modules/uninorm/u32-normcmp: Likewise.
20702         * modules/uninorm/u32-normcoll: Likewise.
20703         * modules/uninorm/u32-normxfrm: Likewise.
20704         * modules/unistdio/u8-asnprintf: Likewise.
20705         * modules/unistdio/u8-asprintf: Likewise.
20706         * modules/unistdio/u8-snprintf: Likewise.
20707         * modules/unistdio/u8-sprintf: Likewise.
20708         * modules/unistdio/u8-u8-asnprintf: Likewise.
20709         * modules/unistdio/u8-u8-asprintf: Likewise.
20710         * modules/unistdio/u8-u8-snprintf: Likewise.
20711         * modules/unistdio/u8-u8-sprintf: Likewise.
20712         * modules/unistdio/u8-u8-vasnprintf: Likewise.
20713         * modules/unistdio/u8-u8-vasprintf: Likewise.
20714         * modules/unistdio/u8-u8-vsnprintf: Likewise.
20715         * modules/unistdio/u8-u8-vsprintf: Likewise.
20716         * modules/unistdio/u8-vasnprintf: Likewise.
20717         * modules/unistdio/u8-vasprintf: Likewise.
20718         * modules/unistdio/u8-vsnprintf: Likewise.
20719         * modules/unistdio/u8-vsprintf: Likewise.
20720         * modules/unistdio/u16-asnprintf: Likewise.
20721         * modules/unistdio/u16-asprintf: Likewise.
20722         * modules/unistdio/u16-snprintf: Likewise.
20723         * modules/unistdio/u16-sprintf: Likewise.
20724         * modules/unistdio/u16-u16-asnprintf: Likewise.
20725         * modules/unistdio/u16-u16-asprintf: Likewise.
20726         * modules/unistdio/u16-u16-snprintf: Likewise.
20727         * modules/unistdio/u16-u16-sprintf: Likewise.
20728         * modules/unistdio/u16-u16-vasnprintf: Likewise.
20729         * modules/unistdio/u16-u16-vasprintf: Likewise.
20730         * modules/unistdio/u16-u16-vsnprintf: Likewise.
20731         * modules/unistdio/u16-u16-vsprintf: Likewise.
20732         * modules/unistdio/u16-vasnprintf: Likewise.
20733         * modules/unistdio/u16-vasprintf: Likewise.
20734         * modules/unistdio/u16-vsnprintf: Likewise.
20735         * modules/unistdio/u16-vsprintf: Likewise.
20736         * modules/unistdio/u32-asnprintf: Likewise.
20737         * modules/unistdio/u32-asprintf: Likewise.
20738         * modules/unistdio/u32-snprintf: Likewise.
20739         * modules/unistdio/u32-sprintf: Likewise.
20740         * modules/unistdio/u32-u32-asnprintf: Likewise.
20741         * modules/unistdio/u32-u32-asprintf: Likewise.
20742         * modules/unistdio/u32-u32-snprintf: Likewise.
20743         * modules/unistdio/u32-u32-sprintf: Likewise.
20744         * modules/unistdio/u32-u32-vasnprintf: Likewise.
20745         * modules/unistdio/u32-u32-vasprintf: Likewise.
20746         * modules/unistdio/u32-u32-vsnprintf: Likewise.
20747         * modules/unistdio/u32-u32-vsprintf: Likewise.
20748         * modules/unistdio/u32-vasnprintf: Likewise.
20749         * modules/unistdio/u32-vasprintf: Likewise.
20750         * modules/unistdio/u32-vsnprintf: Likewise.
20751         * modules/unistdio/u32-vsprintf: Likewise.
20752         * modules/unistdio/ulc-asnprintf: Likewise.
20753         * modules/unistdio/ulc-asprintf: Likewise.
20754         * modules/unistdio/ulc-fprintf: Likewise.
20755         * modules/unistdio/ulc-snprintf: Likewise.
20756         * modules/unistdio/ulc-sprintf: Likewise.
20757         * modules/unistdio/ulc-vasnprintf: Likewise.
20758         * modules/unistdio/ulc-vasprintf: Likewise.
20759         * modules/unistdio/ulc-vfprintf: Likewise.
20760         * modules/unistdio/ulc-vsnprintf: Likewise.
20761         * modules/unistdio/ulc-vsprintf: Likewise.
20762         * modules/unistr/u8-check: Likewise.
20763         * modules/unistr/u8-chr: Likewise.
20764         * modules/unistr/u8-cmp: Likewise.
20765         * modules/unistr/u8-cmp2: Likewise.
20766         * modules/unistr/u8-cpy: Likewise.
20767         * modules/unistr/u8-cpy-alloc: Likewise.
20768         * modules/unistr/u8-endswith: Likewise.
20769         * modules/unistr/u8-mblen: Likewise.
20770         * modules/unistr/u8-mbsnlen: Likewise.
20771         * modules/unistr/u8-mbtouc: Likewise.
20772         * modules/unistr/u8-mbtouc-unsafe: Likewise.
20773         * modules/unistr/u8-mbtoucr: Likewise.
20774         * modules/unistr/u8-move: Likewise.
20775         * modules/unistr/u8-next: Likewise.
20776         * modules/unistr/u8-prev: Likewise.
20777         * modules/unistr/u8-set: Likewise.
20778         * modules/unistr/u8-startswith: Likewise.
20779         * modules/unistr/u8-stpcpy: Likewise.
20780         * modules/unistr/u8-stpncpy: Likewise.
20781         * modules/unistr/u8-strcat: Likewise.
20782         * modules/unistr/u8-strchr: Likewise.
20783         * modules/unistr/u8-strcmp: Likewise.
20784         * modules/unistr/u8-strcoll: Likewise.
20785         * modules/unistr/u8-strcpy: Likewise.
20786         * modules/unistr/u8-strcspn: Likewise.
20787         * modules/unistr/u8-strdup: Likewise.
20788         * modules/unistr/u8-strlen: Likewise.
20789         * modules/unistr/u8-strmblen: Likewise.
20790         * modules/unistr/u8-strmbtouc: Likewise.
20791         * modules/unistr/u8-strncat: Likewise.
20792         * modules/unistr/u8-strncmp: Likewise.
20793         * modules/unistr/u8-strncpy: Likewise.
20794         * modules/unistr/u8-strnlen: Likewise.
20795         * modules/unistr/u8-strpbrk: Likewise.
20796         * modules/unistr/u8-strrchr: Likewise.
20797         * modules/unistr/u8-strspn: Likewise.
20798         * modules/unistr/u8-strstr: Likewise.
20799         * modules/unistr/u8-strtok: Likewise.
20800         * modules/unistr/u8-to-u16: Likewise.
20801         * modules/unistr/u8-to-u32: Likewise.
20802         * modules/unistr/u8-uctomb: Likewise.
20803         * modules/unistr/u16-check: Likewise.
20804         * modules/unistr/u16-chr: Likewise.
20805         * modules/unistr/u16-cmp: Likewise.
20806         * modules/unistr/u16-cmp2: Likewise.
20807         * modules/unistr/u16-cpy: Likewise.
20808         * modules/unistr/u16-cpy-alloc: Likewise.
20809         * modules/unistr/u16-endswith: Likewise.
20810         * modules/unistr/u16-mblen: Likewise.
20811         * modules/unistr/u16-mbsnlen: Likewise.
20812         * modules/unistr/u16-mbtouc: Likewise.
20813         * modules/unistr/u16-mbtouc-unsafe: Likewise.
20814         * modules/unistr/u16-mbtoucr: Likewise.
20815         * modules/unistr/u16-move: Likewise.
20816         * modules/unistr/u16-next: Likewise.
20817         * modules/unistr/u16-prev: Likewise.
20818         * modules/unistr/u16-set: Likewise.
20819         * modules/unistr/u16-startswith: Likewise.
20820         * modules/unistr/u16-stpcpy: Likewise.
20821         * modules/unistr/u16-stpncpy: Likewise.
20822         * modules/unistr/u16-strcat: Likewise.
20823         * modules/unistr/u16-strchr: Likewise.
20824         * modules/unistr/u16-strcmp: Likewise.
20825         * modules/unistr/u16-strcoll: Likewise.
20826         * modules/unistr/u16-strcpy: Likewise.
20827         * modules/unistr/u16-strcspn: Likewise.
20828         * modules/unistr/u16-strdup: Likewise.
20829         * modules/unistr/u16-strlen: Likewise.
20830         * modules/unistr/u16-strmblen: Likewise.
20831         * modules/unistr/u16-strmbtouc: Likewise.
20832         * modules/unistr/u16-strncat: Likewise.
20833         * modules/unistr/u16-strncmp: Likewise.
20834         * modules/unistr/u16-strncpy: Likewise.
20835         * modules/unistr/u16-strnlen: Likewise.
20836         * modules/unistr/u16-strpbrk: Likewise.
20837         * modules/unistr/u16-strrchr: Likewise.
20838         * modules/unistr/u16-strspn: Likewise.
20839         * modules/unistr/u16-strstr: Likewise.
20840         * modules/unistr/u16-strtok: Likewise.
20841         * modules/unistr/u16-to-u32: Likewise.
20842         * modules/unistr/u16-to-u8: Likewise.
20843         * modules/unistr/u16-uctomb: Likewise.
20844         * modules/unistr/u32-check: Likewise.
20845         * modules/unistr/u32-chr: Likewise.
20846         * modules/unistr/u32-cmp: Likewise.
20847         * modules/unistr/u32-cmp2: Likewise.
20848         * modules/unistr/u32-cpy: Likewise.
20849         * modules/unistr/u32-cpy-alloc: Likewise.
20850         * modules/unistr/u32-endswith: Likewise.
20851         * modules/unistr/u32-mblen: Likewise.
20852         * modules/unistr/u32-mbsnlen: Likewise.
20853         * modules/unistr/u32-mbtouc: Likewise.
20854         * modules/unistr/u32-mbtouc-unsafe: Likewise.
20855         * modules/unistr/u32-mbtoucr: Likewise.
20856         * modules/unistr/u32-move: Likewise.
20857         * modules/unistr/u32-next: Likewise.
20858         * modules/unistr/u32-prev: Likewise.
20859         * modules/unistr/u32-set: Likewise.
20860         * modules/unistr/u32-startswith: Likewise.
20861         * modules/unistr/u32-stpcpy: Likewise.
20862         * modules/unistr/u32-stpncpy: Likewise.
20863         * modules/unistr/u32-strcat: Likewise.
20864         * modules/unistr/u32-strchr: Likewise.
20865         * modules/unistr/u32-strcmp: Likewise.
20866         * modules/unistr/u32-strcoll: Likewise.
20867         * modules/unistr/u32-strcpy: Likewise.
20868         * modules/unistr/u32-strcspn: Likewise.
20869         * modules/unistr/u32-strdup: Likewise.
20870         * modules/unistr/u32-strlen: Likewise.
20871         * modules/unistr/u32-strmblen: Likewise.
20872         * modules/unistr/u32-strmbtouc: Likewise.
20873         * modules/unistr/u32-strncat: Likewise.
20874         * modules/unistr/u32-strncmp: Likewise.
20875         * modules/unistr/u32-strncpy: Likewise.
20876         * modules/unistr/u32-strnlen: Likewise.
20877         * modules/unistr/u32-strpbrk: Likewise.
20878         * modules/unistr/u32-strrchr: Likewise.
20879         * modules/unistr/u32-strspn: Likewise.
20880         * modules/unistr/u32-strstr: Likewise.
20881         * modules/unistr/u32-strtok: Likewise.
20882         * modules/unistr/u32-to-u16: Likewise.
20883         * modules/unistr/u32-to-u8: Likewise.
20884         * modules/unistr/u32-uctomb: Likewise.
20885         * modules/uniwbrk/u8-wordbreaks: Likewise.
20886         * modules/uniwbrk/u16-wordbreaks: Likewise.
20887         * modules/uniwbrk/u32-wordbreaks: Likewise.
20888         * modules/uniwbrk/ulc-wordbreaks: Likewise.
20889         * modules/uniwbrk/wordbreak-property: Likewise.
20890         * modules/uniwidth/u8-strwidth: Likewise.
20891         * modules/uniwidth/u8-width: Likewise.
20892         * modules/uniwidth/u16-strwidth: Likewise.
20893         * modules/uniwidth/u16-width: Likewise.
20894         * modules/uniwidth/u32-strwidth: Likewise.
20895         * modules/uniwidth/u32-width: Likewise.
20896         * modules/uniwidth/width: Likewise.
20897         * modules/unicase/cased-tests (Makefile.am): Link all test programs
20898         with $(LIBUNISTRING).
20899         * modules/unicase/ignorable-tests: Likewise.
20900         * modules/unicase/locale-language-tests: Likewise.
20901         * modules/unicase/tolower-tests: Likewise.
20902         * modules/unicase/totitle-tests: Likewise.
20903         * modules/unicase/toupper-tests: Likewise.
20904         * modules/unicase/u8-casecmp-tests: Likewise.
20905         * modules/unicase/u8-casecoll-tests: Likewise.
20906         * modules/unicase/u8-casefold-tests: Likewise.
20907         * modules/unicase/u8-is-cased-tests: Likewise.
20908         * modules/unicase/u8-is-casefolded-tests: Likewise.
20909         * modules/unicase/u8-is-lowercase-tests: Likewise.
20910         * modules/unicase/u8-is-titlecase-tests: Likewise.
20911         * modules/unicase/u8-is-uppercase-tests: Likewise.
20912         * modules/unicase/u8-tolower-tests: Likewise.
20913         * modules/unicase/u8-totitle-tests: Likewise.
20914         * modules/unicase/u8-toupper-tests: Likewise.
20915         * modules/unicase/u16-casecmp-tests: Likewise.
20916         * modules/unicase/u16-casecoll-tests: Likewise.
20917         * modules/unicase/u16-casefold-tests: Likewise.
20918         * modules/unicase/u16-is-cased-tests: Likewise.
20919         * modules/unicase/u16-is-casefolded-tests: Likewise.
20920         * modules/unicase/u16-is-lowercase-tests: Likewise.
20921         * modules/unicase/u16-is-titlecase-tests: Likewise.
20922         * modules/unicase/u16-is-uppercase-tests: Likewise.
20923         * modules/unicase/u16-tolower-tests: Likewise.
20924         * modules/unicase/u16-totitle-tests: Likewise.
20925         * modules/unicase/u16-toupper-tests: Likewise.
20926         * modules/unicase/u32-casecmp-tests: Likewise.
20927         * modules/unicase/u32-casecoll-tests: Likewise.
20928         * modules/unicase/u32-casefold-tests: Likewise.
20929         * modules/unicase/u32-is-cased-tests: Likewise.
20930         * modules/unicase/u32-is-casefolded-tests: Likewise.
20931         * modules/unicase/u32-is-lowercase-tests: Likewise.
20932         * modules/unicase/u32-is-titlecase-tests: Likewise.
20933         * modules/unicase/u32-is-uppercase-tests: Likewise.
20934         * modules/unicase/u32-tolower-tests: Likewise.
20935         * modules/unicase/u32-totitle-tests: Likewise.
20936         * modules/unicase/u32-toupper-tests: Likewise.
20937         * modules/unicase/ulc-casecmp-tests: Likewise.
20938         * modules/unicase/ulc-casecoll-tests: Likewise.
20939         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
20940         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
20941         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
20942         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
20943         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
20944         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
20945         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
20946         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
20947         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
20948         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
20949         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
20950         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
20951         * modules/unictype/bidicategory-byname-tests: Likewise.
20952         * modules/unictype/bidicategory-name-tests: Likewise.
20953         * modules/unictype/bidicategory-of-tests: Likewise.
20954         * modules/unictype/bidicategory-test-tests: Likewise.
20955         * modules/unictype/block-list-tests: Likewise.
20956         * modules/unictype/block-of-tests: Likewise.
20957         * modules/unictype/block-test-tests: Likewise.
20958         * modules/unictype/category-C-tests: Likewise.
20959         * modules/unictype/category-Cc-tests: Likewise.
20960         * modules/unictype/category-Cf-tests: Likewise.
20961         * modules/unictype/category-Cn-tests: Likewise.
20962         * modules/unictype/category-Co-tests: Likewise.
20963         * modules/unictype/category-Cs-tests: Likewise.
20964         * modules/unictype/category-L-tests: Likewise.
20965         * modules/unictype/category-Ll-tests: Likewise.
20966         * modules/unictype/category-Lm-tests: Likewise.
20967         * modules/unictype/category-Lo-tests: Likewise.
20968         * modules/unictype/category-Lt-tests: Likewise.
20969         * modules/unictype/category-Lu-tests: Likewise.
20970         * modules/unictype/category-M-tests: Likewise.
20971         * modules/unictype/category-Mc-tests: Likewise.
20972         * modules/unictype/category-Me-tests: Likewise.
20973         * modules/unictype/category-Mn-tests: Likewise.
20974         * modules/unictype/category-N-tests: Likewise.
20975         * modules/unictype/category-Nd-tests: Likewise.
20976         * modules/unictype/category-Nl-tests: Likewise.
20977         * modules/unictype/category-No-tests: Likewise.
20978         * modules/unictype/category-P-tests: Likewise.
20979         * modules/unictype/category-Pc-tests: Likewise.
20980         * modules/unictype/category-Pd-tests: Likewise.
20981         * modules/unictype/category-Pe-tests: Likewise.
20982         * modules/unictype/category-Pf-tests: Likewise.
20983         * modules/unictype/category-Pi-tests: Likewise.
20984         * modules/unictype/category-Po-tests: Likewise.
20985         * modules/unictype/category-Ps-tests: Likewise.
20986         * modules/unictype/category-S-tests: Likewise.
20987         * modules/unictype/category-Sc-tests: Likewise.
20988         * modules/unictype/category-Sk-tests: Likewise.
20989         * modules/unictype/category-Sm-tests: Likewise.
20990         * modules/unictype/category-So-tests: Likewise.
20991         * modules/unictype/category-Z-tests: Likewise.
20992         * modules/unictype/category-Zl-tests: Likewise.
20993         * modules/unictype/category-Zp-tests: Likewise.
20994         * modules/unictype/category-Zs-tests: Likewise.
20995         * modules/unictype/category-and-not-tests: Likewise.
20996         * modules/unictype/category-and-tests: Likewise.
20997         * modules/unictype/category-byname-tests: Likewise.
20998         * modules/unictype/category-name-tests: Likewise.
20999         * modules/unictype/category-none-tests: Likewise.
21000         * modules/unictype/category-of-tests: Likewise.
21001         * modules/unictype/category-or-tests: Likewise.
21002         * modules/unictype/category-test-withtable-tests: Likewise.
21003         * modules/unictype/combining-class-tests: Likewise.
21004         * modules/unictype/ctype-alnum-tests: Likewise.
21005         * modules/unictype/ctype-alpha-tests: Likewise.
21006         * modules/unictype/ctype-blank-tests: Likewise.
21007         * modules/unictype/ctype-cntrl-tests: Likewise.
21008         * modules/unictype/ctype-digit-tests: Likewise.
21009         * modules/unictype/ctype-graph-tests: Likewise.
21010         * modules/unictype/ctype-lower-tests: Likewise.
21011         * modules/unictype/ctype-print-tests: Likewise.
21012         * modules/unictype/ctype-punct-tests: Likewise.
21013         * modules/unictype/ctype-space-tests: Likewise.
21014         * modules/unictype/ctype-upper-tests: Likewise.
21015         * modules/unictype/ctype-xdigit-tests: Likewise.
21016         * modules/unictype/decimal-digit-tests: Likewise.
21017         * modules/unictype/digit-tests: Likewise.
21018         * modules/unictype/mirror-tests: Likewise.
21019         * modules/unictype/numeric-tests: Likewise.
21020         * modules/unictype/property-alphabetic-tests: Likewise.
21021         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
21022         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
21023         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
21024         * modules/unictype/property-bidi-block-separator-tests: Likewise.
21025         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
21026         * modules/unictype/property-bidi-common-separator-tests: Likewise.
21027         * modules/unictype/property-bidi-control-tests: Likewise.
21028         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
21029         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
21030         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
21031         * modules/unictype/property-bidi-european-digit-tests: Likewise.
21032         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
21033         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
21034         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
21035         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
21036         * modules/unictype/property-bidi-pdf-tests: Likewise.
21037         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
21038         * modules/unictype/property-bidi-whitespace-tests: Likewise.
21039         * modules/unictype/property-byname-tests: Likewise.
21040         * modules/unictype/property-combining-tests: Likewise.
21041         * modules/unictype/property-composite-tests: Likewise.
21042         * modules/unictype/property-currency-symbol-tests: Likewise.
21043         * modules/unictype/property-dash-tests: Likewise.
21044         * modules/unictype/property-decimal-digit-tests: Likewise.
21045         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
21046         * modules/unictype/property-deprecated-tests: Likewise.
21047         * modules/unictype/property-diacritic-tests: Likewise.
21048         * modules/unictype/property-extender-tests: Likewise.
21049         * modules/unictype/property-format-control-tests: Likewise.
21050         * modules/unictype/property-grapheme-base-tests: Likewise.
21051         * modules/unictype/property-grapheme-extend-tests: Likewise.
21052         * modules/unictype/property-grapheme-link-tests: Likewise.
21053         * modules/unictype/property-hex-digit-tests: Likewise.
21054         * modules/unictype/property-hyphen-tests: Likewise.
21055         * modules/unictype/property-id-continue-tests: Likewise.
21056         * modules/unictype/property-id-start-tests: Likewise.
21057         * modules/unictype/property-ideographic-tests: Likewise.
21058         * modules/unictype/property-ids-binary-operator-tests: Likewise.
21059         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
21060         * modules/unictype/property-ignorable-control-tests: Likewise.
21061         * modules/unictype/property-iso-control-tests: Likewise.
21062         * modules/unictype/property-join-control-tests: Likewise.
21063         * modules/unictype/property-left-of-pair-tests: Likewise.
21064         * modules/unictype/property-line-separator-tests: Likewise.
21065         * modules/unictype/property-logical-order-exception-tests: Likewise.
21066         * modules/unictype/property-lowercase-tests: Likewise.
21067         * modules/unictype/property-math-tests: Likewise.
21068         * modules/unictype/property-non-break-tests: Likewise.
21069         * modules/unictype/property-not-a-character-tests: Likewise.
21070         * modules/unictype/property-numeric-tests: Likewise.
21071         * modules/unictype/property-other-alphabetic-tests: Likewise.
21072         * modules/unictype/property-other-default-ignorable-code-point-tests:
21073         Likewise.
21074         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
21075         * modules/unictype/property-other-id-continue-tests: Likewise.
21076         * modules/unictype/property-other-id-start-tests: Likewise.
21077         * modules/unictype/property-other-lowercase-tests: Likewise.
21078         * modules/unictype/property-other-math-tests: Likewise.
21079         * modules/unictype/property-other-uppercase-tests: Likewise.
21080         * modules/unictype/property-paired-punctuation-tests: Likewise.
21081         * modules/unictype/property-paragraph-separator-tests: Likewise.
21082         * modules/unictype/property-pattern-syntax-tests: Likewise.
21083         * modules/unictype/property-pattern-white-space-tests: Likewise.
21084         * modules/unictype/property-private-use-tests: Likewise.
21085         * modules/unictype/property-punctuation-tests: Likewise.
21086         * modules/unictype/property-quotation-mark-tests: Likewise.
21087         * modules/unictype/property-radical-tests: Likewise.
21088         * modules/unictype/property-sentence-terminal-tests: Likewise.
21089         * modules/unictype/property-soft-dotted-tests: Likewise.
21090         * modules/unictype/property-space-tests: Likewise.
21091         * modules/unictype/property-terminal-punctuation-tests: Likewise.
21092         * modules/unictype/property-test-tests: Likewise.
21093         * modules/unictype/property-titlecase-tests: Likewise.
21094         * modules/unictype/property-unassigned-code-value-tests: Likewise.
21095         * modules/unictype/property-unified-ideograph-tests: Likewise.
21096         * modules/unictype/property-uppercase-tests: Likewise.
21097         * modules/unictype/property-variation-selector-tests: Likewise.
21098         * modules/unictype/property-white-space-tests: Likewise.
21099         * modules/unictype/property-xid-continue-tests: Likewise.
21100         * modules/unictype/property-xid-start-tests: Likewise.
21101         * modules/unictype/property-zero-width-tests: Likewise.
21102         * modules/unictype/scripts-tests: Likewise.
21103         * modules/unictype/syntax-c-ident-tests: Likewise.
21104         * modules/unictype/syntax-c-whitespace-tests: Likewise.
21105         * modules/unictype/syntax-java-ident-tests: Likewise.
21106         * modules/unictype/syntax-java-whitespace-tests: Likewise.
21107         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
21108         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
21109         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
21110         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
21111         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
21112         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
21113         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
21114         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
21115         * modules/uniname/uniname-tests: Likewise.
21116         * modules/uninorm/canonical-decomposition-tests: Likewise.
21117         * modules/uninorm/compat-decomposition-tests: Likewise.
21118         * modules/uninorm/composition-tests: Likewise.
21119         * modules/uninorm/decomposing-form-tests: Likewise.
21120         * modules/uninorm/decomposition-tests: Likewise.
21121         * modules/uninorm/filter-tests: Likewise.
21122         * modules/uninorm/nfc-tests: Likewise.
21123         * modules/uninorm/nfd-tests: Likewise.
21124         * modules/uninorm/nfkc-tests: Likewise.
21125         * modules/uninorm/nfkd-tests: Likewise.
21126         * modules/uninorm/u8-normcmp-tests: Likewise.
21127         * modules/uninorm/u8-normcoll-tests: Likewise.
21128         * modules/uninorm/u16-normcmp-tests: Likewise.
21129         * modules/uninorm/u16-normcoll-tests: Likewise.
21130         * modules/uninorm/u32-normcmp-tests: Likewise.
21131         * modules/uninorm/u32-normcoll-tests: Likewise.
21132         * modules/unistdio/u8-asnprintf-tests: Likewise.
21133         * modules/unistdio/u8-vasnprintf-tests: Likewise.
21134         * modules/unistdio/u8-vasprintf-tests: Likewise.
21135         * modules/unistdio/u8-vsnprintf-tests: Likewise.
21136         * modules/unistdio/u8-vsprintf-tests: Likewise.
21137         * modules/unistdio/u16-asnprintf-tests: Likewise.
21138         * modules/unistdio/u16-vasnprintf-tests: Likewise.
21139         * modules/unistdio/u16-vasprintf-tests: Likewise.
21140         * modules/unistdio/u16-vsnprintf-tests: Likewise.
21141         * modules/unistdio/u16-vsprintf-tests: Likewise.
21142         * modules/unistdio/u32-asnprintf-tests: Likewise.
21143         * modules/unistdio/u32-vasnprintf-tests: Likewise.
21144         * modules/unistdio/u32-vasprintf-tests: Likewise.
21145         * modules/unistdio/u32-vsnprintf-tests: Likewise.
21146         * modules/unistdio/u32-vsprintf-tests: Likewise.
21147         * modules/unistdio/ulc-asnprintf-tests: Likewise.
21148         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
21149         * modules/unistdio/ulc-vasprintf-tests: Likewise.
21150         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
21151         * modules/unistdio/ulc-vsprintf-tests: Likewise.
21152         * modules/unistr/u8-check-tests: Likewise.
21153         * modules/unistr/u8-chr-tests: Likewise.
21154         * modules/unistr/u8-cmp-tests: Likewise.
21155         * modules/unistr/u8-cmp2-tests: Likewise.
21156         * modules/unistr/u8-cpy-alloc-tests: Likewise.
21157         * modules/unistr/u8-cpy-tests: Likewise.
21158         * modules/unistr/u8-mblen-tests: Likewise.
21159         * modules/unistr/u8-mbsnlen-tests: Likewise.
21160         * modules/unistr/u8-mbtouc-tests: Likewise.
21161         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
21162         * modules/unistr/u8-mbtoucr-tests: Likewise.
21163         * modules/unistr/u8-move-tests: Likewise.
21164         * modules/unistr/u8-next-tests: Likewise.
21165         * modules/unistr/u8-prev-tests: Likewise.
21166         * modules/unistr/u8-set-tests: Likewise.
21167         * modules/unistr/u8-stpcpy-tests: Likewise.
21168         * modules/unistr/u8-stpncpy-tests: Likewise.
21169         * modules/unistr/u8-strcat-tests: Likewise.
21170         * modules/unistr/u8-strcmp-tests: Likewise.
21171         * modules/unistr/u8-strcoll-tests: Likewise.
21172         * modules/unistr/u8-strcpy-tests: Likewise.
21173         * modules/unistr/u8-strdup-tests: Likewise.
21174         * modules/unistr/u8-strlen-tests: Likewise.
21175         * modules/unistr/u8-strmblen-tests: Likewise.
21176         * modules/unistr/u8-strmbtouc-tests: Likewise.
21177         * modules/unistr/u8-strncat-tests: Likewise.
21178         * modules/unistr/u8-strncmp-tests: Likewise.
21179         * modules/unistr/u8-strncpy-tests: Likewise.
21180         * modules/unistr/u8-strnlen-tests: Likewise.
21181         * modules/unistr/u8-to-u16-tests: Likewise.
21182         * modules/unistr/u8-to-u32-tests: Likewise.
21183         * modules/unistr/u8-uctomb-tests: Likewise.
21184         * modules/unistr/u16-check-tests: Likewise.
21185         * modules/unistr/u16-chr-tests: Likewise.
21186         * modules/unistr/u16-cmp-tests: Likewise.
21187         * modules/unistr/u16-cmp2-tests: Likewise.
21188         * modules/unistr/u16-cpy-alloc-tests: Likewise.
21189         * modules/unistr/u16-cpy-tests: Likewise.
21190         * modules/unistr/u16-mblen-tests: Likewise.
21191         * modules/unistr/u16-mbsnlen-tests: Likewise.
21192         * modules/unistr/u16-mbtouc-tests: Likewise.
21193         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
21194         * modules/unistr/u16-mbtoucr-tests: Likewise.
21195         * modules/unistr/u16-move-tests: Likewise.
21196         * modules/unistr/u16-next-tests: Likewise.
21197         * modules/unistr/u16-prev-tests: Likewise.
21198         * modules/unistr/u16-set-tests: Likewise.
21199         * modules/unistr/u16-stpcpy-tests: Likewise.
21200         * modules/unistr/u16-stpncpy-tests: Likewise.
21201         * modules/unistr/u16-strcat-tests: Likewise.
21202         * modules/unistr/u16-strcmp-tests: Likewise.
21203         * modules/unistr/u16-strcoll-tests: Likewise.
21204         * modules/unistr/u16-strcpy-tests: Likewise.
21205         * modules/unistr/u16-strdup-tests: Likewise.
21206         * modules/unistr/u16-strlen-tests: Likewise.
21207         * modules/unistr/u16-strmblen-tests: Likewise.
21208         * modules/unistr/u16-strmbtouc-tests: Likewise.
21209         * modules/unistr/u16-strncat-tests: Likewise.
21210         * modules/unistr/u16-strncmp-tests: Likewise.
21211         * modules/unistr/u16-strncpy-tests: Likewise.
21212         * modules/unistr/u16-strnlen-tests: Likewise.
21213         * modules/unistr/u16-to-u32-tests: Likewise.
21214         * modules/unistr/u16-to-u8-tests: Likewise.
21215         * modules/unistr/u16-uctomb-tests: Likewise.
21216         * modules/unistr/u32-check-tests: Likewise.
21217         * modules/unistr/u32-chr-tests: Likewise.
21218         * modules/unistr/u32-cmp-tests: Likewise.
21219         * modules/unistr/u32-cmp2-tests: Likewise.
21220         * modules/unistr/u32-cpy-alloc-tests: Likewise.
21221         * modules/unistr/u32-cpy-tests: Likewise.
21222         * modules/unistr/u32-mblen-tests: Likewise.
21223         * modules/unistr/u32-mbsnlen-tests: Likewise.
21224         * modules/unistr/u32-mbtouc-tests: Likewise.
21225         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
21226         * modules/unistr/u32-mbtoucr-tests: Likewise.
21227         * modules/unistr/u32-move-tests: Likewise.
21228         * modules/unistr/u32-next-tests: Likewise.
21229         * modules/unistr/u32-prev-tests: Likewise.
21230         * modules/unistr/u32-set-tests: Likewise.
21231         * modules/unistr/u32-stpcpy-tests: Likewise.
21232         * modules/unistr/u32-stpncpy-tests: Likewise.
21233         * modules/unistr/u32-strcat-tests: Likewise.
21234         * modules/unistr/u32-strcmp-tests: Likewise.
21235         * modules/unistr/u32-strcoll-tests: Likewise.
21236         * modules/unistr/u32-strcpy-tests: Likewise.
21237         * modules/unistr/u32-strdup-tests: Likewise.
21238         * modules/unistr/u32-strlen-tests: Likewise.
21239         * modules/unistr/u32-strmblen-tests: Likewise.
21240         * modules/unistr/u32-strmbtouc-tests: Likewise.
21241         * modules/unistr/u32-strncat-tests: Likewise.
21242         * modules/unistr/u32-strncmp-tests: Likewise.
21243         * modules/unistr/u32-strncpy-tests: Likewise.
21244         * modules/unistr/u32-strnlen-tests: Likewise.
21245         * modules/unistr/u32-to-u16-tests: Likewise.
21246         * modules/unistr/u32-to-u8-tests: Likewise.
21247         * modules/unistr/u32-uctomb-tests: Likewise.
21248         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
21249         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
21250         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
21251         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
21252         * modules/uniwidth/u8-strwidth-tests: Likewise.
21253         * modules/uniwidth/u8-width-tests: Likewise.
21254         * modules/uniwidth/u16-strwidth-tests: Likewise.
21255         * modules/uniwidth/u16-width-tests: Likewise.
21256         * modules/uniwidth/u32-strwidth-tests: Likewise.
21257         * modules/uniwidth/u32-width-tests: Likewise.
21258         * modules/uniwidth/width-tests: Likewise.
21259
21260 2010-05-18  Richard Jones  <rjones@redhat.com>
21261
21262         doc: users.txt: list hivex
21263         * users.txt: Add hivex.
21264
21265 2010-05-18  Richard Jones  <rjones@redhat.com>
21266
21267         doc: users.txt: list febootstrap
21268         * users.txt: Add febootstrap.
21269
21270 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
21271
21272         bootstrap: fix an error when gnulib is not used as a git submodule
21273         * build-aux/bootstrap (gnulib_path): If its length is zero then
21274         assign "gnulib" to it.
21275         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
21276
21277 2010-05-16  Bruno Haible  <bruno@clisp.org>
21278
21279         Avoid autoconf warnings about AM_ICONV.
21280         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
21281         2.64.
21282
21283 2010-05-16  Bruno Haible  <bruno@clisp.org>
21284
21285         absolute-header: Make the macro usable in more situations.
21286         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
21287         from gl_ABSOLUTE_HEADER.
21288         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
21289
21290 2010-05-16  James Youngman  <jay@gnu.org>
21291
21292         doc: update users.txt
21293         * users.txt: Add CSSC.
21294
21295 2010-05-16  Jim Meyering  <meyering@redhat.com>
21296
21297         init.sh: fix an error in the previous change; add more comments
21298         * tests/init.sh: Compare exit code in loop against 9, not 2.
21299         Patch by Bruno Haible.
21300         Make the two tests more similar by adding an empty "then" clause.
21301         Add comments.
21302
21303         init.sh: avoid unnecessary shell re-exec
21304         * tests/init.sh: Improve the re-exec-required check to first test the
21305         current shell.  If it passes the test, do not search for a shell that
21306         does pass, and do not re-exec.  This test is particularly contorted to
21307         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
21308         of $(...) evokes a syntax error and causes immediate shell exit with
21309         status 2.  Bruno Haible reported that the re-exec made it impossible
21310         to single-step through any init.sh-using script.
21311
21312 2010-05-16  Bruno Haible  <bruno@clisp.org>
21313
21314         Fix collision between gnulib's and libintl's printf replacements.
21315         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
21316         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
21317         (printf): When using GNU C, map the __printf__ function to rpl_printf
21318         via __asm__. When not using GNU C, define rpl_printf instead of
21319         __printf__.
21320         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
21321         commit.
21322         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
21323         commit.
21324         * m4/asm-underscore.m4: New file.
21325         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
21326         * modules/stdio (Files): Add m4/asm-underscore.m4.
21327         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
21328         Reported by Ben Pfaff.
21329
21330 2010-05-16  Bruno Haible  <bruno@clisp.org>
21331
21332         verify: Avoid skipping the test on openSUSE 11.0.
21333         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
21334
21335 2010-05-13  Bruno Haible  <bruno@clisp.org>
21336
21337         Avoid useless warnings from G++.
21338         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
21339         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
21340         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21341
21342 2010-05-11  Jim Meyering  <meyering@redhat.com>
21343
21344         maint.mk: tweak preceding change
21345         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
21346         regexps tighter by anchoring at EOL, and make the new group "shy"
21347         for slightly decreased overhead.
21348
21349 2010-05-11  Eric Blake  <eblake@redhat.com>
21350
21351         maint.mk: gnulib doesn't guarantee NSIG
21352         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
21353
21354 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
21355
21356         test-pwrite.c: Remove unused variable declaration.
21357         * tests/test-pwrite.c (main): Remove read_buf declaration.
21358
21359         Remove useless test-pwrite.sh file.
21360         * tests/test-pwrite.sh: Delete file.
21361         * modules/pwrite-tests: Remove references.
21362         Reported by Bruno Haible.
21363
21364 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
21365
21366         init.sh: fix a typo
21367         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
21368
21369 2010-05-10  Jim Meyering  <meyering@redhat.com>
21370
21371         maint.mk: avoid using a temporary file in the always-defined-macros check
21372         * top/maint.mk (.re-defmac): Remove rule.
21373         (gl_trap_): Remove definition.
21374         (sc_prohibit_always-defined_macros): Rewrite not to create and
21375         depend on a temporary file.  Instead, depend on GNU grep's ability
21376         to read a list of regular expressions from stdin when given "-f -".
21377
21378 2010-05-09  Bruno Haible  <bruno@clisp.org>
21379
21380         Update to GNU gettext 0.18, part 1.
21381         * m4/gettext.m4: Update to GNU gettext 0.18.
21382         * m4/intl.m4: Likewise.
21383         * m4/po.m4: Likewise.
21384         * modules/gettext (Files): Add m4/fcntl-o.m4.
21385         (configure.ac): Require gettext infrastructure from version 0.18.
21386
21387 2010-05-09  Jim Meyering  <meyering@redhat.com>
21388
21389         init.sh: enable MALLOC_PERTURB_
21390         * tests/init.sh: Enable glibc's malloc-perturbing option.
21391
21392         maint.mk: improve sc_cross_check_PATH_usage_in_tests
21393         With my recent change in init.sh from the two-line form:
21394             -#   : ${srcdir=.}
21395             -#   . "$srcdir/init.sh"; path_prepend_ .
21396             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
21397         I noticed that using the one-line form would cause this test
21398         to fail with a false-positive, or to stop working altogether,
21399         depending on whether help-version changed or all the tests did.
21400         * top/maint.mk (_hv_regex): Remove this definition.
21401         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
21402         (_hv_regex_strong): Use a stronger regex to check for conformance.
21403         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
21404         Give a separate diagnostic for lack of conforming use.
21405
21406         maint.mk: prohibit definition of symbols defined by gnulib
21407         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
21408         definition of symbols defined by gnulib.
21409
21410 2010-05-09  Bruno Haible  <bruno@clisp.org>
21411
21412         acl: Avoid test failure on Cygwin-hosted mingw.
21413         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
21414
21415 2010-05-09  Bruno Haible  <bruno@clisp.org>
21416
21417         error: Use system's fcntl function.
21418         * lib/error.c (fcntl): Undefine.
21419
21420 2010-05-09  Jim Meyering  <meyering@redhat.com>
21421
21422         verify: adjust formatting to be more consistent
21423         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
21424         argument-list '('s, and after one comma.
21425
21426 2010-05-09  Bruno Haible  <bruno@clisp.org>
21427
21428         error: More reliable output on mingw.
21429         * lib/error.c: Include <windows.h>.
21430         (is_open): New function.
21431         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
21432         defined.
21433
21434 2010-05-09  Bruno Haible  <bruno@clisp.org>
21435
21436         vasnprintf: Fix syntax errors in libintl build on mingw.
21437         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
21438         pad_ourselves and prec_ourselves after use.
21439
21440 2010-05-08  Bruno Haible  <bruno@clisp.org>
21441
21442         * lib/config.charset: Update comments for Cygwin 1.7.
21443         * lib/localcharset.c: Likewise.
21444
21445 2010-05-07  Jim Meyering  <meyering@redhat.com>
21446
21447         init.sh: improve comments
21448         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
21449         . "${srcdir=.}/init.sh"; path_prepend_ .
21450         Add a note about path_prepend_ and the alternative of using
21451         TESTS_ENVIRONMENT.
21452
21453 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
21454
21455         exclude: Unescape hashed patterns in wildcard mode.
21456         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
21457         to the hash list.
21458         * tests/test-exclude8.sh: New test case.
21459         * modules/exclude-tests: Add new test.
21460
21461 2010-05-05  Eric Blake  <eblake@redhat.com>
21462
21463         verify: automate tests
21464         * modules/verify-tests: New module.
21465         * tests/test-verify.sh: New file.
21466         * tests/test-verify.c: Guard each negative test with a unique id.
21467         Also avoid warning about unused left hand of comma expressions.
21468
21469 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
21470
21471         Further improvements to verify.h, suggested by Eric Blake.
21472         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
21473         the GL_* versions, to avoid collision with OpenGL.
21474         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
21475         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
21476         than testing merely whether it's defined.
21477
21478         Modify verify.h to pacify gcc -Wredundant_decls.
21479         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
21480         These use the prefix "GL_" since they're likely to be useful elsewhere.
21481         We may need to break them out into a different .h file.
21482         (__COUNTER__): Define to 0 if the compiler doesn't support it.
21483         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
21484         of verify_function__.
21485
21486 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
21487
21488         Tests for module pwrite.
21489         * modules/pwrite-tests: New file.
21490         * tests/test-pwrite.sh: New file.
21491         * tests/test-pwrite.c: New file.
21492
21493         New module pwrite.
21494         * lib/unistd.in.h (pwrite): New declaration.
21495         * lib/pwrite.c: New file, from glibc with modifications.
21496         * m4/pwrite.m4: New file.
21497         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
21498         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
21499         REPLACE_PWRITE.
21500         * modules/pwrite: New file.
21501         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
21502         REPLACE_PWRITE.
21503         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
21504         * doc/posix-functions/pwrite.texi: Mention the new module.
21505
21506 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
21507
21508         pread: Update documentation.
21509         * doc/posix-functions/pread.texi: Mention the 'pread' module.
21510
21511 2010-05-04  Eric Blake  <eblake@redhat.com>
21512
21513         docs: update cygwin progress
21514         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
21515         this bug.
21516         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
21517         Added in cygwin 1.7.2.
21518         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
21519         Likewise.
21520         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
21521         Likewise.
21522         * doc/glibc-functions/dup3.texi (dup3): Likewise.
21523         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
21524         * doc/glibc-functions/accept4.texi (accept4): Likewise.
21525         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
21526         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
21527         Mention nproc module.
21528         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
21529         bug in cygwin 1.7.5 addition.
21530         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
21531         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
21532         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
21533         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
21534         1.7.5.
21535         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
21536         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
21537         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
21538         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
21539         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
21540         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
21541         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
21542         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
21543         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
21544         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
21545         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
21546         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
21547         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
21548         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
21549         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
21550         Likewise.
21551         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
21552         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
21553         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
21554         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
21555         Likewise.
21556         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
21557         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
21558         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
21559         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
21560         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
21561         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
21562         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
21563         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
21564         Likewise.
21565         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
21566         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
21567         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
21568         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
21569         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
21570         Likewise.
21571         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
21572         Likewise.
21573         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
21574         Likewise.
21575         * doc/glibc-functions/xdrrec_endofrecord.texi
21576         (xdrrec_endofrecord): Likewise.
21577         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
21578         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
21579         Likewise.
21580         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
21581         Likewise.
21582
21583 2010-05-04  Jim Meyering  <meyering@redhat.com>
21584
21585         gendocs.sh: make its "-s FILE" option more useful
21586         * build-aux/gendocs.sh: When honoring the -s FILE option, update
21587         $PACKAGE to reflect the probably-different basename of "FILE".
21588
21589 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
21590
21591         bootstrap: don't ignore download_po_files failure
21592         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
21593         failure.
21594
21595 2010-05-03  Jim Meyering  <meyering@redhat.com>
21596
21597         maint.mk: allow to pass options to gendocs.sh
21598         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
21599         (gendocs_options_): New overridable variable.
21600
21601         gnu-web-doc-update: don't ignore configure or build failure
21602         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
21603
21604         announce-gen: backslash-escape '@'s in --help output
21605         * build-aux/announce-gen: Fix syntax errors.
21606
21607         maint.mk, announce-gen: allow project-specific announcement mail headers
21608         * top/maint.mk (translation_project_): Define default.
21609         (announcement_Cc_, announcement_mail_headers_): Likewise.
21610         (announcement): Invoke announce-gen with new --mail-headers option.
21611         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
21612
21613         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
21614         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
21615         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
21616         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
21617         line in the "err2" output file when running "make check" in verbose
21618         mode (i.e., with set -x enabled).
21619
21620 2010-05-03  Bruno Haible  <bruno@clisp.org>
21621
21622         wctob: Fix for weird platforms.
21623         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
21624         argument value.
21625
21626 2010-05-03  Jim Meyering  <meyering@redhat.com>
21627
21628         maint.mk: prohibit unwarranted use of <strings.h>
21629         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
21630         strings.h in a file that does not also use strcasecmp, strncasecmp,
21631         ffs or ffsll.
21632
21633         maint.mk: remove obsolete comments
21634         * top/maint.mk: Remove stale, commented-out rules.
21635
21636 2010-05-02  Bruno Haible  <bruno@clisp.org>
21637
21638         wcwidth: Declare also when it's aliased.
21639         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
21640         macro.
21641
21642 2010-05-02  Bruno Haible  <bruno@clisp.org>
21643
21644         Fix regression from 2010-04-25.
21645         * gnulib-tool (func_modules_transitive_closure): Check the status of
21646         all modules, not only of the tests that are of the form foo-tests where
21647         foo is a module.
21648
21649 2010-05-02  Bruno Haible  <bruno@clisp.org>
21650
21651         wctob: Work around nasty Cygwin 1.7.2 bug.
21652         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
21653         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
21654
21655 2010-05-01  Bruno Haible  <bruno@clisp.org>
21656
21657         fpurge: Sharper test.
21658         * tests/test-fpurge.c (main): Add one more ftell check.
21659         * modules/fpurge-tests (Depends-on): Add ftell.
21660         Suggested by Eric Blake.
21661
21662 2010-05-01  Bruno Haible  <bruno@clisp.org>
21663
21664         ftello: Another test.
21665         * tests/test-ftello3.c: New file.
21666         * modules/ftello-tests (Files): Add it.
21667         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
21668         MOSTLYCLEANFILES.
21669
21670         ftell: Another test.
21671         * tests/test-ftell3.c: New file.
21672         * modules/ftell-tests (Files): Add it.
21673         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
21674         MOSTLYCLEANFILES.
21675
21676 2010-05-01  Bruno Haible  <bruno@clisp.org>
21677
21678         ftell, ftello: Work around Solaris bug.
21679         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
21680         * lib/ftello.c: Include stdio-impl.h.
21681         (ftello): On Solaris, when _IOWRT is set, compute the result without
21682         looking at _IOREAD.
21683         * modules/ftello (Files): Add lib/stdio-impl.h.
21684         * doc/posix-functions/ftell.texi: Mention Solaris bug.
21685         * doc/posix-functions/ftello.texi: Likewise.
21686         Reported by Eric Blake.
21687
21688 2010-05-01  Bruno Haible  <bruno@clisp.org>
21689
21690         freading: Adapt to special meaning of _IOREAD flag on Solaris.
21691         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
21692         the _IOWRT flag is also set.
21693
21694 2010-05-01  Bruno Haible  <bruno@clisp.org>
21695
21696         Fix doc about a HP-UX stdio bug.
21697         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
21698         * doc/posix-functions/ftello.texi: Likewise.
21699
21700 2010-05-01  Bruno Haible  <bruno@clisp.org>
21701
21702         lseek test: Fix failure on Solaris.
21703         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
21704         output.
21705
21706 2010-04-30  Jim Meyering  <meyering@redhat.com>
21707
21708         bootstrap: don't ignore failure to generate po*/Makevars
21709         * build-aux/bootstrap (with_gettext): Don't ignore failure
21710         to create po/Makevars or runtime-po/Makevars.
21711
21712 2010-04-29  Eric Blake  <eblake@redhat.com>
21713
21714         headers: relax license to LGPLv2+
21715         * modules/fcntl-h (License): Relax license.
21716         * modules/getopt-posix (License): Likewise.
21717         * modules/locale (License): Likewise.
21718         * modules/math (License): Likewise.
21719         * modules/pty (License): Likewise.
21720         * modules/sched (License): Likewise.
21721         * modules/search (License): Likewise.
21722         * modules/spawn (License): Likewise.
21723         * modules/stdarg (License): Likewise.
21724         * modules/sysexits (License): Likewise.
21725
21726 2010-04-29  Jim Meyering  <meyering@redhat.com>
21727
21728         inttypes: relax license to LGPLv2+
21729         * modules/inttypes (License): Relax license.
21730
21731 2010-04-29  Simon Josefsson  <simon@josefsson.org>
21732
21733         * top/maint.mk (indent): Run twice to produce idempotent results.
21734
21735 2010-04-28  Bruno Haible  <bruno@clisp.org>
21736
21737         getdate: Generate getdate.c in the source directory.
21738         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
21739         MOSTLYCLEANFILES.
21740         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
21741
21742 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
21743
21744         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
21745         is not declared as a const *; avoid warnings in that case.
21746
21747 2010-04-28  Eric Blake  <eblake@redhat.com>
21748
21749         canonicalize-lgpl: avoid compiler warning
21750         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
21751         declaration' / 'extraneous semicolon' warning with some compilers.
21752         Reported by Andreas Gruenbacher.
21753
21754 2010-04-28  Jim Meyering  <meyering@redhat.com>
21755
21756         init.sh: ensure a more reliable exit status when exiting via trap
21757         * tests/init.sh (setup_): Don't rely on $? in signal handler.
21758         Inspired by patches from Dmitry V. Levin.
21759         Also trap on signal 3 (SIGQUIT).
21760
21761 2010-04-27  Bruno Haible  <bruno@clisp.org>
21762
21763         Update doc about utimes().
21764         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
21765         'utimens' module.
21766         Reported by Andreas Gruenbacher <agruen@suse.de>.
21767
21768 2010-04-27  Eric Blake  <eblake@redhat.com>
21769
21770         full-read, full-write: relax license
21771         * modules/full-read (License): Drop to LGPLv2+.
21772         * modules/full-write (License): Likewise.
21773         * modules/safe-read (License): Likewise.
21774         * modules/safe-write (License): Likewise.
21775
21776         pthread: mention library for linking
21777         * modules/pthread (Link): Mention $(LIB_PTHREAD).
21778
21779 2010-04-27  Jim Meyering  <meyering@redhat.com>
21780
21781         maint.mk: fix a bug introduced in last change
21782         * top/maint.mk (gl_assured_headers_): Now that all names are on
21783         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
21784         is not anchored to end of word, it should be adequate.
21785
21786         maint.mk: avoid side-effect in latest syntax-check
21787         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
21788         to run commands via $(shell...), and hence to incur cost only when
21789         the new rule is actually run.
21790
21791         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
21792         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
21793         and use that to create a regexp used to detect all #if HAVE_..._H uses.
21794         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
21795         (gl_assured_headers_, az_, AZ_): Define.
21796         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
21797
21798 2010-04-26  Jim Meyering  <jim@meyering.net>
21799             Bruno Haible  <bruno@clisp.org>
21800
21801         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
21802         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
21803         Prompted by an exchange with Gilles Espinasse.
21804
21805 2010-04-26  Jim Meyering  <meyering@redhat.com>
21806
21807         git-version-gen: aesthetic tweak
21808         * build-aux/git-version-gen: Use "$nl" rather than a literal,
21809         so that the command remains on a single line.
21810
21811 2010-04-26  Eric Blake  <eblake@redhat.com>
21812
21813         git-version-gen: allow use on EBCDIC hosts
21814         * build-aux/git-version-gen (dirty): Use literal rather than tying
21815         ourselves to ascii.
21816         Reported by Steve Goetze.
21817
21818 2010-04-25  Bruno Haible  <bruno@clisp.org>
21819
21820         netdb: Add support for GNULIB_POSIXCHECK.
21821         * lib/netdb.in.h: Include warn-on-use.h.
21822         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
21823         functions are used when GNULIB_POSIXCHECK is defined and the
21824         getaddrinfo module is not in use.
21825         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
21826         freeaddrinfo, gai_strerror, getnameinfo are declared.
21827         * modules/netdb (Depends-on): Add warn-on-use.
21828         (Makefile.am): Include warn-on-use.h in netdb.h.
21829
21830 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
21831
21832         build: avoid "make check" failure without .git/ directory
21833         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
21834         there is no .git/ directory.
21835
21836 2010-04-25  Bruno Haible  <bruno@clisp.org>
21837
21838         ptsname: Fix misuse of ttyname_r.
21839         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
21840         of errno.
21841
21842 2010-04-25  Bruno Haible  <bruno@clisp.org>
21843
21844         ttyname_r: Make it work on Solaris 10.
21845         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
21846         if the system function has the POSIX declaration. Test whether the
21847         function fails if the buffer is less than 128 bytes large.
21848         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
21849         system's ttyname_r function. Provide a reasonably large buffer.
21850         * modules/ttyname_r (Depends-on): Add extensions.
21851         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
21852
21853 2010-04-25  Bruno Haible  <bruno@clisp.org>
21854
21855         Use the 'extensions' module for some more functions on Solaris.
21856         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
21857         module.
21858         * doc/posix-functions/ctime_r.texi: Likewise.
21859         * doc/posix-functions/getgrgid_r.texi: Likewise.
21860         * doc/posix-functions/getgrnam_r.texi: Likewise.
21861         * doc/posix-functions/getpwnam_r.texi: Likewise.
21862         * doc/posix-functions/getpwuid_r.texi: Likewise.
21863         * doc/posix-functions/readdir_r.texi: Likewise.
21864         * doc/posix-functions/sigwait.texi: Likewise.
21865         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
21866         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
21867
21868 2010-04-25  Bruno Haible  <bruno@clisp.org>
21869
21870         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
21871         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
21872         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
21873         * lib/ttyname_r.c: Include <limits.h>.
21874         (ttyname_r): Define using the system's ttyname_r function, if it exists
21875         and not on Solaris.
21876         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
21877         set.
21878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
21879         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
21880         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
21881         Reported by Simon Josefsson.
21882
21883 2010-04-25  Bruno Haible  <bruno@clisp.org>
21884
21885         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
21886         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
21887         * doc/posix-functions/ctime_r.texi: Likewise.
21888         * doc/posix-functions/getgrgid_r.texi: Likewise.
21889         * doc/posix-functions/getgrnam_r.texi: Likewise.
21890         * doc/posix-functions/getlogin_r.texi: Likewise.
21891         * doc/posix-functions/getpwnam_r.texi: Likewise.
21892         * doc/posix-functions/getpwuid_r.texi: Likewise.
21893         * doc/posix-functions/readdir_r.texi: Likewise.
21894         * doc/posix-functions/sigwait.texi: Likewise.
21895         * doc/posix-functions/ttyname_r.texi: Likewise.
21896         Reported by Simon Josefsson.
21897
21898 2010-04-25  Bruno Haible  <bruno@clisp.org>
21899
21900         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
21901         * gnulib-tool (func_usage): Document that --with-*-tests options apply
21902         also to --create-testdir.
21903         (func_acceptable): Don't consider the status of *-tests modules here.
21904         (func_modules_transitive_closure): Consider it here, before including a
21905         test module.
21906         (func_import, func_create_testdir): Set inc_all_direct_tests,
21907         inc_all_indirect_tests.
21908         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
21909         --create-testdir and --create-megatestdir.
21910
21911 2010-04-25  Bruno Haible  <bruno@clisp.org>
21912
21913         gnulib-tool: Add --without-*-tests options.
21914         * gnulib-tool (func_usage): Document the --without-*-tests options.
21915         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
21916         excl_unportable_tests): New variables.
21917         Fail if they are specified with --import or --update.
21918         (func_acceptable): Respect the excl_*_tests variables.
21919         (func_import): Set the excl_*_tests variables to empty.
21920
21921 2010-04-25  Simon Josefsson  <simon@josefsson.org>
21922             Bruno Haible  <bruno@clisp.org>
21923
21924         Work around a MacOS X 10.4 bug with openpty.
21925         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
21926         * tests/test-openpty.c (main): Close the master side explicitly.
21927
21928 2010-04-25  Bruno Haible  <bruno@clisp.org>
21929
21930         strnlen: Fix a C++ test error on MacOS X and Solaris.
21931         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
21932         the function is not declared.
21933         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
21934         Simon Josefsson.
21935
21936 2010-04-24  Bruno Haible  <bruno@clisp.org>
21937
21938         Avoid a gcc warning.
21939         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
21940         of correct type for %08lx directive.
21941         Reported by Eric Blake.
21942
21943 2010-04-24  Bruno Haible  <bruno@clisp.org>
21944
21945         vasnprintf: Correct errno value in case of out-of-memory.
21946         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
21947         or sprintf. Use the errno value from SNPRINTF or sprintf.
21948         Reported by Ian Beckwith <ianb@erislabs.net>.
21949
21950 2010-04-24  Bruno Haible  <bruno@clisp.org>
21951
21952         ansi-c++-opt: Find correct compiler when cross-compiling.
21953         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
21954         AC_CHECK_PROGS.
21955         Reported by Simon Josefsson.
21956
21957 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
21958
21959         vc-list-files: Add support for subversion
21960         * build-aux/vc-list-files: Use "svn list" to generate the list of
21961         files controlled by subversion.
21962
21963 2010-04-23  Jim Meyering  <meyering@redhat.com>
21964
21965         vc-list-files tests: convert to use init.sh
21966         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
21967         path_prepend_.
21968         Use Exit, not exit.
21969         Use skip_ rather than open coding it.
21970         Remove trap set-up and compare definitions.
21971         * tests/test-vc-list-files-git.sh: Likewise.
21972         * modules/vc-list-files-tests (Files): Add tests/init.sh.
21973
21974 2010-04-22  Simon Josefsson  <simon@josefsson.org>
21975
21976         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
21977         backup files.
21978
21979 2010-04-21  Simon Josefsson  <simon@josefsson.org>
21980
21981         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
21982
21983 2010-04-20  Eric Blake  <eblake@redhat.com>
21984
21985         tests: be robust to ignored SIGPIPE
21986         * tests/test-select-in.sh: Consume all output.
21987         * tests/test-lseek.sh: Check correct exit status, while avoiding
21988         EPIPE.
21989
21990 2010-04-20  Simon Josefsson  <simon@josefsson.org>
21991             Bruno Haible  <bruno@clisp.org>
21992
21993         visibility: Don't use -fvisibility if it leads to a warning.
21994         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
21995         yes, don't pretend that visibility works if it leads to a warning.
21996         Reported by Mike Gran <spk121@yahoo.com>.
21997
21998 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
21999
22000         * build-aux/bootstrap: Use "git -h" for testing for supported options
22001         instead of "git --help".  The short-form option only shows a summary,
22002         and doesn't layout the full man page.  Grep for the full option name
22003         in the summary, too.
22004
22005 2010-04-19  Bruno Haible  <bruno@clisp.org>
22006
22007         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
22008         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
22009         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
22010         mention of RELOCATABLE_STRIP.
22011         Reported by Sylvain Beucler <beuc@beuc.net>.
22012
22013 2010-04-19  Bruno Haible  <bruno@clisp.org>
22014
22015         * lib/diffseq.h: Fix typo in comment.
22016         Reported by Eric Blake.
22017
22018 2010-04-19  Bruno Haible  <bruno@clisp.org>
22019
22020         ioctl: Move autoconf macro to a .m4 file.
22021         * m4/ioctl.m4: New file, extracted from modules/ioctl.
22022         * modules/ioctl (Files): Add it.
22023         (configure.ac): Simply invoke gl_FUNC_IOCTL.
22024         Reported by Ian Beckwith <ianb@erislabs.net>.
22025
22026 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
22027             Bruno Haible  <bruno@clisp.org>
22028
22029         diffseq: Accommodate use-case with abstract arrays.
22030         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
22031         is not defined.
22032         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
22033         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
22034
22035 2010-04-18  Bruno Haible  <bruno@clisp.org>
22036
22037         * doc/posix-headers/stdbool.texi: More precise wording.
22038
22039 2010-04-17  Jim Meyering  <meyering@redhat.com>
22040
22041         maint.mk: use gnu-style indentation in an embedded perl script
22042         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
22043         Rename variable: s/two/last_two_bytes/
22044
22045 2010-04-16  Eric Blake  <eblake@redhat.com>
22046
22047         test-stdbool: skip test that fails with Solaris CC
22048         * tests/test-stdbool.c (f): Skip test that causes compilation
22049         error under buggy C++ compiler.
22050         * lib/stdbool.in.h: Document the limitation.
22051         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
22052
22053         setenv: allow compilation with C++
22054         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
22055         register keyword.
22056
22057         stdint: allow test to pass with C++
22058         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
22059
22060         getopt: allow compilation with C++
22061         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
22062         struct.
22063         * lib/getopt.c (_getopt_internal_r): Use correct type.
22064         Reported by Dagobert Michelson, via Joel E. Denny.
22065
22066 2010-04-16  Bruno Haible  <bruno@clisp.org>
22067
22068         Override netdb.h always.
22069         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
22070         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
22071         Reported by Ludovic Courtès <ludo@gnu.org>.
22072
22073 2010-04-15  Bruno Haible  <bruno@clisp.org>
22074
22075         openpty: Fix mistake from 2010-03-21.
22076         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
22077         Reported by Simon Josefsson.
22078
22079 2010-04-15  Eric Blake  <eblake@redhat.com>
22080
22081         test-forkpty: fix expected signature
22082         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
22083         Reported by Simon Josefsson.
22084
22085 2010-04-15  Jim Meyering  <meyering@redhat.com>
22086
22087         maint.mk: texinfo_suffix_re_: correct the default regexp
22088         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
22089
22090         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
22091         make it configurable via texinfo_suffix_re_.
22092
22093 2010-04-14  Eric Blake  <eblake@redhat.com>
22094
22095         strtok_r: relax license to LGPLv2+
22096         * modules/strtok_r (License): Relax license.
22097         Reported by Matthias Bolte.
22098
22099 2010-04-14  Simon Josefsson  <simon@josefsson.org>
22100
22101         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
22102         version 1.4.4 by default instead of requiring the libgcrypt
22103         version used during build.  This makes it possible to use the
22104         application with older but still binary compatible libgcrypt
22105         versions.
22106
22107 2010-04-13  Eric Blake  <eblake@redhat.com>
22108
22109         getopt-gnu: match recent glibc fixes and posix ruling
22110         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
22111         '+' handling, when requesting extensions.
22112         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
22113         'W;' handling.
22114         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
22115         * doc/posix-functions/getopt.texi (getopt): Document this.
22116         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
22117         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22118         Likewise.
22119
22120         getopt: merge bug fixes from glibc
22121         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
22122         diagnostics.  Honor '+:' correctly.  Reject ';'.
22123
22124         getopt-posix: detect MacOS bug
22125         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
22126         optind when missing a required argument.
22127         * doc/posix-functions/getopt.texi (getopt): Document the bug.
22128         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
22129         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22130         Likewise.
22131
22132         getopt-posix: avoid spurious failure on Solaris
22133         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
22134         an indicator that setting optind=1 is sufficient for reset.
22135
22136         getopt-posix: avoid spurious failure on FreeBSD
22137         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
22138         in POSIX mode, since the m4 test uses it.
22139
22140         gnulib-tool: silence warning on BSD sh
22141         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
22142
22143 2010-04-13  Jim Meyering  <meyering@redhat.com>
22144
22145         doc: users.txt: GNU patch now uses gnulib
22146         * users.txt: Add patch.
22147
22148 2010-04-12  Jim Meyering  <meyering@redhat.com>
22149
22150         maint.mk: generate more concise timing data for syntax-check rules
22151         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
22152         " done" from each line that reports a syntax-check test duration.
22153
22154 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
22155
22156         git-version-gen: use "git update-index..." rather than "git status"
22157         * build-aux/git-version-gen: Use git update-index --refresh, not
22158         "git status".  With some versions of git, "git status" would fail
22159         to update the index and result in an unwarranted "-dirty" suffix.
22160
22161 2010-04-11  Jim Meyering  <meyering@redhat.com>
22162
22163         openat: correct formatting (no semantic change)
22164         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
22165         Suggested by Bruno Haible.
22166
22167 2010-04-11  Bruno Haible  <bruno@clisp.org>
22168
22169         Stricter declaration checking in testdirs.
22170         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22171         If for_tests is true, augment AM_CPPFLAGS to define
22172         GNULIB_STRICT_CHECKING.
22173         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
22174         GNULIB_STRICT_CHECKING is defined, verify that the function is
22175         declared.
22176
22177 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
22178             Bruno Haible  <bruno@clisp.org>
22179
22180         libunistring: Improve configure output.
22181         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
22182         Don't say "consider installing GNU libunistring" when checking again
22183         with libiconv.
22184
22185 2010-04-11  Bruno Haible  <bruno@clisp.org>
22186
22187         libunistring: Correct value of $LTLIBUNISTRING.
22188         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
22189         correct the value of $LTLIBUNISTRING.
22190
22191 2010-04-11  Bruno Haible  <bruno@clisp.org>
22192
22193         havelib: Add static libraries to LIBS in the right order.
22194         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
22195         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
22196
22197 2010-04-11  Bruno Haible  <bruno@clisp.org>
22198
22199         libunistring: Detect libunistring also when it depends on libiconv.
22200         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
22201         the second AC_LIB_HAVE_LINKFLAGS invocation.
22202
22203 2010-04-11  James Youngman  <jay@gnu.org>
22204
22205         close-stream: declare local scalars to be "const"
22206         * lib/close-stream.c (close_stream): Make boolean variables const
22207         to document the fact that we set but do not change them.
22208
22209 2010-04-11  Bruno Haible  <bruno@clisp.org>
22210
22211         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
22212
22213 2010-04-11  Jim Meyering  <meyering@redhat.com>
22214
22215         maint.mk: don't include dist-check.mk
22216         * top/maint.mk: Remove bogus include directive.
22217
22218         maint.mk: improve empty-line-at-EOF check
22219         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
22220         solution, rather than tail+Perl-based one.  The latter would read
22221         a few kilobytes from the end of each file, and did not handle empty
22222         files properly.
22223
22224         maint.mk: print the elapsed time for each syntax-check rule
22225         * top/maint.mk (sc_m_rules_): Save start time in a file.
22226         (sc_z_rules_): New rules: remove temp file and print elapsed time.
22227         (local-check): Interpose the .z rules
22228
22229 2010-04-11  Jim Meyering  <meyering@redhat.com>
22230
22231         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
22232         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
22233         empty file with one that ends in an empty line.
22234
22235 2010-04-10  Bruno Haible  <bruno@clisp.org>
22236
22237         mkdir: Make it work on mingw64.
22238         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
22239         * lib/mkdir.c: Update comment.
22240         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
22241
22242 2010-04-10  Bruno Haible  <bruno@clisp.org>
22243
22244         Don't override improved macro from newer autoconf.
22245         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
22246         autoconf >= 2.62.
22247         Reported by Joel E. Denny <jdenny@clemson.edu>.
22248
22249 2010-04-10  Jim Meyering  <meyering@redhat.com>
22250
22251         maint.mk: new syntax-check rule: prohibit empty lines at end of file
22252         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
22253
22254         maint.mk: correct a diagnostic
22255         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
22256         in diagnostic; now use $prohibit.
22257
22258 2010-04-10  Bruno Haible  <address@hidden>
22259
22260         fchownat: Fix a C++ test error on Solaris 8.
22261         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
22262         the function does not exist.
22263
22264 2010-04-10  Bruno Haible  <bruno@clisp.org>
22265
22266         vasnprintf: Add more tests.
22267         * tests/test-vasnprintf-posix.c: Include <errno.h>.
22268         (test_function): Test converting an invalid wide string.
22269
22270         vasnprintf: Correct handling of unconvertible wide string arguments.
22271         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
22272         VASNPRINTF.
22273         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
22274         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
22275         smaller than the expected maximum need for the directive. Set errno to
22276         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
22277         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
22278         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
22279         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
22280         * modules/vasnprintf (Files): Add m4/printf.m4.
22281         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22282
22283 2010-04-10  Bruno Haible  <bruno@clisp.org>
22284
22285         vasnprintf: Fix crash in %ls directive.
22286         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
22287         string is passed as argument to %ls, with no precision and no width.
22288         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22289
22290 2010-04-10  Bruno Haible  <bruno@clisp.org>
22291
22292         vasnprintf: Fix multiple test failures on mingw.
22293         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
22294         _snprintf, or snwprintf, not _snwprintf.
22295
22296 2010-04-10  Bruno Haible  <bruno@clisp.org>
22297
22298         write: Fix a C++ test error on mingw.
22299         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
22300
22301 2010-04-10  Bruno Haible  <bruno@clisp.org>
22302
22303         vasnprintf test: Reduce code duplication.
22304         * tests/test-vasnprintf.c (test_function): New function, extracted from
22305         test_vasnprintf.
22306         (test_vasnprintf, test_asnprintf): Invoke it.
22307
22308 2010-04-10  Bruno Haible  <bruno@clisp.org>
22309
22310         strnlen: Fix warning in C++ mode on MacOS X.
22311         * lib/string.in.h (strnlen): Use the modern idiom.
22312         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
22313         defining strnlen as a macro already in <config.h>.
22314         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22315         REPLACE_STRNLEN.
22316         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
22317         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22318
22319 2010-04-08  James Youngman  <jay@gnu.org>
22320
22321         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
22322         the example.
22323
22324 2010-04-09  Jim Meyering  <meyering@redhat.com>
22325
22326         maint.mk: print better diagnostic when there is no $(_hv_file)
22327         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
22328         announce that when $(_hv_file) (aka help-version) does not exist.
22329
22330         init.sh: run tr in the "C" locale to avoid multibyte interpretation
22331         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
22332         not try to interpret its random input bytes.  Jarno Rajahalme reported
22333         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
22334         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
22335         (mktempd_): Likewise, just in case.
22336
22337         ftruncate: add two years to projected module removal date: 2012
22338         * m4/ftruncate.m4: Adjust comments.
22339
22340         ftruncate: mark module as obsolete; even MinGW provides it, now
22341         * modules/ftruncate (Status): Obsolete.
22342         (Notice): Say that.
22343         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
22344         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
22345
22346 2010-04-08  Bruno Haible  <bruno@clisp.org>
22347
22348         Fix side effects from tests-related modules.
22349         * modules/dprintf-posix (Comment): New section.
22350         * modules/fprintf-posix (Comment): Likewise.
22351         * modules/obstack-printf-posix (Comment): Likewise.
22352         * modules/printf-posix (Comment): Likewise.
22353         * modules/snprintf-posix (Comment): Likewise.
22354         * modules/sprintf-posix (Comment): Likewise.
22355         * modules/vasnprintf-posix (Comment): Likewise.
22356         * modules/vasprintf-posix (Comment): Likewise.
22357         * modules/vdprintf-posix (Comment): Likewise.
22358         * modules/vfprintf-posix (Comment): Likewise.
22359         * modules/vprintf-posix (Comment): Likewise.
22360         * modules/vsnprintf-posix (Comment): Likewise.
22361         * modules/vsprintf-posix (Comment): Likewise.
22362         * modules/xprintf-posix (Comment): Likewise.
22363         * modules/xvasprintf-posix (Comment): Likewise.
22364         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
22365         * modules/floorf-tests (Depends-on): Likewise.
22366         * modules/round-tests (Depends-on): Likewise.
22367         * modules/roundf-tests (Depends-on): Likewise.
22368         * modules/trunc-tests (Depends-on): Likewise.
22369         * modules/truncf-tests (Depends-on): Likewise.
22370         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
22371         'fprintf-posix' module is not present.
22372         * tests/test-floorf2.c (check): Likewise.
22373         * tests/test-trunc2.c (check): Likewise.
22374         * tests/test-truncf2.c (check): Likewise.
22375         * tests/test-round2.c (equal): Likewise.
22376         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22377
22378 2010-04-07  Karl Berry  <karl@gnu.org>
22379
22380         * config/srclist.txt,
22381         * config/srclistvars.sh,
22382         * config/srclist-update: doc fixes.
22383
22384 2010-04-07  Jim Meyering  <meyering@redhat.com>
22385
22386         maint.mk: add a PATH crosschecking syntax-check rule
22387         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
22388         Useful if you use a test like the one in help-version (coreutils,
22389         diffutils, grep, gzip) that ensures $(VERSION) matches what is
22390         printed by prog --version.
22391
22392 2010-04-06  Bruno Haible  <bruno@clisp.org>
22393
22394         Fix link error on mingw.
22395         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
22396         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
22397
22398 2010-04-06  Bruno Haible  <bruno@clisp.org>
22399
22400         Assume rmdir exists.
22401         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
22402
22403 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
22404
22405         doc: update users.txt
22406         * users.txt: Add gcal.
22407
22408 2010-04-06  Jim Meyering  <meyering@redhat.com>
22409
22410         init.sh: simply unset TMPDIR rather than risking env -i
22411         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
22412         although it probably works fine on all Unix-based systems, some
22413         systems (Cygwin?) cannot tolerate a totally cleared environment.
22414         Suggestion from Eric Blake.
22415
22416 2010-04-06  Jim Meyering  <meyering@redhat.com>
22417
22418         init.sh: portability fix: use env's POSIX-specified -i option not -u
22419         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
22420         than unportable env -u.  Solaris 5.11's env lacks support for -u.
22421
22422 2010-04-05  Bruno Haible  <bruno@clisp.org>
22423
22424         btowc: Work around Cygwin 1.7.2 bug.
22425         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
22426         does not map NUL to 0.
22427         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
22428
22429 2010-04-05  Bruno Haible  <bruno@clisp.org>
22430
22431         Make the multithread modules work on Cygwin 1.7.2.
22432         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
22433         imported symbols can be declared weak, so that it returns "no" on
22434         Cygwin 1.7.2.
22435
22436 2010-04-05  Bruno Haible  <bruno@clisp.org>
22437
22438         Use the module 'strncat'.
22439         * modules/unistr/u8-strncat (Depends-on): Add strncat.
22440
22441         Tests for module 'strncat'.
22442         * modules/strncat-tests: New file.
22443         * tests/test-strncat.c: New file.
22444
22445         New module 'strncat'.
22446         * lib/string.in.h (strncat): New declaration.
22447         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
22448         * m4/strncat.m4: New file, based on m4/memchr.m4.
22449         * modules/strncat: New file.
22450         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
22451         is declared.
22452         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
22453         REPLACE_STRNCAT.
22454         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
22455         REPLACE_STRNCAT.
22456         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
22457         module.
22458         * tests/test-string-c++.cc: Check signature of strncat.
22459
22460 2010-04-05  Jim Meyering  <meyering@redhat.com>
22461
22462         xstrtoumax-tests: convert to use init.sh
22463         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
22464         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
22465         Use Exit, not exit.
22466         Remove uses of $EXEEXT and "./" to run a program in the current dir.
22467
22468         xstrtoimax-tests: convert to use init.sh
22469         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
22470         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
22471         Use Exit, not exit.
22472         Remove uses of $EXEEXT and "./" to run a program in the current dir.
22473
22474 2010-04-05  Bruno Haible  <bruno@clisp.org>
22475
22476         sys_socket: Avoid #define replacements in C++ mode.
22477         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
22478         warning to the function if possible, rather than #defining the symbol
22479         to a dysfunctional alias.
22480
22481 2010-04-05  Bruno Haible  <bruno@clisp.org>
22482
22483         fseeko: Fix C++ test error on mingw.
22484         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
22485         gl_FUNC_FSEEKO.
22486         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
22487         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
22488         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
22489         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
22490
22491 2010-04-05  Bruno Haible  <bruno@clisp.org>
22492
22493         duplocale: Improve test output.
22494         * tests/test-duplocale.c (main): Print reason for skipped test.
22495
22496 2010-04-05  Bruno Haible  <bruno@clisp.org>
22497
22498         Assume rmdir exists.
22499         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
22500         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
22501
22502 2010-04-05  Bruno Haible  <bruno@clisp.org>
22503
22504         Fix link error on Solaris 8 with cc.
22505         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
22506
22507 2010-04-05  Bruno Haible  <bruno@clisp.org>
22508
22509         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
22510         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
22511
22512 2010-04-05  Bruno Haible  <bruno@clisp.org>
22513
22514         vasprintf: Update documentation.
22515         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
22516
22517 2010-04-05  Bruno Haible  <bruno@clisp.org>
22518
22519         ptsname: Improve test.
22520         * tests/test-ptsname.c (main): Also try the various master names of BSD
22521         systems.
22522
22523 2010-04-05  Bruno Haible  <bruno@clisp.org>
22524
22525         memchr: Avoid a possible C++ test error.
22526         * lib/string.in.h (memchr): Provide declaration if function is missing.
22527         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
22528         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
22529         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
22530         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
22531
22532 2010-04-05  Bruno Haible  <bruno@clisp.org>
22533
22534         strtok_r: Improve idiom.
22535         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
22536         AC_LIBOBJ is used.
22537
22538 2010-04-05  Bruno Haible  <bruno@clisp.org>
22539
22540         strdup: Improve idiom.
22541         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
22542         AC_LIBOBJ is used.
22543         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
22544         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
22545         when AC_LIBOBJ is used.
22546
22547 2010-04-05  Bruno Haible  <bruno@clisp.org>
22548
22549         mbsinit, mbrtowc, wcrtomb: Improve idioms.
22550         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
22551         don't set REPLACE_MBSINIT to 1.
22552         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
22553         don't set REPLACE_MBRTOWC to 1.
22554         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
22555         exist, don't set REPLACE_MBSRTOWCS to 1.
22556         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
22557         exist, don't set REPLACE_MBSNRTOWCS to 1.
22558         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
22559         don't set REPLACE_WCRTOMB to 1.
22560         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
22561         exist, don't set REPLACE_WCSRTOMBS to 1.
22562         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
22563         exist, don't set REPLACE_WCSNRTOMBS to 1.
22564
22565 2010-04-05  Bruno Haible  <bruno@clisp.org>
22566
22567         ldexpl: Improve idiom.
22568         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
22569         make sure to set HAVE_DECL_LDEXPL to 0.
22570
22571 2010-04-05  Jim Meyering  <meyering@redhat.com>
22572
22573         xstrtol-tests: convert to use init.sh
22574         * modules/xstrtol-tests (Files): Add tests/init.sh.
22575         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
22576         Use Exit, not exit.
22577         Remove uses of $EXEEXT and "./" to run a program in the current dir.
22578
22579         atexit-tests: convert to use init.sh
22580         * modules/atexit-tests (Files): Add tests/init.sh.
22581         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
22582         Use Exit, not exit.
22583         Remove uses of $EXEEXT and "./" to run a program in the current dir.
22584
22585         init.sh: fix typo
22586         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
22587
22588         init.sh: make it easier for a test script to write to the tty, ...
22589         when using automake's parallel-tests mode.
22590         * tests/init.sh (stderr_fileno_): Define overridable variable.
22591         (warn_): New function, to use it.
22592         (fail_, skip_, framework_failure_): Use warn_.
22593
22594 2010-04-04  Bruno Haible  <bruno@clisp.org>
22595
22596         btowc: Avoid warning.
22597         * lib/btowc.c: Include <stdlib.h>.
22598         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
22599
22600 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
22601             Bruno Haible  <bruno@clisp.org>
22602
22603         wchar: Port to NetBSD 1.5.
22604         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
22605         * lib/wctype.in.h (WEOF): Likewise.
22606
22607 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
22608             Bruno Haible  <bruno@clisp.org>
22609
22610         Port extended stdio to NetBSD 1.5.
22611         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
22612         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
22613         older.
22614
22615 2010-04-04  Bruno Haible  <bruno@clisp.org>
22616
22617         string: Remove unused substitution.
22618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
22619         HAVE_DECL_STRERROR.
22620         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
22621
22622 2010-04-04  Bruno Haible  <bruno@clisp.org>
22623
22624         strtod: Avoid a possible C++ test error.
22625         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
22626         set REPLACE_STRTOD.
22627
22628 2010-04-04  Bruno Haible  <bruno@clisp.org>
22629
22630         strerror: Update documentation.
22631         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
22632
22633 2010-04-04  Bruno Haible  <bruno@clisp.org>
22634
22635         stdio: Fix some C++ test errors on Solaris 8 with GCC.
22636         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
22637         _GL_CXXALIAS_SYS_CAST.
22638
22639 2010-04-04  Bruno Haible  <bruno@clisp.org>
22640
22641         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
22642         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
22643         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
22644         REPLACE_FREXPL to 1.
22645         * doc/posix-functions/frexpl.texi: Update documentation.
22646
22647 2010-04-04  Bruno Haible  <bruno@clisp.org>
22648
22649         math: Fix some C++ test errors on Solaris 8 and Cygwin.
22650         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
22651
22652 2010-04-04  Bruno Haible  <bruno@clisp.org>
22653
22654         Implement nanosleep for native Windows.
22655         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
22656
22657 2010-04-04  Bruno Haible  <bruno@clisp.org>
22658
22659         math: Fix some C++ test errors on Solaris 8.
22660         * lib/math.in.h (truncf, trunc): Use simpler idiom.
22661
22662 2010-04-04  Bruno Haible  <bruno@clisp.org>
22663
22664         math: Fix some C++ test errors on Cygwin.
22665         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
22666         truncl): Provide declaration if the system does not have it.
22667         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
22668         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
22669         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
22670         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
22671         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
22672         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
22673         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
22674         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
22675         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
22676         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
22677         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
22678         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
22679         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
22680         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
22681         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
22682         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
22683         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
22684         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
22685         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
22686         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
22687         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
22688         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
22689
22690 2010-04-04  Bruno Haible  <bruno@clisp.org>
22691
22692         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
22693         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
22694         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
22695         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
22696         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
22697         * m4/isinf.m4 (gl_ISINF): Likewise.
22698         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22699
22700 2010-04-04  Bruno Haible  <bruno@clisp.org>
22701
22702         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
22703         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22704
22705 2010-04-04  Bruno Haible  <bruno@clisp.org>
22706
22707         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
22708         * modules/tmpfile (configure.ac): Update.
22709
22710         tmpfile: Fix C++ test error on mingw.
22711         * lib/stdio.in.h (tmpfile): New declaration.
22712         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
22713         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
22714         * modules/tmpfile (Depends-on): Add stdio.
22715         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
22716         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
22717         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
22718         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
22719         REPLACE_TMPFILE.
22720         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
22721
22722 2010-04-04  Bruno Haible  <bruno@clisp.org>
22723
22724         ioctl: Fix C++ test error on mingw.
22725         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
22726         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
22727         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
22728
22729 2010-04-03  Bruno Haible  <bruno@clisp.org>
22730
22731         wcwidth: Fix C++ test error on mingw.
22732         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
22733         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
22734         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
22735
22736 2010-04-03  Bruno Haible  <bruno@clisp.org>
22737
22738         nanosleep: Fix C++ test error on mingw.
22739         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
22740         * lib/time.in.h (nanosleep): Use modern idiom.
22741         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
22742         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
22743         REPLACE_NANOSLEEP to 1.
22744         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
22745         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
22746
22747 2010-04-03  Bruno Haible  <bruno@clisp.org>
22748
22749         strptime: Fix C++ test error on mingw.
22750         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
22751         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
22752         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
22753         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
22754         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
22755         not REPLACE_STRPTIME.
22756         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
22757         REPLACE_STRPTIME.
22758
22759 2010-04-03  Bruno Haible  <bruno@clisp.org>
22760
22761         timegm: Fix C++ test error on mingw.
22762         * lib/time.in.h (timegm): Use modern idiom.
22763         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
22764         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
22765         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
22766         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
22767
22768 2010-04-03  Bruno Haible  <bruno@clisp.org>
22769
22770         timegm: Assume declaration if function exists.
22771         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
22772         if it exists. Don't clobber ac_cv_func_timegm.
22773
22774 2010-04-03  Bruno Haible  <bruno@clisp.org>
22775
22776         time_r: Fix C++ test error on mingw.
22777         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
22778         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
22779         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
22780         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
22781         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
22782
22783 2010-04-03  Bruno Haible  <bruno@clisp.org>
22784
22785         time_r: Minor updates.
22786         * modules/time_r (Description): Mention the provided functions.
22787         * lib/time_r.c: Don't include <string.h>.
22788         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
22789         * doc/posix-functions/localtime_r.texi: Likewise.
22790
22791 2010-04-03  Bruno Haible  <bruno@clisp.org>
22792
22793         time: Fix regression introduced on 2010-03-08.
22794         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
22795         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
22796
22797 2010-04-03  Jim Meyering  <meyering@redhat.com>
22798
22799         maint.mk: don't silently disable project-specific syntax-check rules
22800         * top/maint.mk (_prohibit_regexp): Define, to help people realize
22801         that they need to convert their project-specific syntax-check rules
22802         to use the new _sc_search_regexp.
22803
22804 2010-04-03  Bruno Haible  <bruno@clisp.org>
22805
22806         fchdir: Fix regression introduced on 2010-03-08.
22807         * lib/unistd.in.h (fchdir): Fix declaration.
22808         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
22809         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
22810         REPLACE_FCHDIR.
22811         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
22812         REPLACE_FCHDIR.
22813
22814 2010-04-03  Bruno Haible  <bruno@clisp.org>
22815
22816         getpagesize: Fix C++ test error on mingw.
22817         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
22818         system does not declare the function.
22819         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
22820         declared.
22821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22822         HAVE_DECL_GETPAGESIZE.
22823         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
22824
22825 2010-04-03  Bruno Haible  <bruno@clisp.org>
22826
22827         stdio: Make C++ tests work on mingw.
22828         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
22829         does not declare the function.
22830
22831 2010-04-03  Bruno Haible  <bruno@clisp.org>
22832
22833         ftello: Fix C++ test error on mingw.
22834         * lib/stdio.in.h (ftello): Use modern idiom.
22835         * lib/ftello.c (ftello): Renamed from rpl_ftello.
22836         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
22837         is missing and that it needs to be replaced.
22838         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
22839         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
22840         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
22841
22842 2010-04-03  Bruno Haible  <bruno@clisp.org>
22843
22844         fseeko: Fix C++ test error on mingw.
22845         * lib/stdio.in.h (fseeko): Use modern idiom.
22846         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
22847         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
22848         is missing and that it needs to be replaced.
22849         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
22850         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
22851         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
22852
22853 2010-04-03  Bruno Haible  <bruno@clisp.org>
22854
22855         mkstemp: Fix C++ test error on mingw.
22856         * lib/stdlib.in.h (mkstemp): Use modern idiom.
22857         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
22858         function is missing and that it needs to be replaced.
22859         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
22860         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
22861
22862 2010-04-03  Bruno Haible  <bruno@clisp.org>
22863
22864         stpncpy: Fix C++ test error on mingw.
22865         * lib/string.in.h (stpncpy): Use modern idiom.
22866         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
22867         function is missing and that it needs to be replaced.
22868         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22869         REPLACE_STPNCPY.
22870         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
22871
22872 2010-04-03  Bruno Haible  <bruno@clisp.org>
22873
22874         sys_stat: Fix C++ test error on mingw.
22875         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
22876         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
22877
22878 2010-04-03  Bruno Haible  <bruno@clisp.org>
22879
22880         pty: Update doc.
22881         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
22882
22883 2010-04-03  Bruno Haible  <bruno@clisp.org>
22884
22885         unistd: Fix C++ test error on mingw.
22886         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
22887
22888 2010-04-03  Bruno Haible  <bruno@clisp.org>
22889
22890         Update doc regarding mingw.
22891         * doc/glibc-functions/openpty.texi: Update regarding mingw.
22892         * doc/glibc-functions/login_tty.texi: Likewise.
22893         * doc/glibc-functions/forkpty.texi: Likewise.
22894
22895 2010-04-03  Bruno Haible  <bruno@clisp.org>
22896
22897         stdlib: Avoid compilation failure of c-strtold on mingw.
22898         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
22899
22900 2010-04-03  Bruno Haible  <bruno@clisp.org>
22901
22902         locale: Make C++ tests work on Cygwin and mingw.
22903         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
22904         cannot provide the function.
22905         Reported by Simon Josefsson.
22906
22907 2010-04-03  Bruno Haible  <bruno@clisp.org>
22908
22909         localename: Port to MacOS X 10.6.
22910         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
22911         memory layout of the locales in MacOS X 10.6 as well.
22912         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
22913
22914 2010-04-02  Bruno Haible  <bruno@clisp.org>
22915
22916         gnulib-tool: Ensure that long-running tests are executed last.
22917         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
22918         running tests after the one for the other tests.
22919
22920 2010-04-02  Bruno Haible  <bruno@clisp.org>
22921
22922         gnulib-tool: Ensure the tests in the main directory are executed first.
22923         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
22924         start with the current directory.
22925
22926 2010-04-02  Bruno Haible  <bruno@clisp.org>
22927
22928         Tests for module 'havelib', moved here from GNU gettext.
22929         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
22930         modifications.
22931         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
22932         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
22933         with modifications.
22934         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
22935         modifications.
22936         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
22937         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
22938         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
22939         with modifications.
22940         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
22941         with modifications.
22942         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
22943         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
22944         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
22945         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
22946         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
22947         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
22948         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
22949         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
22950         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
22951         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
22952         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
22953         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
22954         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
22955         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
22956         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
22957         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
22958         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
22959         with modifications.
22960         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
22961         with modifications.
22962         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
22963         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
22964         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
22965         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
22966         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
22967         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
22968         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
22969         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
22970         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
22971         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
22972         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
22973         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
22974         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
22975         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
22976         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
22977         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
22978         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
22979         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
22980         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
22981         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
22982         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
22983         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
22984         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
22985         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
22986         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
22987         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
22988         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
22989         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
22990         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
22991         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
22992         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
22993         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
22994         * tests/havelib/rpathx/rpathx.c: New file, from
22995         gettext/autoconf-lib-link.
22996         * tests/havelib/rpathx/Makefile.am: New file, from
22997         gettext/autoconf-lib-link.
22998         * tests/havelib/rpathx/configure.ac: New file, from
22999         gettext/autoconf-lib-link with modifications.
23000         * tests/havelib/rpathy/rpathy.c: New file, from
23001         gettext/autoconf-lib-link.
23002         * tests/havelib/rpathy/Makefile.am: New file, from
23003         gettext/autoconf-lib-link.
23004         * tests/havelib/rpathy/configure.ac: New file, from
23005         gettext/autoconf-lib-link with modifications.
23006         * tests/havelib/rpathz/rpathz.c: New file, from
23007         gettext/autoconf-lib-link.
23008         * tests/havelib/rpathz/Makefile.am: New file, from
23009         gettext/autoconf-lib-link.
23010         * tests/havelib/rpathz/configure.ac: New file, from
23011         gettext/autoconf-lib-link with modifications.
23012         * tests/havelib/rpathlx/usex.c: New file, from
23013         gettext/autoconf-lib-link.
23014         * tests/havelib/rpathlx/Makefile.am: New file, from
23015         gettext/autoconf-lib-link.
23016         * tests/havelib/rpathlx/configure.ac: New file, from
23017         gettext/autoconf-lib-link with modifications.
23018         * tests/havelib/rpathly/usey.c: New file, from
23019         gettext/autoconf-lib-link.
23020         * tests/havelib/rpathly/Makefile.am: New file, from
23021         gettext/autoconf-lib-link.
23022         * tests/havelib/rpathly/configure.ac: New file, from
23023         gettext/autoconf-lib-link with modifications.
23024         * tests/havelib/rpathlz/usez.c: New file, from
23025         gettext/autoconf-lib-link.
23026         * tests/havelib/rpathlz/Makefile.am: New file, from
23027         gettext/autoconf-lib-link.
23028         * tests/havelib/rpathlz/configure.ac: New file, from
23029         gettext/autoconf-lib-link with modifications.
23030         * tests/havelib/rpathlyx/usey.c: New file, from
23031         gettext/autoconf-lib-link.
23032         * tests/havelib/rpathlyx/Makefile.am: New file, from
23033         gettext/autoconf-lib-link.
23034         * tests/havelib/rpathlyx/configure.ac: New file, from
23035         gettext/autoconf-lib-link with modifications.
23036         * tests/havelib/rpathlzyx/usez.c: New file, from
23037         gettext/autoconf-lib-link.
23038         * tests/havelib/rpathlzyx/Makefile.am: New file, from
23039         gettext/autoconf-lib-link.
23040         * tests/havelib/rpathlzyx/configure.ac: New file, from
23041         gettext/autoconf-lib-link with modifications.
23042         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
23043         with modifications.
23044
23045 2010-04-02  Bruno Haible  <bruno@clisp.org>
23046
23047         gnulib-tool: Create distributed built sources also for the tests.
23048         * gnulib-tool (func_create_testdir): Also generate distributed built
23049         sources in the tests directory.
23050
23051 2010-04-02  Bruno Haible  <bruno@clisp.org>
23052
23053         gnulib-tool: Obey user's environment variables.
23054         * gnulib-tool (func_create_testdir): When creating built sources,
23055         respect the environment variables for autoconf, automake, etc. given by
23056         the user.
23057
23058 2010-04-02  Bruno Haible  <bruno@clisp.org>
23059
23060         gnulib-tool: Provide the value of --m4-base to modules.
23061         * gnulib-tool (func_import, func_create_testdir): Emit a definition
23062         of gl_m4_base.
23063
23064 2010-04-02  Eric Blake  <eblake@redhat.com>
23065
23066         maint.mk: fix some fallout
23067         * NEWS: Document the incompatible change, and its effect on cfg.mk.
23068         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
23069
23070 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
23071
23072         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
23073         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
23074         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
23075         (sc_cast_of_x_alloc_return_value): Likewise.
23076         (sc_cast_of_alloca_return_value): Likewise.
23077         (sc_space_tab): Likewise.
23078         (sc_prohibit_atoi_atof): Likewise.
23079         (sc_prohibit_magic_number_exit): Likewise.
23080         (sc_error_exit_success): Likewise.
23081         (sc_file_system): Likewise.
23082         (sc_prohibit_have_config_h): Likewise.
23083         (sc_require_config_h): Likewise.
23084         (sc_prohibit_HAVE_MBRTOWC): Likewise.
23085         (sc_obsolete_symbols): Likewise.
23086         (sc_changelog): Likewise.
23087         (sc_program_name): Likewise.
23088         (sc_the_the): Likewise.
23089         (sc_trailing_blank): Likewise.
23090         (sc_two_space_separator_in_usage): Likewise.
23091         (sc_useless_cpp_parens): Likewise.
23092         (sc_GPL_version): Likewise.
23093         (sc_GFDL_version): Likewise.
23094         (sc_texinfo_acronym): Likewise.
23095         (sc_prohibit_cvs_keyword): Likewise.
23096         (sc_prohibit_stat_st_blocks): Likewise.
23097         (sc_prohibit_S_IS_definition): Likewise.
23098         (sc_redundant_const): Likewise.
23099         (sc_makefile_TAB_only_indentation): Likewise.
23100         (sc_m4_quote_check): Likewise.
23101         (sc_makefile_path_separator_check): Likewise.
23102         (sc_copyright_check): Likewise.
23103         (sc_Wundef_boolean): Likewise.
23104         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
23105
23106         maint.mk: match 0 or more whitespace-before-function-call '('
23107         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
23108         that have zero or two-and-more spaces between the function name
23109         and the open parenthesis.
23110         (sc_error_message_warn_fatal): Likewise.
23111         (sc_error_message_uppercase): Likewise.
23112         (sc_error_message_period): Likewise.
23113
23114 2010-03-31  Eric Blake  <eblake@redhat.com>
23115
23116         maint.mk: check for [ as well as test
23117         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
23118         Based on a libvirt report by Matthias Bolte.
23119
23120         gnumakefile: don't squelch _version output
23121         * top/GNUmakefile (_version): Create one-shot dependency rather
23122         than using $(shell) when version must be regenerated.
23123         (_autoreconf): Run verbosely, by default.
23124
23125         sys_time: avoid compiler warnings
23126         * lib/sys_time.in.h (includes): Ensure gcc pragma is
23127         unconditional, fixing regression from 2010-03-29.
23128         Reported by Simon Josefsson.
23129
23130 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
23131
23132         maint.mk: s/_header_without_use/_sc_header_without_use/
23133         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
23134         (sc_prohibit_assert_without_use): Use the new name.
23135         (sc_prohibit_close_stream_without_use): Likewise.
23136         (sc_prohibit_getopt_without_use): Likewise.
23137         (sc_prohibit_quotearg_without_use): Likewise.
23138         (sc_prohibit_quote_without_use): Likewise.
23139         (sc_prohibit_long_options_without_use): Likewise.
23140         (sc_prohibit_inttostr_without_use): Likewise.
23141         (sc_prohibit_ignore_value_without_use): Likewise.
23142         (sc_prohibit_error_without_use): Likewise.
23143         (sc_prohibit_xalloc_without_use): Likewise.
23144         (sc_prohibit_hash_without_use): Likewise.
23145         (sc_prohibit_hash_pjw_without_use): Likewise.
23146         (sc_prohibit_safe_read_without_use): Likewise.
23147         (sc_prohibit_argmatch_without_use): Likewise.
23148         (sc_prohibit_canonicalize_without_use): Likewise.
23149         (sc_prohibit_root_dev_ino_without_use): Likewise.
23150         (sc_prohibit_openat_without_use): Likewise.
23151         (sc_prohibit_c_ctype_without_use): Likewise.
23152         (sc_prohibit_signal_without_use): Likewise.
23153         (sc_prohibit_intprops_without_use): Likewise.
23154
23155 2010-03-30  Eric Blake  <eblake@redhat.com>
23156
23157         maint: improve module indicators
23158         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
23159         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
23160         columns, and avoid extra macro expansion.
23161
23162         fdopendir: work around FreeBSD bug
23163         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
23164         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
23165         * modules/dirent (Makefile.am): Substitute it.
23166         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
23167         declaration.
23168         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
23169         fix.
23170         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23171
23172 2010-03-29  Bruno Haible  <bruno@clisp.org>
23173
23174         Emit #pragma system_header after the inclusion guard, not before.
23175         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
23176         guard that spans the entire file, not before. This enables an
23177         optimization in GCC's preprocessor.
23178         * lib/ctype.in.h: Likewise.
23179         * lib/dirent.in.h: Likewise.
23180         * lib/errno.in.h: Likewise.
23181         * lib/float.in.h: Likewise.
23182         * lib/getopt.in.h: Likewise.
23183         * lib/iconv.in.h: Likewise.
23184         * lib/langinfo.in.h: Likewise.
23185         * lib/locale.in.h: Likewise.
23186         * lib/math.in.h: Likewise.
23187         * lib/netdb.in.h: Likewise.
23188         * lib/netinet_in.in.h: Likewise.
23189         * lib/pty.in.h: Likewise.
23190         * lib/sched.in.h: Likewise.
23191         * lib/se-selinux.in.h: Likewise.
23192         * lib/search.in.h: Likewise.
23193         * lib/spawn.in.h: Likewise.
23194         * lib/stdarg.in.h: Likewise.
23195         * lib/stdint.in.h: Likewise.
23196         * lib/string.in.h: Likewise.
23197         * lib/strings.in.h: Likewise.
23198         * lib/sys_file.in.h: Likewise.
23199         * lib/sys_ioctl.in.h: Likewise.
23200         * lib/sys_time.in.h: Likewise.
23201         * lib/sys_times.in.h: Likewise.
23202         * lib/sys_utsname.in.h: Likewise.
23203         * lib/sys_wait.in.h: Likewise.
23204         * lib/sysexits.in.h: Likewise.
23205         * lib/wctype.in.h: Likewise.
23206
23207 2010-03-28  James Youngman  <jay@gnu.org>
23208
23209         save-cwd: don't leak a file descriptor when the caller execs.
23210         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
23211         saved file descriptor.
23212         * modules/save-cwd (Depends-on): Depend on cloexec.
23213
23214 2010-03-29  Bruno Haible  <bruno@clisp.org>
23215
23216         Remove vestiges of fts-lgpl module.
23217         * lib/fts_.h: Assume GNULIB_FTS is 1.
23218         * lib/fts.c: Likewise.
23219         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
23220
23221 2010-03-28  Bruno Haible  <bruno@clisp.org>
23222
23223         Fix definition of tests witness macro.
23224         * gnulib-tool (func_import): Fix definition of witness macro.
23225
23226 2010-03-28  Bruno Haible  <bruno@clisp.org>
23227
23228         Fix ioctl's protoype on glibc systems.
23229         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
23230         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
23231         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
23232         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
23233         signature. If not, arrange to replace the ioctl function.
23234         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
23235         REPLACE_IOCTL.
23236         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
23237         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
23238         Reported by Ludovic Courtès <ludo@gnu.org>.
23239
23240 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
23241
23242         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
23243         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
23244         made it so grep -r --include=GLOB* ... did not work.
23245
23246 2010-03-26  Jim Meyering  <meyering@redhat.com>
23247             Eric Blake  <eblake@redhat.com>
23248
23249         maint.mk: prohibit use of test's -o and -a operators
23250         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
23251
23252 2010-03-28  Bruno Haible  <bruno@clisp.org>
23253
23254         Remove unused GNULIB_XYZ macro definitions.
23255         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
23256         invocation.
23257
23258 2010-03-28  Bruno Haible  <bruno@clisp.org>
23259
23260         Mark privileged tests modules.
23261         * modules/idpriv-drop-tests (Status): New section.
23262         * modules/idpriv-droptemp-tests (Status): New section.
23263
23264 2010-03-28  Bruno Haible  <bruno@clisp.org>
23265
23266         Split C++ tests into separate tests modules.
23267         * modules/dirent-c++-tests: New file, extracted from
23268         modules/dirent-tests.
23269         * modules/dirent-tests: Depend on it.
23270         * modules/fcntl-h-c++-tests: New file, extracted from
23271         modules/fcntl-h-tests.
23272         * modules/fcntl-h-tests: Depend on it.
23273         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
23274         * modules/glob-tests: Depend on it.
23275         * modules/iconv-h-c++-tests: New file, extracted from
23276         modules/iconv-h-tests.
23277         * modules/iconv-h-tests: Depend on it.
23278         * modules/langinfo-c++-tests: New file, extracted from
23279         modules/langinfo-tests.
23280         * modules/langinfo-tests: Depend on it.
23281         * modules/locale-c++-tests: New file, extracted from
23282         modules/locale-tests.
23283         * modules/locale-tests: Depend on it.
23284         * modules/math-c++-tests: New file, extracted from modules/math-tests.
23285         * modules/math-tests: Depend on it.
23286         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
23287         * modules/pty-tests: Depend on it.
23288         * modules/search-c++-tests: New file, extracted from
23289         modules/search-tests.
23290         * modules/search-tests: Depend on it.
23291         * modules/signal-c++-tests: New file, extracted from
23292         modules/signal-tests.
23293         * modules/signal-tests: Depend on it.
23294         * modules/spawn-c++-tests: New file, extracted from
23295         modules/spawn-tests.
23296         * modules/spawn-tests: Depend on it.
23297         * modules/stdio-c++-tests: New file, extracted from
23298         modules/stdio-tests.
23299         * modules/stdio-tests: Depend on it.
23300         * modules/stdlib-c++-tests: New file, extracted from
23301         modules/stdlib-tests.
23302         * modules/stdlib-tests: Depend on it.
23303         * modules/string-c++-tests: New file, extracted from
23304         modules/string-tests.
23305         * modules/string-tests: Depend on it.
23306         * modules/sys_ioctl-c++-tests: New file, extracted from
23307         modules/sys_ioctl-tests.
23308         * modules/sys_ioctl-tests: Depend on it.
23309         * modules/sys_select-c++-tests: New file, extracted from
23310         modules/sys_select-tests.
23311         * modules/sys_select-tests: Depend on it.
23312         * modules/sys_socket-c++-tests: New file, extracted from
23313         modules/sys_socket-tests.
23314         * modules/sys_socket-tests: Depend on it.
23315         * modules/sys_stat-c++-tests: New file, extracted from
23316         modules/sys_stat-tests.
23317         * modules/sys_stat-tests: Depend on it.
23318         * modules/sys_time-c++-tests: New file, extracted from
23319         modules/sys_time-tests.
23320         * modules/sys_time-tests: Depend on it.
23321         * modules/time-c++-tests: New file, extracted from modules/time-tests.
23322         * modules/time-tests: Depend on it.
23323         * modules/unistd-c++-tests: New file, extracted from
23324         modules/unistd-tests.
23325         * modules/unistd-tests: Depend on it.
23326         * modules/wchar-c++-tests: New file, extracted from
23327         modules/wchar-tests.
23328         * modules/wchar-tests: Depend on it.
23329         * modules/wctype-c++-tests: New file, extracted from
23330         modules/wctype-tests.
23331         * modules/wctype-tests: Depend on it.
23332         Reported by Simon Josefsson.
23333
23334 2010-03-28  Bruno Haible  <bruno@clisp.org>
23335
23336         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
23337         * gnulib-tool (func_exists_module): New function, extracted from
23338         func_verify_module.
23339         (func_verify_module): Use it.
23340         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
23341         'foo' only if 'foo' exists.
23342         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
23343         module.
23344
23345 2010-03-28  Bruno Haible  <bruno@clisp.org>
23346
23347         gnulib-tool: Add support for special categories of tests.
23348         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
23349         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
23350         (func_usage): Document them.
23351         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
23352         inc_unportable_tests, inc_all_tests): New variables.
23353         (func_acceptable): Consider these variables.
23354         (func_modules_transitive_closure): Make it work when the 'Status' field
23355         consists of multiple words.
23356         (func_import): Store and restore the values of inc_cxx_tests,
23357         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
23358         inc_all_tests in gnulib-comp.m4.
23359         (func_create_testdir): Set inc_all_tests to true.
23360         * doc/gnulib.texi (Extra tests modules): New section.
23361         Suggested by Jim Meyering.
23362
23363 2010-03-28  Bruno Haible  <bruno@clisp.org>
23364
23365         ansi-c++-opt: Allow turning off the C++ build by default.
23366         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
23367         gl_CXX_CHOICE_DEFAULT_NO is defined.
23368         Requested by Eric Blake.
23369
23370 2010-03-28  Bruno Haible  <bruno@clisp.org>
23371
23372         unistd: Avoid #define replacements in C++ mode.
23373         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
23374         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
23375         setsockopt, shutdown, select): In C++, attach a warning to the function
23376         if possible, rather than #defining the symbol to a dysfunctional alias.
23377         Reported by John W. Eaton <jwe@gnu.org>.
23378
23379 2010-03-28  Bruno Haible  <bruno@clisp.org>
23380
23381         Fix link errors on mingw.
23382         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
23383         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
23384         $(LIBSOCKET).
23385         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
23386         $(LIBSOCKET).
23387
23388 2010-03-28  Bruno Haible  <bruno@clisp.org>
23389             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23390
23391         lib-ignore: Determine different options for different compilers.
23392         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
23393         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
23394         Add comments.
23395         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
23396         * NEWS: Mention the change.
23397
23398 2010-03-27  Bruno Haible  <bruno@clisp.org>
23399
23400         Remove unused GNULIB_XYZ macro definitions.
23401         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
23402         * modules/fseek (configure.ac): Likewise.
23403         * modules/ioctl (configure.ac): Likewise.
23404         * modules/open (configure.ac): Likewise.
23405         * modules/stdlib-safer (configure.ac): Likewise.
23406
23407 2010-03-27  Bruno Haible  <bruno@clisp.org>
23408
23409         Add a remark about certain modules.
23410         * modules/malloc (Comment): New section.
23411         * modules/realloc (Comment): Likewise.
23412         * modules/sigpipe (Comment): Likewise.
23413
23414 2010-03-27  Bruno Haible  <bruno@clisp.org>
23415
23416         Resolve conflict between the two kinds of module indicators.
23417         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
23418         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
23419         * modules/canonicalize (configure.ac): Invoke
23420         gl_MODULE_INDICATOR_FOR_TESTS.
23421         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
23422         GNULIB_XYZ.
23423         * tests/test-dirent-c++.cc: Likewise.
23424         * tests/test-dirent-safer.c: Likewise.
23425         * tests/test-dup2.c: Likewise.
23426         * tests/test-fchdir.c: Likewise.
23427         * tests/test-fcntl-h-c++.cc: Likewise.
23428         * tests/test-getopt.c: Likewise.
23429         * tests/test-getopt.h: Likewise.
23430         * tests/test-langinfo-c++.cc: Likewise.
23431         * tests/test-locale-c++.cc: Likewise.
23432         * tests/test-math-c++.cc: Likewise.
23433         * tests/test-pty-c++.cc: Likewise.
23434         * tests/test-search-c++.cc: Likewise.
23435         * tests/test-signal-c++.cc: Likewise.
23436         * tests/test-spawn-c++.cc: Likewise.
23437         * tests/test-stdio-c++.cc: Likewise.
23438         * tests/test-stdlib-c++.cc: Likewise.
23439         * tests/test-string-c++.cc: Likewise.
23440         * tests/test-sys_ioctl-c++.cc: Likewise.
23441         * tests/test-sys_select-c++.cc: Likewise.
23442         * tests/test-sys_socket-c++.cc: Likewise.
23443         * tests/test-sys_stat-c++.cc: Likewise.
23444         * tests/test-sys_time-c++.cc: Likewise.
23445         * tests/test-time-c++.cc: Likewise.
23446         * tests/test-unistd-c++.cc: Likewise.
23447         * tests/test-wchar-c++.cc: Likewise.
23448         * tests/uninorm/test-u8-nfc.c: Likewise.
23449         * tests/uninorm/test-u8-nfd.c: Likewise.
23450         * tests/uninorm/test-u8-nfkc.c: Likewise.
23451         * tests/uninorm/test-u8-nfkd.c: Likewise.
23452         * tests/uninorm/test-u16-nfc.c: Likewise.
23453         * tests/uninorm/test-u16-nfd.c: Likewise.
23454         * tests/uninorm/test-u16-nfkc.c: Likewise.
23455         * tests/uninorm/test-u16-nfkd.c: Likewise.
23456         * tests/uninorm/test-u32-nfc.c: Likewise.
23457         * tests/uninorm/test-u32-nfc-big.c: Likewise.
23458         * tests/uninorm/test-u32-nfd.c: Likewise.
23459         * tests/uninorm/test-u32-nfd-big.c: Likewise.
23460         * tests/uninorm/test-u32-nfkc.c: Likewise.
23461         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
23462         * tests/uninorm/test-u32-nfkd.c: Likewise.
23463         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
23464         * tests/uninorm/test-u32-normalize-big.c: Likewise.
23465
23466 2010-03-27  Bruno Haible  <bruno@clisp.org>
23467
23468         Distinguish two kinds of module indicators.
23469         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
23470         gl_MODULE_INDICATOR.
23471         (gl_MODULE_INDICATOR): New macro.
23472         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
23473         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
23474         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
23475         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
23476         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
23477         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
23478         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
23479         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
23480         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
23481         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
23482         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
23483         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
23484         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
23485         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
23486         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
23487         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
23488         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
23489         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
23490         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
23491         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
23492         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
23493         * modules/cloexec (configure.ac): Likewise.
23494         * modules/getopt-gnu (configure.ac): Likewise.
23495         * modules/uninorm/u8-normalize (configure.ac): Likewise.
23496         * modules/uninorm/u16-normalize (configure.ac): Likewise.
23497         * modules/uninorm/u32-normalize (configure.ac): Likewise.
23498         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
23499
23500 2010-03-27  Bruno Haible  <bruno@clisp.org>
23501
23502         New module description field 'Comment'.
23503         * gnulib-tool: New option --extract-comment.
23504         (func_usage): Document it.
23505         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
23506         (func_get_comment): New function.
23507         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
23508
23509 2010-03-27  Bruno Haible  <bruno@clisp.org>
23510
23511         Addendum to 2010-02-07 commit.
23512         * gnulib-tool (func_usage): Document --extract-applicability option.
23513
23514 2010-03-27  Bruno Haible  <bruno@clisp.org>
23515
23516         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
23517         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
23518         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
23519         rather than link errors.
23520
23521 2010-03-27  Bruno Haible  <bruno@clisp.org>
23522
23523         Avoid side effects from tests-related modules on the compilation of lib.
23524         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
23525         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
23526         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
23527         parameter. Emit into AM_CPPFLAGS a definition of the designated C
23528         macro.
23529         (func_import): Define a witness macro. Assign it a value that depends
23530         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
23531         tests-related modules.
23532         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
23533         Reported by Jim Meyering.
23534
23535 2010-03-27  Bruno Haible  <bruno@clisp.org>
23536
23537         Factorize common .m4 code.
23538         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
23539         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
23540         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
23541         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
23542         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
23543         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
23544         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
23545         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
23546         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
23547         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
23548         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
23549         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
23550         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
23551         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
23552         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
23553         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
23554         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
23555         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
23556         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
23557         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
23558         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
23559         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
23560         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
23561         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
23562         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
23563         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
23564         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
23565         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
23566         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
23567         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
23568         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
23569         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
23570
23571 2010-03-27  Bruno Haible  <bruno@clisp.org>
23572
23573         Fix a compilation error on Cygwin with g++ >= 4.3.
23574         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
23575         if it is undefined or if we alias it to chmod.
23576         (lstat): Don't warn about the use of this function if it is undefined
23577         or if we alias it to stat.
23578         Reported by Simon Josefsson.
23579
23580 2010-03-27  Bruno Haible  <bruno@clisp.org>
23581
23582         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
23583         * modules/getlogin (configure.ac): Update.
23584
23585         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
23586         * modules/getlogin_r (configure.ac): Update.
23587
23588         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
23589         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
23590         * modules/inet_ntop (configure.ac): Update.
23591
23592         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
23593         * modules/inet_pton (configure.ac): Update.
23594
23595         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
23596         * modules/mbslen (configure.ac): Update.
23597
23598         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
23599         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
23600         * modules/forkpty (configure.ac): Update.
23601         * modules/openpty (configure.ac): Update.
23602
23603 2010-03-26  Simon Josefsson  <simon@josefsson.org>
23604
23605         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
23606         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
23607
23608 2010-03-25  Eric Blake  <eblake@redhat.com>
23609
23610         maint: use pragma consistently across replacement headers
23611         * lib/ctype.in.h (system_header): Hoist for consistent placement.
23612         * lib/dirent.in.h (system_header): Likewise.
23613         * lib/errno.in.h (system_header): Likewise.
23614         * lib/float.in.h (system_header): Likewise.
23615         * lib/getopt.in.h (system_header): Likewise.
23616         * lib/iconv.in.h (system_header): Likewise.
23617         * lib/inttypes.in.h (system_header): Likewise.
23618         * lib/langinfo.in.h (system_header): Likewise.
23619         * lib/locale.in.h (system_header): Likewise.
23620         * lib/math.in.h (system_header): Likewise.
23621         * lib/netdb.in.h (system_header): Likewise.
23622         * lib/netinet_in.in.h (system_header): Likewise.
23623         * lib/pty.in.h (system_header): Likewise.
23624         * lib/sched.in.h (system_header): Likewise.
23625         * lib/se-selinux.in.h (system_header): Likewise.
23626         * lib/search.in.h (system_header): Likewise.
23627         * lib/spawn.in.h (system_header): Likewise.
23628         * lib/stdarg.in.h (system_header): Likewise.
23629         * lib/stdint.in.h (system_header): Likewise.
23630         * lib/string.in.h (system_header): Likewise.
23631         * lib/strings.in.h (system_header): Likewise.
23632         * lib/sys_file.in.h (system_header): Likewise.
23633         * lib/sys_ioctl.in.h (system_header): Likewise.
23634         * lib/sys_socket.in.h (system_header): Likewise.
23635         * lib/sys_times.in.h (system_header): Likewise.
23636         * lib/sys_utsname.in.h (system_header): Likewise.
23637         * lib/sys_wait.in.h (system_header): Likewise.
23638         * lib/sysexits.in.h (system_header): Likewise.
23639         * lib/unistd.in.h (system_header): Likewise.
23640         * lib/wctype.in.h (system_header): Likewise.
23641
23642         arpa/inet: fix mingw compilation warning
23643         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
23644         Reported by Matthew Bolte.
23645
23646 2010-03-25  Bruno Haible  <bruno@clisp.org>
23647
23648         Avoid collision between gnulib wrapper and libintl wrapper.
23649         * lib/printf.c (printf): Don't define if a printf wrapper is already
23650         defined in intl/printf.c.
23651         Reported by Michel Boaventura <michel@michelboaventura.com>.
23652
23653 2010-03-25  Bruno Haible  <bruno@clisp.org>
23654
23655         Use ANSI C.
23656         * lib/readutmp.h (getutent): Provide ANSI C prototype.
23657
23658 2010-03-25  Bruno Haible  <bruno@clisp.org>
23659
23660         Minor formatting changes.
23661         * lib/acosl.c: Insert space before function argument list.
23662         * lib/argz.c: Likewise.
23663         * lib/asinl.c: Likewise.
23664         * lib/expl.c: Likewise.
23665         * lib/gen-uni-tables.c: Likewise.
23666         * lib/gettext.h: Likewise.
23667         * lib/glthread/lock.h: Likewise.
23668         * lib/tanl.c: Likewise.
23669         * lib/uniname/uniname.c: Likewise.
23670         * tests/test-idpriv-drop.c: Likewise.
23671         * tests/test-idpriv-droptemp.c: Likewise.
23672         * tests/test-lock.c: Likewise.
23673         * tests/test-tls.c: Likewise.
23674         * lib/argp-help.c: Insert space before function-like macro argument
23675         list.
23676         * lib/memcmp.c: Likewise.
23677         * tests/test-base64.c: Likewise.
23678         * lib/localename.c: Insert space before sizeof's argument list.
23679         * lib/safe-alloc.h: Likewise.
23680         * lib/file-set.h: Insert space before macro argument list.
23681         * tests/test-argp.c: Likewise.
23682         * lib/argp-namefrob.h: Insert space before function parameter list.
23683         * lib/getaddrinfo.c: Likewise.
23684         * lib/netdb.in.h: Likewise.
23685         * lib/parse-duration.h: Likewise.
23686         * lib/parse-duration.c: Likewise.
23687         * lib/poll.c: Likewise.
23688         * lib/select.c: Likewise.
23689         * lib/trim.h: Likewise.
23690         * tests/test-usleep.c: Likewise.
23691         * lib/ldexpl.c: Insert space before function parameter list and before
23692         function argument list.
23693         * lib/logl.c: Likewise.
23694         * lib/sqrtl.c: Likewise.
23695         * lib/trim.c: Likewise.
23696         * lib/cosl.c: Use GNU style indentation. Insert space before function
23697         argument list.
23698         * lib/sinl.c: Likewise.
23699         * lib/tsearch.c: Insert space after 'for'.
23700         Reported by Jim Meyering.
23701
23702 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
23703
23704         * maint.mk (sc_Wundef_boolean): Check for the presence of the
23705         config header before grepping, as it's not present before
23706         autoreconf/configure are run.  Reported by Simon Josefsson.
23707
23708 2010-03-23  Bruno Haible  <bruno@clisp.org>
23709
23710         pt_chown: Make it work with automake < 1.11.
23711         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
23712         Reported by Simon Josefsson.
23713
23714 2010-03-23  Bruno Haible  <bruno@clisp.org>
23715
23716         pt_chown: Don't depend on GPLed modules.
23717         * lib/pt_chown.c: Don't include idpriv.h.
23718         (main): Don't drop privileges.
23719         * modules/pt_chown (Depends-on): Remove idpriv-drop.
23720         Reported by Simon Josefsson.
23721
23722 2010-03-24  Simon Josefsson  <simon@josefsson.org>
23723
23724         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
23725         suggestions from karl@freefriends.org (Karl Berry).
23726
23727 2010-03-22  Eric Blake  <eblake@redhat.com>
23728
23729         gethostname: further tweaks
23730         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
23731         are overriding gethostname.
23732         Suggested by Bruno Haible.
23733
23734 2010-03-21  Bruno Haible  <bruno@clisp.org>
23735
23736         Fix comments.
23737         * lib/forkpty.c (rpl_forkpty): Fix comment.
23738         * lib/openpty.c (rpl_openpty): Likewise.
23739         Reported by Eric Blake.
23740
23741 2010-03-22  Eric Blake  <eblake@redhat.com>
23742
23743         gethostname: fix build on mingw
23744         * lib/unistd.in.h (includes): Work around fact that mingw
23745         <winsock2.h> re-includes <unistd.h>, by avoiding any
23746         redeclarations if we are being included by <winsock2.h>.
23747         Reported by Matthias Bolte.
23748
23749 2010-03-21  Bruno Haible  <bruno@clisp.org>
23750
23751         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
23752         * lib/forkpty.c (forkpty): New replacement function, from glibc with
23753         modifications.
23754         * lib/pty.in.h (forkpty): Update declaration. Add comments.
23755         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
23756         provide the replacement.
23757         * modules/forkpty (Depends-on): Add openpty, login_tty.
23758         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
23759         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
23760         * doc/glibc-functions/forkpty.texi: More supported platforms.
23761         * config/srclist.txt: Add forkpty.c (commented).
23762
23763 2010-03-21  Bruno Haible  <bruno@clisp.org>
23764
23765         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
23766         (Makefile.am): Verify that PTY_LIB is defined.
23767
23768         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
23769
23770 2010-03-21  Bruno Haible  <bruno@clisp.org>
23771
23772         Tests for module 'login_tty'.
23773         * modules/login_tty-tests: New file.
23774         * tests/test-login_tty.c: New file.
23775
23776         New module 'login_tty'.
23777         * lib/login_tty.c: New file.
23778         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
23779         * modules/login_tty: New file.
23780         * doc/glibc-functions/login_tty.texi: Mention the new module.
23781
23782 2010-03-21  Bruno Haible  <bruno@clisp.org>
23783
23784         login_tty: Documentation.
23785         * doc/glibc-functions/login_tty.texi: New file.
23786         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
23787
23788 2010-03-21  Bruno Haible  <bruno@clisp.org>
23789
23790         pty: Consistent macro naming.
23791         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
23792         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
23793         * modules/pty (configure.ac): Update.
23794
23795 2010-03-21  Bruno Haible  <bruno@clisp.org>
23796
23797         Tests for openpty: Make stricter.
23798         * tests/test-openpty.c (main): Add test of canonical processing and
23799         erase.
23800         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
23801
23802         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
23803         * lib/openpty.c (openpty): New replacement function.
23804         * lib/pty.in.h: Include <termios.h>.
23805         (openpty): Update declaration. Add comments.
23806         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
23807         is not declared, arrange to provide the replacement. Check for _getpty
23808         and posix_openpt.
23809         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
23810         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
23811         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
23812         * modules/pty-tests (test_pty_c___LDADD): New variable.
23813         * doc/glibc-functions/openpty.texi: More supported platforms.
23814
23815 2010-03-21  Bruno Haible  <bruno@clisp.org>
23816
23817         setenv: Tweaks.
23818         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
23819         the test program.
23820         * doc/posix-functions/setenv.texi: Update platforms list.
23821
23822 2010-03-21  Bruno Haible  <bruno@clisp.org>
23823
23824         New module 'unlockpt'.
23825         * lib/unlockpt.c: New file, from glibc with modifications.
23826         * m4/unlockpt.m4: New file.
23827         * modules/unlockpt: New file.
23828         * lib/stdlib.in.h (unlockpt): New declaration.
23829         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
23830         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
23831         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
23832         HAVE_UNLOCKPT.
23833         * doc/posix-functions/unlockpt.texi: Mention the new module.
23834         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
23835         * config/srclist.txt: Add unlockpt.c (commented).
23836
23837 2010-03-21  Jim Meyering  <meyering@redhat.com>
23838
23839         maint.mk: prohibit inclusion of "intprops.h" without use
23840         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
23841
23842 2010-03-21  Bruno Haible  <bruno@clisp.org>
23843
23844         New module 'grantpt'.
23845         * lib/grantpt.c: New file, from glibc with modifications.
23846         * m4/grantpt.m4: New file.
23847         * modules/grantpt: New file.
23848         * lib/stdlib.in.h (grantpt): New declaration.
23849         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
23850         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
23851         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
23852         HAVE_GRANTPT.
23853         * doc/posix-functions/grantpt.texi: Mention the new module.
23854         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
23855         * config/srclist.txt: Add grantpt.c (commented).
23856
23857 2010-03-21  Bruno Haible  <bruno@clisp.org>
23858
23859         New module 'pt_chown'.
23860         * lib/pt_chown.c: New file, from glibc with modifications.
23861         * lib/pty-private.h: New file, from glibc with modifications.
23862         * modules/pt_chown: New file.
23863         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
23864
23865 2010-03-21  Bruno Haible  <bruno@clisp.org>
23866
23867         Tests for module 'ptsname'.
23868         * modules/ptsname-tests: New file.
23869         * tests/test-ptsname.c: New file.
23870
23871         New module 'ptsname'.
23872         * lib/ptsname.c: New file, from glibc with modifications.
23873         * m4/ptsname.m4: New file.
23874         * modules/ptsname: New file.
23875         * lib/stdlib.in.h (ptsname): New declaration.
23876         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
23877         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
23878         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
23879         HAVE_PTSNAME.
23880         * doc/posix-functions/ptsname.texi: Mention the new module.
23881         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
23882         * config/srclist.txt: Add ptsname.c (commented).
23883
23884 2010-03-21  Bruno Haible  <bruno@clisp.org>
23885
23886         Tests for module 'ttyname_r'.
23887         * modules/ttyname_r-tests: New file.
23888         * tests/test-ttyname_r.c: New file.
23889
23890         New module 'ttyname_r'.
23891         * lib/ttyname_r.c: New file.
23892         * m4/ttyname_r.m4: New file.
23893         * modules/ttyname_r: New file.
23894         * lib/unistd.in.h (ttyname_r): New declaration.
23895         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
23896         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
23897         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
23898         HAVE_TTYNAME_R.
23899         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
23900         * doc/posix-functions/ttyname_r.texi: Mention the new module.
23901
23902 2010-03-20  Bruno Haible  <bruno@clisp.org>
23903
23904         signal: Undefine macro definitions in C++ mode.
23905         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
23906         sigfillset): Undefine macro definitions from the system header in C++
23907         mode.
23908         Reported by John W. Eaton <jwe@gnu.org>.
23909
23910 2010-03-20  Bruno Haible  <bruno@clisp.org>
23911
23912         Ensure no #include statements inside extern "C" { ... }.
23913         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
23914         contain #include statements.
23915         * lib/time.in.h: Likewise.
23916
23917 2010-03-20  Bruno Haible  <bruno@clisp.org>
23918
23919         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
23920         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
23921         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
23922         Reported by John W. Eaton <jwe@gnu.org>.
23923
23924 2010-03-20  Bruno Haible  <bruno@clisp.org>
23925
23926         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
23927         Reported by Jim Meyering.
23928
23929 2010-03-20  Bruno Haible  <bruno@clisp.org>
23930
23931         pipe: Set errno upon failure.
23932         * lib/pipe.h: Specify that when -1 is returned, errno is set.
23933         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
23934         errno value in error message.
23935
23936 2010-03-20  Bruno Haible  <bruno@clisp.org>
23937             Jim Meyering  <meyering@redhat.com>
23938
23939         lchown: Avoid "unused variable" warning.
23940         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
23941
23942 2010-03-20  Bruno Haible  <bruno@clisp.org>
23943
23944         Work around unlink() bug on MacOS X 10.5.6.
23945         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
23946         attempting to unlink a parent directory.
23947         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
23948         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
23949         activate for the replacement function.
23950         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
23951
23952 2010-03-20  Bruno Haible  <bruno@clisp.org>
23953
23954         Fix link errors on Solaris 8.
23955         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
23956         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
23957
23958 2010-03-19  Jim Meyering  <meyering@redhat.com>
23959
23960         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
23961         The _LIBC implementation of build_range_exp correctly honors the
23962         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
23963         However, the non-_LIBC implementation would ignore that syntax-bit
23964         flag and return REG_ERANGE unconditionally.
23965         This change makes it honor that flag.
23966         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
23967         Make two pointer parameters "const".
23968         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
23969         (parse_bracket_exp): Update caller.
23970
23971         regex.m4: correct the reversed range endpoint ([b-a]) test
23972         * m4/regex.m4: When requiring that [b-a] evoke failure,
23973         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
23974         test pass once again for x86-based systems.
23975
23976 2010-03-19  Bruno Haible  <bruno@clisp.org>
23977
23978         scandir: Fix link error on Solaris 8.
23979         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
23980         macros.
23981
23982 2010-03-19  Bruno Haible  <bruno@clisp.org>
23983
23984         getusershell: Fix documentation.
23985         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
23986         module.
23987         * doc/glibc-functions/setusershell.texi: Likewise.
23988
23989         getusershell: Provide declaration, missing on Solaris 9.
23990         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
23991         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
23992         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
23993         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
23994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23995         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
23996         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
23997         HAVE_GETUSERSHELL.
23998         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
23999
24000 2010-03-19  Bruno Haible  <bruno@clisp.org>
24001
24002         wctype: Provide iswblank function.
24003         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
24004         exists and is fine.
24005         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
24006         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
24007         * tests/test-wctype.c (main): Re-enable the iswblank tests.
24008         * doc/posix-functions/iswblank.texi: Update.
24009
24010 2010-03-19  Bruno Haible  <bruno@clisp.org>
24011
24012         Tests of module 'pty' in C++ mode.
24013         * modules/pty-tests: New file.
24014         * tests/test-pty-c++.cc: New file.
24015         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24016
24017 2010-03-19  Eric Blake  <eblake@redhat.com>
24018
24019         logb: fix documentation
24020         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
24021         1.5 declaration bug.
24022
24023         forkpty, openpty: prefer glibc's const-safe prototype
24024         * lib/forkpty.c (rpl_forkpty): New file.
24025         * lib/openpty.c (rpl_openpty): Likewise.
24026         * modules/forkpty (Files): Distribute it.
24027         * modules/openpty (Files): Likewise.
24028         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
24029         check...
24030         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
24031         replacement for for non-const BSD signature.
24032         * modules/pty (Makefile.am): Substitute witnesses.
24033         * lib/pty.in.h (forkpty, openpty): Declare replacements.
24034         * tests/test-forkpty.c: Update signature check.
24035         * tests/test-openpty.c: Likewise.
24036         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
24037         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24038
24039         forkpty, openpty: split functions into new modules
24040         * modules/pty (Makefile.am): Substitute new witnesses.
24041         (Libraries): Move library detection...
24042         * modules/forkpty: ...into new module.
24043         * modules/openpty: Another new module.
24044         * modules/pty-tests: Rename and split...
24045         * modules/forkpty-tests: ...to this...
24046         * modules/openpty-tests: ...and this.
24047         * tests/test-pty.c: Rename and split...
24048         * tests/test-forkpty.c: ...to this...
24049         * tests/test-openpty.c: ...and this.
24050         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
24051         (gl_PTY): Split library searching...
24052         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
24053         (gl_FORKPTY, gl_OPENPTY): New macros.
24054         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
24055         * NEWS: Mention the split.
24056         * MODULES.html.sh (Misc): Document the modules.
24057         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
24058         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24059
24060         pty: improve replacement header
24061         * lib/pty.in.h: New file.
24062         * modules/pty (Files): Ship it.
24063         (Makefile.am): Always build replacement.
24064         * m4/pty.m4: Rename...
24065         * m4/pty_h.m4: ...to this.
24066         (gl_PTY): Modernize setting of witness macros; update check of
24067         forkpty to take proper advantage of cache.
24068         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
24069
24070         getopt: avoid compiler warning
24071         * lib/getopt.c (attribute_hidden): Remove unused macro.
24072
24073 2010-03-18  Bruno Haible  <bruno@clisp.org>
24074
24075         Fix link errors on Solaris 8.
24076         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
24077         * modules/search-tests (test_search_c___LDADD): Likewise.
24078         * modules/signal-tests (test_signal_c___LDADD): Likewise.
24079         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
24080         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
24081         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
24082         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
24083         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
24084         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
24085
24086 2010-03-18  Bruno Haible  <bruno@clisp.org>
24087
24088         Fix bug introduced on 2010-03-14.
24089         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
24090         (gl_SPAWN_H): Require it.
24091         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
24092         Reported by Simon Josefsson.
24093
24094 2010-03-18  Bruno Haible  <bruno@clisp.org>
24095
24096         Fix typo introduced on 2009-12-31.
24097         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
24098         posix_spawn_file_actions_adddup2.
24099
24100 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
24101         and Eric Blake  <eblake@redhat.com>
24102
24103         test-vc-list-files-git: make more robust
24104         * tests/test-vc-list-files-git.sh: Unset problematic environment
24105         variables.  Chain commands together.
24106
24107 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
24108
24109         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
24110         `AC_CHECK_DECL' invocation.
24111
24112 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
24113
24114         * lib/inttostr.c (inttostr): Make sure the invocation of verify
24115         appears before executable statements. Suggested by Petr Sumbera
24116         <Petr.Sumbera@Sun.COM>.
24117
24118 2010-03-14  Bruno Haible  <bruno@clisp.org>
24119
24120         * tests/test-flock.c (test_exclusive): Comment out a test that causes
24121         portability problems. Instead use a simpler test.
24122         (main): Check that invalid arguments are rejected only on Linux.
24123
24124 2010-03-14  Bruno Haible  <bruno@clisp.org>
24125
24126         Fix bug introduced on 2009-12-31.
24127         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
24128         gl_PREREQ_SYS_H_WINSOCK2 always.
24129         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
24130         SYS_SOCKET_H variable.
24131         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
24132         Update comments.
24133         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
24134         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24135         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24136         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24137         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
24138
24139 2010-03-14  Bruno Haible  <bruno@clisp.org>
24140
24141         Fix values returned by sinl, cosl.
24142         * lib/trigl.h: Add specification comments.
24143         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
24144         that combines the values from the precomputed table with the values of
24145         the Chebyshev polynomials.
24146
24147 2010-03-14  Bruno Haible  <bruno@clisp.org>
24148
24149         Fix compilation error when modules 'posix_spawn[p]' are not used.
24150         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
24151         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
24152
24153 2010-03-14  Bruno Haible  <bruno@clisp.org>
24154
24155         Fix compilation error on mingw when module 'time_r' is not used.
24156         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
24157         is 1.
24158         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
24159         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
24160         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
24161         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
24162
24163 2010-03-14  Bruno Haible  <bruno@clisp.org>
24164
24165         Fix compilation error with Sun C.
24166         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
24167         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
24168         instead of GCC specific ULONG_LONG_MAX.
24169         * lib/xstrtoll.c: Likewise.
24170         * lib/xstrtoull.c: Likewise.
24171
24172 2010-03-13  Bruno Haible  <bruno@clisp.org>
24173
24174         Allow the user to disable C++ code and tests.
24175         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
24176         (gl_PROG_ANSI_CXX): Require it.
24177
24178 2010-03-13  Bruno Haible  <bruno@clisp.org>
24179
24180         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
24181         cases.
24182
24183 2010-03-13  Bruno Haible  <bruno@clisp.org>
24184
24185         Test that gnulib does not break the standard C++ headers.
24186         * tests/test-locale-c++2.cc: New file.
24187         * modules/locale-tests (Files): Add it.
24188         (Makefile.am): Compile it for test-locale-c++.
24189         * tests/test-math-c++2.cc: New file.
24190         * modules/math-tests (Files): Add it.
24191         (Makefile.am): Compile it for test-math-c++.
24192         * tests/test-signal-c++2.cc: New file.
24193         * modules/signal-tests (Files): Add it.
24194         (Makefile.am): Compile it for test-signal-c++.
24195         * tests/test-stdio-c++2.cc: New file.
24196         * modules/stdio-tests (Files): Add it.
24197         (Makefile.am): Compile it for test-stdio-c++.
24198         * tests/test-stdlib-c++2.cc: New file.
24199         * modules/stdlib-tests (Files): Add it.
24200         (Makefile.am): Compile it for test-stdlib-c++.
24201         * tests/test-string-c++2.cc: New file.
24202         * modules/string-tests (Files): Add it.
24203         (Makefile.am): Compile it for test-string-c++.
24204         * tests/test-time-c++2.cc: New file.
24205         * modules/time-tests (Files): Add it.
24206         (Makefile.am): Compile it for test-time-c++.
24207         Reported by John W. Eaton <jwe@gnu.org>.
24208
24209 2010-03-13  Bruno Haible  <bruno@clisp.org>
24210
24211         * gnulib-tool (func_usage): Clarify which options are available for
24212         --create-testdir and --create-megatestdir.
24213
24214 2010-03-13  Bruno Haible  <bruno@clisp.org>
24215
24216         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
24217         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
24218         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
24219         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24220         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
24221         when appropriate.
24222         Reported by Jim Meyering.
24223
24224 2010-03-12  Simon Josefsson  <simon@josefsson.org>
24225
24226         * gnulib-tool (func_import): Explain origin of code.
24227
24228 2010-03-12  Bruno Haible  <bruno@clisp.org>
24229
24230         Fix problem with automake's definition of CXXLINK.
24231         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
24232         Reported by Simon Josefsson and Ludovic Courtès.
24233
24234 2010-03-12  Bruno Haible  <bruno@clisp.org>
24235
24236         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
24237         stable releases.
24238
24239 2010-03-11  Bruno Haible  <bruno@clisp.org>
24240
24241         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
24242         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
24243         whether the system provides one variant or multiple variants of the
24244         function.
24245         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
24246         C++ compilers.
24247         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
24248         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
24249         Reported by Jim Meyering.
24250
24251 2010-03-09  Simon Josefsson  <simon@josefsson.org>
24252
24253         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
24254
24255 2010-03-08  Bruno Haible  <bruno@clisp.org>
24256
24257         gnulib-tool: Add support for --libtool in --create-testdir.
24258         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
24259         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
24260
24261 2010-03-08  Eric Blake  <eblake@redhat.com>
24262
24263         gnulib-tool.texi: mention possibility of git submodule
24264         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
24265         submodules.
24266         * doc/.gitignore: Ignore another generated file.
24267
24268 2010-03-08  Karl Berry  <karl@gnu.org>
24269
24270         * doc/gnulib-tool.texi (VCS Issues): Mention third option
24271         of committing gnulib files while skipping others.
24272
24273 2010-03-07  Bruno Haible  <bruno@clisp.org>
24274
24275         Tests of module 'wctype' in C++ mode.
24276         * tests/test-wctype-c++.cc: New file.
24277         * modules/wctype-tests (Files): Add it and tests/signature.h.
24278         (Depends-on): Add ansi-c++-opt.
24279         (Makefile.am): Arrange to compile and run test-wctype-c++.
24280
24281         Tests of module 'wchar' in C++ mode.
24282         * tests/test-wchar-c++.cc: New file.
24283         * modules/wchar-tests (Files): Add it and tests/signature.h.
24284         (Depends-on): Add ansi-c++-opt.
24285         (Makefile.am): Arrange to compile and run test-wchar-c++.
24286         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
24287         gl_MODULE_INDICATOR.
24288
24289         Tests of module 'unistd' in C++ mode.
24290         * tests/test-unistd-c++.cc: New file.
24291         * modules/unistd-tests (Files): Add it and tests/signature.h.
24292         (Depends-on): Add ansi-c++-opt.
24293         (Makefile.am): Arrange to compile and run test-unistd-c++.
24294         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
24295         gl_MODULE_INDICATOR.
24296
24297         Tests of module 'time' in C++ mode.
24298         * tests/test-time-c++.cc: New file.
24299         * modules/time-tests (Files): Add it and tests/signature.h.
24300         (Depends-on): Add ansi-c++-opt.
24301         (Makefile.am): Arrange to compile and run test-time-c++.
24302         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24303
24304         Tests of module 'sys_time' in C++ mode.
24305         * tests/test-sys_time-c++.cc: New file.
24306         * modules/sys_time-tests (Files): Add it and tests/signature.h.
24307         (Depends-on): Add ansi-c++-opt.
24308         (Makefile.am): Arrange to compile and run test-sys_time-c++.
24309         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
24310         gl_MODULE_INDICATOR.
24311
24312         Tests of module 'sys_stat' in C++ mode.
24313         * tests/test-sys_stat-c++.cc: New file.
24314         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
24315         (Depends-on): Add ansi-c++-opt.
24316         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
24317         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
24318         gl_MODULE_INDICATOR.
24319
24320         Tests of module 'sys_socket' in C++ mode.
24321         * tests/test-sys_socket-c++.cc: New file.
24322         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
24323         (Depends-on): Add ansi-c++-opt.
24324         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
24325         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
24326         gl_MODULE_INDICATOR.
24327
24328         Tests of module 'sys_select' in C++ mode.
24329         * tests/test-sys_select-c++.cc: New file.
24330         * modules/sys_select-tests (Files): Add it and tests/signature.h.
24331         (Depends-on): Add ansi-c++-opt.
24332         (Makefile.am): Arrange to compile and run test-sys_select-c++.
24333         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
24334         gl_MODULE_INDICATOR.
24335
24336         Tests of module 'sys_ioctl' in C++ mode.
24337         * tests/test-sys_ioctl-c++.cc: New file.
24338         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
24339         (Depends-on): Add ansi-c++-opt.
24340         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
24341         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
24342         gl_MODULE_INDICATOR.
24343
24344         Tests of module 'string' in C++ mode.
24345         * tests/test-string-c++.cc: New file.
24346         * modules/string-tests (Files): Add it and tests/signature.h.
24347         (Depends-on): Add ansi-c++-opt.
24348         (Makefile.am): Arrange to compile and run test-string-c++.
24349         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
24350         gl_MODULE_INDICATOR.
24351
24352         Tests of module 'stdlib' in C++ mode.
24353         * tests/test-stdlib-c++.cc: New file.
24354         * modules/stdlib-tests (Files): Add it and tests/signature.h.
24355         (Depends-on): Add ansi-c++-opt.
24356         (Makefile.am): Arrange to compile and run test-stdlib-c++.
24357         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
24358         gl_MODULE_INDICATOR.
24359
24360         Tests of module 'stdio' in C++ mode.
24361         * tests/test-stdio-c++.cc: New file.
24362         * modules/stdio-tests (Files): Add it and tests/signature.h.
24363         (Depends-on): Add ansi-c++-opt.
24364         (Makefile.am): Arrange to compile and run test-stdio-c++.
24365         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
24366         gl_MODULE_INDICATOR.
24367
24368         Tests of module 'spawn' in C++ mode.
24369         * tests/test-spawn-c++.cc: New file.
24370         * modules/spawn-tests (Files): Add it and tests/signature.h.
24371         (Depends-on): Add ansi-c++-opt.
24372         (Makefile.am): Arrange to compile and run test-spawn-c++.
24373         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
24374         gl_MODULE_INDICATOR.
24375
24376         Tests of module 'signal' in C++ mode.
24377         * tests/test-signal-c++.cc: New file.
24378         * modules/signal-tests (Files): Add it and tests/signature.h.
24379         (Depends-on): Add ansi-c++-opt.
24380         (Makefile.am): Arrange to compile and run test-signal-c++.
24381         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
24382         gl_MODULE_INDICATOR.
24383
24384         Tests of module 'search' in C++ mode.
24385         * tests/test-search-c++.cc: New file.
24386         * modules/search-tests (Files): Add it and tests/signature.h.
24387         (Depends-on): Add ansi-c++-opt.
24388         (Makefile.am): Arrange to compile and run test-search-c++.
24389         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
24390         gl_MODULE_INDICATOR.
24391
24392         Tests of module 'math' in C++ mode.
24393         * tests/test-math-c++.cc: New file.
24394         * modules/math-tests (Files): Add it and tests/signature.h.
24395         (Depends-on): Add ansi-c++-opt.
24396         (Makefile.am): Arrange to compile and run test-math-c++.
24397         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24398
24399         Tests of module 'locale' in C++ mode.
24400         * tests/test-locale-c++.cc: New file.
24401         * modules/locale-tests (Files): Add it and tests/signature.h.
24402         (Depends-on): Add ansi-c++-opt.
24403         (Makefile.am): Arrange to compile and run test-locale-c++.
24404         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
24405         gl_MODULE_INDICATOR.
24406
24407         Tests of module 'langinfo' in C++ mode.
24408         * tests/test-langinfo-c++.cc: New file.
24409         * modules/langinfo-tests (Files): Add it and tests/signature.h.
24410         (Depends-on): Add ansi-c++-opt.
24411         (Makefile.am): Arrange to compile and run test-langinfo-c++.
24412         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
24413         gl_MODULE_INDICATOR.
24414
24415         Tests of module 'iconv-h' in C++ mode.
24416         * tests/test-iconv-h-c++.cc: New file.
24417         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
24418         (Depends-on): Add ansi-c++-opt.
24419         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
24420
24421         Tests of module 'glob' in C++ mode.
24422         * tests/test-glob-c++.cc: New file.
24423         * modules/glob-tests (Files): Add it.
24424         (Depends-on): Add ansi-c++-opt.
24425         (Makefile.am): Arrange to compile and run test-glob-c++.
24426
24427         Tests of module 'fcntl-h' in C++ mode.
24428         * tests/test-fcntl-h-c++.cc: New file.
24429         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
24430         (Depends-on): Add ansi-c++-opt.
24431         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
24432         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
24433         gl_MODULE_INDICATOR.
24434
24435         Tests of module 'dirent' in C++ mode.
24436         * tests/test-dirent-c++.cc: New file.
24437         * modules/dirent-tests (Files): Add it and tests/signature.h.
24438         (Depends-on): Add ansi-c++-opt.
24439         (Makefile.am): Arrange to compile and run test-dirent-c++.
24440         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
24441         gl_MODULE_INDICATOR.
24442
24443         New module 'ansi-c++-opt'.
24444         * modules/ansi-c++-opt: New file.
24445         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
24446
24447         Document C++ namespace mode.
24448         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
24449
24450         wctype: Avoid #define replacements in C++ mode.
24451         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
24452         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
24453         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
24454         In C++, define a namespaced alias symbol.
24455         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
24456         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
24457         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
24458         rule.
24459
24460         wchar: Avoid #define replacements in C++ mode.
24461         * lib/wchar.in.h: Include c++defs.h.
24462         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
24463         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
24464         symbol.
24465         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
24466         * modules/wchar (Depends-on): Add c++defs.
24467         (Makefile.am): Update wchar.h rule.
24468
24469         unistd: Avoid #define replacements in C++ mode.
24470         * lib/unistd.in.h: Include c++defs.h.
24471         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
24472         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
24473         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
24474         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
24475         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
24476         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
24477         symbol.
24478         (environ): Update.
24479         * modules/unistd (Depends-on): Add c++defs.
24480         (Makefile.am): Update unistd.h rule.
24481
24482         time: Avoid #define replacements in C++ mode.
24483         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
24484         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
24485         define a namespaced alias symbol.
24486         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
24487         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
24488         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
24489         * modules/time (Depends-on): Add c++defs, warn-on-use.
24490         (Makefile.am): Update time.h rule.
24491         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
24492         * modules/nanosleep (configure.ac): Likewise.
24493         * modules/strptime (configure.ac): Likewise.
24494         * modules/timegm (configure.ac): Likewise.
24495
24496         sys_time: Avoid #define replacements in C++ mode.
24497         * lib/sys_time.in.h: Include c++defs.h.
24498         (gettimeofday): In C++, define a namespaced alias symbol.
24499         * modules/sys_time (Depends-on): Add c++defs.
24500         (Makefile.am): Update sys/time.h rule.
24501
24502         sys_stat: Avoid #define replacements in C++ mode.
24503         * lib/sys_stat.in.h: Include c++defs.h.
24504         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
24505         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
24506         namespaced alias symbol.
24507         In C++, define a namespaced alias symbol.
24508         * modules/sys_stat (Depends-on): Add c++defs.
24509         (Makefile.am): Update sys/stat.h rule.
24510
24511         sys_socket: Avoid #define replacements in C++ mode.
24512         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
24513         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
24514         definitions also when the system has a <sys/socket.h>.
24515         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
24516         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
24517         In C++, define a namespaced alias symbol.
24518         * modules/sys_socket (Depends-on): Add c++defs.
24519         (Makefile.am): Update sys/socket.h rule.
24520
24521         sys_select: Avoid #define replacements in C++ mode.
24522         * lib/sys_select.in.h: Include c++defs.h. Enable the function
24523         definitions also when the system has a <sys/select.h>.
24524         (select): In C++, define a namespaced alias symbol.
24525         * modules/sys_select (Depends-on): Add c++defs.
24526         (Makefile.am): Update sys/select.h rule.
24527
24528         sys_ioctl: Avoid #define replacements in C++ mode.
24529         * lib/sys_ioctl.in.h: Include c++defs.h.
24530         (ioctl): In C++, define a namespaced alias symbol.
24531         * modules/sys_ioctl (Depends-on): Add c++defs.
24532         (Makefile.am): Update sys/ioctl.h rule.
24533
24534         string: Avoid #define replacements in C++ mode.
24535         * lib/string.in.h: Include c++defs.h.
24536         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
24537         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
24538         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
24539         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
24540         strsignal, strverscmp): In C++, define a namespaced alias symbol.
24541         * modules/string (Depends-on): Add c++defs.
24542         (Makefile.am): Update string.h rule.
24543
24544         stdlib: Avoid #define replacements in C++ mode.
24545         * lib/stdlib.in.h: Include c++defs.h.
24546         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
24547         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
24548         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
24549         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
24550         symbol.
24551         * modules/stdlib (Depends-on): Add c++defs.
24552         (Makefile.am): Update stdlib.h rule.
24553
24554         stdio: Avoid #define replacements in C++ mode.
24555         * lib/stdio.in.h: Include c++defs.h.
24556         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
24557         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
24558         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
24559         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
24560         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
24561         namespaced alias symbol.
24562         * modules/stdio (Depends-on): Add c++defs.
24563         (Makefile.am): Update stdio.h rule.
24564
24565         spawn: Avoid #define replacements in C++ mode.
24566         * lib/spawn.in.h: Include c++defs.h.
24567         (posix_spawn, posix_spawnp, posix_spawnattr_init,
24568         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
24569         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
24570         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
24571         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
24572         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
24573         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
24574         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
24575         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
24576         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
24577         In C++, define a namespaced alias symbol.
24578         * modules/spawn (Depends-on): Add c++defs.
24579         (Makefile.am): Update spawn.h rule.
24580
24581         signal: Avoid #define replacements in C++ mode.
24582         * lib/signal.in.h: Include c++defs.h.
24583         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
24584         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
24585         namespaced alias symbol.
24586         * modules/signal (Depends-on): Add c++defs.
24587         (Makefile.am): Update signal.h rule.
24588
24589         search: Avoid #define replacements in C++ mode.
24590         * lib/search.in.h: Include c++defs.h.
24591         (_gl_search_compar_fn, _gl_search_action_fn): New types.
24592         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
24593         symbol.
24594         * modules/search (Depends-on): Add c++defs.
24595         (Makefile.am): Update search.h rule.
24596
24597         math: Avoid #define replacements in C++ mode.
24598         * lib/math.in.h: Include c++defs.h.
24599         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
24600         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
24601         trunc, truncl): In C++, define a namespaced alias symbol.
24602         * modules/math (Depends-on): Add c++defs.
24603         (Makefile.am): Update math.h rule.
24604
24605         locale: Avoid #define replacements in C++ mode.
24606         * lib/locale.in.h: Include c++defs.h.
24607         (duplocale): In C++, define a namespaced alias symbol.
24608         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
24609         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
24610         * modules/locale (Depends-on): Add c++defs.
24611         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
24612
24613         langinfo: Avoid #define replacements in C++ mode.
24614         * lib/langinfo.in.h: Include c++defs.h.
24615         (nl_langinfo): In C++, define a namespaced alias symbol.
24616         * modules/langinfo (Depends-on): Add c++defs.
24617         (Makefile.am): Update langinfo.h rule.
24618
24619         iconv-h: Avoid #define replacements in C++ mode.
24620         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
24621         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
24622         symbol.
24623         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
24624         whenever iconv is present.
24625         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
24626         (Makefile.am): Update iconv.h rule.
24627
24628         glob: Avoid #define replacements in C++ mode.
24629         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
24630         (_gl_glob_errfunc_fn): New type.
24631         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
24632         symbol.
24633         * modules/glob (Depends-on): Add c++defs, warn-on-use.
24634         (Makefile.am): Update glob.h rule.
24635
24636         fcntl-h: Avoid #define replacements in C++ mode.
24637         * lib/fcntl.in.h: Include c++defs.h.
24638         (fcntl, open, openat): In C++, define a namespaced alias symbol.
24639         * modules/fcntl-h (Depends-on): Add c++defs.
24640         (Makefile.am): Update fcntl.h rule.
24641
24642         dirent: Avoid #define replacements in C++ mode.
24643         * lib/dirent.in.h: Include c++defs.h.
24644         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
24645         namespaced alias symbol.
24646         (dirfd): Update declaration.
24647         * modules/dirent (Depends-on): Add c++defs.
24648         (Makefile.am): Update dirent.h rule.
24649
24650         ctype: Make it usable in C++ code.
24651         * lib/ctype.in.h: Include c++defs.h.
24652         (isblank): Declare as extern "C".
24653         * modules/ctype (Depends-on): Add c++defs.
24654         (Makefile.am): Update ctype.h rule.
24655
24656         New module 'c++defs'.
24657         * modules/c++defs: New file.
24658         * build-aux/c++defs.h: New file.
24659         Reported by John W. Eaton <jwe@gnu.org>.
24660
24661 2010-03-07  Bruno Haible  <bruno@clisp.org>
24662
24663         logb: Provide missing declaration for Cygwin.
24664         * lib/math.in.h (logb): New declaration.
24665         * m4/logb.m4: New file.
24666         * modules/logb (Files): Add m4/logb.m4.
24667         (Depends-on): Add math.
24668         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
24669         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
24670         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
24671         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
24672         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
24673
24674 2010-03-07  Bruno Haible  <bruno@clisp.org>
24675
24676         Fix test-cond link error.
24677         * tests/test-cond.c: Include <stdio.h>.
24678
24679 2010-03-07  Bruno Haible  <bruno@clisp.org>
24680
24681         Fix test-dirent-safer link error.
24682         * modules/dirent-safer-tests (Makefile.am): Define
24683         test_dirent_safer_LDADD.
24684
24685 2010-03-07  Bruno Haible  <bruno@clisp.org>
24686
24687         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
24688         among default module list.
24689
24690 2010-03-07  Bruno Haible  <bruno@clisp.org>
24691
24692         Fix link error on platforms with GNU libiconv.
24693         * modules/unistr/u8-strcoll-tests (Makefile): Define
24694         test_u8_strcoll_LDADD.
24695         * modules/unistr/u16-strcoll-tests (Makefile): Define
24696         test_u16_strcoll_LDADD.
24697         * modules/unistr/u32-strcoll-tests (Makefile): Define
24698         test_u32_strcoll_LDADD.
24699
24700 2010-03-07  Bruno Haible  <bruno@clisp.org>
24701
24702         Use POSIX declarations for socket functions.
24703         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
24704         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
24705         rpl_sendto): Change declaration to match POSIX.
24706         * lib/connect.c (rpl_connect): Likewise.
24707         * lib/accept.c (rpl_accept): Likewise.
24708         * lib/bind.c (rpl_bind): Likewise.
24709         * lib/getpeername.c (rpl_getpeername): Likewise.
24710         * lib/getsockname.c (rpl_getsockname): Likewise.
24711         * lib/recv.c (rpl_recv): Likewise.
24712         * lib/send.c (rpl_send): Likewise.
24713         * lib/recvfrom.c (rpl_recvfrom): Likewise.
24714         * lib/sendto.c (rpl_sendto): Likewise.
24715
24716 2010-03-06  Bruno Haible  <bruno@clisp.org>
24717
24718         Clarify access, euidaccess, faccessat.
24719         * doc/posix-functions/faccessat.texi: Mention security problem under
24720         "Other problems", not "Portability problems".
24721         * doc/posix-functions/access.texi: Likewise. Mention a related security
24722         problem.
24723         * doc/glibc-functions/euidaccess.texi: Mention security problems.
24724         * lib/euidaccess.c: Add comments about platforms.
24725         * lib/unistd.in.h (access, euidaccess): Add warnings.
24726
24727 2010-03-07  Bruno Haible  <bruno@clisp.org>
24728
24729         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
24730         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
24731         (POSIX_SPAWN_SETSCHEDULER): Likewise.
24732         (POSIX_SPAWN_USEVFORK): Define in a way that works when
24733         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
24734         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
24735         declare when POSIX_SPAWN_SETSCHEDULER is zero.
24736         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
24737         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
24738         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
24739         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
24740         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
24741         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
24742         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
24743         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
24744         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
24745         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
24746         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
24747         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
24748         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
24749         Likewise.
24750         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
24751         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
24752         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
24753         Likewise.
24754         * tests/test-spawn.c (main): Make it work when
24755         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
24756
24757 2010-03-07  Bruno Haible  <bruno@clisp.org>
24758
24759         Fix incorrect Makefile.am generation in German locale.
24760         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24761         Execute sed command with character range in C locale.
24762
24763 2010-03-06  Bruno Haible  <bruno@clisp.org>
24764
24765         Tests for module 'iconv-h'.
24766         * modules/iconv-h-tests: New file.
24767         * tests/test-iconv-h.c: New file.
24768
24769         New module 'iconv-h'.
24770         * modules/iconv-h: New file.
24771         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
24772         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
24773         (configure.ac): Remove gl_ICONV_H.
24774         (Makefile.am): Remove rule for iconv.h.
24775
24776 2010-03-06  Bruno Haible  <bruno@clisp.org>
24777
24778         More consistent naming of *.m4 files.
24779         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
24780         * modules/wctype (Files): Update.
24781
24782         More consistent naming of *.m4 files.
24783         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
24784         * modules/wchar (Files): Update.
24785
24786 2010-03-06  Jim Meyering  <meyering@redhat.com>
24787
24788         euidaccess: relax license to LGPLv2+
24789         * modules/euidaccess (License): Relax to LGPLv2+.
24790
24791 2010-03-06  Bruno Haible  <bruno@clisp.org>
24792
24793         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
24794         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
24795         (Makefile.am): Augment lib_SOURCES instead.
24796
24797 2010-03-04  Jim Meyering  <meyering@redhat.com>
24798
24799         utime: remove obsolete module
24800         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
24801         unnecessary for years, and has been marked as obsolete for 10 months.
24802         * modules/utime: Remove file.
24803         * lib/utime.c: Remove file.
24804         * m4/utime.m4: Remove file.
24805         * m4/utimes-null.m4: Remove file.
24806         * doc/posix-functions/utime.texi (utime): Remove reference to
24807         the module.  Move the sole "fixed by gnulib" item into the
24808         "problems not fixed by Gnulib" list.
24809         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
24810
24811 2010-03-05  Simon Josefsson  <simon@josefsson.org>
24812
24813         * modules/exit (License): Relax license to LGPLv2+.
24814         (Status): Mark as obsolete.
24815         * NEWS: Mention deprecated 'exit' module.
24816         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
24817         of now obsolete 'exit'.
24818
24819 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24820
24821         fts-lgpl: remove unused module
24822         * modules/fts-lgpl: Remove.
24823         * MODULES.html.sh (func_all_modules): Adjust.
24824         * check-module (find_included_lib_files): Adjust.
24825         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
24826
24827 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
24828
24829         copy-acl: enhance Solaris ACL error handling
24830         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
24831         * lib/set-mode-acl.c (qset_acl): Likewise.
24832
24833 2010-03-02  Bruno Haible  <bruno@clisp.org>
24834
24835         spawn: Don't override the system defined values on FreeBSD 8.
24836         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
24837         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
24838         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
24839         if HAVE_POSIX_SPAWN is 1.
24840         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
24841
24842 2010-03-01  Bruno Haible  <bruno@clisp.org>
24843
24844         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
24845         regarding Automake.
24846
24847 2010-02-25  Bruno Haible  <bruno@clisp.org>
24848
24849         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
24850         * gnulib-tool: Define 'echo' as a function only before the ksh alias
24851         setting, not afterwards.
24852         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
24853
24854 2010-02-24  Eric Blake  <eblake@redhat.com>
24855
24856         bootstrap, git-version-gen: use timestamp
24857         * build-aux/git-version-gen (scriptversion): Force UTC.
24858         * build-aux/bootstrap (scriptversion): New variable.
24859
24860         bootstrap: allow older git
24861         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
24862         older than 1.6.4.  Requested by the libvirt project.
24863
24864 2010-02-23  Eric Blake  <eblake@redhat.com>
24865
24866         warn-on-use: work with old autoconf
24867         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
24868         AS_VAR semantics of autoconf 2.60.
24869         Reported by Bruno Haible.
24870
24871         bootstrap: improve some comments
24872         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
24873         clarification comments.
24874
24875         gettimeofday: provide correct function
24876         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
24877         when replacement is declared, otherwise provide gettimeofday.
24878         Reported by Michael Goffioul.
24879
24880 2010-02-23  Jim Meyering  <meyering@redhat.com>
24881
24882         lib-ignore: relax license to "unlimited", not LGPLv2+
24883         * modules/lib-ignore (License): Relax to "unlimited".
24884
24885 2010-02-23  Jim Meyering  <meyering@redhat.com>
24886
24887         lib-ignore: relax license to LGPLv2+
24888         * modules/lib-ignore (License): Relax to LGPLv2+.
24889
24890 2010-02-22  Eric Blake  <eblake@redhat.com>
24891
24892         lseek: avoid bash 3.2 broken pipe bug
24893         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
24894         warning from bash 3.2.
24895         Reported by Ben Pfaff, with analysis from Bruno Haible.
24896
24897         bootstrap: support non-FSF copyright holder
24898         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
24899         bootstrap.conf override of COPYRIGHT_HOLDER.
24900         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
24901
24902         bootstrap: interoperate with gettext 0.14.1
24903         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
24904
24905         bootstrap: allow for alternate submodule location
24906         * build-aux/bootstrap (gnulib_path): New variable; use instead of
24907         hardcoding submodule location.
24908         (gnulib_mk): Allow direct use of Makefile.am.
24909
24910         bootstrap: use GNULIB_SRCDIR to reduce disk usage
24911         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
24912         rather than reconfiguring where the submodule points.
24913
24914         gettimeofday: restore support for platforms that lack function
24915         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
24916         replacement if function is missing.
24917         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
24918         * modules/sys_time (Makefile.am): Substitute it.
24919         * lib/sys_time.in.h (gettimeofday): Check it.
24920         Reported by Michael Goffioul.
24921
24922 2010-02-21  Bruno Haible  <bruno@clisp.org>
24923
24924         * lib/stdio.in.h (obstack_printf): Fix typo.
24925
24926 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
24927
24928         vc-list-files: use bzr ls's -R option
24929         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
24930         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
24931
24932 2010-02-21  Jim Meyering  <meyering@redhat.com>
24933
24934         init.sh: fix EXEEXT shims to work also for names like test-prog
24935         * tests/init.sh: Re-exec a better shell, when needed.
24936         If the current shell lacks support for posix $(...), an init.sh-using
24937         test will now try to find a shell that supports that.  If EXEEXT is
24938         nonempty, we also require support for hyphen-in-alias-name and shell
24939         substitutions like ${var#glob}.  Failure to find such a shell results
24940         in a skipped test.
24941
24942 2010-02-21  Bruno Haible  <bruno@clisp.org>
24943
24944         Really work around around "broken pipe" error message from bash 3.2.
24945         * gnulib-tool (func_reset_sigpipe): Remove function.
24946         (echo): In bash 3.2, define to a function that uses printf.
24947         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
24948
24949 2010-02-20  Bruno Haible  <bruno@clisp.org>
24950
24951         Restore support for automake 1.9.6 with autoconf 2.61.
24952         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
24953         Reported by James Youngman <jay@gnu.org>.
24954
24955 2010-02-20  Bruno Haible  <bruno@clisp.org>
24956
24957         Improve *printf warning condition.
24958         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
24959         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
24960         and the function is overridden due to SIGPIPE emulation.
24961
24962 2010-02-20  Bruno Haible  <bruno@clisp.org>
24963
24964         * lib/stdio.in.h: Tweak comments.
24965
24966 2010-02-19  Bruno Haible  <bruno@clisp.org>
24967
24968         Make it easier to find modules. New gnulib-tool option '--find'.
24969         * gnulib-tool: New option --find.
24970         (func_usage): Document it.
24971         (func_sanitize_modulelist): New function, extracted from
24972         func_all_modules.
24973         (func_all_modules): Invoke it.
24974         * doc/gnulib-tool.texi (Which modules?): New node.
24975
24976 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
24977
24978         * lib/sys_select.in.h: Provide select replacement even if
24979         sys/select.h exists on a system, for Interix.
24980
24981 2010-02-18  Jim Meyering  <meyering@redhat.com>
24982
24983         init.sh: don't use $(...) just yet
24984         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
24985         to accommodate e.g., Solaris' /bin/sh.
24986
24987 2010-02-17  Bruno Haible  <bruno@clisp.org>
24988
24989         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
24990         Reported by Ludovic Courtès <ludo@gnu.org>.
24991
24992 2010-02-16  Simon Josefsson  <simon@josefsson.org>
24993
24994         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
24995         linking with -lintl.
24996
24997 2010-02-17  Simon Josefsson  <simon@josefsson.org>
24998
24999         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
25000         if not provided by the system's netdb.h.  Reported by
25001         ludo@gnu.org (Ludovic Courtès).
25002
25003 2010-02-15  Jim Meyering  <meyering@redhat.com>
25004
25005         init.sh: improve portability and efficiency
25006         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
25007         "dummy" in a for loop.
25008         Use '!', not '^' to select the complement of a character set used
25009         in a "case" statement.
25010         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
25011         Suggestions from Eric Blake.
25012
25013         init.sh: automatically accommodate programs with the .exe suffix
25014         Automatically arrange for an invocation of "prog" to execute the
25015         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
25016         may use the simpler "prog", yet still work when built on a system
25017         that requires specifying the added suffix.
25018         Do this by constructing a function named "prog" that invokes
25019         "prog.exe" for each .exe file in selected directories.
25020         * tests/init.sh (find_exe_basenames_): New function.
25021         (create_exe_shim_functions_): New function.
25022         (path_prepend_): Use it.
25023
25024         maint.mk: mark syntax-check sc_*.m rules as .PHONY
25025         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
25026         "make -t syntax-check" doesn't create a ton of sc_*.m files.
25027
25028 2010-02-14  Jim Meyering  <meyering@redhat.com>
25029
25030         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
25031         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
25032         (sc_prohibit_hash_pjw_without_use): New rule.
25033
25034         maint.mk: allow the default upload destination dir to be overridden
25035         * top/maint.mk (upload_dest_dir_): Define with a default that
25036         preserves the status quo.
25037         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
25038         Reported by Peter Simons.
25039
25040         maint.mk: prohibit inclusion of "hash.h" without_use
25041         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
25042
25043 2010-02-10  Jim Meyering  <meyering@redhat.com>
25044
25045         maint.mk: prohibit inclusion of "ignore-value.h" without_use
25046         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
25047
25048 2010-02-09  Eric Blake  <ebb9@byu.net>
25049         and Bruno Haible  <bruno@clisp.org>
25050
25051         obstack-printf-posix: ensure declaration
25052         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
25053         extracted from gl_FUNC_OBSTACK_PRINTF.
25054         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
25055         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
25056         Likewise.
25057         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
25058         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
25059         0.
25060
25061 2010-02-08  Bruno Haible  <bruno@clisp.org>
25062
25063         gnulib-tool: Fix typo in 2010-02-07 commit.
25064         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
25065         Reported by Eric Blake.
25066
25067 2010-02-07  Bruno Haible  <bruno@clisp.org>
25068
25069         gnulib-tool: Fix up caching patches.
25070         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
25071         option --no-cache. Use associative arrays when supported by the shell.
25072         (sed_comments): New variable.
25073         (modcache): Renamed from do_cache.
25074         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
25075         abbreviate unnecessarily.
25076         (have_associative): New variable.
25077         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
25078         way also for ksh and zsh.
25079         (func_init_sed_convert_to_cache_statements): New function, extracted
25080         from func_cache_lookup_module. Add support for associative arrays.
25081         Don't set the c_MODULE_cached variable here. Ignore all lines before
25082         the first field header. Remove only the final newline, not all trailing
25083         newlines. Support empty fields correctly. Limit the use of 'eval' to
25084         assignments.
25085         (func_get_description, func_get_status, func_get_notice,
25086         func_get_applicability, func_get_filelist, func_get_dependencies,
25087         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
25088         func_get_automake_snippet, func_get_include_directive,
25089         func_get_link_directive, func_get_license, func_get_maintainer):
25090         Update documentation. List the unoptimized code first. Add support for
25091         associative arrays. Limit the use of 'eval' to assignments.
25092         (func_get_applicability): Undo stylistic pessimisations.
25093         (func_get_automake_snippet, func_get_include_directive): Reduce code
25094         duplication.
25095         (func_modules_transitive_closure, func_modules_add_dummy,
25096         func_modules_notice, func_modules_to_filelist, func_add_file,
25097         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
25098         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
25099         func_create_testdir, func_create_megatestdir): Update documentation.
25100
25101 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25102
25103         * gnulib-tool (func_cache_lookup_module): Store the module name
25104         belonging to the cache variable; error out if two different
25105         module names map to the same cache variable name.
25106
25107 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25108
25109         gnulib-tool: Make caching optional.
25110         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
25111         Update matching short versions of --no-changelog.
25112         (func_usage): Update.
25113         (sed_extract_cache_prog): Renamed from ...
25114         (sed_extract_prog): ... this; revert to old extraction script.
25115         (func_get_description, func_get_status)
25116         (func_get_notice, func_get_applicability, func_get_filelist)
25117         (func_get_dependencies, func_get_autoconf_early_snippet)
25118         (func_get_autoconf_snippet, func_get_automake_snippet)
25119         (func_get_include_directive, func_get_link_directive)
25120         (func_get_license, func_get_maintainer): If $do_cache is false,
25121         use old, non-caching extraction scripts.
25122         Suggestion by Bruno Haible.
25123
25124 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25125
25126         gnulib-tool: cache module metainformation.
25127         * gnulib-tool (sed_extract_prog): Match newline before each
25128         header, and rewrite header to a shell variable suffix.
25129         (func_cache_var, func_cache_lookup_module): New functions,
25130         to turn a module name into a cache variable prefix, and to
25131         look up and cache module metainformation.
25132         (func_get_description, func_get_status)
25133         (func_get_notice, func_get_applicability, func_get_filelist)
25134         (func_get_dependencies, func_get_autoconf_early_snippet)
25135         (func_get_autoconf_snippet, func_get_automake_snippet)
25136         (func_get_include_directive, func_get_link_directive)
25137         (func_get_license, func_get_maintainer): Use
25138         func_cache_lookup_module.
25139
25140 2010-02-07  Bruno Haible  <bruno@clisp.org>
25141
25142         fnctl: Fix missing dependency.
25143         * modules/fcntl (Depends-on): Add getdtablesize.
25144         Reported by John W. Eaton <jwe@gnu.org>.
25145
25146 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
25147
25148         Argp: fix recognition of short alias options.
25149
25150         * lib/argp-parse.c (convert_options): Fix improper use of
25151         `|' between character values.
25152         * tests/test-argp.c (group1_option): New alias option
25153         --read (-r).
25154         (group1_parser): Special handling for 'r'.
25155         (test15): New test case.
25156         (test_fun): Add test15.
25157         * tests/test-argp-2.sh: Update expected --help and --usage
25158         outputs.
25159
25160 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
25161
25162         * tests/test-argp.c: Fix indentation.
25163
25164 2010-02-04  Eric Blake  <ebb9@byu.net>
25165
25166         gettimeofday: expose type of second argument
25167         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
25168         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
25169         * tests/test-gettimeofday.c: Use it to silence warning.
25170         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
25171         the issue.
25172
25173 2010-02-03  Jim Meyering  <meyering@redhat.com>
25174
25175         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
25176         * lib/regcomp.c (TYPE_SIGNED): Define.
25177         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
25178
25179         regcomp.c: avoid a new -Wshadow warning
25180         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
25181
25182 2010-02-01  Jim Meyering  <meyering@redhat.com>
25183
25184         removing useless parentheses in cpp #define directives
25185         For motivation, see commit c0221df4, "define STREQ(a,b)
25186         consistently, removing useless parentheses"
25187         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
25188         * lib/mountlist.c (MNT_IGNORE): Likewise.
25189         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
25190
25191 2010-02-01  Eric Blake  <ebb9@byu.net>
25192
25193         sys_time: use link-warning
25194         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
25195         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
25196         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
25197         * modules/sys_time (Depends-on): Add warn-on-use.
25198         (Makefile.am): Always build replacement.
25199         (configure.ac): Update substitutions.
25200         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
25201         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
25202         bother with SYS_TIME_H.
25203         * modules/gettimeofday (configure.ac): Declare indicator.
25204         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
25205         in use.
25206
25207         closein-tests: silence compiler warning
25208         * tests/test-closein.c (main): Ignore fread result.
25209         * modules/closein-tests (Depends-on): Add ignore-value.
25210
25211         tests: silence warning about system return
25212         * tests/test-areadlink-with-size.c (main): Ignore system result.
25213         * tests/test-areadlink.c (main): Likewise.
25214         * tests/test-areadlinkat-with-size.c (main): Likewise.
25215         * tests/test-areadlinkat.c (main): Likewise.
25216         * tests/test-canonicalize-lgpl.c (main): Likewise.
25217         * tests/test-canonicalize.c (main): Likewise.
25218         * tests/test-chown.c (main): Likewise.
25219         * tests/test-fchownat.c (main): Likewise.
25220         * tests/test-fdutimensat.c (main): Likewise.
25221         * tests/test-fstatat.c (main): Likewise.
25222         * tests/test-futimens.c (main): Likewise.
25223         * tests/test-lchown.c (main): Likewise.
25224         * tests/test-link.c (main): Likewise.
25225         * tests/test-linkat.c (main): Likewise.
25226         * tests/test-lstat.c (main): Likewise.
25227         * tests/test-mkdir.c (main): Likewise.
25228         * tests/test-mkdirat.c (main): Likewise.
25229         * tests/test-mkfifo.c (main): Likewise.
25230         * tests/test-mkfifoat.c (main): Likewise.
25231         * tests/test-mknod.c (main): Likewise.
25232         * tests/test-readlink.c (main): Likewise.
25233         * tests/test-remove.c (main): Likewise.
25234         * tests/test-rename.c (main): Likewise.
25235         * tests/test-renameat.c (main): Likewise.
25236         * tests/test-rmdir.c (main): Likewise.
25237         * tests/test-symlink.c (main): Likewise.
25238         * tests/test-symlinkat.c (main): Likewise.
25239         * tests/test-unlink.c (main): Likewise.
25240         * tests/test-unlinkat.c (main): Likewise.
25241         * tests/test-utimens.c (main): Likewise.
25242         * tests/test-utimensat.c (main): Likewise.
25243         * modules/areadlink-tests (Depends-on): Add ignore-value.
25244         * modules/areadlink-with-size-tests (Depends-on): Likewise.
25245         * modules/areadlinkat-tests (Depends-on): Likewise.
25246         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
25247         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25248         * modules/canonicalize-tests (Depends-on): Likewise.
25249         * modules/chown-tests (Depends-on): Likewise.
25250         * modules/fdutimensat-tests (Depends-on): Likewise.
25251         * modules/futimens-tests (Depends-on): Likewise.
25252         * modules/lchown-tests (Depends-on): Likewise.
25253         * modules/link-tests (Depends-on): Likewise.
25254         * modules/linkat-tests (Depends-on): Likewise.
25255         * modules/lstat-tests (Depends-on): Likewise.
25256         * modules/mkdir-tests (Depends-on): Likewise.
25257         * modules/mkfifo-tests (Depends-on): Likewise.
25258         * modules/mkfifoat-tests (Depends-on): Likewise.
25259         * modules/mknod-tests (Depends-on): Likewise.
25260         * modules/openat-tests (Depends-on): Likewise.
25261         * modules/readlink-tests (Depends-on): Likewise.
25262         * modules/remove-tests (Depends-on): Likewise.
25263         * modules/rename-tests (Depends-on): Likewise.
25264         * modules/renameat-tests (Depends-on): Likewise.
25265         * modules/rmdir-tests (Depends-on): Likewise.
25266         * modules/symlink-tests (Depends-on): Likewise.
25267         * modules/symlinkat-tests (Depends-on): Likewise.
25268         * modules/unlink-tests (Depends-on): Likewise.
25269         * modules/utimens-tests (Depends-on): Likewise.
25270         * modules/utimensat-tests (Depends-on): Likewise.
25271
25272 2010-01-31  Bruno Haible  <bruno@clisp.org>
25273
25274         Perform the same test for many <math.h> functions.
25275         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
25276         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
25277         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
25278         of gl_MATHFUNC.
25279         * modules/acos (configure.ac): Likewise.
25280         * modules/asin (configure.ac): Likewise.
25281         * modules/atan (configure.ac): Likewise.
25282         * modules/atan2 (configure.ac): Likewise.
25283         * modules/cbrt (configure.ac): Likewise.
25284         * modules/copysign (configure.ac): Likewise.
25285         * modules/cos (configure.ac): Likewise.
25286         * modules/cosh (configure.ac): Likewise.
25287         * modules/erf (configure.ac): Likewise.
25288         * modules/erfc (configure.ac): Likewise.
25289         * modules/exp (configure.ac): Likewise.
25290         * modules/fmod (configure.ac): Likewise.
25291         * modules/hypot (configure.ac): Likewise.
25292         * modules/j0 (configure.ac): Likewise.
25293         * modules/j1 (configure.ac): Likewise.
25294         * modules/jn (configure.ac): Likewise.
25295         * modules/lgamma (configure.ac): Likewise.
25296         * modules/log (configure.ac): Likewise.
25297         * modules/log10 (configure.ac): Likewise.
25298         * modules/log1p (configure.ac): Likewise.
25299         * modules/pow (configure.ac): Likewise.
25300         * modules/remainder (configure.ac): Likewise.
25301         * modules/sin (configure.ac): Likewise.
25302         * modules/sinh (configure.ac): Likewise.
25303         * modules/tan (configure.ac): Likewise.
25304         * modules/tanh (configure.ac): Likewise.
25305         * modules/y0 (configure.ac): Likewise.
25306         * modules/y1 (configure.ac): Likewise.
25307         * modules/yn (configure.ac): Likewise.
25308         Suggested by Paolo Bonzini.
25309
25310 2010-01-31  Bruno Haible  <bruno@clisp.org>
25311
25312         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
25313
25314 2010-01-31  Bruno Haible  <bruno@clisp.org>
25315
25316         Work around getdelim() bug on FreeBSD 8.0.
25317         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
25318         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
25319         not work.
25320         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
25321         is 1.
25322         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
25323         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
25324         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
25325         a non-zero size.
25326         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
25327
25328 2010-01-31  Bruno Haible  <bruno@clisp.org>
25329
25330         Work around getline() bug on FreeBSD 8.0.
25331         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
25332         and a non-zero size.
25333         * tests/test-getline.c (main): Likewise.
25334         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
25335         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
25336
25337 2010-01-28  Eric Blake  <ebb9@byu.net>
25338
25339         regex: fix build failure
25340         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
25341         platforms.
25342
25343 2010-01-28  Jim Meyering  <meyering@redhat.com>
25344
25345         regex: do not ignore memory allocation failure
25346         * lib/regex_internal.c (create_cd_newstate): Detect
25347         re_node_set_init_copy failure.   Extracted from glibc commit
25348         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25349
25350         regex: sync more white-space changes from libc
25351         * lib/regex_internal.c: White-space only changes.
25352         * lib/regexec.c: Likewise.
25353
25354         regex: add many uses of __attribute_warn_unused_result__
25355         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
25356         * lib/regexec.c: Likewise.
25357         Extracted from a messy glibc commit.
25358
25359         regcomp.c: spelling and merge-artifact from glibc
25360         * lib/regcomp.c: Merge remainder of glibc's
25361         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25362
25363         regcomp.c: sync white-space changes from glibc
25364         * lib/regcomp.c: Merge to accommodate white space
25365         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25366
25367         regcomp.c: do not ignore internal return values
25368         * lib/regcomp.c: Do not ignore internal return values.
25369         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
25370         but without its white-space changes and spelling fixes.
25371
25372         regex_internal.h: define __attribute_warn_unused_result__
25373         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
25374
25375         maint: add a syntax-check rule to check for vulnerable Makefile.in
25376         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
25377
25378 2010-01-27  Jim Meyering  <meyering@redhat.com>
25379
25380         ncftpput-ftp: clean up spaces
25381         * build-aux/ncftpput-ftp: Make Copyright line consistent.
25382         Remove trailing blanks.
25383
25384 2010-01-27  Simon Josefsson  <simon@josefsson.org>
25385
25386         * build-aux/git-version-gen: Fix copyright statement.
25387         * build-aux/gnupload: Likewise.
25388         * tests/test-arcfour.c: Likewise.
25389         * tests/test-arctwo.c: Likewise.
25390         * tests/test-count-one-bits.c: Likewise.
25391         * tests/test-crc.c: Likewise.
25392         * tests/test-des.c: Likewise.
25393         * tests/test-gc-arcfour.c: Likewise.
25394         * tests/test-gc-arctwo.c: Likewise.
25395         * tests/test-gc-des.c: Likewise.
25396         * tests/test-gc-hmac-md5.c: Likewise.
25397         * tests/test-gc-hmac-sha1.c: Likewise.
25398         * tests/test-gc-md2.c: Likewise.
25399         * tests/test-gc-md4.c: Likewise.
25400         * tests/test-gc-md5.c: Likewise.
25401         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25402         * tests/test-gc-rijndael.c: Likewise.
25403         * tests/test-gc-sha1.c: Likewise.
25404         * tests/test-gc.c: Likewise.
25405         * tests/test-gethostname.c: Likewise.
25406         * tests/test-gettimeofday.c: Likewise.
25407         * tests/test-hash.c: Likewise.
25408         * tests/test-hmac-md5.c: Likewise.
25409         * tests/test-hmac-sha1.c: Likewise.
25410         * tests/test-md2.c: Likewise.
25411         * tests/test-md4.c: Likewise.
25412         * tests/test-md5.c: Likewise.
25413         * tests/test-memchr.c: Likewise.
25414         * tests/test-memchr2.c: Likewise.
25415         * tests/test-memcmp.c: Likewise.
25416         * tests/test-memmem.c: Likewise.
25417         * tests/test-memrchr.c: Likewise.
25418         * tests/test-rawmemchr.c: Likewise.
25419         * tests/test-read-file.c: Likewise.
25420         * tests/test-rijndael.c: Likewise.
25421         * tests/test-sockets.c: Likewise.
25422         * tests/test-strchrnul.c: Likewise.
25423         * tests/test-strstr.c: Likewise.
25424         * tests/test-strtod.c: Likewise.
25425         * build-aux/ncftpput-ftp: Likewise.
25426
25427 2010-01-26  Eric Blake  <ebb9@byu.net>
25428
25429         ignore-value: update recommended header name
25430         * modules/ignore-value (Include): Only use <> for headers that
25431         exist in glibc.
25432
25433 2010-01-26  Jim Meyering  <meyering@redhat.com>
25434
25435         test-userspec.c: avoid compiler warnings
25436         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
25437         and "initialization discards qualifiers..." warnings.
25438         Put the first "uid" in its own scope, and make char* members "const".
25439
25440 2010-01-25  Bruno Haible  <bruno@clisp.org>
25441
25442         gnulib-tool: Make warning diagnostics consistent.
25443         * gnulib-tool (func_warning): New function.
25444         Use it everywhere where gnulib-tool produces output to stderr and it is
25445         not a fatal error.
25446
25447 2010-01-25  Bruno Haible  <bruno@clisp.org>
25448
25449         Fix test dependencies.
25450         * modules/xstrtol-tests (Depends-on): Add inttypes.
25451         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
25452
25453 2010-01-25 Pádraig Brady <P@draigBrady.com>
25454
25455         syntax-check: detect incorrect boolean macro values in config.h
25456         * modules/maintainer-makefile (configure.ac): Parameterize the location
25457         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
25458         The logic is from Eric Blake and the location indicated by Jim Meyering.
25459         Note the more natural CONFIG_HEADER name is prohibited by automake
25460         for backwards compatibility reasons.
25461         * top/maint.mk (sc_Wundef_boolean): New rule.
25462
25463 2010-01-25  Jim Meyering  <meyering@redhat.com>
25464
25465         bootstrap: detect MacOS 10.6's shasum, too
25466         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
25467         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
25468
25469 2010-01-23  Jim Meyering  <meyering@redhat.com>
25470
25471         xstrtoll: new module
25472         * modules/xstrtoll: New file.
25473         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
25474         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
25475         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
25476         ./configure fails if you use this module and lack "long long".
25477         * modules/xstrtoll-tests: New module.
25478         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
25479         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
25480         new init.sh-based test framework.
25481
25482 2010-01-24  Bruno Haible  <bruno@clisp.org>
25483
25484         Tests for module 'yn'.
25485         * modules/yn-tests: New file.
25486         * tests/test-yn.c: New file.
25487
25488         Tests for module 'y1'.
25489         * modules/y1-tests: New file.
25490         * tests/test-y1.c: New file.
25491
25492         Tests for module 'y0'.
25493         * modules/y0-tests: New file.
25494         * tests/test-y0.c: New file.
25495
25496         Tests for module 'tanh'.
25497         * modules/tanh-tests: New file.
25498         * tests/test-tanh.c: New file.
25499
25500         Tests for module 'tan'.
25501         * modules/tan-tests: New file.
25502         * tests/test-tan.c: New file.
25503
25504         Tests for module 'sqrt'.
25505         * modules/sqrt-tests: New file.
25506         * tests/test-sqrt.c: New file.
25507
25508         Tests for module 'sinh'.
25509         * modules/sinh-tests: New file.
25510         * tests/test-sinh.c: New file.
25511
25512         Tests for module 'sin'.
25513         * modules/sin-tests: New file.
25514         * tests/test-sin.c: New file.
25515
25516         Tests for module 'rint'.
25517         * modules/rint-tests: New file.
25518         * tests/test-rint.c: New file.
25519
25520         Tests for module 'remainder'.
25521         * modules/remainder-tests: New file.
25522         * tests/test-remainder.c: New file.
25523
25524         Tests for module 'pow'.
25525         * modules/pow-tests: New file.
25526         * tests/test-pow.c: New file.
25527
25528         Tests for module 'nextafter'.
25529         * modules/nextafter-tests: New file.
25530         * tests/test-nextafter.c: New file.
25531
25532         Tests for module 'modf'.
25533         * modules/modf-tests: New file.
25534         * tests/test-modf.c: New file.
25535
25536         Tests for module 'logb'.
25537         * modules/logb-tests: New file.
25538         * tests/test-logb.c: New file.
25539
25540         Tests for module 'log1p'.
25541         * modules/log1p-tests: New file.
25542         * tests/test-log1p.c: New file.
25543
25544         Tests for module 'log10'.
25545         * modules/log10-tests: New file.
25546         * tests/test-log10.c: New file.
25547
25548         Tests for module 'log'.
25549         * modules/log-tests: New file.
25550         * tests/test-log.c: New file.
25551
25552         Tests for module 'lgamma'.
25553         * modules/lgamma-tests: New file.
25554         * tests/test-lgamma.c: New file.
25555
25556         Tests for module 'ldexp'.
25557         * modules/ldexp-tests: New file.
25558         * tests/test-ldexp.c: New file.
25559
25560         Tests for module 'jn'.
25561         * modules/jn-tests: New file.
25562         * tests/test-jn.c: New file.
25563
25564         Tests for module 'j1'.
25565         * modules/j1-tests: New file.
25566         * tests/test-j1.c: New file.
25567
25568         Tests for module 'j0'.
25569         * modules/j0-tests: New file.
25570         * tests/test-j0.c: New file.
25571
25572         Tests for module 'hypot'.
25573         * modules/hypot-tests: New file.
25574         * tests/test-hypot.c: New file.
25575
25576         Tests for module 'fmod'.
25577         * modules/fmod-tests: New file.
25578         * tests/test-fmod.c: New file.
25579
25580         Tests for module 'fabs'.
25581         * modules/fabs-tests: New file.
25582         * tests/test-fabs.c: New file.
25583
25584         Tests for module 'exp'.
25585         * modules/exp-tests: New file.
25586         * tests/test-exp.c: New file.
25587
25588         Tests for module 'erfc'.
25589         * modules/erfc-tests: New file.
25590         * tests/test-erfc.c: New file.
25591
25592         Tests for module 'erf'.
25593         * modules/erf-tests: New file.
25594         * tests/test-erf.c: New file.
25595
25596         Tests for module 'cosh'.
25597         * modules/cosh-tests: New file.
25598         * tests/test-cosh.c: New file.
25599
25600         Tests for module 'cos'.
25601         * modules/cos-tests: New file.
25602         * tests/test-cos.c: New file.
25603
25604         Tests for module 'copysign'.
25605         * modules/copysign-tests: New file.
25606         * tests/test-copysign.c: New file.
25607
25608         Tests for module 'cbrt'.
25609         * modules/cbrt-tests: New file.
25610         * tests/test-cbrt.c: New file.
25611
25612         Tests for module 'atan2'.
25613         * modules/atan2-tests: New file.
25614         * tests/test-atan2.c: New file.
25615
25616         Tests for module 'atan'.
25617         * modules/atan-tests: New file.
25618         * tests/test-atan.c: New file.
25619
25620         Tests for module 'asin'.
25621         * modules/asin-tests: New file.
25622         * tests/test-asin.c: New file.
25623
25624         Tests for module 'acos'.
25625         * modules/acos-tests: New file.
25626         * tests/test-acos.c: New file.
25627
25628 2010-01-24  Bruno Haible  <bruno@clisp.org>
25629
25630         Fix tests for common <math.h> functions.
25631         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
25632         code snippet that references the function pointer, rather than merely
25633         calling the function. Substitute the FUNC_LIBM variable.
25634         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
25635         * modules/acos (configure.ac): Likewise.
25636         * modules/asin (configure.ac): Likewise.
25637         * modules/atan (configure.ac): Likewise.
25638         * modules/atan2 (configure.ac): Likewise.
25639         * modules/cbrt (configure.ac): Likewise.
25640         * modules/copysign (configure.ac): Likewise.
25641         * modules/cos (configure.ac): Likewise.
25642         * modules/cosh (configure.ac): Likewise.
25643         * modules/erf (configure.ac): Likewise.
25644         * modules/erfc (configure.ac): Likewise.
25645         * modules/exp (configure.ac): Likewise.
25646         * modules/fabs (configure.ac): Likewise.
25647         * modules/fmod (configure.ac): Likewise.
25648         * modules/hypot (configure.ac): Likewise.
25649         * modules/j0 (configure.ac): Likewise.
25650         * modules/j1 (configure.ac): Likewise.
25651         * modules/jn (configure.ac): Likewise.
25652         * modules/ldexp (configure.ac): Likewise.
25653         * modules/lgamma (configure.ac): Likewise.
25654         * modules/log (configure.ac): Likewise.
25655         * modules/log10 (configure.ac): Likewise.
25656         * modules/log1p (configure.ac): Likewise.
25657         * modules/logb (configure.ac): Likewise.
25658         * modules/modf (configure.ac): Likewise.
25659         * modules/nextafter (configure.ac): Likewise.
25660         * modules/pow (configure.ac): Likewise.
25661         * modules/remainder (configure.ac): Likewise.
25662         * modules/rint (configure.ac): Likewise.
25663         * modules/sin (configure.ac): Likewise.
25664         * modules/sinh (configure.ac): Likewise.
25665         * modules/tan (configure.ac): Likewise.
25666         * modules/tanh (configure.ac): Likewise.
25667         * modules/y0 (configure.ac): Likewise.
25668         * modules/y1 (configure.ac): Likewise.
25669         * modules/yn (configure.ac): Likewise.
25670
25671 2010-01-24  Bruno Haible  <bruno@clisp.org>
25672
25673         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
25674         * tests/test-acosl.c (x): New variable.
25675         (main): Store argument in x and fetch it from x.
25676         * tests/test-asinl.c (x): New variable.
25677         (main): Store argument in x and fetch it from x.
25678         * tests/test-atanl.c (x): New variable.
25679         (main): Store argument in x and fetch it from x.
25680         * tests/test-cosl.c (x): New variable.
25681         (main): Store argument in x and fetch it from x.
25682         * tests/test-expl.c (x): New variable.
25683         (main): Store argument in x and fetch it from x.
25684         * tests/test-logl.c (x): New variable.
25685         (main): Store argument in x and fetch it from x.
25686         * tests/test-sinl.c (x): New variable.
25687         (main): Store argument in x and fetch it from x.
25688         * tests/test-sqrtl.c (x): New variable.
25689         (main): Store argument in x and fetch it from x.
25690         * tests/test-tanl.c (x): New variable.
25691         (main): Store argument in x and fetch it from x.
25692
25693 2010-01-24  Bruno Haible  <bruno@clisp.org>
25694
25695         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
25696         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
25697         assignments to the initial TESTS_ENVIRONMENT.
25698         * doc/gnulib.texi (Unit test modules): Document it.
25699         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
25700         TESTS_ENVIRONMENT.
25701         * modules/btowc-tests (Makefile.am): Likewise.
25702         * modules/c-stack-tests (Makefile.am): Likewise.
25703         * modules/c-strcase-tests (Makefile.am): Likewise.
25704         * modules/copy-file-tests (Makefile.am): Likewise.
25705         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
25706         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
25707         * modules/mbrtowc-tests (Makefile.am): Likewise.
25708         * modules/mbscasecmp-tests (Makefile.am): Likewise.
25709         * modules/mbscasestr-tests (Makefile.am): Likewise.
25710         * modules/mbschr-tests (Makefile.am): Likewise.
25711         * modules/mbscspn-tests (Makefile.am): Likewise.
25712         * modules/mbsinit-tests (Makefile.am): Likewise.
25713         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
25714         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
25715         * modules/mbspbrk-tests (Makefile.am): Likewise.
25716         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
25717         * modules/mbsrchr-tests (Makefile.am): Likewise.
25718         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
25719         * modules/mbsspn-tests (Makefile.am): Likewise.
25720         * modules/mbsstr-tests (Makefile.am): Likewise.
25721         * modules/nl_langinfo-tests (Makefile.am): Likewise.
25722         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
25723         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
25724         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
25725         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
25726         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
25727         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
25728         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
25729         * modules/wcrtomb-tests (Makefile.am): Likewise.
25730         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
25731         * modules/wcsrtombs-tests (Makefile.am): Likewise.
25732         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
25733         assignments from TESTS_ENVIRONMENT.
25734         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
25735         augmentation.
25736         * modules/argp-version-etc-tests (Makefile.am): Likewise.
25737         * modules/atexit-tests (Makefile.am): Likewise.
25738         * modules/binary-io-tests (Makefile.am): Likewise.
25739         * modules/closein-tests (Makefile.am): Likewise.
25740         * modules/dprintf-posix-tests (Makefile.am): Likewise.
25741         * modules/exclude-tests (Makefile.am): Likewise.
25742         * modules/fflush-tests (Makefile.am): Likewise.
25743         * modules/fpending-tests (Makefile.am): Likewise.
25744         * modules/fprintf-posix-tests (Makefile.am): Likewise.
25745         * modules/freadahead-tests (Makefile.am): Likewise.
25746         * modules/freadptr-tests (Makefile.am): Likewise.
25747         * modules/freadseek-tests (Makefile.am): Likewise.
25748         * modules/fseek-tests (Makefile.am): Likewise.
25749         * modules/fseeko-tests (Makefile.am): Likewise.
25750         * modules/ftell-tests (Makefile.am): Likewise.
25751         * modules/ftello-tests (Makefile.am): Likewise.
25752         * modules/idpriv-drop-tests (Makefile.am): Likewise.
25753         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
25754         * modules/lseek-tests (Makefile.am): Likewise.
25755         * modules/parse-duration-tests (Makefile.am): Likewise.
25756         * modules/perror-tests (Makefile.am): Likewise.
25757         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
25758         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
25759         * modules/pipe-tests (Makefile.am): Likewise.
25760         * modules/pread-tests (Makefile.am): Likewise.
25761         * modules/printf-posix-tests (Makefile.am): Likewise.
25762         * modules/select-tests (Makefile.am): Likewise.
25763         * modules/sigpipe-tests (Makefile.am): Likewise.
25764         * modules/tsearch-tests (Makefile.am): Likewise.
25765         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
25766         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
25767         * modules/uniname/uniname-tests (Makefile.am): Likewise.
25768         * modules/uniwidth/width-tests (Makefile.am): Likewise.
25769         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
25770         * modules/version-etc-tests (Makefile.am): Likewise.
25771         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
25772         * modules/vprintf-posix-tests (Makefile.am): Likewise.
25773         * modules/xalloc-die-tests (Makefile.am): Likewise.
25774         * modules/xprintf-posix-tests (Makefile.am): Likewise.
25775         * modules/xstrtoimax-tests (Makefile.am): Likewise.
25776         * modules/xstrtol-tests (Makefile.am): Likewise.
25777         * modules/xstrtoumax-tests (Makefile.am): Likewise.
25778         * modules/yesno-tests (Makefile.am): Likewise.
25779         Suggested by Jim Meyering.
25780
25781 2010-01-24  Bruno Haible  <bruno@clisp.org>
25782
25783         More documentation.
25784         * doc/gnulib.texi (Writing modules): New chapter.
25785         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
25786         the new chapter.
25787
25788 2010-01-24  Jim Meyering  <meyering@redhat.com>
25789
25790         maint.mk: do not prepend "./" after filtering
25791         * top/maint.mk (_prepend_srcdir_prefix): New variable
25792         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
25793         "./" when $(srcdir) is ".".
25794
25795         define STREQ(a,b) consistently, removing useless parentheses
25796         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
25797         since the only risk is that "a" or "b" contains an unparenthesized
25798         comma, but if either did that, STREQ would have 3 or more arguments.
25799         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
25800         * lib/fts.c (STREQ): Remove unnecessary parentheses.
25801         * lib/hash-triple.c (STREQ): Likewise.
25802         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
25803         * lib/getugroups.c (STREQ): Likewise.
25804
25805 2010-01-23  Jim Meyering  <meyering@redhat.com>
25806
25807         maint.mk: fix syntax-check in a non-srcdir build directory
25808         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
25809         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
25810
25811 2010-01-22  Jim Meyering  <meyering@redhat.com>
25812
25813         userspec: add unit tests
25814         * tests/test-userspec.c: New file.
25815         * modules/userspec-tests: Likewise.
25816
25817 2010-01-21  Jim Meyering  <meyering@redhat.com>
25818
25819         maint.mk: handle source file names containing "." robustly
25820         * top/maint.mk (_dot_escaped_srcdir): Define.
25821         (VC_LIST): Use it in LHS of sed substitution.
25822
25823 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
25824
25825         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
25826         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
25827         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
25828         from a non-srcdir build.
25829
25830 2010-01-20  Eric Blake  <ebb9@byu.net>
25831
25832         warn-on-use: use instead of link-warning
25833         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
25834         * modules/unistd (Depends-on, Makefile.am): Likewise.
25835         * modules/arpa_inet (Depends-on): Replace link-warning with
25836         warn-on-use.
25837         (Makefile.am): Update rules accordingly.
25838         * modules/ctype (Depends-on, Makefile.am): Likewise.
25839         * modules/dirent (Depends-on, Makefile.am): Likewise.
25840         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
25841         * modules/inttypes (Depends-on, Makefile.am): Likewise.
25842         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25843         * modules/locale (Depends-on, Makefile.am): Likewise.
25844         * modules/math (Depends-on, Makefile.am): Likewise.
25845         * modules/search (Depends-on, Makefile.am): Likewise.
25846         * modules/signal (Depends-on, Makefile.am): Likewise.
25847         * modules/spawn (Depends-on, Makefile.am): Likewise.
25848         * modules/stdlib (Depends-on, Makefile.am): Likewise.
25849         * modules/string (Depends-on, Makefile.am): Likewise.
25850         * modules/strings (Depends-on, Makefile.am): Likewise.
25851         * modules/sys_file (Depends-on, Makefile.am): Likewise.
25852         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
25853         * modules/sys_select (Depends-on, Makefile.am): Likewise.
25854         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
25855         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
25856         * modules/sys_times (Depends-on, Makefile.am): Likewise.
25857         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25858         * modules/wchar (Depends-on, Makefile.am): Likewise.
25859         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
25860         should be poisoned.
25861         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
25862         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
25863         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
25864         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25865         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25866         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25867         * m4/math_h.m4 (gl_MATH_H): Likewise.
25868         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25869         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
25870         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25871         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
25872         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
25873         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
25874         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
25875         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
25876         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25877         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25878         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25879         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
25880         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25881         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25882         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25883         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25884         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
25885         GL_LINK_WARNING.
25886         * lib/ctype.in.h: Likewise.
25887         * lib/dirent.in.h: Likewise.
25888         * lib/fcntl.in.h: Likewise.
25889         * lib/inttypes.in.h: Likewise.
25890         * lib/langinfo.in.h: Likewise.
25891         * lib/locale.in.h: Likewise.
25892         * lib/math.in.h: Likewise.
25893         * lib/search.in.h: Likewise.
25894         * lib/signal.in.h: Likewise.
25895         * lib/spawn.in.h: Likewise.
25896         * lib/stdio.in.h: Likewise.
25897         * lib/stdlib.in.h: Likewise.
25898         * lib/string.in.h: Likewise.
25899         * lib/strings.in.h: Likewise.
25900         * lib/sys_file.in.h: Likewise.
25901         * lib/sys_ioctl.in.h: Likewise.
25902         * lib/sys_select.in.h: Likewise.
25903         * lib/sys_socket.in.h: Likewise.
25904         * lib/sys_stat.in.h: Likewise.
25905         * lib/sys_times.in.h: Likewise.
25906         * lib/sys_utsname.in.h: Likewise.
25907         * lib/unistd.in.h: Likewise.
25908         * lib/wchar.in.h: Likewise.
25909
25910 2010-01-20  Bruno Haible  <bruno@clisp.org>
25911
25912         Avoid duplicate -lm.
25913         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
25914         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
25915         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
25916         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
25917         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
25918         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
25919         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
25920         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
25921         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
25922         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
25923         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
25924         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25925         Reported by Paolo Bonzini.
25926
25927 2010-01-19  Bruno Haible  <bruno@clisp.org>
25928
25929         langinfo, nl_langinfo: Relicense under LGPLv2+.
25930         * modules/langinfo (License): Change to LGPLv2+.
25931         * modules/nl_langinfo (License): Likewise.
25932         Patch by David Lutterkort <lutter@redhat.com>.
25933
25934 2010-01-19  Bruno Haible  <bruno@clisp.org>
25935
25936         Avoid compilation error with cc on OSF/1 5.1.
25937         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
25938         statement, not before.
25939         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25940
25941 2010-01-18  Bruno Haible  <bruno@clisp.org>
25942
25943         Avoid a link error due to the __printf__ symbol.
25944         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
25945         and 2.6.x.
25946         (__format__, __printf__): Remove definitions.
25947         * lib/argp-fmtstream.h: Likewise.
25948         * lib/argp.h: Likewise.
25949         * lib/error.h: Likewise.
25950         * lib/vasnprintf.h: Likewise.
25951         * lib/xprintf.h: Likewise.
25952         * lib/xvasprintf.h: Likewise.
25953         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25954
25955 2010-01-18  Bruno Haible  <bruno@clisp.org>
25956
25957         Tests for module 'tanl'.
25958         * modules/tanl-tests: New file.
25959         * tests/test-tanl.c: New file.
25960
25961         Tests for module 'sqrtl'.
25962         * modules/sqrtl-tests: New file.
25963         * tests/test-sqrtl.c: New file.
25964
25965         Tests for module 'sinl'.
25966         * modules/sinl-tests: New file.
25967         * tests/test-sinl.c: New file.
25968
25969         Tests for module 'logl'.
25970         * modules/logl-tests: New file.
25971         * tests/test-logl.c: New file.
25972
25973         Tests for module 'expl'.
25974         * modules/expl-tests: New file.
25975         * tests/test-expl.c: New file.
25976
25977         Tests for module 'cosl'.
25978         * modules/cosl-tests: New file.
25979         * tests/test-cosl.c: New file.
25980
25981         Tests for module 'atanl'.
25982         * modules/atanl-tests: New file.
25983         * tests/test-atanl.c: New file.
25984
25985         Tests for module 'asinl'.
25986         * modules/asinl-tests: New file.
25987         * tests/test-asinl.c: New file.
25988
25989         Tests for module 'acosl'.
25990         * modules/acosl-tests: New file.
25991         * tests/test-acosl.c: New file.
25992
25993         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
25994         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
25995         tanl): Use the standard gnulib idiom.
25996         * lib/cosl.c: Don't include trigl.c and sincosl.c.
25997         * lib/sinl.c: Likewise.
25998         * lib/tanl.c: Don't include trigl.c.
25999         (kernel_tanl): Make static.
26000         * lib/sincosl.c: Include trigl.h first.
26001         * lib/trigl.c: Likewise.
26002         * m4/acosl.m4: New file.
26003         * m4/asinl.m4: New file.
26004         * m4/atanl.m4: New file.
26005         * m4/cosl.m4: New file.
26006         * m4/expl.m4: New file.
26007         * m4/logl.m4: New file.
26008         * m4/sinl.m4: New file.
26009         * m4/sqrtl.m4: New file.
26010         * m4/tanl.m4: New file.
26011         * m4/mathl.m4: Remove file.
26012         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
26013         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26014         Don't initialize GNULIB_MATHL.
26015         * modules/acosl: New file.
26016         * modules/asinl: New file.
26017         * modules/atanl: New file.
26018         * modules/cosl: New file.
26019         * modules/expl: New file.
26020         * modules/logl: New file.
26021         * modules/sinl: New file.
26022         * modules/sqrtl: New file.
26023         * modules/tanl: New file.
26024         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
26025         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
26026         substitute GNULIB_MATHL.
26027         * modules/mathl: Rewritten.
26028         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
26029         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
26030         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
26031         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
26032         * doc/posix-functions/expl.texi: Mention the 'expl' module.
26033         * doc/posix-functions/logl.texi: Mention the 'logl' module.
26034         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
26035         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
26036         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
26037
26038 2010-01-18  Bruno Haible  <bruno@clisp.org>
26039
26040         sqrt: Make gl_FUNC_SQRT requirable.
26041         * m4/sqrt.m4: New file.
26042         * modules/sqrt (Files): Add it.
26043         (configure.ac): Invoke gl_FUNC_SQRT.
26044
26045 2010-01-18  Bruno Haible  <bruno@clisp.org>
26046
26047         New modules for common <math.h> functions.
26048         * m4/mathfunc.m4: New file.
26049         * modules/acos: New file.
26050         * modules/asin: New file.
26051         * modules/atan: New file.
26052         * modules/atan2: New file.
26053         * modules/cbrt: New file.
26054         * modules/copysign: New file.
26055         * modules/cos: New file.
26056         * modules/cosh: New file.
26057         * modules/erf: New file.
26058         * modules/erfc: New file.
26059         * modules/exp: New file.
26060         * modules/fabs: New file.
26061         * modules/fmod: New file.
26062         * modules/hypot: New file.
26063         * modules/j0: New file.
26064         * modules/j1: New file.
26065         * modules/jn: New file.
26066         * modules/ldexp: New file.
26067         * modules/lgamma: New file.
26068         * modules/log: New file.
26069         * modules/log10: New file.
26070         * modules/log1p: New file.
26071         * modules/logb: New file.
26072         * modules/modf: New file.
26073         * modules/nextafter: New file.
26074         * modules/pow: New file.
26075         * modules/remainder: New file.
26076         * modules/rint: New file.
26077         * modules/sin: New file.
26078         * modules/sinh: New file.
26079         * modules/sqrt: New file.
26080         * modules/tan: New file.
26081         * modules/tanh: New file.
26082         * modules/y0: New file.
26083         * modules/y1: New file.
26084         * modules/yn: New file.
26085         * doc/posix-functions/acos.texi: Mention the 'acos' module.
26086         * doc/posix-functions/asin.texi: Mention the 'asin' module.
26087         * doc/posix-functions/atan.texi: Mention the 'atan' module.
26088         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
26089         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
26090         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
26091         * doc/posix-functions/cos.texi: Mention the 'cos' module.
26092         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
26093         * doc/posix-functions/erf.texi: Mention the 'erf' module.
26094         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
26095         * doc/posix-functions/exp.texi: Mention the 'exp' module.
26096         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
26097         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
26098         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
26099         * doc/posix-functions/j0.texi: Mention the 'j0' module.
26100         * doc/posix-functions/j1.texi: Mention the 'j1' module.
26101         * doc/posix-functions/jn.texi: Mention the 'jn' module.
26102         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
26103         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
26104         * doc/posix-functions/log.texi: Mention the 'log' module.
26105         * doc/posix-functions/log10.texi: Mention the 'log10' module.
26106         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
26107         * doc/posix-functions/logb.texi: Mention the 'logb' module.
26108         * doc/posix-functions/modf.texi: Mention the 'modf' module.
26109         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
26110         * doc/posix-functions/pow.texi: Mention the 'pow' module.
26111         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
26112         * doc/posix-functions/rint.texi: Mention the 'rint' module.
26113         * doc/posix-functions/sin.texi: Mention the 'sin' module.
26114         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
26115         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
26116         * doc/posix-functions/tan.texi: Mention the 'tan' module.
26117         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
26118         * doc/posix-functions/y0.texi: Mention the 'y0' module.
26119         * doc/posix-functions/y1.texi: Mention the 'y1' module.
26120         * doc/posix-functions/yn.texi: Mention the 'yn' module.
26121
26122 2010-01-18  Jim Meyering  <meyering@redhat.com>
26123
26124         ignore-value: relax license to LGPLv2+
26125         * modules/ignore-value (License): Relax to LGPLv2+.
26126
26127         getdate: don't leak when TZ contains two or more '"'s
26128         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
26129         double quote in TZ after the first one.
26130
26131         readtokens: do not leak internal token_lengths buffer
26132         * lib/readtokens.c (readtokens): Free the local, lengths,
26133         when the supplied "token_lengths" parameter is NULL.
26134
26135 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26136
26137         Fix a couple of missing LIBTHREAD link failures on AIX.
26138         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
26139         $(LIBTHREAD).
26140         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
26141
26142         Link test-poll against INET_PTON_LIB.
26143         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
26144         for inet_pton on Solaris 10.
26145
26146 2010-01-17  Bruno Haible  <bruno@clisp.org>
26147
26148         unistdio/*-sprintf: Fix typo in module description.
26149         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
26150         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
26151         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
26152         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
26153         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
26154         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
26155         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
26156         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26157
26158 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26159
26160         gnulib-tool: fix filelist for AIX, HP-UX ksh.
26161         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
26162         variables in shell case patterns, for AIX and HP-UX ksh.
26163
26164         Split large sed scripts, for HP-UX sed.
26165         * modules/stdio: Split sed scripts around 50 sed commands,
26166         to avoid HP-UX limit of 99 commands, in the near future.
26167         * modules/string: Likewise.
26168         * modules/unistd: Likewise.
26169
26170         gnulib-tool: avoid writing in the current directory.
26171         * gnulib-tool (func_emit_lib_Makefile_am)
26172         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
26173         not in the current directory, so concurrent gnulib-tool
26174         instances do not interfere.
26175
26176 2010-01-16  Jim Meyering  <meyering@redhat.com>
26177
26178         doc: update users.txt
26179         * users.txt: Add grep.
26180         (diffutils, gzip): Update URLs.
26181
26182 2010-01-12  Bruno Haible  <bruno@clisp.org>
26183
26184         posix_spawn: Avoid test failure on Cygwin.
26185         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
26186         characters.
26187         Reported by Simon Josefsson.
26188
26189 2010-01-12  Bruno Haible  <bruno@clisp.org>
26190
26191         * tests/test-cond.c (main): When skipping the test, show the reason.
26192
26193 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26194
26195         * lib/striconv.c (str_cd_iconv): Avoid if before free.
26196
26197 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26198
26199         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
26200         VC_LIST_ALWAYS_EXCLUDE_REGEX.
26201
26202 2010-01-12  Eric Blake  <ebb9@byu.net>
26203
26204         build: guarantee AS_VAR_IF
26205         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
26206         (gl_AS_VAR_IF): Move...
26207         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
26208         Reported by Simon Josefsson.
26209
26210 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26211
26212         * lib/stdio.in.h: Fix typo.
26213
26214 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26215
26216         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
26217         libgpg-error.
26218
26219 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26220
26221         * tests/test-xalloc-die.sh: Use $EXEEXT.
26222
26223 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26224             Bruno Haible  <bruno@clisp.org>
26225
26226         getlogin, getlogin_r: Avoid test failure.
26227         * tests/test-getlogin.c: Include <stdio.h>.
26228         (main): Skip the test when the function fails because stdin is not a
26229         tty.
26230         * tests/test-getlogin_r.c: Include <stdio.h>.
26231         (main): Skip the test when the function fails because stdin is not a
26232         tty.
26233
26234 2010-01-11  Eric Blake  <ebb9@byu.net>
26235
26236         tests: avoid more large file warnings
26237         * tests/test-fflush.c: Avoid warning about ftell use.
26238         * tests/test-fseek.c: Avoid warning about fseek use.
26239
26240 2010-01-10  Bruno Haible  <bruno@clisp.org>
26241
26242         nproc: Work better on Linux when /proc and /sys are not mounted.
26243         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
26244         as lower bound when, on glibc/Linux systems,
26245         sysconf (_SC_NPROCESSORS_CONF) returns 1.
26246         Suggested by Pádraig Brady <P@draigbrady.com>.
26247         Reported by Dmitry V. Levin <ldv@altlinux.org>.
26248
26249         nproc: Refactor.
26250         * lib/nproc.c (num_processors_via_affinity_mask): New function,
26251         extracted from num_processors.
26252         (num_processors): Call it.
26253
26254 2010-01-11  Jim Meyering  <meyering@redhat.com>
26255
26256         utimecmp: avoid new warning from upcoming gcc-4.5.0
26257         * lib/utimecmp.c (BILLION): Define using #define rather than an
26258         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
26259
26260 2010-01-11  Eric Blake  <ebb9@byu.net>
26261
26262         math: add portability warnings for classification macros
26263         * modules/math (Depends-on): Add warn-on-use.
26264         (Makefile.am): Provide new substitutions.
26265         * m4/math_h.m4 (gl_MATH_H): Require inline.
26266         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
26267         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
26268         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
26269         implement warnings.
26270
26271         unistd: warn on use of environ without module
26272         * modules/unistd (Depends-on): Add warn-on-use.
26273         (Makefile.am): Provide new substitutions.
26274         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
26275         * lib/unistd.in.h (environ): Wrap with a warning helper function.
26276
26277         stdio: warn on suspicious uses
26278         * modules/stdio (Depends-on): Add warn-on-use.
26279         (Makefile.am): Provide new substitutions.
26280         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
26281         fseeko.
26282         * lib/stdio.in.h (gets): Always warn on use.
26283         (fseek, ftell): Adjust when warnings are issued, and honor
26284         _GL_NO_LARGE_FILES as a way to silence the warning.
26285         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
26286         any warning about large file offsets.
26287         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
26288         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
26289         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
26290         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
26291         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
26292         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
26293         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
26294         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
26295
26296         warn-on-use: new module
26297         * modules/warn-on-use: New file.
26298         * build-aux/warn-on-use.h: Likewise.
26299         * m4/warn-on-use.m4: Likewise.
26300         * MODULES.html.sh (Support for building): Mention it.
26301
26302 2010-01-10  Bruno Haible  <bruno@clisp.org>
26303
26304         Tests for module 'unistr/u32-strdup'.
26305         * modules/unistr/u32-strdup-tests: New file.
26306         * tests/unistr/test-u32-strdup.c: New file.
26307
26308         Tests for module 'unistr/u16-strdup'.
26309         * modules/unistr/u16-strdup-tests: New file.
26310         * tests/unistr/test-u16-strdup.c: New file.
26311
26312         Tests for module 'unistr/u8-strdup'.
26313         * modules/unistr/u8-strdup-tests: New file.
26314         * tests/unistr/test-u8-strdup.c: New file.
26315         * tests/unistr/test-strdup.h: New file.
26316
26317         Tests for module 'unistr/u32-strncmp'.
26318         * modules/unistr/u32-strncmp-tests: New file.
26319         * tests/unistr/test-u32-strncmp.c: New file.
26320
26321         Tests for module 'unistr/u16-strncmp'.
26322         * modules/unistr/u16-strncmp-tests: New file.
26323         * tests/unistr/test-u16-strncmp.c: New file.
26324
26325         Tests for module 'unistr/u8-strncmp'.
26326         * modules/unistr/u8-strncmp-tests: New file.
26327         * tests/unistr/test-u8-strncmp.c: New file.
26328         * tests/unistr/test-strncmp.h: New file.
26329
26330         Tests for module 'unistr/u32-strcoll'.
26331         * modules/unistr/u32-strcoll-tests: New file.
26332         * tests/unistr/test-u32-strcoll.c: New file.
26333
26334         Tests for module 'unistr/u16-strcoll'.
26335         * modules/unistr/u16-strcoll-tests: New file.
26336         * tests/unistr/test-u16-strcoll.c: New file.
26337
26338         Tests for module 'unistr/u8-strcoll'.
26339         * modules/unistr/u8-strcoll-tests: New file.
26340         * tests/unistr/test-u8-strcoll.c: New file.
26341
26342         Tests for module 'unistr/u32-strcmp'.
26343         * modules/unistr/u32-strcmp-tests: New file.
26344         * tests/unistr/test-u32-strcmp.c: New file.
26345         * tests/unistr/test-u32-strcmp.h: New file.
26346
26347         Tests for module 'unistr/u16-strcmp'.
26348         * modules/unistr/u16-strcmp-tests: New file.
26349         * tests/unistr/test-u16-strcmp.c: New file.
26350         * tests/unistr/test-u16-strcmp.h: New file.
26351
26352         Tests for module 'unistr/u8-strcmp'.
26353         * modules/unistr/u8-strcmp-tests: New file.
26354         * tests/unistr/test-u8-strcmp.c: New file.
26355         * tests/unistr/test-u8-strcmp.h: New file.
26356         * tests/unistr/test-strcmp.h: New file.
26357
26358         Tests for module 'unistr/u32-strncat'.
26359         * modules/unistr/u32-strncat-tests: New file.
26360         * tests/unistr/test-u32-strncat.c: New file.
26361
26362         Tests for module 'unistr/u16-strncat'.
26363         * modules/unistr/u16-strncat-tests: New file.
26364         * tests/unistr/test-u16-strncat.c: New file.
26365
26366         Tests for module 'unistr/u8-strncat'.
26367         * modules/unistr/u8-strncat-tests: New file.
26368         * tests/unistr/test-u8-strncat.c: New file.
26369         * tests/unistr/test-strncat.h: New file.
26370
26371         Tests for module 'unistr/u32-strcat'.
26372         * modules/unistr/u32-strcat-tests: New file.
26373         * tests/unistr/test-u32-strcat.c: New file.
26374
26375         Tests for module 'unistr/u16-strcat'.
26376         * modules/unistr/u16-strcat-tests: New file.
26377         * tests/unistr/test-u16-strcat.c: New file.
26378
26379         Tests for module 'unistr/u8-strcat'.
26380         * modules/unistr/u8-strcat-tests: New file.
26381         * tests/unistr/test-u8-strcat.c: New file.
26382         * tests/unistr/test-strcat.h: New file.
26383
26384         Tests for module 'unistr/u32-stpncpy'.
26385         * modules/unistr/u32-stpncpy-tests: New file.
26386         * tests/unistr/test-u32-stpncpy.c: New file.
26387
26388         Tests for module 'unistr/u16-stpncpy'.
26389         * modules/unistr/u16-stpncpy-tests: New file.
26390         * tests/unistr/test-u16-stpncpy.c: New file.
26391
26392         Tests for module 'unistr/u8-stpncpy'.
26393         * modules/unistr/u8-stpncpy-tests: New file.
26394         * tests/unistr/test-u8-stpncpy.c: New file.
26395         * tests/unistr/test-stpncpy.h: New file.
26396
26397         Tests for module 'unistr/u32-strncpy'.
26398         * modules/unistr/u32-strncpy-tests: New file.
26399         * tests/unistr/test-u32-strncpy.c: New file.
26400
26401         Tests for module 'unistr/u16-strncpy'.
26402         * modules/unistr/u16-strncpy-tests: New file.
26403         * tests/unistr/test-u16-strncpy.c: New file.
26404
26405         Tests for module 'unistr/u8-strncpy'.
26406         * modules/unistr/u8-strncpy-tests: New file.
26407         * tests/unistr/test-u8-strncpy.c: New file.
26408         * tests/unistr/test-strncpy.h: New file.
26409
26410         Tests for module 'unistr/u32-stpcpy'.
26411         * modules/unistr/u32-stpcpy-tests: New file.
26412         * tests/unistr/test-u32-stpcpy.c: New file.
26413
26414         Tests for module 'unistr/u16-stpcpy'.
26415         * modules/unistr/u16-stpcpy-tests: New file.
26416         * tests/unistr/test-u16-stpcpy.c: New file.
26417
26418         Tests for module 'unistr/u8-stpcpy'.
26419         * modules/unistr/u8-stpcpy-tests: New file.
26420         * tests/unistr/test-u8-stpcpy.c: New file.
26421         * tests/unistr/test-stpcpy.h: New file.
26422
26423         Tests for module 'unistr/u32-strcpy'.
26424         * modules/unistr/u32-strcpy-tests: New file.
26425         * tests/unistr/test-u32-strcpy.c: New file.
26426
26427         Tests for module 'unistr/u16-strcpy'.
26428         * modules/unistr/u16-strcpy-tests: New file.
26429         * tests/unistr/test-u16-strcpy.c: New file.
26430
26431         Tests for module 'unistr/u8-strcpy'.
26432         * modules/unistr/u8-strcpy-tests: New file.
26433         * tests/unistr/test-u8-strcpy.c: New file.
26434         * tests/unistr/test-strcpy.h: New file.
26435
26436         Tests for module 'unistr/u32-strnlen'.
26437         * modules/unistr/u32-strnlen-tests: New file.
26438         * tests/unistr/test-u32-strnlen.c: New file.
26439
26440         Tests for module 'unistr/u16-strnlen'.
26441         * modules/unistr/u16-strnlen-tests: New file.
26442         * tests/unistr/test-u16-strnlen.c: New file.
26443
26444         Tests for module 'unistr/u8-strnlen'.
26445         * modules/unistr/u8-strnlen-tests: New file.
26446         * tests/unistr/test-u8-strnlen.c: New file.
26447         * tests/unistr/test-strnlen.h: New file.
26448
26449         Tests for module 'unistr/u32-strlen'.
26450         * modules/unistr/u32-strlen-tests: New file.
26451         * tests/unistr/test-u32-strlen.c: New file.
26452
26453         Tests for module 'unistr/u16-strlen'.
26454         * modules/unistr/u16-strlen-tests: New file.
26455         * tests/unistr/test-u16-strlen.c: New file.
26456
26457         Tests for module 'unistr/u8-strlen'.
26458         * modules/unistr/u8-strlen-tests: New file.
26459         * tests/unistr/test-u8-strlen.c: New file.
26460
26461         Tests for module 'unistr/u32-prev'.
26462         * modules/unistr/u32-prev-tests: New file.
26463         * tests/unistr/test-u32-prev.c: New file.
26464
26465         Tests for module 'unistr/u16-prev'.
26466         * modules/unistr/u16-prev-tests: New file.
26467         * tests/unistr/test-u16-prev.c: New file.
26468
26469         Tests for module 'unistr/u8-prev'.
26470         * modules/unistr/u8-prev-tests: New file.
26471         * tests/unistr/test-u8-prev.c: New file.
26472
26473         Tests for module 'unistr/u32-next'.
26474         * modules/unistr/u32-next-tests: New file.
26475         * tests/unistr/test-u32-next.c: New file.
26476
26477         Tests for module 'unistr/u16-next'.
26478         * modules/unistr/u16-next-tests: New file.
26479         * tests/unistr/test-u16-next.c: New file.
26480
26481         Tests for module 'unistr/u8-next'.
26482         * modules/unistr/u8-next-tests: New file.
26483         * tests/unistr/test-u8-next.c: New file.
26484
26485         Tests for module 'unistr/u32-strmbtouc'.
26486         * modules/unistr/u32-strmbtouc-tests: New file.
26487         * tests/unistr/test-u32-strmbtouc.c: New file.
26488
26489         Tests for module 'unistr/u16-strmbtouc'.
26490         * modules/unistr/u16-strmbtouc-tests: New file.
26491         * tests/unistr/test-u16-strmbtouc.c: New file.
26492
26493         Tests for module 'unistr/u8-strmbtouc'.
26494         * modules/unistr/u8-strmbtouc-tests: New file.
26495         * tests/unistr/test-u8-strmbtouc.c: New file.
26496
26497         Tests for module 'unistr/u32-strmblen'.
26498         * modules/unistr/u32-strmblen-tests: New file.
26499         * tests/unistr/test-u32-strmblen.c: New file.
26500
26501         Tests for module 'unistr/u16-strmblen'.
26502         * modules/unistr/u16-strmblen-tests: New file.
26503         * tests/unistr/test-u16-strmblen.c: New file.
26504
26505         Tests for module 'unistr/u8-strmblen'.
26506         * modules/unistr/u8-strmblen-tests: New file.
26507         * tests/unistr/test-u8-strmblen.c: New file.
26508
26509         Tests for module 'unistr/u32-cpy-alloc'.
26510         * modules/unistr/u32-cpy-alloc-tests: New file.
26511         * tests/unistr/test-u32-cpy-alloc.c: New file.
26512
26513         Tests for module 'unistr/u16-cpy-alloc'.
26514         * modules/unistr/u16-cpy-alloc-tests: New file.
26515         * tests/unistr/test-u16-cpy-alloc.c: New file.
26516
26517         Tests for module 'unistr/u8-cpy-alloc'.
26518         * modules/unistr/u8-cpy-alloc-tests: New file.
26519         * tests/unistr/test-u8-cpy-alloc.c: New file.
26520         * tests/unistr/test-cpy-alloc.h: New file.
26521
26522         Tests for module 'unistr/u32-mbsnlen'.
26523         * modules/unistr/u32-mbsnlen-tests: New file.
26524         * tests/unistr/test-u32-mbsnlen.c: New file.
26525
26526         Tests for module 'unistr/u16-mbsnlen'.
26527         * modules/unistr/u16-mbsnlen-tests: New file.
26528         * tests/unistr/test-u16-mbsnlen.c: New file.
26529
26530         Tests for module 'unistr/u8-mbsnlen'.
26531         * modules/unistr/u8-mbsnlen-tests: New file.
26532         * tests/unistr/test-u8-mbsnlen.c: New file.
26533
26534         Tests for module 'unistr/u32-chr'.
26535         * modules/unistr/u32-chr-tests: New file.
26536         * tests/unistr/test-u32-chr.c: New file.
26537
26538         Tests for module 'unistr/u16-chr'.
26539         * modules/unistr/u16-chr-tests: New file.
26540         * tests/unistr/test-u16-chr.c: New file.
26541
26542         Tests for module 'unistr/u8-chr'.
26543         * modules/unistr/u8-chr-tests: New file.
26544         * tests/unistr/test-u8-chr.c: New file.
26545         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
26546
26547         Tests for module 'unistr/u32-cmp2'.
26548         * modules/unistr/u32-cmp2-tests: New file.
26549         * tests/unistr/test-u32-cmp2.c: New file.
26550
26551         Tests for module 'unistr/u16-cmp2'.
26552         * modules/unistr/u16-cmp2-tests: New file.
26553         * tests/unistr/test-u16-cmp2.c: New file.
26554
26555         Tests for module 'unistr/u8-cmp2'.
26556         * modules/unistr/u8-cmp2-tests: New file.
26557         * tests/unistr/test-u8-cmp2.c: New file.
26558         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
26559
26560         Tests for module 'unistr/u32-cmp'.
26561         * modules/unistr/u32-cmp-tests: New file.
26562         * tests/unistr/test-u32-cmp.c: New file.
26563
26564         Tests for module 'unistr/u16-cmp'.
26565         * modules/unistr/u16-cmp-tests: New file.
26566         * tests/unistr/test-u16-cmp.c: New file.
26567
26568         Tests for module 'unistr/u8-cmp'.
26569         * modules/unistr/u8-cmp-tests: New file.
26570         * tests/unistr/test-u8-cmp.c: New file.
26571         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
26572
26573         Tests for module 'unistr/u32-set'.
26574         * modules/unistr/u32-set-tests: New file.
26575         * tests/unistr/test-u32-set.c: New file.
26576
26577         Tests for module 'unistr/u16-set'.
26578         * modules/unistr/u16-set-tests: New file.
26579         * tests/unistr/test-u16-set.c: New file.
26580
26581         Tests for module 'unistr/u8-set'.
26582         * modules/unistr/u8-set-tests: New file.
26583         * tests/unistr/test-u8-set.c: New file.
26584         * tests/unistr/test-set.h: New file.
26585
26586         Tests for module 'unistr/u32-move'.
26587         * modules/unistr/u32-move-tests: New file.
26588         * tests/unistr/test-u32-move.c: New file.
26589
26590         Tests for module 'unistr/u16-move'.
26591         * modules/unistr/u16-move-tests: New file.
26592         * tests/unistr/test-u16-move.c: New file.
26593
26594         Tests for module 'unistr/u8-move'.
26595         * modules/unistr/u8-move-tests: New file.
26596         * tests/unistr/test-u8-move.c: New file.
26597         * tests/unistr/test-move.h: New file.
26598
26599         Tests for module 'unistr/u32-cpy'.
26600         * modules/unistr/u32-cpy-tests: New file.
26601         * tests/unistr/test-u32-cpy.c: New file.
26602
26603         Tests for module 'unistr/u16-cpy'.
26604         * modules/unistr/u16-cpy-tests: New file.
26605         * tests/unistr/test-u16-cpy.c: New file.
26606
26607         Tests for module 'unistr/u8-cpy'.
26608         * modules/unistr/u8-cpy-tests: New file.
26609         * tests/unistr/test-u8-cpy.c: New file.
26610         * tests/unistr/test-cpy.h: New file.
26611
26612 2010-01-09  Bruno Haible  <bruno@clisp.org>
26613
26614         Tests for module 'unistr/u32-uctomb'.
26615         * modules/unistr/u32-uctomb-tests: New file.
26616         * tests/unistr/test-u32-uctomb.c: New file.
26617
26618         Tests for module 'unistr/u16-uctomb'.
26619         * modules/unistr/u16-uctomb-tests: New file.
26620         * tests/unistr/test-u16-uctomb.c: New file.
26621
26622         Tests for module 'unistr/u8-uctomb'.
26623         * modules/unistr/u8-uctomb-tests: New file.
26624         * tests/unistr/test-u8-uctomb.c: New file.
26625
26626         Tests for module 'unistr/u32-mbtoucr'.
26627         * modules/unistr/u32-mbtoucr-tests: New file.
26628         * tests/unistr/test-u32-mbtoucr.c: New file.
26629
26630         Tests for module 'unistr/u16-mbtoucr'.
26631         * modules/unistr/u16-mbtoucr-tests: New file.
26632         * tests/unistr/test-u16-mbtoucr.c: New file.
26633
26634         Tests for module 'unistr/u8-mbtoucr'.
26635         * modules/unistr/u8-mbtoucr-tests: New file.
26636         * tests/unistr/test-u8-mbtoucr.c: New file.
26637
26638         Tests for module 'unistr/u32-mbtouc'.
26639         * modules/unistr/u32-mbtouc-tests: New file.
26640         * tests/unistr/test-u32-mbtouc.c: New file.
26641
26642         Tests for module 'unistr/u16-mbtouc'.
26643         * modules/unistr/u16-mbtouc-tests: New file.
26644         * tests/unistr/test-u16-mbtouc.c: New file.
26645
26646         Tests for module 'unistr/u8-mbtouc'.
26647         * modules/unistr/u8-mbtouc-tests: New file.
26648         * tests/unistr/test-u8-mbtouc.c: New file.
26649
26650         Tests for module 'unistr/u32-mbtouc-unsafe'.
26651         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
26652         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
26653         * tests/unistr/test-u32-mbtouc.h: New file.
26654
26655         Tests for module 'unistr/u16-mbtouc-unsafe'.
26656         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
26657         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
26658         * tests/unistr/test-u16-mbtouc.h: New file.
26659
26660         Tests for module 'unistr/u8-mbtouc-unsafe'.
26661         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
26662         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
26663         * tests/unistr/test-u8-mbtouc.h: New file.
26664
26665         Tests for module 'unistr/u32-mblen'.
26666         * modules/unistr/u32-mblen-tests: New file.
26667         * tests/unistr/test-u32-mblen.c: New file.
26668
26669         Tests for module 'unistr/u16-mblen'.
26670         * modules/unistr/u16-mblen-tests: New file.
26671         * tests/unistr/test-u16-mblen.c: New file.
26672
26673         Tests for module 'unistr/u8-mblen'.
26674         * modules/unistr/u8-mblen-tests: New file.
26675         * tests/unistr/test-u8-mblen.c: New file.
26676
26677         Tests for module 'unistr/u32-to-u16'.
26678         * modules/unistr/u32-to-u16-tests: New file.
26679         * tests/unistr/test-u32-to-u16.c: New file.
26680
26681         Tests for module 'unistr/u32-to-u8'.
26682         * modules/unistr/u32-to-u8-tests: New file.
26683         * tests/unistr/test-u32-to-u8.c: New file.
26684
26685         Tests for module 'unistr/u16-to-u32'.
26686         * modules/unistr/u16-to-u32-tests: New file.
26687         * tests/unistr/test-u16-to-u32.c: New file.
26688
26689         Tests for module 'unistr/u16-to-u8'.
26690         * modules/unistr/u16-to-u8-tests: New file.
26691         * tests/unistr/test-u16-to-u8.c: New file.
26692
26693         Tests for module 'unistr/u8-to-u32'.
26694         * modules/unistr/u8-to-u32-tests: New file.
26695         * tests/unistr/test-u8-to-u32.c: New file.
26696
26697         Tests for module 'unistr/u8-to-u16'.
26698         * modules/unistr/u8-to-u16-tests: New file.
26699         * tests/unistr/test-u8-to-u16.c: New file.
26700
26701         Tests for module 'unistr/u32-check'.
26702         * modules/unistr/u32-check-tests: New file.
26703         * tests/unistr/test-u32-check.c: New file.
26704
26705         Tests for module 'unistr/u16-check'.
26706         * modules/unistr/u16-check-tests: New file.
26707         * tests/unistr/test-u16-check.c: New file.
26708
26709         Tests for module 'unistr/u8-check'.
26710         * modules/unistr/u8-check-tests: New file.
26711         * tests/unistr/test-u8-check.c: New file.
26712
26713         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
26714         (category_equals): New function.
26715         (main): Add more tests.
26716         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
26717
26718         * tests/unictype/test-bidi_byname.c (main): Add more tests.
26719
26720 2010-01-10  Bruno Haible  <bruno@clisp.org>
26721
26722         unistr/u*-strcoll: Try harder to distinguish different strings.
26723         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
26724         compare s1 and s2 to see if they are different.
26725
26726 2010-01-10  Bruno Haible  <bruno@clisp.org>
26727
26728         unistr/u*-stpncpy: Fix the return value.
26729         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
26730         description of the return value consistent with stpncpy in glibc.
26731         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
26732         written non-NUL unit.
26733
26734 2010-01-10  Bruno Haible  <bruno@clisp.org>
26735
26736         unistr/u*-next: Add missing dependencies.
26737         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
26738         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
26739         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
26740
26741 2010-01-10  Bruno Haible  <bruno@clisp.org>
26742
26743         unistr/u8-mbsnlen: Fix return value for incomplete character.
26744         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
26745         u8_mblen.
26746         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
26747         Remove unistr/u8-mblen.
26748         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
26749         u16_mblen.
26750         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
26751         Remove unistr/u16-mblen.
26752
26753 2010-01-10  Bruno Haible  <bruno@clisp.org>
26754
26755         wchar: Fix compilation error when <wchar.h> is used from coreutils.
26756         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
26757         Reported by Brian Gough <bjg@gnu.org> and
26758         Chris Clayton <chris2553@googlemail.com> via
26759         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
26760
26761 2010-01-09  Bruno Haible  <bruno@clisp.org>
26762
26763         unistr/u16-to-u32: Reject invalid input.
26764         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
26765         u16_mbtouc.
26766         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
26767         Remove unistr/u16-mbtouc.
26768
26769         unistr/u16-to-u8: Reject invalid input.
26770         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
26771         u16_mbtouc.
26772         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
26773         Remove unistr/u16-mbtouc.
26774
26775         unistr/u8-to-u32: Reject invalid input.
26776         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
26777         u8_mbtouc.
26778         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
26779         Remove unistr/u8-mbtouc.
26780
26781         unistr/u8-to-u16: Reject invalid input.
26782         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
26783         u8_mbtouc.
26784         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
26785         Remove unistr/u8-mbtouc.
26786
26787 2010-01-09  Bruno Haible  <bruno@clisp.org>
26788
26789         Tests for module 'getlogin'.
26790         * modules/getlogin-tests: New file.
26791         * tests/test-getlogin.c: New file.
26792
26793         New module 'getlogin'.
26794         * lib/unistd.in.h (getlogin): New declaration.
26795         * lib/getlogin.c: New file.
26796         * m4/getlogin.m4: New file.
26797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
26798         HAVE_GETLOGIN.
26799         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
26800         HAVE_GETLOGIN.
26801         * modules/getlogin: New file.
26802         * doc/posix-functions/getlogin.texi: Mention the new module.
26803         Reported by John W. Eaton <jwe@gnu.org>.
26804
26805 2010-01-09  Bruno Haible  <bruno@clisp.org>
26806
26807         getlogin_r: Support for native Windows.
26808         * lib/getlogin_r.c: Include <windows.h>
26809         (getlogin_r): Implement for native Windows.
26810         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
26811         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
26812         via John W. Eaton <jwe@gnu.org>.
26813
26814 2010-01-09  Bruno Haible  <bruno@clisp.org>
26815
26816         getlogin_r: Small fixes.
26817         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
26818         succeeds.
26819         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
26820         before testing whether getlogin_r is declared. No need to set
26821         HAVE_DECL_GETLOGIN_R to 1.
26822         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
26823
26824 2010-01-09  Bruno Haible  <bruno@clisp.org>
26825
26826         * lib/unistd.in.h (getlogin_r): Add comment.
26827
26828 2010-01-09  Bruno Haible  <bruno@clisp.org>
26829
26830         Tests for module 'getlogin_r'.
26831         * modules/getlogin_r-tests: New file.
26832         * tests/test-getlogin_r.c: New file.
26833
26834 2010-01-09  Jim Meyering  <meyering@redhat.com>
26835
26836         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
26837         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
26838         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
26839
26840 2010-01-08  Simon Josefsson  <simon@josefsson.org>
26841
26842         * lib/dup2.c (rpl_dup2): Improve comment.
26843
26844 2010-01-08  Eric Blake  <ebb9@byu.net>
26845
26846         maint.mk: allow packages to add makefile @@ exceptions
26847         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
26848         (sc_makefile_check): Rename...
26849         (sc_makefile_at_at_check): ...to this, and use hook.
26850
26851         dup2: work around mingw bug
26852         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
26853         Reported by Simon Josefsson.
26854
26855 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
26856
26857         glob: Fix C++ compilation.
26858         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
26859         C++.
26860
26861 2010-01-07  Bruno Haible  <bruno@clisp.org>
26862
26863         Fix indentation of wctype.in.h, broken since 2007-01-06.
26864         * lib/wctype.in.h: Fix indentation of preprocessor directives.
26865
26866 2010-01-07  Bruno Haible  <bruno@clisp.org>
26867
26868         mbslen: Avoid collision with system function.
26869         * lib/string.in.h [MirBSD]: Include <wchar.h>.
26870         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
26871         * m4/mbslen.m4: New file.
26872         * modules/mbslen (Files): Add it.
26873         (configure.ac): Invoke gl_MBSLEN.
26874         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
26875         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
26876         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
26877         via Ian Beckwith <ianb@erislabs.net>.
26878
26879 2010-01-07  Bruno Haible  <bruno@clisp.org>
26880
26881         dirent: Document the last fix.
26882         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
26883
26884 2010-01-07  Bruno Haible  <bruno@clisp.org>
26885
26886         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
26887         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
26888         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
26889         va_list are defined.
26890         * doc/posix-headers/stdio.texi: Document the bug of missing types.
26891         Reported by Eric Blake.
26892
26893 2010-01-07  Bruno Haible  <bruno@clisp.org>
26894
26895         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
26896         * modules/xlist (Depends-on): Add 'list',
26897         * modules/xoset (Depends-on): Add 'oset'.
26898         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26899
26900 2010-01-07  Bruno Haible  <bruno@clisp.org>
26901
26902         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
26903         * doc/posix-functions/strncasecmp.texi: Likewise.
26904
26905 2010-01-07  Bruno Haible  <bruno@clisp.org>
26906
26907         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
26908
26909 2010-01-07  John W. Eaton  <jwe@octave.org>
26910
26911         wctype: allow C++ use
26912         * lib/wctype.in.h: Add extern "C" block for C++.
26913
26914 2010-01-06  Eric Blake  <ebb9@byu.net>
26915
26916         maint.mk: detect incorrect GFDL usage
26917         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
26918
26919 2010-01-06  Jim Meyering  <meyering@redhat.com>
26920         and Eric Blake  <ebb9@byu.net>
26921
26922         maint.mk: ignore multi-line copyright in NEWS
26923         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
26924
26925 2010-01-06  Eric Blake  <ebb9@byu.net>
26926
26927         select: add missing dependency
26928         * modules/select-tests (Depends-on): Move sockets dependency...
26929         * modules/select (Depends-on): ...here.
26930         Reported by Ian Beckwith.
26931
26932         doc: regenerate INSTALL
26933         * doc/INSTALL: Reflect recent autoconf update.
26934         * doc/INSTALL.ISO: Likewise.
26935         * doc/INSTALL.UTF-8: Likewise.
26936
26937         pread: fix compilation on glibc
26938         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
26939         Reported by Ralf Wildenhues.
26940
26941         dirent: fix test failure
26942         * lib/dirent.in.h (includes): Guarantee ino_t.
26943         Reported by Ralf Wildenhues.
26944
26945 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
26946
26947         linkat, renameat: avoid bad free
26948         * lib/at-func2.c (at_func2): Fix typo.
26949         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
26950
26951 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26952
26953         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
26954         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
26955         to avoid failure of symlink test later.
26956
26957 2010-01-06  Eric Blake  <ebb9@byu.net>
26958
26959         stdio, unistd: guarantee ssize_t
26960         * lib/unistd.in.h (includes): Ensure that types required by POSIX
26961         2008 are exposed when needed.
26962         * lib/stdio.in.h (includes): Likewise.
26963         Reported by Ralf Wildenhues.
26964
26965 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
26966
26967         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
26968         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
26969         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
26970
26971 2010-01-06  Jim Meyering  <meyering@redhat.com>
26972
26973         readtokens: this module *does* require xalloc.h
26974         It uses only functions that were omitted by the old syntax-check rule.
26975         * lib/readtokens.c: Include "xalloc.h" once again.
26976         * modules/readtokens (Depends-on): Add xalloc.
26977         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
26978
26979 2010-01-05  Eric Blake  <ebb9@byu.net>
26980
26981         maint: support 'make announcement' from a VPATH build
26982         * top/maint.mk (announcement): Look for correct NEWS file.
26983
26984 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
26985
26986         utimens (fdutimens): ignore a negative FD, per contract
26987         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
26988         when we have a valid file descriptor.  Otherwise, using a brand
26989         new glibc (with just-patched futimens that now fails with EBADF)
26990         would cause this function to fail with ENOSYS.
26991         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
26992         See also http://bugzilla.redhat.com/552320.
26993
26994 2010-01-05  Eric Blake  <ebb9@byu.net>
26995
26996         strcase: document what it provides
26997         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
26998         gnulib module.
26999         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
27000         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
27001
27002 2010-01-05  Jim Meyering  <meyering@redhat.com>
27003
27004         maint: remove useless inclusions of "xalloc.h"
27005         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
27006         * lib/readtokens.c: Likewise.
27007         * lib/same.c: Likewise.
27008         * modules/getloadavg (Depends-on): Remove xalloc.
27009         * modules/readtokens: Likewise.
27010         * modules/same: Likewise.
27011
27012         maint.mk: include 4 more function names in alloca.h-checking regexp
27013         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
27014         regexp.  Before, we would give a false-positive (saying alloca.h
27015         is included unnecessarily) when the only uses involved omitted symbols.
27016
27017         xalloc.h: use consistent formatting
27018         * lib/xalloc.h: Move declarations to start in the first column.
27019
27020 2010-01-05  Eric Blake  <ebb9@byu.net>
27021
27022         mkdir: avoid xalloc
27023         * lib/mkdir.c (includes): Drop unused header.
27024         Reported by John W. Eaton.
27025
27026 2010-01-04  Jim Meyering  <meyering@redhat.com>
27027
27028         nl_langinfo: avoid configure-time syntax error
27029         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
27030         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
27031         the empty string.  Don't let that provoke a shell syntax error.
27032
27033         regcomp, regexec, fnmatch: avoid array bounds read error
27034         * lib/regcomp.c (build_equiv_class): From glibc:
27035         Use only the low 24 bits of a findidx return value as an index
27036         into the weights array.  Patch by Ulrich Drepper:
27037         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
27038         * lib/regexec.c (check_node_accept_bytes): Likewise.
27039         * lib/fnmatch_loop.c (FCT): Likewise.
27040
27041         regcomp: skip collseq lookup when there are no rules
27042         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
27043         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
27044
27045         regcomp: recognize ill-formed { } expressions
27046         * lib/regcomp.c (parse_dup_op): From glibc:
27047         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
27048
27049         regcomp: fix typo in comment
27050         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
27051         s/satisfy/satisfies/.
27052
27053         regcomp: sync from glibc: remove dead store
27054         * lib/regcomp.c (duplicate_node_closure): Remove useless
27055         search_duplicated_node call and dead store.
27056
27057         regcomp: sync from glibc; always use nl_langinfo
27058         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
27059         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
27060         * modules/regex (Depends-on): Add nl_langinfo.
27061
27062 2010-01-04  Eric Blake  <ebb9@byu.net>
27063
27064         fdopendir: fix configure test
27065         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
27066
27067 2010-01-01  Bruno Haible  <bruno@clisp.org>
27068
27069         wchar: Remove unused configure check.
27070         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
27071
27072 2010-01-01  Eric Blake  <ebb9@byu.net>
27073
27074         headers: make check of system header explicit
27075         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
27076         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
27077         ourselves.
27078         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27079         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27080         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
27081         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
27082         internals.
27083         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
27084         missing.
27085         Suggested by Bruno Haible.
27086
27087 2010-01-01  Jim Meyering  <meyering@redhat.com>
27088
27089         ChangeLog: tweak to eliminate unnecessary copyright line
27090         * ChangeLog: Remove a copyright line that was mistakenly updated
27091         by today's update-copyright run.  Reported by Eric Blake.
27092
27093         test-update-copyright: don't let envvar setting cause test failure
27094         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
27095
27096 2010-01-01  Bruno Haible  <bruno@clisp.org>
27097
27098         localename: Avoid gcc warning.
27099         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
27100         function if it is not used.
27101
27102 2010-01-01  Jim Meyering  <meyering@redhat.com>
27103
27104         update nearly all FSF copyright year lists to include 2010
27105         Use the same procedure as for 2009, outlined in
27106         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
27107
27108         version-etc: set COPYRIGHT_YEAR to 2010
27109         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
27110
27111 2009-12-31  Eric Blake  <ebb9@byu.net>
27112
27113         doc: correct availability of cygwin 1.5.x getopt
27114         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
27115         variables.
27116         * doc/posix-functions/opterr.texi (opterr): Likewise.
27117         * doc/posix-functions/optind.texi (optind): Likewise.
27118         * doc/posix-functions/optopt.texi (optopt): Likewise.
27119         * doc/posix-functions/tzname.texi (tzname): Likewise.
27120
27121         openat: update maintainer
27122         * modules/openat (Maintainer): Add myself.
27123
27124         utimens: avoid shadowing warning
27125         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
27126         buffers into one, to avoid shadowing, as well as avoiding a
27127         redundant stat.
27128         Reported by Jim Meyering.
27129
27130         test-dup2: avoid compiler warning
27131         * tests/test-dup2.c (is_inheritable): Only define if used.
27132
27133 2010-01-01  Bruno Haible  <bruno@clisp.org>
27134
27135         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
27136         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
27137         defined, use wctomb instead of wcrtomb.
27138
27139 2010-01-01  Bruno Haible  <bruno@clisp.org>
27140
27141         iconv: Reject native Solaris iconv.
27142         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
27143         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
27144
27145 2009-12-31  Bruno Haible  <bruno@clisp.org>
27146
27147         * tests/test-signal.c (main): Remove test of 'SIG'.
27148
27149 2009-12-31  Bruno Haible  <bruno@clisp.org>
27150
27151         spawn: Fix incomplete fix.
27152         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
27153         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
27154         warnings for GNULIB_POSIXCHECK again.
27155         Reported by Eric Blake.
27156
27157 2009-12-31  Bruno Haible  <bruno@clisp.org>
27158
27159         Avoid namespace pollution on glibc systems.
27160         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
27161         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
27162         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
27163         glibc systems.
27164
27165 2009-12-31  Bruno Haible  <bruno@clisp.org>
27166
27167         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
27168         (gl_REPLACE_WCHAR_H): Turn into a no-op.
27169         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
27170         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
27171         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
27172         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
27173         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
27174
27175 2009-12-31  Bruno Haible  <bruno@clisp.org>
27176
27177         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27178         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
27179         afterwards.
27180
27181 2009-12-31  Bruno Haible  <bruno@clisp.org>
27182
27183         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
27184         SYS_UTSNAME_H.
27185
27186 2009-12-31  Bruno Haible  <bruno@clisp.org>
27187
27188         spawn: Fix misapplied patch.
27189         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
27190         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
27191         warnings for GNULIB_POSIXCHECK.
27192
27193 2009-12-31  Bruno Haible  <bruno@clisp.org>
27194
27195         times: Update after sys_times changed.
27196         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
27197         * modules/times (Files): Add it.
27198         (configure.ac): Invoke gl_FUNC_TIMES.
27199
27200 2009-12-31  Bruno Haible  <bruno@clisp.org>
27201
27202         Use AC_C_INLINE where necessary.
27203         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
27204         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27205         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
27206         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
27207         * m4/mbfile.m4 (gl_MBFILE): Likewise.
27208         * m4/mbiter.m4 (gl_MBITER): Likewise.
27209         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
27210         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27211         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
27212         * modules/u64 (configure.ac): Likewise.
27213
27214 2009-12-31  Bruno Haible  <bruno@clisp.org>
27215
27216         Use AC_C_INLINE instead of module 'inline' where possible.
27217         * modules/inline (Description): Clarify purpose.
27218         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
27219         * modules/count-one-bits (Depends-on): Remove inline.
27220         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
27221         * modules/openat (Depends-on): Remove inline.
27222         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
27223         instead of depending on module 'inline'.
27224         * modules/filevercmp (Depends-on, configure.ac): Likewise.
27225         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
27226         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
27227         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
27228         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
27229         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
27230         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
27231         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
27232         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
27233         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
27234         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
27235         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
27236         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
27237         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
27238         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
27239         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
27240         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
27241         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
27242         Likewise.
27243         * modules/unictype/property-ascii-hex-digit (Depends-on,
27244         configure.ac): Likewise.
27245         * modules/unictype/property-bidi-arabic-digit (Depends-on,
27246         configure.ac): Likewise.
27247         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
27248         configure.ac): Likewise.
27249         * modules/unictype/property-bidi-block-separator (Depends-on,
27250         configure.ac): Likewise.
27251         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
27252         configure.ac): Likewise.
27253         * modules/unictype/property-bidi-common-separator (Depends-on,
27254         configure.ac): Likewise.
27255         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
27256         Likewise.
27257         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
27258         configure.ac): Likewise.
27259         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
27260         configure.ac): Likewise.
27261         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
27262         configure.ac): Likewise.
27263         * modules/unictype/property-bidi-european-digit (Depends-on,
27264         configure.ac): Likewise.
27265         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
27266         configure.ac): Likewise.
27267         * modules/unictype/property-bidi-left-to-right (Depends-on,
27268         configure.ac): Likewise.
27269         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
27270         configure.ac): Likewise.
27271         * modules/unictype/property-bidi-other-neutral (Depends-on,
27272         configure.ac): Likewise.
27273         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
27274         Likewise.
27275         * modules/unictype/property-bidi-segment-separator (Depends-on,
27276         configure.ac): Likewise.
27277         * modules/unictype/property-bidi-whitespace (Depends-on,
27278         configure.ac): Likewise.
27279         * modules/unictype/property-combining (Depends-on, configure.ac):
27280         Likewise.
27281         * modules/unictype/property-composite (Depends-on, configure.ac):
27282         Likewise.
27283         * modules/unictype/property-currency-symbol (Depends-on,
27284         configure.ac): Likewise.
27285         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
27286         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
27287         Likewise.
27288         * modules/unictype/property-default-ignorable-code-point (Depends-on,
27289         configure.ac): Likewise.
27290         * modules/unictype/property-deprecated (Depends-on, configure.ac):
27291         Likewise.
27292         * modules/unictype/property-diacritic (Depends-on, configure.ac):
27293         Likewise.
27294         * modules/unictype/property-extender (Depends-on, configure.ac):
27295         Likewise.
27296         * modules/unictype/property-format-control (Depends-on, configure.ac):
27297         Likewise.
27298         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
27299         Likewise.
27300         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
27301         Likewise.
27302         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
27303         Likewise.
27304         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
27305         Likewise.
27306         * modules/unictype/property-hyphen (Depends-on, configure.ac):
27307         Likewise.
27308         * modules/unictype/property-id-continue (Depends-on, configure.ac):
27309         Likewise.
27310         * modules/unictype/property-id-start (Depends-on, configure.ac):
27311         Likewise.
27312         * modules/unictype/property-ideographic (Depends-on, configure.ac):
27313         Likewise.
27314         * modules/unictype/property-ids-binary-operator (Depends-on,
27315         configure.ac): Likewise.
27316         * modules/unictype/property-ids-trinary-operator (Depends-on,
27317         configure.ac): Likewise.
27318         * modules/unictype/property-ignorable-control (Depends-on,
27319         configure.ac): Likewise.
27320         * modules/unictype/property-iso-control (Depends-on, configure.ac):
27321         Likewise.
27322         * modules/unictype/property-join-control (Depends-on, configure.ac):
27323         Likewise.
27324         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
27325         Likewise.
27326         * modules/unictype/property-line-separator (Depends-on, configure.ac):
27327         Likewise.
27328         * modules/unictype/property-logical-order-exception (Depends-on,
27329         configure.ac): Likewise.
27330         * modules/unictype/property-lowercase (Depends-on, configure.ac):
27331         Likewise.
27332         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
27333         * modules/unictype/property-non-break (Depends-on, configure.ac):
27334         Likewise.
27335         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
27336         Likewise.
27337         * modules/unictype/property-numeric (Depends-on, configure.ac):
27338         Likewise.
27339         * modules/unictype/property-other-alphabetic (Depends-on,
27340         configure.ac): Likewise.
27341         * modules/unictype/property-other-default-ignorable-code-point
27342         (Depends-on, configure.ac): Likewise.
27343         * modules/unictype/property-other-grapheme-extend (Depends-on,
27344         configure.ac): Likewise.
27345         * modules/unictype/property-other-id-continue (Depends-on,
27346         configure.ac): Likewise.
27347         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
27348         Likewise.
27349         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
27350         Likewise.
27351         * modules/unictype/property-other-math (Depends-on, configure.ac):
27352         Likewise.
27353         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
27354         Likewise.
27355         * modules/unictype/property-paired-punctuation (Depends-on,
27356         configure.ac): Likewise.
27357         * modules/unictype/property-paragraph-separator (Depends-on,
27358         configure.ac): Likewise.
27359         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
27360         Likewise.
27361         * modules/unictype/property-pattern-white-space (Depends-on,
27362         configure.ac): Likewise.
27363         * modules/unictype/property-private-use (Depends-on, configure.ac):
27364         Likewise.
27365         * modules/unictype/property-punctuation (Depends-on, configure.ac):
27366         Likewise.
27367         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
27368         Likewise.
27369         * modules/unictype/property-radical (Depends-on, configure.ac):
27370         Likewise.
27371         * modules/unictype/property-sentence-terminal (Depends-on,
27372         configure.ac): Likewise.
27373         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
27374         Likewise.
27375         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
27376         * modules/unictype/property-terminal-punctuation (Depends-on,
27377         configure.ac): Likewise.
27378         * modules/unictype/property-titlecase (Depends-on, configure.ac):
27379         Likewise.
27380         * modules/unictype/property-unassigned-code-value (Depends-on,
27381         configure.ac): Likewise.
27382         * modules/unictype/property-unified-ideograph (Depends-on,
27383         configure.ac): Likewise.
27384         * modules/unictype/property-uppercase (Depends-on, configure.ac):
27385         Likewise.
27386         * modules/unictype/property-variation-selector (Depends-on,
27387         configure.ac): Likewise.
27388         * modules/unictype/property-white-space (Depends-on, configure.ac):
27389         Likewise.
27390         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
27391         Likewise.
27392         * modules/unictype/property-xid-start (Depends-on, configure.ac):
27393         Likewise.
27394         * modules/unictype/property-zero-width (Depends-on, configure.ac):
27395         Likewise.
27396         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
27397         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
27398         Likewise.
27399
27400 2009-12-31  Bruno Haible  <bruno@clisp.org>
27401
27402         Remove unnecessary AC_C_INLINE invocation.
27403         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
27404         since 2009-08-21.
27405
27406 2009-12-31  Jim Meyering  <meyering@redhat.com>
27407
27408         maint.mk: don't require explicit gpg_key_ID in cfg.mk
27409         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
27410         With this change, we can all remove the gpg_key_ID = ... definition
27411         from our respective cfg.mk files.
27412
27413         maint.mk: create announcement template in ~/, not in /tmp
27414         * top/maint.mk (emit_upload_commands): Adjust.
27415         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
27416         Remove temporary file, .ci-msg.
27417
27418 2009-12-31  Eric Blake  <ebb9@byu.net>
27419
27420         link-warning: always build headers with link warnings
27421         * modules/arpa_inet (Makefile.am): Always build replacement
27422         header.
27423         * modules/ctype (Makefile.am): Likewise.
27424         * modules/dirent (Makefile.am): Likewise.
27425         * modules/inttypes (Makefile.am): Likewise.
27426         * modules/langinfo (Makefile.am): Likewise.
27427         * modules/locale (Makefile.am): Likewise.
27428         * modules/spawn (Makefile.am): Likewise.
27429         * modules/sys_file (Makefile.am): Likewise.
27430         * modules/sys_ioctl (Makefile.am): Likewise.
27431         * modules/sys_select (Makefile.am): Likewise.
27432         * modules/sys_socket (Makefile.am): Likewise.
27433         * modules/sys_times (Makefile.am): Likewise.
27434         * modules/sys_utsname (Makefile.am): Likewise.
27435         * modules/sys_wait (Makefile.am): Likewise.
27436         * modules/wchar (Makefile.am): Likewise.
27437         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
27438         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
27439         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
27440         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
27441         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
27442         Likewise.
27443         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27444         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27445         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
27446         Likewise.
27447         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
27448         Likewise.
27449         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
27450         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
27451         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
27452         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27453         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27454         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
27455         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
27456         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
27457         (gl_WCHAR_H_DEFAULTS): Likewise.
27458
27459 2009-12-31  Eric Blake  <ebb9@byu.net>
27460
27461         signal, spawn: use link warnings
27462         * lib/signal.in.h (sigset_t): Make unconditional.
27463         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
27464         (sigpending, sigprocmask, sigaction): Add link warnings.
27465         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
27466         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
27467         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
27468         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
27469         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
27470         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
27471         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
27472         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
27473         (posix_spawn_file_actions_destroy)
27474         (posix_spawn_file_actions_addopen)
27475         (posix_spawn_file_actions_addclose)
27476         (posix_spawn_file_actions_adddup2): Likewise.
27477         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
27478         * tests/test-signal.c (main): Enhance test.
27479
27480         spawn: improve wrapper support
27481         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
27482         (gl_SPAWN_H_DEFAULTS): New defaults.
27483         * modules/spawn (Makefile.am): Substitute them.
27484         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
27485         Only declare if missing or broken.
27486
27487         sys_times, sys_utsname: use include_next
27488         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
27489         header.
27490         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
27491         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
27492         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
27493         * modules/sys_times (Depends-on): Add include_next.
27494         (Makefile.am): Substitute additional values.
27495         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27496         * lib/sys_times.in.h (includes): Include native header, if
27497         available.
27498         * lib/sys_utsname.in.h (includes): Likewise.
27499         * tests/test-sys_times.c (main): Enhance test.
27500
27501         fdutimensat: revert prior patch
27502         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
27503         utimens.h.
27504         Reported by Bruno Haible.
27505
27506 2009-12-30  Eric Blake  <ebb9@byu.net>
27507
27508         sys_wait: drop link-warning dependency
27509         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
27510         link-warning efforts.
27511         * lib/sys_wait.in.h: Likewise.
27512
27513         fdutimensat: remove bogus dependency
27514         * modules/fdutimensat (Depends-on): Drop inline.
27515
27516         unistd: fix typo
27517         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
27518
27519 2009-12-30  Bruno Haible  <bruno@clisp.org>
27520
27521         Fix compilation error with Solaris cc.
27522         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
27523         * lib/unicase/u16-is-invariant.c: Likewise.
27524         * lib/unicase/u32-is-invariant.c: Likewise.
27525         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
27526
27527 2009-12-30  Bruno Haible  <bruno@clisp.org>
27528
27529         Fix test crash.
27530         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
27531         locales.
27532         Reported by Simon Josefsson <simon@josefsson.org>.
27533
27534 2009-12-30  Bruno Haible  <bruno@clisp.org>
27535
27536         Fix compilation error on most platforms.
27537         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
27538         Reported by Simon Josefsson <simon@josefsson.org>
27539         and Nelson H. F. Beebe <beebe@math.utah.edu>.
27540
27541 2009-12-30  Eric Blake  <ebb9@byu.net>
27542
27543         futimens, utimensat: work around ntfs-3g bug
27544         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
27545         a ctime bug is present, and expand workaround to cover ntfs-3g.
27546         * lib/utimens.c (fdutimens, lutimens): Likewise.
27547         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
27548         (validate_timespec): Adjust return value.
27549         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
27550         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27551         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
27552
27553 2009-12-29  Eric Blake  <ebb9@byu.net>
27554
27555         link-warning: make usage consistent
27556         * modules/ctype (Depends-on): Add link-warning.
27557         (Makefile.am): Update rules accordingly.
27558         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27559         * modules/locale (Depends-on, Makefile.am): Likewise.
27560         * modules/sys_file (Makefile.am): Likewise.
27561         * modules/getopt-posix (Makefile.am): Delete unused link warning
27562         efforts.
27563         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
27564         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
27565         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
27566         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
27567
27568         stdio: remove unused variables
27569         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
27570         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
27571         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27572
27573         tests: test more substitute headers
27574         * modules/ctype-tests: New file.
27575         * modules/dirent-tests: Likewise.
27576         * modules/spawn-tests: Likewise.
27577         * modules/sys_file-tests: Likewise.
27578         * modules/sys_ioctl-tests: Likewise.
27579         * modules/sys_wait-tests: Likewise.
27580         * tests/test-ctype.c: Likewise.
27581         * tests/test-dirent.c: Likewise.
27582         * tests/test-spawn.c: Likewise.
27583         * tests/test-sys_file.c: Likewise.
27584         * tests/test-sys_ioctl.c: Likewise.
27585         * tests/test-sys_wait.c: Likewise.
27586         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
27587         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
27588         whether or not flock is in use.
27589
27590         tests: remove License section from module
27591         * modules/arpa_inet-tests: Remove unneeded section.
27592         * modules/byteswap-tests: Likewise.
27593         * modules/ceilf-tests: Likewise.
27594         * modules/ceill-tests: Likewise.
27595         * modules/crypto/des-tests: Likewise.
27596         * modules/crypto/gc-arcfour-tests: Likewise.
27597         * modules/crypto/gc-arctwo-tests: Likewise.
27598         * modules/crypto/gc-des-tests: Likewise.
27599         * modules/crypto/gc-hmac-md5-tests: Likewise.
27600         * modules/crypto/gc-hmac-sha1-tests: Likewise.
27601         * modules/crypto/gc-md2-tests: Likewise.
27602         * modules/crypto/gc-md4-tests: Likewise.
27603         * modules/crypto/gc-md5-tests: Likewise.
27604         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
27605         * modules/crypto/gc-rijndael-tests: Likewise.
27606         * modules/crypto/gc-sha1-tests: Likewise.
27607         * modules/crypto/gc-tests: Likewise.
27608         * modules/crypto/md2-tests: Likewise.
27609         * modules/crypto/md4-tests: Likewise.
27610         * modules/fcntl-h-tests: Likewise.
27611         * modules/floorf-tests: Likewise.
27612         * modules/floorl-tests: Likewise.
27613         * modules/frexp-nolibm-tests: Likewise.
27614         * modules/frexp-tests: Likewise.
27615         * modules/frexpl-nolibm-tests: Likewise.
27616         * modules/frexpl-tests: Likewise.
27617         * modules/getaddrinfo-tests: Likewise.
27618         * modules/inttypes-tests: Likewise.
27619         * modules/isfinite-tests: Likewise.
27620         * modules/isinf-tests: Likewise.
27621         * modules/ldexpl-tests: Likewise.
27622         * modules/locale-tests: Likewise.
27623         * modules/math-tests: Likewise.
27624         * modules/netdb-tests: Likewise.
27625         * modules/netinet_in-tests: Likewise.
27626         * modules/printf-frexp-tests: Likewise.
27627         * modules/printf-frexpl-tests: Likewise.
27628         * modules/priv-set-tests: Likewise.
27629         * modules/random_r-tests: Likewise.
27630         * modules/round-tests: Likewise.
27631         * modules/roundf-tests: Likewise.
27632         * modules/roundl-tests: Likewise.
27633         * modules/search-tests: Likewise.
27634         * modules/select-tests: Likewise.
27635         * modules/signal-tests: Likewise.
27636         * modules/stdbool-tests: Likewise.
27637         * modules/stddef-tests: Likewise.
27638         * modules/stdint-tests: Likewise.
27639         * modules/stdio-tests: Likewise.
27640         * modules/stdlib-tests: Likewise.
27641         * modules/string-tests: Likewise.
27642         * modules/strings-tests: Likewise.
27643         * modules/sys_select-tests: Likewise.
27644         * modules/sys_socket-tests: Likewise.
27645         * modules/sys_stat-tests: Likewise.
27646         * modules/sys_time-tests: Likewise.
27647         * modules/sys_utsname-tests: Likewise.
27648         * modules/sysexits-tests: Likewise.
27649         * modules/time-tests: Likewise.
27650         * modules/trunc-tests: Likewise.
27651         * modules/truncf-tests: Likewise.
27652         * modules/truncl-tests: Likewise.
27653         * modules/tsearch-tests: Likewise.
27654         * modules/unistd-tests: Likewise.
27655         * modules/wchar-tests: Likewise.
27656         * modules/wctype-tests: Likewise.
27657
27658         tests: fix license on several tests
27659         * tests/test-des.c: Update to GPLv3+.
27660         * tests/test-flock.c: Likewise.
27661         * tests/test-fsync.c: Likewise.
27662         * tests/test-futimens.h: Likewise.
27663         * tests/test-gc-arcfour.c: Likewise.
27664         * tests/test-gc-arctwo.c: Likewise.
27665         * tests/test-gc-des.c: Likewise.
27666         * tests/test-gc-hmac-md5.c: Likewise.
27667         * tests/test-gc-hmac-sha1.c: Likewise.
27668         * tests/test-gc-md2.c: Likewise.
27669         * tests/test-gc-md4.c: Likewise.
27670         * tests/test-gc-md5.c: Likewise.
27671         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27672         * tests/test-gc-rijndael.c: Likewise.
27673         * tests/test-gc-sha1.c: Likewise.
27674         * tests/test-gc.c: Likewise.
27675         * tests/test-getcwd.c: Likewise.
27676         * tests/test-link.c: Likewise.
27677         * tests/test-link.h: Likewise.
27678         * tests/test-lutimens.h: Likewise.
27679         * tests/test-md2.c: Likewise.
27680         * tests/test-md4.c: Likewise.
27681         * tests/test-mkdir.h: Likewise.
27682         * tests/test-rename.c: Likewise.
27683         * tests/test-rename.h: Likewise.
27684         * tests/test-safe-alloc.c: Likewise.
27685         * tests/test-utimens-common.h: Likewise.
27686         * tests/test-utimens.h: Likewise.
27687
27688         maint: sync license texts
27689         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
27690         * doc/gpl-3.0.texi: Revert copyright year update.
27691         * doc/lgpl-3.0.texi: Likewise.
27692
27693 2009-12-29  Jim Meyering  <meyering@redhat.com>
27694
27695         update nearly all FSF copyright year lists to include 2009
27696         The files named by the following are exempted:
27697             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
27698               test -f "$dst" && { echo "$dst"; continue; }
27699               test -d "$dst" || continue
27700               echo "$dst"/$(basename "$src")
27701             done > exempt
27702             git ls-files tests/unictype >> exempt
27703         In the remaining files, convert to all-interval notation if
27704         - there is already at least one year interval like 2000-2003
27705         - the file is maintained by me
27706         - the file is in lib/uni*/, where that style already prevails
27707         Otherwise, use update-copyright's default.
27708
27709 2009-12-29  Simon Josefsson  <simon@josefsson.org>
27710         and Eric Blake  <ebb9@byu.net>
27711
27712         tests: don't require debug system() to pass
27713         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
27714         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27715         * tests/test-unlink.h (test_unlink_func): Likewise.
27716         * tests/test-fstatat.c (main): ...into callers.
27717         * tests/test-lstat.c (main): Likewise.
27718         * tests/test-rmdir.c (main): Likewise.
27719         * tests/test-unlink.c (main): Likewise.
27720         * tests/test-unlinkat.c (main): Likewise.
27721         * tests/test-areadlink-with-size.c (main): Don't require a
27722         debug-only system call to pass, aiding cross-testing to mingw.
27723         * tests/test-areadlink.c (main): Likewise.
27724         * tests/test-areadlinkat-with-size.c (main): Likewise.
27725         * tests/test-areadlinkat.c (main): Likewise.
27726         * tests/test-canonicalize-lgpl.c (main): Likewise.
27727         * tests/test-canonicalize.c (main): Likewise.
27728         * tests/test-chown.c (main): Likewise.
27729         * tests/test-fchownat.c (main): Likewise.
27730         * tests/test-lchown.c (main): Likewise.
27731         * tests/test-fdutimensat.c (main): Likewise.
27732         * tests/test-futimens.c (main): Likewise.
27733         * tests/test-link.c (main): Likewise.
27734         * tests/test-linkat.c (main): Likewise.
27735         * tests/test-mkdir.c (main): Likewise.
27736         * tests/test-mkdirat.c (main): Likewise.
27737         * tests/test-mkfifo.c (main): Likewise.
27738         * tests/test-mkfifoat.c (main): Likewise.
27739         * tests/test-mknod.c (main): Likewise.
27740         * tests/test-readlink.c (main): Likewise.
27741         * tests/test-remove.c (main): Likewise.
27742         * tests/test-rename.c (main): Likewise.
27743         * tests/test-renameat.c (main): Likewise.
27744         * tests/test-symlink.c (main): Likewise.
27745         * tests/test-symlinkat.c (main): Likewise.
27746         * tests/test-utimens.c (main): Likewise.
27747         * tests/test-utimensat.c (main): Likewise.
27748
27749 2009-12-29  Simon Josefsson  <simon@josefsson.org>
27750
27751         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
27752         on $(UNUSED_PARAMETER_H) to avoid build failure.
27753
27754 2009-12-28  Jim Meyering  <meyering@redhat.com>
27755
27756         update-copyright: you may specify a max. line length other than 72
27757         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
27758
27759         maint: use consistent FSF copyright line syntax
27760         * lib/posixtm.c: Add missing comma in FSF copyright line.
27761         * lib/posixtm.h: Likewise.
27762         * lib/getugroups.c: Add missing ", Inc.".
27763
27764         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
27765         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
27766         FSF copyright line.  Remove trailing blanks.
27767
27768 2009-12-28  Eric Blake  <ebb9@byu.net>
27769
27770         test-dup2: reduce dependencies
27771         * modules/cloexec (Configure.ac): Set witness.
27772         * modules/dup2-tests (Depends-on): Drop cloexec.
27773         * tests/test-dup2.c (main): Skip portion of test if cloexec module
27774         not present.
27775         Suggested by Bruno Haible.
27776
27777 2009-12-26  Bruno Haible  <bruno@clisp.org>
27778
27779         Remove an unneeded dependency.
27780         * modules/fseterr (Depends-on): Remove dup2.
27781
27782 2009-12-26  Eric Blake  <ebb9@byu.net>
27783
27784         tests: use macros.h in more places
27785         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
27786         (ASSERT_STREAM): Provide default of stderr.
27787         * tests/test-dirent-safer.c: Include macros.h, using alternate
27788         stream for assertions.
27789         * tests/test-dup-safer.c: Likewise.
27790         * tests/test-freopen-safer.c: Likewise.
27791         * tests/test-getopt.c: Likewise.
27792         * tests/test-openat-safer.c: Likewise.
27793         * tests/test-pipe.c: Likewise.
27794         * tests/test-popen-safer.c: Likewise.
27795         * modules/dirent-safer-tests (Files): Include macros.h.
27796         * modules/unistd-safer-tests (Files): Likewise.
27797         * modules/freopen-safer-tests (Files): Likewise.
27798         * modules/getopt-posix-tests (Files): Likewise.
27799         * modules/openat-safer-tests (Files): Likewise.
27800         * modules/pipe-tests (Files): Likewise.
27801
27802 2009-12-26  Bruno Haible  <bruno@clisp.org>
27803
27804         javacomp: Portability fix.
27805         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
27806         that it also works on Solaris.
27807
27808 2009-12-26  Bruno Haible  <bruno@clisp.org>
27809
27810         localename: Fix storage allocation of gl_locale_name_thread's result.
27811         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
27812         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
27813         all platforms that have 'uselocale'.
27814         (gl_locale_name_thread_unsafe): New function, extracted from
27815         gl_locale_name_thread.
27816         (gl_locale_name_thread): Call struniq on all platforms that have
27817         'uselocale'.
27818         * tests/test-localename.c (test_locale_name_thread): Check that the
27819         resulting strings are permanently allocated.
27820         * modules/localename-tests (Depends-on): Add strdup.
27821
27822 2009-12-26  Bruno Haible  <bruno@clisp.org>
27823
27824         * tests/test-localename.c (categories): Fill in the strings.
27825
27826 2009-12-26  Jim Meyering  <meyering@redhat.com>
27827
27828         isdir: complete the removal of m4/isdir.m4
27829         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
27830
27831         isdir: clean up, since at least grep still uses it
27832         * lib/isdir.c: Include "isdir.h".
27833         (S_ISDIR): Remove now-unneeded definition.
27834         * modules/isdir (Files): Add lib/isdir.h.
27835         * lib/isdir.h: New file, with declaration.
27836         * m4/isdir.m4: Remove file -- unneeded.
27837
27838 2009-12-25  Bruno Haible  <bruno@clisp.org>
27839
27840         selinux-h: Make generated .h files standalone.
27841         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
27842         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
27843         * lib/se-selinux.in.h: Likewise.
27844         * modules/selinux-h (Depends-on): Add unused-parameter.
27845         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
27846         selinux/selinux.h and selinux/context.h.
27847         Suggested by Eric Blake.
27848
27849 2009-12-25  Bruno Haible  <bruno@clisp.org>
27850
27851         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
27852         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
27853         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
27854         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
27855         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
27856
27857 2009-12-24  Bruno Haible  <bruno@clisp.org>
27858
27859         openat: Fix warning.
27860         * lib/openat-proc.c: Include <unistd.h>.
27861
27862 2009-12-24  Bruno Haible  <bruno@clisp.org>
27863
27864         New module 'unused-parameter'.
27865         * build-aux/unused-parameter.h: New file, extracted from earlier
27866         gnulib-common.m4.
27867         * modules/unused-parameter: New file.
27868         * lib/unistr.h: Include unused-parameter.h.
27869         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
27870         _GL_UNUSED.
27871         * modules/unistr/base (Depends-on): Add unused-parameter.
27872
27873 2009-12-24  Bruno Haible  <bruno@clisp.org>
27874
27875         Add missing dependencies to 'extensions' module.
27876         * m4/extensions.m4: Add comment.
27877         * modules/accept4 (Depends-on): Add extensions.
27878         * modules/dup3 (Depends-on): Likewise.
27879         * modules/fcntl (Depends-on): Likewise.
27880         * modules/futimens (Depends-on): Likewise.
27881         * modules/mknod (Depends-on): Likewise.
27882         * modules/pipe2 (Depends-on): Likewise.
27883         * modules/stat-time (Depends-on): Likewise.
27884         * modules/strcasestr-simple (Depends-on): Likewise.
27885         * modules/strsignal (Depends-on): Likewise.
27886         * modules/utimensat (Depends-on): Likewise.
27887         * modules/localcharset (Depends-on): Likewise. Needed because of
27888         gl_FCNTL_O_FLAGS.
27889         * modules/wcrtomb (Depends-on): Likewise. Needed because of
27890         AC_TYPE_MBSTATE_T.
27891         * modules/wcsnrtombs (Depends-on): Likewise.
27892         * modules/wcsrtombs (Depends-on): Likewise.
27893
27894 2009-12-24  Bruno Haible  <bruno@clisp.org>
27895
27896         binary-io: Avoid gcc warning due to SET_BINARY.
27897         * lib/binary-io.h (SET_BINARY): Cast the result to void.
27898         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
27899
27900 2009-12-24  Bruno Haible  <bruno@clisp.org>
27901
27902         Avoid future namespace pollution on glibc systems.
27903         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
27904         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
27905         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
27906         glibc systems.
27907
27908 2009-12-24  Bruno Haible  <bruno@clisp.org>
27909
27910         Refactor common macros used in tests.
27911         * tests/macros.h: New file.
27912         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
27913         and/or <stdlib.h>, if appropriate.
27914         (ASSERT, SIZEOF): Remove macros.
27915         * tests/test-areadlink-with-size.c: Likewise.
27916         * tests/test-areadlinkat.c: Likewise.
27917         * tests/test-areadlinkat-with-size.c: Likewise.
27918         * tests/test-argmatch.c: Likewise.
27919         * tests/test-argv-iter.c: Likewise.
27920         * tests/test-array-mergesort.c: Likewise.
27921         * tests/test-array_list.c: Likewise.
27922         * tests/test-array_oset.c: Likewise.
27923         * tests/test-avltree_list.c: Likewise.
27924         * tests/test-avltree_oset.c: Likewise.
27925         * tests/test-avltreehash_list.c: Likewise.
27926         * tests/test-base64.c: Likewise.
27927         * tests/test-binary-io.c: Likewise.
27928         * tests/test-bitrotate.c: Likewise.
27929         * tests/test-btowc.c: Likewise.
27930         * tests/test-byteswap.c: Likewise.
27931         * tests/test-c-ctype.c: Likewise.
27932         * tests/test-c-stack.c: Likewise.
27933         * tests/test-c-strcasecmp.c: Likewise.
27934         * tests/test-c-strcasestr.c: Likewise.
27935         * tests/test-c-strncasecmp.c: Likewise.
27936         * tests/test-c-strstr.c: Likewise.
27937         * tests/test-canonicalize-lgpl.c: Likewise.
27938         * tests/test-canonicalize.c: Likewise.
27939         * tests/test-carray_list.c: Likewise.
27940         * tests/test-ceilf1.c: Likewise.
27941         * tests/test-ceilf2.c: Likewise.
27942         * tests/test-ceill.c: Likewise.
27943         * tests/test-chown.c: Likewise.
27944         * tests/test-cloexec.c: Likewise.
27945         * tests/test-copy-acl.c: Likewise.
27946         * tests/test-copy-file.c: Likewise.
27947         * tests/test-count-one-bits.c: Likewise.
27948         * tests/test-dprintf-posix.c: Likewise.
27949         * tests/test-dup2.c: Likewise.
27950         * tests/test-dup3.c: Likewise.
27951         * tests/test-duplocale.c: Likewise.
27952         * tests/test-fbufmode.c: Likewise.
27953         * tests/test-fchdir.c: Likewise.
27954         * tests/test-fchownat.c: Likewise.
27955         * tests/test-fcntl-safer.c: Likewise.
27956         * tests/test-fcntl.c: Likewise.
27957         * tests/test-fdopendir.c: Likewise.
27958         * tests/test-fdutimensat.c: Likewise.
27959         * tests/test-fflush2.c: Likewise.
27960         * tests/test-file-has-acl.c: Likewise.
27961         * tests/test-filevercmp.c: Likewise.
27962         * tests/test-flock.c: Likewise.
27963         * tests/test-floorf1.c: Likewise.
27964         * tests/test-floorf2.c: Likewise.
27965         * tests/test-floorl.c: Likewise.
27966         * tests/test-fnmatch.c: Likewise.
27967         * tests/test-fopen.h: Likewise.
27968         * tests/test-fpending.c: Likewise.
27969         * tests/test-fprintf-posix.c: Likewise.
27970         * tests/test-fpurge.c: Likewise.
27971         * tests/test-freadable.c: Likewise.
27972         * tests/test-freadahead.c: Likewise.
27973         * tests/test-freading.c: Likewise.
27974         * tests/test-freadptr.c: Likewise.
27975         * tests/test-freadptr2.c: Likewise.
27976         * tests/test-freadseek.c: Likewise.
27977         * tests/test-freopen.c: Likewise.
27978         * tests/test-frexp.c: Likewise.
27979         * tests/test-frexpl.c: Likewise.
27980         * tests/test-fseek.c: Likewise.
27981         * tests/test-fseeko.c: Likewise.
27982         * tests/test-fstatat.c: Likewise.
27983         * tests/test-fstrcmp.c: Likewise.
27984         * tests/test-fsync.c: Likewise.
27985         * tests/test-ftell.c: Likewise.
27986         * tests/test-ftello.c: Likewise.
27987         * tests/test-func.c: Likewise.
27988         * tests/test-futimens.c: Likewise.
27989         * tests/test-fwritable.c: Likewise.
27990         * tests/test-fwriting.c: Likewise.
27991         * tests/test-getcwd.c: Likewise.
27992         * tests/test-getdate.c: Likewise.
27993         * tests/test-getdelim.c: Likewise.
27994         * tests/test-getdtablesize.c: Likewise.
27995         * tests/test-getgroups.c: Likewise.
27996         * tests/test-getline.c: Likewise.
27997         * tests/test-getndelim2.c: Likewise.
27998         * tests/test-glob.c: Likewise.
27999         * tests/test-hash.c: Likewise.
28000         * tests/test-i-ring.c: Likewise.
28001         * tests/test-iconv-utf.c: Likewise.
28002         * tests/test-iconv.c: Likewise.
28003         * tests/test-idpriv-drop.c: Likewise.
28004         * tests/test-idpriv-droptemp.c: Likewise.
28005         * tests/test-inet_ntop.c: Likewise.
28006         * tests/test-inet_pton.c: Likewise.
28007         * tests/test-isblank.c: Likewise.
28008         * tests/test-isfinite.c: Likewise.
28009         * tests/test-isinf.c: Likewise.
28010         * tests/test-isnan.c: Likewise.
28011         * tests/test-isnand.h: Likewise.
28012         * tests/test-isnanf.h: Likewise.
28013         * tests/test-isnanl.h: Likewise.
28014         * tests/test-lchown.c: Likewise.
28015         * tests/test-ldexpl.c: Likewise.
28016         * tests/test-link.c: Likewise.
28017         * tests/test-linkat.c: Likewise.
28018         * tests/test-linked_list.c: Likewise.
28019         * tests/test-linkedhash_list.c: Likewise.
28020         * tests/test-localename.c: Likewise.
28021         * tests/test-lseek.c: Likewise.
28022         * tests/test-lstat.c: Likewise.
28023         * tests/test-mbmemcasecmp.c: Likewise.
28024         * tests/test-mbmemcasecoll.c: Likewise.
28025         * tests/test-mbrtowc.c: Likewise.
28026         * tests/test-mbscasecmp.c: Likewise.
28027         * tests/test-mbscasestr1.c: Likewise.
28028         * tests/test-mbscasestr2.c: Likewise.
28029         * tests/test-mbscasestr3.c: Likewise.
28030         * tests/test-mbscasestr4.c: Likewise.
28031         * tests/test-mbschr.c: Likewise.
28032         * tests/test-mbscspn.c: Likewise.
28033         * tests/test-mbsinit.c: Likewise.
28034         * tests/test-mbsncasecmp.c: Likewise.
28035         * tests/test-mbsnrtowcs.c: Likewise.
28036         * tests/test-mbspbrk.c: Likewise.
28037         * tests/test-mbspcasecmp.c: Likewise.
28038         * tests/test-mbsrchr.c: Likewise.
28039         * tests/test-mbsrtowcs.c: Likewise.
28040         * tests/test-mbsspn.c: Likewise.
28041         * tests/test-mbsstr1.c: Likewise.
28042         * tests/test-mbsstr2.c: Likewise.
28043         * tests/test-mbsstr3.c: Likewise.
28044         * tests/test-memchr.c: Likewise.
28045         * tests/test-memchr2.c: Likewise.
28046         * tests/test-memcmp.c: Likewise.
28047         * tests/test-memmem.c: Likewise.
28048         * tests/test-memrchr.c: Likewise.
28049         * tests/test-mkdir.c: Likewise.
28050         * tests/test-mkdirat.c: Likewise.
28051         * tests/test-mkfifo.c: Likewise.
28052         * tests/test-mkfifoat.c: Likewise.
28053         * tests/test-mknod.c: Likewise.
28054         * tests/test-nanosleep.c: Likewise.
28055         * tests/test-nl_langinfo.c: Likewise.
28056         * tests/test-obstack-printf.c: Likewise.
28057         * tests/test-open.c: Likewise.
28058         * tests/test-openat.c: Likewise.
28059         * tests/test-pipe-filter-gi1.c: Likewise.
28060         * tests/test-pipe-filter-gi2-main.c: Likewise.
28061         * tests/test-pipe-filter-ii1.c: Likewise.
28062         * tests/test-pipe-filter-ii2-main.c: Likewise.
28063         * tests/test-pipe2.c: Likewise.
28064         * tests/test-popen.h: Likewise.
28065         * tests/test-posixtm.c: Likewise.
28066         * tests/test-pread.c: Likewise.
28067         * tests/test-printf-frexp.c: Likewise.
28068         * tests/test-printf-frexpl.c: Likewise.
28069         * tests/test-printf-posix.c: Likewise.
28070         * tests/test-priv-set.c: Likewise.
28071         * tests/test-quotearg.c: Likewise.
28072         * tests/test-random_r.c: Likewise.
28073         * tests/test-rawmemchr.c: Likewise.
28074         * tests/test-rbtree_list.c: Likewise.
28075         * tests/test-rbtree_oset.c: Likewise.
28076         * tests/test-rbtreehash_list.c: Likewise.
28077         * tests/test-readlink.c: Likewise.
28078         * tests/test-remove.c: Likewise.
28079         * tests/test-rename.c: Likewise.
28080         * tests/test-renameat.c: Likewise.
28081         * tests/test-rmdir.c: Likewise.
28082         * tests/test-round1.c: Likewise.
28083         * tests/test-roundf1.c: Likewise.
28084         * tests/test-roundl.c: Likewise.
28085         * tests/test-safe-alloc.c: Likewise.
28086         * tests/test-sameacls.c: Likewise.
28087         * tests/test-set-mode-acl.c: Likewise.
28088         * tests/test-setenv.c: Likewise.
28089         * tests/test-sigaction.c: Likewise.
28090         * tests/test-signbit.c: Likewise.
28091         * tests/test-sleep.c: Likewise.
28092         * tests/test-snprintf-posix.c: Likewise.
28093         * tests/test-snprintf.c: Likewise.
28094         * tests/test-sprintf-posix.c: Likewise.
28095         * tests/test-stat-time.c: Likewise.
28096         * tests/test-stat.c: Likewise.
28097         * tests/test-strcasestr.c: Likewise.
28098         * tests/test-strchrnul.c: Likewise.
28099         * tests/test-strerror.c: Likewise.
28100         * tests/test-striconv.c: Likewise.
28101         * tests/test-striconveh.c: Likewise.
28102         * tests/test-striconveha.c: Likewise.
28103         * tests/test-strsignal.c: Likewise.
28104         * tests/test-strstr.c: Likewise.
28105         * tests/test-strtod.c: Likewise.
28106         * tests/test-strverscmp.c: Likewise.
28107         * tests/test-symlink.c: Likewise.
28108         * tests/test-symlinkat.c: Likewise.
28109         * tests/test-trunc1.c: Likewise.
28110         * tests/test-trunc2.c: Likewise.
28111         * tests/test-truncf1.c: Likewise.
28112         * tests/test-truncf2.c: Likewise.
28113         * tests/test-truncl.c: Likewise.
28114         * tests/test-uname.c: Likewise.
28115         * tests/test-unlink.c: Likewise.
28116         * tests/test-unlinkat.c: Likewise.
28117         * tests/test-unsetenv.c: Likewise.
28118         * tests/test-usleep.c: Likewise.
28119         * tests/test-utimens.c: Likewise.
28120         * tests/test-utimensat.c: Likewise.
28121         * tests/test-vasnprintf-posix.c: Likewise.
28122         * tests/test-vasnprintf-posix2.c: Likewise.
28123         * tests/test-vasnprintf.c: Likewise.
28124         * tests/test-vasprintf-posix.c: Likewise.
28125         * tests/test-vasprintf.c: Likewise.
28126         * tests/test-vdprintf-posix.c: Likewise.
28127         * tests/test-vfprintf-posix.c: Likewise.
28128         * tests/test-vprintf-posix.c: Likewise.
28129         * tests/test-vsnprintf-posix.c: Likewise.
28130         * tests/test-vsnprintf.c: Likewise.
28131         * tests/test-vsprintf-posix.c: Likewise.
28132         * tests/test-wcrtomb.c: Likewise.
28133         * tests/test-wcsnrtombs.c: Likewise.
28134         * tests/test-wcsrtombs.c: Likewise.
28135         * tests/test-wctype.c: Likewise.
28136         * tests/test-wcwidth.c: Likewise.
28137         * tests/test-xfprintf-posix.c: Likewise.
28138         * tests/test-xmemdup0.c: Likewise.
28139         * tests/test-xprintf-posix.c: Likewise.
28140         * tests/test-xvasprintf.c: Likewise.
28141         * tests/unicase/test-locale-language.c: Likewise.
28142         * tests/unicase/test-mapping-part1.h: Likewise.
28143         * tests/unicase/test-predicate-part1.h: Likewise.
28144         * tests/unicase/test-u8-casecmp.c: Likewise.
28145         * tests/unicase/test-u8-casecoll.c: Likewise.
28146         * tests/unicase/test-u8-casefold.c: Likewise.
28147         * tests/unicase/test-u8-is-cased.c: Likewise.
28148         * tests/unicase/test-u8-is-casefolded.c: Likewise.
28149         * tests/unicase/test-u8-is-lowercase.c: Likewise.
28150         * tests/unicase/test-u8-is-titlecase.c: Likewise.
28151         * tests/unicase/test-u8-is-uppercase.c: Likewise.
28152         * tests/unicase/test-u8-tolower.c: Likewise.
28153         * tests/unicase/test-u8-totitle.c: Likewise.
28154         * tests/unicase/test-u8-toupper.c: Likewise.
28155         * tests/unicase/test-u16-casecmp.c: Likewise.
28156         * tests/unicase/test-u16-casecoll.c: Likewise.
28157         * tests/unicase/test-u16-casefold.c: Likewise.
28158         * tests/unicase/test-u16-is-cased.c: Likewise.
28159         * tests/unicase/test-u16-is-casefolded.c: Likewise.
28160         * tests/unicase/test-u16-is-lowercase.c: Likewise.
28161         * tests/unicase/test-u16-is-titlecase.c: Likewise.
28162         * tests/unicase/test-u16-is-uppercase.c: Likewise.
28163         * tests/unicase/test-u16-tolower.c: Likewise.
28164         * tests/unicase/test-u16-totitle.c: Likewise.
28165         * tests/unicase/test-u16-toupper.c: Likewise.
28166         * tests/unicase/test-u32-casecmp.c: Likewise.
28167         * tests/unicase/test-u32-casecoll.c: Likewise.
28168         * tests/unicase/test-u32-casefold.c: Likewise.
28169         * tests/unicase/test-u32-is-cased.c: Likewise.
28170         * tests/unicase/test-u32-is-casefolded.c: Likewise.
28171         * tests/unicase/test-u32-is-lowercase.c: Likewise.
28172         * tests/unicase/test-u32-is-titlecase.c: Likewise.
28173         * tests/unicase/test-u32-is-uppercase.c: Likewise.
28174         * tests/unicase/test-u32-tolower.c: Likewise.
28175         * tests/unicase/test-u32-totitle.c: Likewise.
28176         * tests/unicase/test-u32-toupper.c: Likewise.
28177         * tests/unicase/test-ulc-casecmp.c: Likewise.
28178         * tests/unicase/test-ulc-casecoll.c: Likewise.
28179         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
28180         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
28181         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
28182         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
28183         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
28184         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
28185         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
28186         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
28187         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
28188         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
28189         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
28190         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
28191         * tests/unictype/test-bidi_byname.c: Likewise.
28192         * tests/unictype/test-bidi_name.c: Likewise.
28193         * tests/unictype/test-bidi_of.c: Likewise.
28194         * tests/unictype/test-bidi_test.c: Likewise.
28195         * tests/unictype/test-block_list.c: Likewise.
28196         * tests/unictype/test-block_of.c: Likewise.
28197         * tests/unictype/test-block_test.c: Likewise.
28198         * tests/unictype/test-categ_and.c: Likewise.
28199         * tests/unictype/test-categ_and_not.c: Likewise.
28200         * tests/unictype/test-categ_byname.c: Likewise.
28201         * tests/unictype/test-categ_name.c: Likewise.
28202         * tests/unictype/test-categ_none.c: Likewise.
28203         * tests/unictype/test-categ_of.c: Likewise.
28204         * tests/unictype/test-categ_or.c: Likewise.
28205         * tests/unictype/test-categ_test_withtable.c: Likewise.
28206         * tests/unictype/test-combining.c: Likewise.
28207         * tests/unictype/test-decdigit.c: Likewise.
28208         * tests/unictype/test-digit.c: Likewise.
28209         * tests/unictype/test-mirror.c: Likewise.
28210         * tests/unictype/test-numeric.c: Likewise.
28211         * tests/unictype/test-pr_byname.c: Likewise.
28212         * tests/unictype/test-pr_test.c: Likewise.
28213         * tests/unictype/test-predicate-part1.h: Likewise.
28214         * tests/unictype/test-scripts.c: Likewise.
28215         * tests/unictype/test-sy_c_ident.c: Likewise.
28216         * tests/unictype/test-sy_java_ident.c: Likewise.
28217         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
28218         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
28219         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
28220         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
28221         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
28222         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
28223         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
28224         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
28225         * tests/uninorm/test-canonical-decomposition.c: Likewise.
28226         * tests/uninorm/test-compat-decomposition.c: Likewise.
28227         * tests/uninorm/test-composition.c: Likewise.
28228         * tests/uninorm/test-decomposing-form.c: Likewise.
28229         * tests/uninorm/test-decomposition.c: Likewise.
28230         * tests/uninorm/test-u8-nfc.c: Likewise.
28231         * tests/uninorm/test-u8-nfd.c: Likewise.
28232         * tests/uninorm/test-u8-nfkc.c: Likewise.
28233         * tests/uninorm/test-u8-nfkd.c: Likewise.
28234         * tests/uninorm/test-u8-normcmp.c: Likewise.
28235         * tests/uninorm/test-u8-normcoll.c: Likewise.
28236         * tests/uninorm/test-u16-nfc.c: Likewise.
28237         * tests/uninorm/test-u16-nfd.c: Likewise.
28238         * tests/uninorm/test-u16-nfkc.c: Likewise.
28239         * tests/uninorm/test-u16-nfkd.c: Likewise.
28240         * tests/uninorm/test-u16-normcmp.c: Likewise.
28241         * tests/uninorm/test-u16-normcoll.c: Likewise.
28242         * tests/uninorm/test-u32-nfc.c: Likewise.
28243         * tests/uninorm/test-u32-nfd.c: Likewise.
28244         * tests/uninorm/test-u32-nfkc.c: Likewise.
28245         * tests/uninorm/test-u32-nfkd.c: Likewise.
28246         * tests/uninorm/test-u32-normalize-big.c: Likewise.
28247         * tests/uninorm/test-u32-normcmp.c: Likewise.
28248         * tests/uninorm/test-u32-normcoll.c: Likewise.
28249         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
28250         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
28251         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
28252         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
28253         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
28254         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
28255         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
28256         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
28257         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
28258         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
28259         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
28260         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
28261         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
28262         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
28263         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
28264         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
28265         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
28266         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
28267         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
28268         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
28269         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
28270         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
28271         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
28272         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
28273         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
28274         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
28275         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
28276         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
28277         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
28278         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
28279         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
28280         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
28281         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
28282         * tests/uniwidth/test-u8-strwidth.c: Likewise.
28283         * tests/uniwidth/test-u8-width.c: Likewise.
28284         * tests/uniwidth/test-u16-strwidth.c: Likewise.
28285         * tests/uniwidth/test-u16-width.c: Likewise.
28286         * tests/uniwidth/test-u32-strwidth.c: Likewise.
28287         * tests/uniwidth/test-u32-width.c: Likewise.
28288         * tests/uniwidth/test-uc_width.c: Likewise.
28289         * tests/uniwidth/test-uc_width2.c: Likewise.
28290         * modules/acl-tests (Files): Add tests/macros.h.
28291         * modules/areadlink-tests (Files): Likewise.
28292         * modules/areadlink-with-size-tests (Files): Likewise.
28293         * modules/areadlinkat-tests (Files): Likewise.
28294         * modules/areadlinkat-with-size-tests (Files): Likewise.
28295         * modules/argmatch-tests (Files): Likewise.
28296         * modules/argv-iter-tests (Files): Likewise.
28297         * modules/array-list-tests (Files): Likewise.
28298         * modules/array-mergesort-tests (Files): Likewise.
28299         * modules/array-oset-tests (Files): Likewise.
28300         * modules/avltree-list-tests (Files): Likewise.
28301         * modules/avltree-oset-tests (Files): Likewise.
28302         * modules/avltreehash-list-tests (Files): Likewise.
28303         * modules/base64-tests (Files): Likewise.
28304         * modules/binary-io-tests (Files): Likewise.
28305         * modules/bitrotate-tests (Files): Likewise.
28306         * modules/btowc-tests (Files): Likewise.
28307         * modules/byteswap-tests (Files): Likewise.
28308         * modules/c-ctype-tests (Files): Likewise.
28309         * modules/c-stack-tests (Files): Likewise.
28310         * modules/c-strcase-tests (Files): Likewise.
28311         * modules/c-strcasestr-tests (Files): Likewise.
28312         * modules/c-strstr-tests (Files): Likewise.
28313         * modules/canonicalize-lgpl-tests (Files): Likewise.
28314         * modules/canonicalize-tests (Files): Likewise.
28315         * modules/carray-list-tests (Files): Likewise.
28316         * modules/ceilf-tests (Files): Likewise.
28317         * modules/ceill-tests (Files): Likewise.
28318         * modules/chown-tests (Files): Likewise.
28319         * modules/cloexec-tests (Files): Likewise.
28320         * modules/copy-file-tests (Files): Likewise.
28321         * modules/count-one-bits-tests (Files): Likewise.
28322         * modules/dprintf-posix-tests (Files): Likewise.
28323         * modules/dup2-tests (Files): Likewise.
28324         * modules/dup3-tests (Files): Likewise.
28325         * modules/duplocale-tests (Files): Likewise.
28326         * modules/fbufmode-tests (Files): Likewise.
28327         * modules/fchdir-tests (Files): Likewise.
28328         * modules/fcntl-safer-tests (Files): Likewise.
28329         * modules/fcntl-tests (Files): Likewise.
28330         * modules/fdopendir-tests (Files): Likewise.
28331         * modules/fdutimensat-tests (Files): Likewise.
28332         * modules/fflush-tests (Files): Likewise.
28333         * modules/filevercmp-tests (Files): Likewise.
28334         * modules/flock-tests (Files): Likewise.
28335         * modules/floorf-tests (Files): Likewise.
28336         * modules/floorl-tests (Files): Likewise.
28337         * modules/fnmatch-tests (Files): Likewise.
28338         * modules/fopen-safer-tests (Files): Likewise.
28339         * modules/fopen-tests (Files): Likewise.
28340         * modules/fpending-tests (Files): Likewise.
28341         * modules/fprintf-posix-tests (Files): Likewise.
28342         * modules/fpurge-tests (Files): Likewise.
28343         * modules/freadable-tests (Files): Likewise.
28344         * modules/freadahead-tests (Files): Likewise.
28345         * modules/freading-tests (Files): Likewise.
28346         * modules/freadptr-tests (Files): Likewise.
28347         * modules/freadseek-tests (Files): Likewise.
28348         * modules/freopen-tests (Files): Likewise.
28349         * modules/frexp-nolibm-tests (Files): Likewise.
28350         * modules/frexp-tests (Files): Likewise.
28351         * modules/frexpl-nolibm-tests (Files): Likewise.
28352         * modules/frexpl-tests (Files): Likewise.
28353         * modules/fseek-tests (Files): Likewise.
28354         * modules/fseeko-tests (Files): Likewise.
28355         * modules/fstrcmp-tests (Files): Likewise.
28356         * modules/fsync-tests (Files): Likewise.
28357         * modules/ftell-tests (Files): Likewise.
28358         * modules/ftello-tests (Files): Likewise.
28359         * modules/func-tests (Files): Likewise.
28360         * modules/futimens-tests (Files): Likewise.
28361         * modules/fwritable-tests (Files): Likewise.
28362         * modules/fwriting-tests (Files): Likewise.
28363         * modules/getcwd-tests (Files): Likewise.
28364         * modules/getdate-tests (Files): Likewise.
28365         * modules/getdelim-tests (Files): Likewise.
28366         * modules/getdtablesize-tests (Files): Likewise.
28367         * modules/getgroups-tests (Files): Likewise.
28368         * modules/getline-tests (Files): Likewise.
28369         * modules/getndelim2-tests (Files): Likewise.
28370         * modules/glob-tests (Files): Likewise.
28371         * modules/hash-tests (Files): Likewise.
28372         * modules/i-ring-tests (Files): Likewise.
28373         * modules/iconv-tests (Files): Likewise.
28374         * modules/iconv_open-utf-tests (Files): Likewise.
28375         * modules/idpriv-drop-tests (Files): Likewise.
28376         * modules/idpriv-droptemp-tests (Files): Likewise.
28377         * modules/inet_ntop-tests (Files): Likewise.
28378         * modules/inet_pton-tests (Files): Likewise.
28379         * modules/isblank-tests (Files): Likewise.
28380         * modules/isfinite-tests (Files): Likewise.
28381         * modules/isinf-tests (Files): Likewise.
28382         * modules/isnan-tests (Files): Likewise.
28383         * modules/isnand-nolibm-tests (Files): Likewise.
28384         * modules/isnand-tests (Files): Likewise.
28385         * modules/isnanf-nolibm-tests (Files): Likewise.
28386         * modules/isnanf-tests (Files): Likewise.
28387         * modules/isnanl-nolibm-tests (Files): Likewise.
28388         * modules/isnanl-tests (Files): Likewise.
28389         * modules/lchown-tests (Files): Likewise.
28390         * modules/ldexpl-tests (Files): Likewise.
28391         * modules/link-tests (Files): Likewise.
28392         * modules/linkat-tests (Files): Likewise.
28393         * modules/linked-list-tests (Files): Likewise.
28394         * modules/linkedhash-list-tests (Files): Likewise.
28395         * modules/localename-tests (Files): Likewise.
28396         * modules/lseek-tests (Files): Likewise.
28397         * modules/lstat-tests (Files): Likewise.
28398         * modules/mbmemcasecmp-tests (Files): Likewise.
28399         * modules/mbmemcasecoll-tests (Files): Likewise.
28400         * modules/mbrtowc-tests (Files): Likewise.
28401         * modules/mbscasecmp-tests (Files): Likewise.
28402         * modules/mbscasestr-tests (Files): Likewise.
28403         * modules/mbschr-tests (Files): Likewise.
28404         * modules/mbscspn-tests (Files): Likewise.
28405         * modules/mbsinit-tests (Files): Likewise.
28406         * modules/mbsncasecmp-tests (Files): Likewise.
28407         * modules/mbsnrtowcs-tests (Files): Likewise.
28408         * modules/mbspbrk-tests (Files): Likewise.
28409         * modules/mbspcasecmp-tests (Files): Likewise.
28410         * modules/mbsrchr-tests (Files): Likewise.
28411         * modules/mbsrtowcs-tests (Files): Likewise.
28412         * modules/mbsspn-tests (Files): Likewise.
28413         * modules/mbsstr-tests (Files): Likewise.
28414         * modules/memchr-tests (Files): Likewise.
28415         * modules/memchr2-tests (Files): Likewise.
28416         * modules/memcmp-tests (Files): Likewise.
28417         * modules/memmem-tests (Files): Likewise.
28418         * modules/memrchr-tests (Files): Likewise.
28419         * modules/mkdir-tests (Files): Likewise.
28420         * modules/mkfifo-tests (Files): Likewise.
28421         * modules/mkfifoat-tests (Files): Likewise.
28422         * modules/mknod-tests (Files): Likewise.
28423         * modules/nanosleep-tests (Files): Likewise.
28424         * modules/nl_langinfo-tests (Files): Likewise.
28425         * modules/obstack-printf-tests (Files): Likewise.
28426         * modules/open-tests (Files): Likewise.
28427         * modules/openat-tests (Files): Likewise.
28428         * modules/pipe-filter-gi-tests (Files): Likewise.
28429         * modules/pipe-filter-ii-tests (Files): Likewise.
28430         * modules/pipe2-tests (Files): Likewise.
28431         * modules/popen-safer-tests (Files): Likewise.
28432         * modules/popen-tests (Files): Likewise.
28433         * modules/posixtm-tests (Files): Likewise.
28434         * modules/pread-tests (Files): Likewise.
28435         * modules/printf-frexp-tests (Files): Likewise.
28436         * modules/printf-frexpl-tests (Files): Likewise.
28437         * modules/printf-posix-tests (Files): Likewise.
28438         * modules/priv-set-tests (Files): Likewise.
28439         * modules/quotearg-tests (Files): Likewise.
28440         * modules/random_r-tests (Files): Likewise.
28441         * modules/rawmemchr-tests (Files): Likewise.
28442         * modules/rbtree-list-tests (Files): Likewise.
28443         * modules/rbtree-oset-tests (Files): Likewise.
28444         * modules/rbtreehash-list-tests (Files): Likewise.
28445         * modules/readlink-tests (Files): Likewise.
28446         * modules/remove-tests (Files): Likewise.
28447         * modules/rename-tests (Files): Likewise.
28448         * modules/renameat-tests (Files): Likewise.
28449         * modules/rmdir-tests (Files): Likewise.
28450         * modules/round-tests (Files): Likewise.
28451         * modules/roundf-tests (Files): Likewise.
28452         * modules/roundl-tests (Files): Likewise.
28453         * modules/safe-alloc-tests (Files): Likewise.
28454         * modules/setenv-tests (Files): Likewise.
28455         * modules/sigaction-tests (Files): Likewise.
28456         * modules/signbit-tests (Files): Likewise.
28457         * modules/sleep-tests (Files): Likewise.
28458         * modules/snprintf-posix-tests (Files): Likewise.
28459         * modules/snprintf-tests (Files): Likewise.
28460         * modules/sprintf-posix-tests (Files): Likewise.
28461         * modules/stat-tests (Files): Likewise.
28462         * modules/stat-time-tests (Files): Likewise.
28463         * modules/strcasestr-tests (Files): Likewise.
28464         * modules/strchrnul-tests (Files): Likewise.
28465         * modules/strerror-tests (Files): Likewise.
28466         * modules/striconv-tests (Files): Likewise.
28467         * modules/striconveh-tests (Files): Likewise.
28468         * modules/striconveha-tests (Files): Likewise.
28469         * modules/strsignal-tests (Files): Likewise.
28470         * modules/strstr-tests (Files): Likewise.
28471         * modules/strtod-tests (Files): Likewise.
28472         * modules/strverscmp-tests (Files): Likewise.
28473         * modules/symlink-tests (Files): Likewise.
28474         * modules/symlinkat-tests (Files): Likewise.
28475         * modules/trunc-tests (Files): Likewise.
28476         * modules/truncf-tests (Files): Likewise.
28477         * modules/truncl-tests (Files): Likewise.
28478         * modules/uname-tests (Files): Likewise.
28479         * modules/unicase/cased-tests (Files): Likewise.
28480         * modules/unicase/ignorable-tests (Files): Likewise.
28481         * modules/unicase/locale-language-tests (Files): Likewise.
28482         * modules/unicase/tolower-tests (Files): Likewise.
28483         * modules/unicase/totitle-tests (Files): Likewise.
28484         * modules/unicase/toupper-tests (Files): Likewise.
28485         * modules/unicase/u8-casecmp-tests (Files): Likewise.
28486         * modules/unicase/u8-casecoll-tests (Files): Likewise.
28487         * modules/unicase/u8-casefold-tests (Files): Likewise.
28488         * modules/unicase/u8-is-cased-tests (Files): Likewise.
28489         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
28490         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
28491         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
28492         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
28493         * modules/unicase/u8-tolower-tests (Files): Likewise.
28494         * modules/unicase/u8-totitle-tests (Files): Likewise.
28495         * modules/unicase/u8-toupper-tests (Files): Likewise.
28496         * modules/unicase/u16-casecmp-tests (Files): Likewise.
28497         * modules/unicase/u16-casecoll-tests (Files): Likewise.
28498         * modules/unicase/u16-casefold-tests (Files): Likewise.
28499         * modules/unicase/u16-is-cased-tests (Files): Likewise.
28500         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
28501         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
28502         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
28503         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
28504         * modules/unicase/u16-tolower-tests (Files): Likewise.
28505         * modules/unicase/u16-totitle-tests (Files): Likewise.
28506         * modules/unicase/u16-toupper-tests (Files): Likewise.
28507         * modules/unicase/u32-casecmp-tests (Files): Likewise.
28508         * modules/unicase/u32-casecoll-tests (Files): Likewise.
28509         * modules/unicase/u32-casefold-tests (Files): Likewise.
28510         * modules/unicase/u32-is-cased-tests (Files): Likewise.
28511         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
28512         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
28513         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
28514         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
28515         * modules/unicase/u32-tolower-tests (Files): Likewise.
28516         * modules/unicase/u32-totitle-tests (Files): Likewise.
28517         * modules/unicase/u32-toupper-tests (Files): Likewise.
28518         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
28519         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
28520         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
28521         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
28522         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
28523         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
28524         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
28525         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
28526         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
28527         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
28528         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
28529         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
28530         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
28531         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
28532         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
28533         * modules/unictype/bidicategory-name-tests (Files): Likewise.
28534         * modules/unictype/bidicategory-of-tests (Files): Likewise.
28535         * modules/unictype/bidicategory-test-tests (Files): Likewise.
28536         * modules/unictype/block-list-tests (Files): Likewise.
28537         * modules/unictype/block-of-tests (Files): Likewise.
28538         * modules/unictype/block-test-tests (Files): Likewise.
28539         * modules/unictype/category-C-tests (Files): Likewise.
28540         * modules/unictype/category-Cc-tests (Files): Likewise.
28541         * modules/unictype/category-Cf-tests (Files): Likewise.
28542         * modules/unictype/category-Cn-tests (Files): Likewise.
28543         * modules/unictype/category-Co-tests (Files): Likewise.
28544         * modules/unictype/category-Cs-tests (Files): Likewise.
28545         * modules/unictype/category-L-tests (Files): Likewise.
28546         * modules/unictype/category-Ll-tests (Files): Likewise.
28547         * modules/unictype/category-Lm-tests (Files): Likewise.
28548         * modules/unictype/category-Lo-tests (Files): Likewise.
28549         * modules/unictype/category-Lt-tests (Files): Likewise.
28550         * modules/unictype/category-Lu-tests (Files): Likewise.
28551         * modules/unictype/category-M-tests (Files): Likewise.
28552         * modules/unictype/category-Mc-tests (Files): Likewise.
28553         * modules/unictype/category-Me-tests (Files): Likewise.
28554         * modules/unictype/category-Mn-tests (Files): Likewise.
28555         * modules/unictype/category-N-tests (Files): Likewise.
28556         * modules/unictype/category-Nd-tests (Files): Likewise.
28557         * modules/unictype/category-Nl-tests (Files): Likewise.
28558         * modules/unictype/category-No-tests (Files): Likewise.
28559         * modules/unictype/category-P-tests (Files): Likewise.
28560         * modules/unictype/category-Pc-tests (Files): Likewise.
28561         * modules/unictype/category-Pd-tests (Files): Likewise.
28562         * modules/unictype/category-Pe-tests (Files): Likewise.
28563         * modules/unictype/category-Pf-tests (Files): Likewise.
28564         * modules/unictype/category-Pi-tests (Files): Likewise.
28565         * modules/unictype/category-Po-tests (Files): Likewise.
28566         * modules/unictype/category-Ps-tests (Files): Likewise.
28567         * modules/unictype/category-S-tests (Files): Likewise.
28568         * modules/unictype/category-Sc-tests (Files): Likewise.
28569         * modules/unictype/category-Sk-tests (Files): Likewise.
28570         * modules/unictype/category-Sm-tests (Files): Likewise.
28571         * modules/unictype/category-So-tests (Files): Likewise.
28572         * modules/unictype/category-Z-tests (Files): Likewise.
28573         * modules/unictype/category-Zl-tests (Files): Likewise.
28574         * modules/unictype/category-Zp-tests (Files): Likewise.
28575         * modules/unictype/category-Zs-tests (Files): Likewise.
28576         * modules/unictype/category-and-not-tests (Files): Likewise.
28577         * modules/unictype/category-and-tests (Files): Likewise.
28578         * modules/unictype/category-byname-tests (Files): Likewise.
28579         * modules/unictype/category-name-tests (Files): Likewise.
28580         * modules/unictype/category-none-tests (Files): Likewise.
28581         * modules/unictype/category-of-tests (Files): Likewise.
28582         * modules/unictype/category-or-tests (Files): Likewise.
28583         * modules/unictype/category-test-withtable-tests (Files): Likewise.
28584         * modules/unictype/combining-class-tests (Files): Likewise.
28585         * modules/unictype/ctype-alnum-tests (Files): Likewise.
28586         * modules/unictype/ctype-alpha-tests (Files): Likewise.
28587         * modules/unictype/ctype-blank-tests (Files): Likewise.
28588         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
28589         * modules/unictype/ctype-digit-tests (Files): Likewise.
28590         * modules/unictype/ctype-graph-tests (Files): Likewise.
28591         * modules/unictype/ctype-lower-tests (Files): Likewise.
28592         * modules/unictype/ctype-print-tests (Files): Likewise.
28593         * modules/unictype/ctype-punct-tests (Files): Likewise.
28594         * modules/unictype/ctype-space-tests (Files): Likewise.
28595         * modules/unictype/ctype-upper-tests (Files): Likewise.
28596         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
28597         * modules/unictype/decimal-digit-tests (Files): Likewise.
28598         * modules/unictype/digit-tests (Files): Likewise.
28599         * modules/unictype/mirror-tests (Files): Likewise.
28600         * modules/unictype/numeric-tests (Files): Likewise.
28601         * modules/unictype/property-alphabetic-tests (Files): Likewise.
28602         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
28603         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
28604         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
28605         Likewise.
28606         * modules/unictype/property-bidi-block-separator-tests (Files):
28607         Likewise.
28608         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
28609         Likewise.
28610         * modules/unictype/property-bidi-common-separator-tests (Files):
28611         Likewise.
28612         * modules/unictype/property-bidi-control-tests (Files): Likewise.
28613         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
28614         Likewise.
28615         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
28616         Likewise.
28617         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
28618         Likewise.
28619         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
28620         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
28621         Likewise.
28622         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
28623         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
28624         Likewise.
28625         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
28626         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
28627         * modules/unictype/property-bidi-segment-separator-tests (Files):
28628         Likewise.
28629         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
28630         * modules/unictype/property-byname-tests (Files): Likewise.
28631         * modules/unictype/property-combining-tests (Files): Likewise.
28632         * modules/unictype/property-composite-tests (Files): Likewise.
28633         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
28634         * modules/unictype/property-dash-tests (Files): Likewise.
28635         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
28636         * modules/unictype/property-default-ignorable-code-point-tests (Files):
28637         Likewise.
28638         * modules/unictype/property-deprecated-tests (Files): Likewise.
28639         * modules/unictype/property-diacritic-tests (Files): Likewise.
28640         * modules/unictype/property-extender-tests (Files): Likewise.
28641         * modules/unictype/property-format-control-tests (Files): Likewise.
28642         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
28643         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
28644         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
28645         * modules/unictype/property-hex-digit-tests (Files): Likewise.
28646         * modules/unictype/property-hyphen-tests (Files): Likewise.
28647         * modules/unictype/property-id-continue-tests (Files): Likewise.
28648         * modules/unictype/property-id-start-tests (Files): Likewise.
28649         * modules/unictype/property-ideographic-tests (Files): Likewise.
28650         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
28651         * modules/unictype/property-ids-trinary-operator-tests (Files):
28652         Likewise.
28653         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
28654         * modules/unictype/property-iso-control-tests (Files): Likewise.
28655         * modules/unictype/property-join-control-tests (Files): Likewise.
28656         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
28657         * modules/unictype/property-line-separator-tests (Files): Likewise.
28658         * modules/unictype/property-logical-order-exception-tests (Files):
28659         Likewise.
28660         * modules/unictype/property-lowercase-tests (Files): Likewise.
28661         * modules/unictype/property-math-tests (Files): Likewise.
28662         * modules/unictype/property-non-break-tests (Files): Likewise.
28663         * modules/unictype/property-not-a-character-tests (Files): Likewise.
28664         * modules/unictype/property-numeric-tests (Files): Likewise.
28665         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
28666         * modules/unictype/property-other-default-ignorable-code-point-tests
28667         (Files): Likewise.
28668         * modules/unictype/property-other-grapheme-extend-tests (Files):
28669         Likewise.
28670         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
28671         * modules/unictype/property-other-id-start-tests (Files): Likewise.
28672         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
28673         * modules/unictype/property-other-math-tests (Files): Likewise.
28674         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
28675         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
28676         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
28677         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
28678         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
28679         * modules/unictype/property-private-use-tests (Files): Likewise.
28680         * modules/unictype/property-punctuation-tests (Files): Likewise.
28681         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
28682         * modules/unictype/property-radical-tests (Files): Likewise.
28683         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
28684         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
28685         * modules/unictype/property-space-tests (Files): Likewise.
28686         * modules/unictype/property-terminal-punctuation-tests (Files):
28687         Likewise.
28688         * modules/unictype/property-test-tests (Files): Likewise.
28689         * modules/unictype/property-titlecase-tests (Files): Likewise.
28690         * modules/unictype/property-unassigned-code-value-tests (Files):
28691         Likewise.
28692         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
28693         * modules/unictype/property-uppercase-tests (Files): Likewise.
28694         * modules/unictype/property-variation-selector-tests (Files): Likewise.
28695         * modules/unictype/property-white-space-tests (Files): Likewise.
28696         * modules/unictype/property-xid-continue-tests (Files): Likewise.
28697         * modules/unictype/property-xid-start-tests (Files): Likewise.
28698         * modules/unictype/property-zero-width-tests (Files): Likewise.
28699         * modules/unictype/scripts-tests (Files): Likewise.
28700         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
28701         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
28702         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
28703         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
28704         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
28705         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
28706         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
28707         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
28708         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
28709         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
28710         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
28711         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
28712         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
28713         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
28714         * modules/uninorm/composition-tests (Files): Likewise.
28715         * modules/uninorm/decomposing-form-tests (Files): Likewise.
28716         * modules/uninorm/decomposition-tests (Files): Likewise.
28717         * modules/uninorm/filter-tests (Files): Likewise.
28718         * modules/uninorm/nfc-tests (Files): Likewise.
28719         * modules/uninorm/nfd-tests (Files): Likewise.
28720         * modules/uninorm/nfkc-tests (Files): Likewise.
28721         * modules/uninorm/nfkd-tests (Files): Likewise.
28722         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
28723         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
28724         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
28725         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
28726         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
28727         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
28728         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
28729         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
28730         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
28731         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
28732         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
28733         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
28734         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
28735         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
28736         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
28737         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
28738         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
28739         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
28740         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
28741         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
28742         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
28743         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
28744         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
28745         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
28746         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
28747         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
28748         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
28749         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
28750         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
28751         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
28752         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
28753         * modules/uniwidth/u8-width-tests (Files): Likewise.
28754         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
28755         * modules/uniwidth/u16-width-tests (Files): Likewise.
28756         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
28757         * modules/uniwidth/u32-width-tests (Files): Likewise.
28758         * modules/uniwidth/width-tests (Files): Likewise.
28759         * modules/unlink-tests (Files): Likewise.
28760         * modules/unsetenv-tests (Files): Likewise.
28761         * modules/usleep-tests (Files): Likewise.
28762         * modules/utimens-tests (Files): Likewise.
28763         * modules/utimensat-tests (Files): Likewise.
28764         * modules/vasnprintf-posix-tests (Files): Likewise.
28765         * modules/vasnprintf-tests (Files): Likewise.
28766         * modules/vasprintf-posix-tests (Files): Likewise.
28767         * modules/vasprintf-tests (Files): Likewise.
28768         * modules/vdprintf-posix-tests (Files): Likewise.
28769         * modules/vfprintf-posix-tests (Files): Likewise.
28770         * modules/vprintf-posix-tests (Files): Likewise.
28771         * modules/vsnprintf-posix-tests (Files): Likewise.
28772         * modules/vsnprintf-tests (Files): Likewise.
28773         * modules/vsprintf-posix-tests (Files): Likewise.
28774         * modules/wcrtomb-tests (Files): Likewise.
28775         * modules/wcsnrtombs-tests (Files): Likewise.
28776         * modules/wcsrtombs-tests (Files): Likewise.
28777         * modules/wctype-tests (Files): Likewise.
28778         * modules/wcwidth-tests (Files): Likewise.
28779         * modules/xmemdup0-tests (Files): Likewise.
28780         * modules/xprintf-posix-tests (Files): Likewise.
28781         * modules/xvasprintf-tests (Files): Likewise.
28782
28783 2009-12-24  Eric Blake  <ebb9@byu.net>
28784
28785         test-nanosleep: fix typo
28786         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
28787         patch.
28788         Reported by Bruno Haible.
28789
28790 2009-12-24  Bruno Haible  <bruno@clisp.org>
28791
28792         Reduce namespace pollution on glibc systems.
28793         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
28794         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
28795         systems.
28796         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
28797         <getopt.h> on glibc systems.
28798         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
28799         systems.
28800         * lib/fcntl.c: Include <unistd.h> here instead.
28801
28802 2009-12-24  Bruno Haible  <bruno@clisp.org>
28803
28804         * lib/stdlib.in.h (includes): Fix typo in today's commit.
28805
28806 2009-12-24  Eric Blake  <ebb9@byu.net>
28807
28808         tests: add signature checks
28809         * tests/signature.h (SIGNATURE_CHECK): New file.
28810         * modules/atexit-tests (Files): Use it.
28811         * modules/btowc-tests (Files): Likewise.
28812         * modules/canonicalize-lgpl-tests (Files): Likewise.
28813         * modules/ceilf-tests (Files): Likewise.
28814         * modules/ceill-tests (Files): Likewise.
28815         * modules/chown-tests (Files): Likewise.
28816         * modules/dprintf-posix-tests (Files): Likewise.
28817         * modules/dup2-tests (Files): Likewise.
28818         * modules/dup3-tests (Files): Likewise.
28819         * modules/duplocale-tests (Files): Likewise.
28820         * modules/fchdir-tests (Files): Likewise.
28821         * modules/fcntl-tests (Files): Likewise.
28822         * modules/fdopendir-tests (Files): Likewise.
28823         * modules/fflush-tests (Files): Likewise.
28824         * modules/flock-tests (Files): Likewise.
28825         * modules/floorf-tests (Files): Likewise.
28826         * modules/floorl-tests (Files): Likewise.
28827         * modules/fnmatch-tests (Files): Likewise.
28828         * modules/fopen-tests (Files): Likewise.
28829         * modules/fprintf-posix-tests (Files): Likewise.
28830         * modules/freopen-tests (Files): Likewise.
28831         * modules/frexp-nolibm-tests (Files): Likewise.
28832         * modules/frexp-tests (Files): Likewise.
28833         * modules/frexpl-nolibm-tests (Files): Likewise.
28834         * modules/frexpl-tests (Files): Likewise.
28835         * modules/fseek-tests (Files): Likewise.
28836         * modules/fseeko-tests (Files): Likewise.
28837         * modules/fsync-tests (Files): Likewise.
28838         * modules/ftell-tests (Files): Likewise.
28839         * modules/ftello-tests (Files): Likewise.
28840         * modules/futimens-tests (Files): Likewise.
28841         * modules/getaddrinfo-tests (Files): Likewise.
28842         * modules/getcwd-tests (Files): Likewise.
28843         * modules/getdelim-tests (Files): Likewise.
28844         * modules/getdtablesize-tests (Files): Likewise.
28845         * modules/getgroups-tests (Files): Likewise.
28846         * modules/gethostname-tests (Files): Likewise.
28847         * modules/getline-tests (Files): Likewise.
28848         * modules/getopt-posix-tests (Files): Likewise.
28849         * modules/gettimeofday-tests (Files): Likewise.
28850         * modules/glob-tests (Files): Likewise.
28851         * modules/iconv-tests (Files): Likewise.
28852         * modules/inet_ntop-tests (Files): Likewise.
28853         * modules/inet_pton-tests (Files): Likewise.
28854         * modules/isblank-tests (Files): Likewise.
28855         * modules/lchown-tests (Files): Likewise.
28856         * modules/ldexpl-tests (Files): Likewise.
28857         * modules/link-tests (Files): Likewise.
28858         * modules/linkat-tests (Files): Likewise.
28859         * modules/lseek-tests (Files): Likewise.
28860         * modules/lstat-tests (Files): Likewise.
28861         * modules/mbrtowc-tests (Files): Likewise.
28862         * modules/mbsinit-tests (Files): Likewise.
28863         * modules/mbsnrtowcs-tests (Files): Likewise.
28864         * modules/mbsrtowcs-tests (Files): Likewise.
28865         * modules/memchr-tests (Files): Likewise.
28866         * modules/memcmp-tests (Files): Likewise.
28867         * modules/memmem-tests (Files): Likewise.
28868         * modules/memrchr-tests (Files): Likewise.
28869         * modules/mkdir-tests (Files): Likewise.
28870         * modules/mkfifo-tests (Files): Likewise.
28871         * modules/mkfifoat-tests (Files): Likewise.
28872         * modules/mknod-tests (Files): Likewise.
28873         * modules/nanosleep-tests (Files): Likewise.
28874         * modules/nl_langinfo-tests (Files): Likewise.
28875         * modules/obstack-printf-tests (Files): Likewise.
28876         * modules/open-tests (Files): Likewise.
28877         * modules/openat-tests (Files): Likewise.
28878         * modules/perror-tests (Files): Likewise.
28879         * modules/pipe2-tests (Files): Likewise.
28880         * modules/poll-tests (Files): Likewise.
28881         * modules/popen-tests (Files): Likewise.
28882         * modules/posix_spawn-tests (Files): Likewise.
28883         * modules/posix_spawnp-tests (Files): Likewise.
28884         * modules/pread-tests (Files): Likewise.
28885         * modules/printf-posix-tests (Files): Likewise.
28886         * modules/pty-tests (Files): Likewise.
28887         * modules/random_r-tests (Files): Likewise.
28888         * modules/rawmemchr-tests (Files): Likewise.
28889         * modules/readlink-tests (Files): Likewise.
28890         * modules/remove-tests (Files): Likewise.
28891         * modules/rename-tests (Files): Likewise.
28892         * modules/renameat-tests (Files): Likewise.
28893         * modules/rmdir-tests (Files): Likewise.
28894         * modules/round-tests (Files): Likewise.
28895         * modules/roundf-tests (Files): Likewise.
28896         * modules/roundl-tests (Files): Likewise.
28897         * modules/select-tests (Files): Likewise.
28898         * modules/setenv-tests (Files): Likewise.
28899         * modules/sigaction-tests (Files): Likewise.
28900         * modules/sleep-tests (Files): Likewise.
28901         * modules/snprintf-posix-tests (Files): Likewise.
28902         * modules/snprintf-tests (Files): Likewise.
28903         * modules/sprintf-posix-tests (Files): Likewise.
28904         * modules/stat-tests (Files): Likewise.
28905         * modules/strcasestr-tests (Files): Likewise.
28906         * modules/strchrnul-tests (Files): Likewise.
28907         * modules/strerror-tests (Files): Likewise.
28908         * modules/strsignal-tests (Files): Likewise.
28909         * modules/strstr-tests (Files): Likewise.
28910         * modules/strtod-tests (Files): Likewise.
28911         * modules/strverscmp-tests (Files): Likewise.
28912         * modules/symlink-tests (Files): Likewise.
28913         * modules/symlinkat-tests (Files): Likewise.
28914         * modules/times-tests (Files): Likewise.
28915         * modules/trunc-tests (Files): Likewise.
28916         * modules/truncf-tests (Files): Likewise.
28917         * modules/truncl-tests (Files): Likewise.
28918         * modules/tsearch-tests (Files): Likewise.
28919         * modules/uname-tests (Files): Likewise.
28920         * modules/unlink-tests (Files): Likewise.
28921         * modules/unsetenv-tests (Files): Likewise.
28922         * modules/usleep-tests (Files): Likewise.
28923         * modules/utimensat-tests (Files): Likewise.
28924         * modules/vasprintf-tests (Files): Likewise.
28925         * modules/vdprintf-posix-tests (Files): Likewise.
28926         * modules/vfprintf-posix-tests (Files): Likewise.
28927         * modules/vprintf-posix-tests (Files): Likewise.
28928         * modules/vsnprintf-posix-tests (Files): Likewise.
28929         * modules/vsnprintf-tests (Files): Likewise.
28930         * modules/vsprintf-posix-tests (Files): Likewise.
28931         * modules/wcrtomb-tests (Files): Likewise.
28932         * modules/wcsnrtombs-tests (Files): Likewise.
28933         * modules/wcsrtombs-tests (Files): Likewise.
28934         * modules/wcwidth-tests (Files): Likewise.
28935         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
28936         * tests/test-isinf.c (isinf): Likewise.
28937         * tests/test-isnan.c (isnan): Likewise.
28938         * tests/test-signbit.c (signbit): Likewise.
28939         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
28940         declaration, either as macro or with correct signature.
28941         (select): Ensure function under test is declared with correct
28942         signature in correct header.
28943         * tests/test-atexit.c (atexit): Likewise.
28944         * tests/test-btowc.c (btowc): Likewise.
28945         * tests/test-canonicalize-lgpl.c (realpath)
28946         (canonicalize_file_name): Likewise.
28947         * tests/test-ceilf1.c (ceilf): Likewise.
28948         * tests/test-ceill.c (ceill): Likewise.
28949         * tests/test-chown.c (chown): Likewise.
28950         * tests/test-dprintf-posix.c (dprintf): Likewise.
28951         * tests/test-dup2.c (dup2): Likewise.
28952         * tests/test-dup3.c (dup3): Likewise.
28953         * tests/test-duplocale.c (duplocale): Likewise.
28954         * tests/test-fchdir.c (fchdir): Likewise.
28955         * tests/test-fchownat.c (fchownat): Likewise.
28956         * tests/test-fcntl.c (fcntl): Likewise.
28957         * tests/test-fdopendir.c (fdopendir): Likewise.
28958         * tests/test-fflush.c (fflush): Likewise.
28959         * tests/test-flock.c (flock): Likewise.
28960         * tests/test-floorf1.c (floorf): Likewise.
28961         * tests/test-floorl.c (floorl): Likewise.
28962         * tests/test-fnmatch.c (fnmatch): Likewise.
28963         * tests/test-fopen.c (fopen): Likewise.
28964         * tests/test-fprintf-posix.c (fprintf): Likewise.
28965         * tests/test-freopen.c (freopen): Likewise.
28966         * tests/test-frexp.c (frexp): Likewise.
28967         * tests/test-frexpl.c (frexpl): Likewise.
28968         * tests/test-fseek.c (fseek): Likewise.
28969         * tests/test-fseeko.c (fseeko): Likewise.
28970         * tests/test-fstatat.c (fstatat): Likewise.
28971         * tests/test-fsync.c (fsync): Likewise.
28972         * tests/test-ftell.c (ftell): Likewise.
28973         * tests/test-ftello.c (ftello): Likewise.
28974         * tests/test-futimens.c (futimens): Likewise.
28975         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
28976         (gai_strerror): Likewise.
28977         * tests/test-getcwd.c (getcwd): Likewise.
28978         * tests/test-getdelim.c (getdelim): Likewise.
28979         * tests/test-getdtablesize.c (getdtablesize): Likewise.
28980         * tests/test-getgroups.c (getgroups): Likewise.
28981         * tests/test-gethostname.c (gethostname): Likewise.
28982         * tests/test-getline.c (getline): Likewise.
28983         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
28984         Likewise.
28985         * tests/test-gettimeofday.c (gettimeofday): Likewise.
28986         * tests/test-glob.c (glob, globfree): Likewise.
28987         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
28988         * tests/test-inet_ntop.c (inet_ntop): Likewise.
28989         * tests/test-inet_pton.c (inet_pton): Likewise.
28990         * tests/test-isblank.c (isblank): Likewise.
28991         * tests/test-lchown.c (lchown): Likewise.
28992         * tests/test-ldexpl.c (ldexpl): Likewise.
28993         * tests/test-link.c (link): Likewise.
28994         * tests/test-linkat.c (linkat): Likewise.
28995         * tests/test-lseek.c (lseek): Likewise.
28996         * tests/test-lstat.c (lstat): Likewise.
28997         * tests/test-mbrtowc.c (mbrtowc): Likewise.
28998         * tests/test-mbsinit.c (mbsinit): Likewise.
28999         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
29000         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
29001         * tests/test-memchr.c (memchr): Likewise.
29002         * tests/test-memcmp.c (memcmp): Likewise.
29003         * tests/test-memmem.c (memmem): Likewise.
29004         * tests/test-memrchr.c (memrchr): Likewise.
29005         * tests/test-mkdir.c (mkdir): Likewise.
29006         * tests/test-mkdirat.c (mkdirat): Likewise.
29007         * tests/test-mkfifo.c (mkfifo): Likewise.
29008         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
29009         * tests/test-mknod.c (mknod): Likewise.
29010         * tests/test-nanosleep.c (nanosleep): Likewise.
29011         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
29012         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
29013         Likewise.
29014         * tests/test-open.c (open): Likewise.
29015         * tests/test-openat.c (openat): Likewise.
29016         * tests/test-perror.c (perror): Likewise.
29017         * tests/test-pipe2.c (pipe2): Likewise.
29018         * tests/test-poll.c (poll): Likewise.
29019         * tests/test-popen.c (popen, pclose): Likewise.
29020         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
29021         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
29022         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
29023         (posix_spawn_file_actions_destroy)
29024         (posix_spawn_file_actions_addclose)
29025         (posix_spawn_file_actions_addopen)
29026         (posix_spawn_file_actions_adddup2): Likewise.
29027         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
29028         * tests/test-pread.c (pread): Likewise.
29029         * tests/test-printf-posix.c (printf): Likewise.
29030         * tests/test-pty.c (openpty, forkpty): Likewise.
29031         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
29032         (random_r): Likewise.
29033         * tests/test-rawmemchr.c (rawmemchr): Likewise.
29034         * tests/test-readlink.c (readlink): Likewise.
29035         * tests/test-remove.c (remove): Likewise.
29036         * tests/test-rename.c (rename): Likewise.
29037         * tests/test-renameat.c (renameat): Likewise.
29038         * tests/test-rmdir.c (rmdir): Likewise.
29039         * tests/test-round1.c (round): Likewise.
29040         * tests/test-roundf1.c (roundf): Likewise.
29041         * tests/test-roundl.c (roundl): Likewise.
29042         * tests/test-setenv.c (setenv): Likewise.
29043         * tests/test-sigaction.c (sigaction): Likewise.
29044         * tests/test-sleep.c (sleep): Likewise.
29045         * tests/test-snprintf.c (snprintf): Likewise.
29046         * tests/test-sprintf-posix.c (sprintf): Likewise.
29047         * tests/test-stat.c (stat): Likewise.
29048         * tests/test-stpncpy.c (stpncpy): Likewise.
29049         * tests/test-strcasestr.c (strcasestr): Likewise.
29050         * tests/test-strchrnul.c (strchrnul): Likewise.
29051         * tests/test-strerror.c (strerror): Likewise.
29052         * tests/test-strsignal.c (strsignal): Likewise.
29053         * tests/test-strstr.c (strstr): Likewise.
29054         * tests/test-strtod.c (strtod): Likewise.
29055         * tests/test-strverscmp.c (strverscmp): Likewise.
29056         * tests/test-symlink.c (symlink): Likewise.
29057         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
29058         * tests/test-times.c (times): Likewise.
29059         * tests/test-trunc1.c (trunc): Likewise.
29060         * tests/test-truncf1.c (truncf): Likewise.
29061         * tests/test-truncl.c (truncl): Likewise.
29062         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
29063         Likewise.
29064         * tests/test-uname.c (uname): Likewise.
29065         * tests/test-unlink.c (unlink): Likewise.
29066         * tests/test-unlinkat.c (unlinkat): Likewise.
29067         * tests/test-unsetenv.c (unsetenv): Likewise.
29068         * tests/test-usleep.c (usleep): Likewise.
29069         * tests/test-utimensat.c (utimensat): Likewise.
29070         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
29071         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
29072         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
29073         * tests/test-vprintf-posix.c (vprintf): Likewise.
29074         * tests/test-vsnprintf.c (vsnprintf): Likewise.
29075         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
29076         * tests/test-wcrtomb.c (wcrtomb): Likewise.
29077         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
29078         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
29079         * tests/test-wcwidth.c (wcwidth): Likewise.
29080
29081         build: pull in conditional headers during GNULIB_POSIXCHECK
29082         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
29083         definitions from any conditionally-included headers.
29084         * lib/stdlib.in.h (includes): Likewise.
29085         * lib/unistd.in.h (includes): Likewise.
29086
29087 2009-12-24  Bruno Haible  <bruno@clisp.org>
29088
29089         * tests/test-argv-iter.c: Include header file being tested immediately
29090         after config.h.
29091         * tests/test-base64.c: Likewise.
29092         * tests/test-flock.c: Likewise.
29093         * tests/test-fsync.c: Likewise.
29094         * tests/test-getdate.c: Likewise.
29095         * tests/test-getndelim2.c: Likewise.
29096         * tests/test-isfinite.c: Likewise.
29097         * tests/test-isinf.c: Likewise.
29098         * tests/test-strerror.c: Likewise.
29099         * tests/test-strsignal.c: Likewise.
29100
29101 2009-12-23  Eric Blake  <ebb9@byu.net>
29102
29103         unistd: work around cygwin bug
29104         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
29105         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
29106         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29107
29108 2009-12-23  Bruno Haible  <bruno@clisp.org>
29109
29110         localename: More tests.
29111         * tests/test-localename.c (SIZEOF): New macro.
29112         (categories): New variable.
29113         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
29114         test_locale_name_default): Add test w.r.t. thread locale.
29115         (test_locale_name_thread): New function.
29116         (main): Invoke it.
29117
29118         localename: Make aware of thread locale.
29119         * lib/localename.h (gl_locale_name_thread): New declaration.
29120         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
29121         behaviour with respect to thread locale.
29122         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
29123         <langinfo.h>, glthread/lock.h.
29124         (SIZE_BITS): New macro.
29125         (string_hash): New function.
29126         (struct hash_node): New type.
29127         (HASH_TABLE_SIZE): New macro.
29128         (struniq_hash_table, struniq_lock): New variables.
29129         (struniq): New function.
29130         (gl_locale_name_thread): New function.
29131         (gl_locale_name): Invoke it.
29132         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
29133         * modules/localename (Depends-on): Add lock.
29134         Reported by Mike Gran <spk121@yahoo.com>.
29135
29136 2009-12-23  Eric Blake  <ebb9@byu.net>
29137
29138         va-args: new module
29139         * modules/va-args: New file.
29140         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
29141         * MODULES.html.sh (Core language properties): Mention it.
29142
29143         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
29144         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
29145         named alias for __attribute__((__unused__)).
29146         * lib/chown.c: Update client.
29147         * lib/fchmodat.c: Likewise.
29148         * lib/fts.c: Likewise.
29149         * lib/getdate.y: Likewise.
29150         * lib/getgroups.c: Likewise.
29151         * lib/getopt.c: Likewise.
29152         * lib/getugroups.c: Likewise.
29153         * lib/mkdir.c: Likewise.
29154         * lib/mkfifo.c: Likewise.
29155         * lib/mkfifoat.c: Likewise.
29156         * lib/mknod.c: Likewise.
29157         * lib/mknodat.c: Likewise.
29158         * lib/readlink.c: Likewise.
29159         * lib/se-context.in.h: Likewise.
29160         * lib/se-selinux.in.h: Likewise.
29161         * lib/sockets.c: Likewise.
29162         * lib/symlink.c: Likewise.
29163         * lib/symlinkat.c: Likewise.
29164         * lib/unicodeio.c: Likewise.
29165         * lib/unistr.h: Likewise.
29166         * tests/test-areadlink.c: Likewise.
29167         * tests/test-areadlinkat.c: Likewise.
29168         * tests/test-filenamecat.c: Likewise.
29169         * tests/test-fseeko.c: Likewise.
29170         * tests/test-ftello.c: Likewise.
29171         * tests/test-getdate.c: Likewise.
29172         * tests/test-getgroups.c: Likewise.
29173         * tests/test-gethostname.c: Likewise.
29174         * tests/test-quotearg.c: Likewise.
29175         * tests/test-version-etc.c: Likewise.
29176         * tests/test-xalloc-die.c: Likewise.
29177         * tests/test-xfprintf-posix.c: Likewise.
29178         * tests/test-xprintf-posix.c: Likewise.
29179         * tests/test-xvasprintf.c: Likewise.
29180
29181         tests: avoid compiler warnings
29182         * tests/test-fcntl.c (main): Delete unused parameters.
29183         * tests/test-freopen-safer.c (main): Likewise.
29184         * tests/test-xalloc-die.c (main): Mark unused parameters.
29185         * tests/test-fseeko.c (main): Likewise.
29186         * tests/test-ftello.c (main): Likewise.
29187         * tests/test-nanosleep.c (main): Avoid declaration warning.
29188         * tests/test-sleep.c (main): Likewise.
29189         * tests/test-unsetenv.c (main): Silence warning about string
29190         literal.
29191         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29192
29193 2009-12-23  Bruno Haible  <bruno@clisp.org>
29194
29195         * tests/test-localename.c (test_locale_name): New function, extracted
29196         from main. Also test mixed situations.
29197         (test_locale_name_posix, test_locale_name_environ,
29198         test_locale_name_default): New functions.
29199         (main): Invoke them all.
29200         * modules/localename-tests (configure.ac): Test for newlocale.
29201
29202 2009-12-23  Bruno Haible  <bruno@clisp.org>
29203
29204         unistd: Ensure getcwd gets declared before being overridden.
29205         * lib/unistd.in.h: Conditionally include <io.h>.
29206
29207 2009-12-22  Bruno Haible  <bruno@clisp.org>
29208
29209         wchar: Diagnose broken combination of glibc and gcc versions and flags.
29210         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
29211         (gl_WCHAR_H): Invoke it.
29212         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
29213         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
29214         Reported by Karl Berry <karl@freefriends.org>.
29215
29216 2009-12-22  Eric Blake  <ebb9@byu.net>
29217
29218         math, unistd: avoid redundant includes
29219         * lib/math.in.h (isnan): No need to re-include <math.h>.
29220         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
29221
29222         getsubopt: work around cygwin bug
29223         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
29224         avoid conflicting with system getsubopt.
29225         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
29226         bug.
29227
29228         getopt: synchronize from glibc
29229         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
29230         parameter order.  Adjust all callers.
29231         (_getopt_internal_r, main): Adjust quoting in error messages.
29232         Drop considerations for outdated POSIX 1003.2 error message.
29233         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
29234         callers.
29235         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
29236
29237         test-getopt: test stderr behavior
29238         * modules/getopt-posix-tests (Depends-on): Add dup2.
29239         * tests/test-getopt.c (ASSERT): Avoid stderr.
29240         (main): Move stderr to a temporary file.
29241         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
29242         Instead, add parameter to inform caller if output occurred.
29243         (test_getopt): Adjust all existing tests to expect silence, and
29244         add new tests of leading ":".
29245         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
29246         glibc shortcomings with leading "-:" or "+:" in optstring.
29247         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29248         Likewise.
29249         * doc/posix-functions/getopt.texi (getopt): Likewise.
29250
29251         test-getopt: enhance test
29252         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
29253         supports optind=0.
29254         * tests/test-getopt.c (OPTIND_MIN): Move...
29255         * tests/test-getopt.h (OPTIND_MIN): ...here.
29256         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
29257         Require that optind=0 works, since modern BSD supports it in
29258         addition to optreset, and since coreutils expects it.
29259         (test_getopt_long_only): New test.
29260         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
29261         glibc shortcomings with 'W;', and enforcement of optind=0.
29262         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29263         Likewise.
29264
29265 2009-12-21  Bruno Haible  <bruno@clisp.org>
29266
29267         localename: Improvements for MacOS X and Cygwin.
29268         * lib/localename.h (gl_locale_name_environ): New declaration.
29269         * lib/localename.c (gl_locale_name_environ): New function, extracted from
29270         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
29271         (gl_locale_name_posix): Invoke it.
29272         (gl_locale_name_default): Add comments. Use Windows native API also on
29273         Cygwin.
29274
29275 2009-12-21  Bruno Haible  <bruno@clisp.org>
29276
29277         Update list of Win32 locale ids.
29278         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
29279         (LANG_SAMI): Renamed from LANG_SAAMI.
29280         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
29281         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
29282         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
29283         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
29284         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
29285         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
29286         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
29287         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
29288         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
29289         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
29290         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
29291         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
29292         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
29293         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
29294         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
29295         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
29296         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
29297         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
29298         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
29299         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
29300         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
29301         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
29302         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
29303         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
29304         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
29305         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
29306         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
29307         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
29308         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
29309         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
29310         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
29311         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
29312         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
29313         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
29314         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
29315         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
29316         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
29317         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
29318         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
29319         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
29320         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
29321         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
29322         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
29323         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
29324         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
29325         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
29326         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
29327         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
29328         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
29329         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
29330         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
29331         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
29332         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
29333         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
29334         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
29335         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
29336         Add more languages and countries for Sami, Sorbian. Add more countries
29337         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
29338         for Pashto. Change country for Syriac, Tswana.
29339
29340 2009-12-21  Eric Blake  <ebb9@byu.net>
29341
29342         test-utimens: avoid spurious failure
29343         * tests/test-chown.h (nap): Factor...
29344         * tests/nap.h: ...into new file.
29345         * tests/test-lchown.h (nap): Avoid duplication.
29346         * tests/test-utimens-common.h (nap): Use shared implementation,
29347         necessary on file systems with 1-second resolution.
29348         * modules/chown-tests (Files): Include new file.
29349         * modules/fdutimensat-tests (Files): Likewise.
29350         * modules/futimens-tests (Files): Likewise.
29351         * modules/lchown-tests (Files): Likewise.
29352         * modules/openat-tests (Files): Likewise.
29353         * modules/utimens-tests (Files): Likewise.
29354         * modules/utimensat-tests (Files): Likewise.
29355
29356 2009-12-19  Eric Blake  <ebb9@byu.net>
29357
29358         futimens, utimensat: work around Linux bug
29359         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
29360         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29361         * lib/utimensat.c (rpl_utimensat): Work around it.
29362         * lib/futimens.c (rpl_futimens): Adjust comment.
29363
29364         utimens: work around Linux ctime bug
29365         * lib/utimens.c (detect_ctime_bug): New helper function.
29366         (update_timespec): Differentiate between workaround needed for
29367         this bug vs. what is needed for systems that lack utimensat.
29368         (fdutimens, lutimens): Work around bug.
29369
29370         utimens: check for ctime update
29371         * tests/test-utimens-common.h (check_ctime): Define.
29372         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
29373         * tests/test-futimens.h (test_futimens): Likewise.
29374         * tests/test-lutimens.h (test_lutimens): Likewise.
29375         * doc/posix-functions/futimens.texi (futimens): Document the bug.
29376         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29377
29378 2009-12-19  Bruno Haible  <bruno@clisp.org>
29379
29380         dprintf-posix: Check against memory leak fixed on 2009-12-15.
29381         * tests/test-dprintf-posix2.sh: New file.
29382         * tests/test-dprintf-posix2.c: New file.
29383         * modules/dprintf-posix-tests (Files): Add them.
29384         (configure.ac): Check for getrlimit and setrlimit.
29385         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
29386
29387 2009-12-19  Bruno Haible  <bruno@clisp.org>
29388
29389         fprintf-posix: Check against memory leak fixed on 2009-12-15.
29390         * tests/test-fprintf-posix3.sh: New file.
29391         * tests/test-fprintf-posix3.c: New file.
29392         * modules/fprintf-posix-tests (Files): Add them.
29393         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
29394
29395 2009-12-19  Eric Blake  <ebb9@byu.net>
29396
29397         dirfd: fix prototype
29398         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
29399         * lib/dirfd.c (dirfd): Likewise.
29400
29401         canonicalize: reduce memory usage
29402         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
29403         allocation to size.
29404         Reported by Solar Designer <solar@openwall.com>.
29405
29406 2009-12-19  Bruno Haible  <bruno@clisp.org>
29407
29408         New module attribute 'Applicability'.
29409         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
29410         * gnulib-tool: New option --extract-applicability.
29411         (func_usage): Document it.
29412         (sed_extract_prog): Recognize it.
29413         (func_get_applicability): New function.
29414         (func_import): Generalize handling of 'link-warning' module.
29415         * modules/link-warning (Applicability): New section.
29416         * modules/arg-nonnull (Applicability): New section.
29417         Repoted by Simon Josefsson <simon@josefsson.org>.
29418
29419 2009-12-19  Bruno Haible  <bruno@clisp.org>
29420
29421         fflush: tweak
29422         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
29423         * lib/fseeko.c (rpl_fseeko): Likewise.
29424
29425 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
29426
29427         * lib/gl_list.h: Fix typo in comment.
29428
29429 2009-12-16  Eric Blake  <ebb9@byu.net>
29430
29431         fcntl: use to simplify other modules
29432         * modules/cloexec (Depends-on): Add fcntl.
29433         * modules/fchdir (Depends-on): Likewise.
29434         * modules/fd-safer-flag (Depends-on): Likewise.
29435         * modules/unistd-safer (Depends-on): Likewise.
29436         * modules/dup3 (configure.ac): Set module indicator.
29437         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
29438         missing.
29439         * lib/fchdir.c (_gl_register_dup): Fix comment.
29440         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
29441         * lib/dup-safer.c (dup_safer): Likewise.
29442         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
29443         * lib/dup3.c (dup3): Likewise.
29444         * tests/test-fchdir.c (main): Enhance test.
29445         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
29446
29447         fcntl: port portions of fcntl to mingw
29448         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
29449         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
29450         replacement for mingw.
29451         * modules/fcntl (Description): Update.
29452         (Depends-on): Add dup2.
29453         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
29454         * modules/fcntl-h (Makefile.am): Substitute it.
29455         * lib/fcntl.in.h (fcntl): Update declaration.
29456         (F_DUPFD, F_GETFD): New macros, when needed.
29457         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29458         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
29459         * tests/test-fcntl.c (check_flags, main): Enhance test for items
29460         we now guarantee.
29461
29462         fcntl: work around cygwin bug in F_DUPFD
29463         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
29464         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
29465         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
29466         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
29467         * doc/posix-functions/fcntl.texi (fcntl): Document it.
29468
29469         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
29470         * modules/fcntl (Files): List new files.
29471         (configure.ac): Run a test.
29472         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
29473         * lib/fcntl.c (rpl_fcntl): Likewise.
29474         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
29475         (gl_FCNTL_H): Always replace fcntl.h.
29476         * modules/fcntl-h (Makefile.am): Substitute witnesses.
29477         * lib/fcntl.in.h (fcntl): Declare replacement.
29478         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
29479         needed, plus a witness.
29480         * doc/posix-functions/fcntl.texi (fcntl): Document this.
29481         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
29482         * tests/test-fcntl.c: New file.
29483         * modules/fcntl-tests: Likewise.
29484
29485         binary-io: avoid potential compilation warning
29486         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
29487         directives.
29488
29489         fflush: avoid compilation error on NetBSD
29490         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
29491         between off_t and fpos_t, since the latter is sometimes a struct.
29492         * lib/fseeko.c (rpl_fseeko): Likewise.
29493         Reported by Alexander Nasonov <alnsn@yandex.ru>.
29494
29495 2009-12-15  Eric Blake  <ebb9@byu.net>
29496
29497         fcntl-h, stdio, sys_ioctl: fix declarations
29498         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
29499         function must not take arguments.
29500         * lib/sys_ioctl.in.h (ioctl): Likewise.
29501         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
29502         (open): Add a link warning.
29503
29504 2009-12-15  Jim Meyering  <meyering@redhat.com>
29505
29506         areadlink, areadlink-with-size: relax license to LGPLv2+
29507         * modules/areadlink (License): Relax to LGPLv2+.
29508         * modules/areadlink-with-size (License): Likewise.
29509
29510 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
29511             Bruno Haible  <bruno@clisp.org>
29512
29513         *printf: Fix memory leak.
29514         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
29515         * lib/vfprintf.c (vfprintf): Likewise.
29516         * lib/dprintf.c (dprintf): Likewise.
29517         * lib/vdprintf.c (vdprintf): Likewise.
29518
29519 2009-12-14  Eric Blake  <ebb9@byu.net>
29520
29521         accept4: adjust module dependencies
29522         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
29523
29524         utimens: one more try at avoiding compiler warning
29525         * lib/utimens.c (lutimens): Lower scope of result.
29526
29527 2009-12-13  Bruno Haible  <bruno@clisp.org>
29528
29529         Move the malloc checking from module 'list' to new module 'xlist'.
29530         * modules/xlist: New file.
29531         * lib/gl_xlist.h: New file.
29532         * lib/gl_xlist.c: New file.
29533         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
29534         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
29535         gl_list_add_last, gl_list_add_before, gl_list_add_after,
29536         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
29537         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
29538         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
29539         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
29540         gl_sortedlist_nx_add): New declarations.
29541         (struct gl_list_implementation): Rename and change methods accordingly.
29542         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
29543         (gl_list_nx_create): Renamed from gl_list_create.
29544         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
29545         (gl_list_nx_set_at): Renamed from gl_list_set_at.
29546         (gl_list_nx_add_first): Renamed from gl_list_add_first.
29547         (gl_list_nx_add_last): Renamed from gl_list_add_last.
29548         (gl_list_nx_add_before): Renamed from gl_list_add_before.
29549         (gl_list_nx_add_after): Renamed from gl_list_add_after.
29550         (gl_list_nx_add_at): Renamed from gl_list_add_at.
29551         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
29552         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
29553         gl_list_create_empty.
29554         (gl_list_nx_create): Renamed from gl_list_create.
29555         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
29556         (gl_list_nx_set_at): Renamed from gl_list_set_at.
29557         (gl_list_nx_add_first): Renamed from gl_list_add_first.
29558         (gl_list_nx_add_last): Renamed from gl_list_add_last.
29559         (gl_list_nx_add_before): Renamed from gl_list_add_before.
29560         (gl_list_nx_add_after): Renamed from gl_list_add_after.
29561         (gl_list_nx_add_at): Renamed from gl_list_add_at.
29562         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
29563         * lib/gl_array_list.c: Don't include xalloc.h.
29564         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
29565         NULL upon out-of-memory.
29566         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
29567         out-of-memory.
29568         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
29569         Change return type to 'int'.
29570         (gl_array_nx_set_at): Renamed from gl_array_set_at.
29571         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
29572         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
29573         upon out-of-memory.
29574         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
29575         upon out-of-memory.
29576         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
29577         upon out-of-memory.
29578         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
29579         upon out-of-memory.
29580         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
29581         out-of-memory.
29582         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
29583         Update.
29584         (gl_array_list_implementation): Update.
29585         * lib/gl_carray_list.c: Don't include xalloc.h.
29586         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
29587         Return NULL upon out-of-memory.
29588         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
29589         out-of-memory.
29590         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
29591         Change return type to 'int'.
29592         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
29593         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
29594         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
29595         upon out-of-memory.
29596         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
29597         upon out-of-memory.
29598         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
29599         out-of-memory.
29600         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
29601         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
29602         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
29603         Update.
29604         (gl_carray_list_implementation): Update.
29605         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
29606         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
29607         gl_linked_create_empty. Return NULL upon out-of-memory.
29608         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
29609         out-of-memory.
29610         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
29611         Change return type to 'int'. Return -1 upon out-of-memory.
29612         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
29613         out-of-memory.
29614         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
29615         upon out-of-memory.
29616         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
29617         upon out-of-memory.
29618         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
29619         NULL upon out-of-memory.
29620         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
29621         upon out-of-memory.
29622         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
29623         out-of-memory.
29624         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
29625         Update.
29626         * lib/gl_linked_list.c: Don't include xalloc.h.
29627         (gl_linked_list_implementation): Update.
29628         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
29629         (add_to_bucket): Change return type to 'int'.
29630         (gl_linkedhash_list_implementation): Update.
29631         * lib/gl_anytree_list1.h (free_subtree): New function.
29632         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
29633         gl_tree_create_empty. Return NULL upon out-of-memory.
29634         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
29635         Change return type to 'int'. Return -1 upon out-of-memory.
29636         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
29637         out-of-memory.
29638         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
29639         (gl_tree_remove_node): New function, moved here from
29640         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
29641         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
29642         Update.
29643         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
29644         malloc, not xmalloc. Return NULL upon out-of-memory.
29645         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
29646         out-of-memory.
29647         (gl_tree_remove_node_from_tree): New function, extracted from
29648         gl_tree_remove_node.
29649         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
29650         upon out-of-memory.
29651         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
29652         out-of-memory.
29653         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
29654         upon out-of-memory.
29655         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
29656         upon out-of-memory.
29657         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
29658         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
29659         not xmalloc. Return NULL upon out-of-memory.
29660         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
29661         out-of-memory.
29662         (gl_tree_remove_node_from_tree): New function, extracted from
29663         gl_tree_remove_node.
29664         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
29665         upon out-of-memory.
29666         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
29667         out-of-memory.
29668         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
29669         upon out-of-memory.
29670         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
29671         upon out-of-memory.
29672         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
29673         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
29674         gl_anytree_list1.h before gl_anyavltree_list2.h.
29675         (gl_avltree_list_implementation): Update.
29676         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
29677         gl_anytree_list1.h before gl_anyavltree_list2.h.
29678         (gl_rbtree_list_implementation): Update.
29679         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
29680         Change return type to 'int'. Return -1 upon out-of-memory. Use
29681         __builtin_expect.
29682         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
29683         (gl_avltreehash_list_implementation): Update.
29684         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
29685         (gl_rbtreehash_list_implementation): Update.
29686         * modules/array-list (Depends-on): Remove xalloc.
29687         * modules/carray-list (Depends-on): Likewise.
29688         * modules/linked-list (Depends-on): Likewise.
29689         * modules/linkedhash-list (Depends-on): Likewise.
29690         * modules/avltree-list (Depends-on): Likewise.
29691         * modules/rbtree-list (Depends-on): Likewise.
29692         * modules/avltreehash-list (Depends-on): Likewise.
29693         * modules/rbtreehash-list (Depends-on): Likewise.
29694
29695         * modules/xsublist: New file.
29696         * lib/gl_xsublist.h: New file.
29697         * lib/gl_xsublist.c: New file.
29698         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
29699         (gl_sublist_nx_create): New declaration.
29700         * lib/gl_sublist.c: Don't include xalloc.h.
29701         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
29702         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
29703         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
29704         Change return type to 'int'. Return -1 upon out-of-memory.
29705         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
29706         upon out-of-memory.
29707         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
29708         NULL upon out-of-memory.
29709         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
29710         upon out-of-memory.
29711         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
29712         NULL upon out-of-memory.
29713         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
29714         NULL upon out-of-memory.
29715         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
29716         upon out-of-memory.
29717         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
29718         (gl_sublist_list_implementation): Update.
29719         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
29720         upon out-of-memory.
29721         * modules/sublist (Depends-on): Remove xalloc.
29722
29723         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
29724         * tests/test-carray_list.c: Likewise.
29725         * tests/test-linked_list.c: Likewise.
29726         * tests/test-linkedhash_list.c: Likewise.
29727         * tests/test-avltree_list.c: Likewise.
29728         * tests/test-rbtree_list.c: Likewise.
29729         * tests/test-avltreehash_list.c: Likewise.
29730         * tests/test-rbtreehash_list.c: Likewise.
29731         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
29732         * modules/carray-list-tests (Makefile.am): Likewise.
29733         * modules/linked-list-tests (Makefile.am): Likewise.
29734         * modules/linkedhash-list-tests (Makefile.am): Likewise.
29735         * modules/avltree-list-tests (Makefile.am): Likewise.
29736         * modules/rbtree-list-tests (Makefile.am): Likewise.
29737         * modules/avltreehash-list-tests (Makefile.am): Likewise.
29738         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
29739
29740         * NEWS: Mention the changes.
29741
29742         * lib/clean-temp.c: Include gl_xlist.h.
29743         * modules/clean-temp (Depends-on): Add xlist.
29744
29745         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
29746         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
29747
29748         * tests/test-array_oset.c: Include gl_xlist.h.
29749         * modules/array-oset-tests (Depends-on): Add xlist.
29750
29751         Reported by José E. Marchesi <jemarch@gnu.org>.
29752
29753 2009-12-13  Bruno Haible  <bruno@clisp.org>
29754
29755         Move the malloc checking from module 'oset' to new module 'xoset'.
29756         * modules/xoset: New file.
29757         * lib/gl_xoset.h: New file.
29758         * lib/gl_xoset.c: New file.
29759         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
29760         declarations.
29761         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
29762         (struct gl_oset_implementation): Rename and change methods accordingly.
29763         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
29764         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
29765         'int'. Mark as __warn_unused_result__.
29766         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
29767         gl_oset_create_empty.
29768         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
29769         'int'.
29770         * lib/gl_array_oset.c: Don't include xalloc.h.
29771         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
29772         malloc, not xmalloc.
29773         (grow): Change return type to 'int'. Don't call xalloc_die.
29774         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
29775         to 'int'.
29776         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
29777         'int'.
29778         (gl_array_oset_implementation): Update.
29779         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
29780         gl_tree_create_empty.
29781         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
29782         'int'.
29783         * lib/gl_avltree_oset.c: Don't include xalloc.h.
29784         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
29785         xmalloc.
29786         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
29787         not xmalloc.
29788         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
29789         xmalloc.
29790         (gl_avltree_oset_implementation): Update.
29791         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
29792         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
29793         xmalloc.
29794         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
29795         not xmalloc.
29796         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
29797         xmalloc.
29798         (gl_rbtree_oset_implementation): Update.
29799         * modules/array-oset (Depends-on): Remove xalloc.
29800         * modules/avltree-oset (Depends-on): Likewise.
29801         * modules/rbtree-oset (Depends-on): Likewise.
29802         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
29803         * tests/test-avltree_oset.c: Likewise.
29804         * tests/test-rbtree_oset.c: Likewise.
29805         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
29806         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
29807         * modules/rbtree-oset-tests (Makefile.am): Likewise.
29808         * NEWS: Mention the change.
29809
29810 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
29811
29812         maint.mk: allow a project to override release-prep commands
29813         * top/maint.mk (alpha, beta, stable): Move release-preparatory
29814         commands into a new rule.
29815         (release-prep): New rule.
29816         (release-prep-hook): New overridable variable.
29817
29818 2009-12-13  Bruno Haible  <bruno@clisp.org>
29819
29820         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
29821
29822 2009-12-13  Jim Meyering  <meyering@redhat.com>
29823
29824         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
29825         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
29826
29827 2009-12-12  Bruno Haible  <bruno@clisp.org>
29828
29829         duplocale: Tweak.
29830         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
29831
29832 2009-12-12  Karl Berry  <karl@gnu.org>
29833
29834         * config/srclist.txt (strtoll.c): tab changes, no more sync.
29835
29836 2009-12-12  Bruno Haible  <bruno@clisp.org>
29837
29838         * m4/po.m4: Undo incorrect untabification.
29839
29840 2009-12-12  Bruno Haible  <bruno@clisp.org>
29841
29842         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
29843         * modules/c-strtod (Depends-on): Add locale.
29844         * modules/c-strtold (Depends-on): Likewise.
29845
29846 2009-12-12  Bruno Haible  <bruno@clisp.org>
29847
29848         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
29849
29850 2009-12-11  Eric Blake  <ebb9@byu.net>
29851
29852         setenv: relax requirement in light of POSIX ruling
29853         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
29854         not NULL.
29855         * tests/test-setenv.c (main): Relax test.
29856         * tests/test-unsetenv.c (main): Likewise.
29857         * doc/posix-functions/setenv.texi (setenv): Document this.
29858         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29859
29860 2009-12-11  Bruno Haible  <bruno@clisp.org>
29861
29862         New module 'fd-safer-flag'.
29863         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
29864         * lib/dup-safer.c (dup_safer_flag): Remove function.
29865         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
29866         * lib/fd-safer.c (fd_safer_flag): Remove function.
29867         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
29868         * modules/cloexec (configure.ac): Drop indicator macro.
29869         * modules/fd-safer-flag: New file.
29870         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
29871         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
29872         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
29873
29874 2009-12-11  Bruno Haible  <bruno@clisp.org>
29875
29876         Tests for module 'nl_langinfo'.
29877         * modules/nl_langinfo-tests: New file.
29878         * tests/test-nl_langinfo.sh: New file.
29879         * tests/test-nl_langinfo.c: New file.
29880
29881         New module 'nl_langinfo'.
29882         * lib/nl_langinfo.c: New file.
29883         * m4/nl_langinfo.m4: New file.
29884         * modules/nl_langinfo: New file.
29885         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
29886
29887 2009-12-11  Bruno Haible  <bruno@clisp.org>
29888
29889         Tests for module 'langinfo'.
29890         * modules/langinfo-tests: New file.
29891         * tests/test-langinfo.c: New file.
29892
29893         New module 'langinfo'.
29894         * lib/langinfo.in.h: New file.
29895         * m4/langinfo_h.m4: New file.
29896         * modules/langinfo: New file.
29897         * doc/posix-headers/langinfo.texi: Mention the new module.
29898
29899 2009-12-11  Bruno Haible  <bruno@clisp.org>
29900
29901         * lib/config.charset: Untabify.
29902
29903 2009-12-11  Bruno Haible  <bruno@clisp.org>
29904
29905         * modules/unistd-safer (configure.ac): Drop indicator macro.
29906
29907 2009-12-11  Bruno Haible  <bruno@clisp.org>
29908
29909         Move pipe2-safer code to its own file.
29910         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
29911         * lib/pipe-safer.c (pipe2_safer): Remove function.
29912         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
29913         (Makefile.am): Add it to lib_SOURCES.
29914
29915 2009-12-10  Bruno Haible  <bruno@clisp.org>
29916
29917         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
29918
29919 2009-12-10  Bruno Haible  <bruno@clisp.org>
29920
29921         Declare which arguments expect non-NULL values, for GCC and clang.
29922         * build-aux/arg-nonnull.h: New file.
29923         * modules/arg-nonnull: New file.
29924         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
29925         (inet_ntop, inet_pton): Use it.
29926         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
29927         (closedir, dirfd, opendir, scandir, alphasort): Use it.
29928         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
29929         (open, openat): Use it.
29930         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
29931         (fnmatch): Use it.
29932         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
29933         (getopt, getopt_long, getopt_long_only): Use it.
29934         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
29935         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
29936         Use it.
29937         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
29938         (iconv_open): Use it.
29939         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
29940         (strtoimax, strtoumax): Use it.
29941         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
29942         (duplocale): Use it.
29943         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
29944         (frexp, frexpl): Use it.
29945         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
29946         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
29947         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
29948         (tsearch, tfind, tdelete, twalk): Use it.
29949         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
29950         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
29951         sigpending): Use it.
29952         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
29953         (posix_spawn, posix_spawnp, posix_spawnattr_init,
29954         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
29955         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
29956         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
29957         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
29958         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
29959         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
29960         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
29961         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
29962         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
29963         Use it.
29964         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
29965         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
29966         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
29967         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
29968         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
29969         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
29970         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
29971         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
29972         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
29973         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
29974         strtoull, unsetenv): Use it.
29975         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
29976         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
29977         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
29978         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
29979         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
29980         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
29981         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
29982         (strcasecmp, strncasecmp): Use it.
29983         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
29984         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
29985         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
29986         rpl_setsockopt): Use it.
29987         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
29988         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
29989         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
29990         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
29991         (gettimeofday): Use it.
29992         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
29993         (times): Use it.
29994         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
29995         (uname): Use it.
29996         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
29997         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
29998         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
29999         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
30000         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
30001         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
30002         unlinkat, write): Use it.
30003         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
30004         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
30005         * lib/argv-iter.h: Include arg-nonnull.h.
30006         (_ATTRIBUTE_NONNULL_): Remove macro.
30007         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
30008         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
30009         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
30010         optimization.
30011         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
30012         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
30013         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
30014         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
30015         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
30016         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
30017         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
30018         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
30019         * modules/arpa_inet (Depends-on): Add arg-nonnull.
30020         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
30021         * modules/dirent (Depends-on): Add arg-nonnull.
30022         (Makefile.am): Insert arg-nonnull.h into dirent.h.
30023         * modules/fcntl-h (Depends-on): Add arg-nonnull.
30024         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
30025         * modules/fnmatch (Depends-on): Add arg-nonnull.
30026         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
30027         * modules/getopt-posix (Depends-on): Add arg-nonnull.
30028         (Makefile.am): Insert arg-nonnull.h into getopt.h.
30029         * modules/glob (Depends-on): Add arg-nonnull.
30030         (Makefile.am): Insert arg-nonnull.h into glob.h.
30031         * modules/iconv_open (Depends-on): Add arg-nonnull.
30032         (Makefile.am): Insert arg-nonnull.h into iconv.h.
30033         * modules/inttypes (Depends-on): Add arg-nonnull.
30034         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
30035         * modules/locale (Depends-on): Add arg-nonnull.
30036         (Makefile.am): Insert arg-nonnull.h into locale.h.
30037         * modules/math (Depends-on): Add arg-nonnull.
30038         (Makefile.am): Insert arg-nonnull.h into math.h.
30039         * modules/netdb (Depends-on): Add arg-nonnull.
30040         (Makefile.am): Insert arg-nonnull.h into netdb.h.
30041         * modules/search (Depends-on): Add arg-nonnull.
30042         (Makefile.am): Insert arg-nonnull.h into search.h.
30043         * modules/signal (Depends-on): Add arg-nonnull.
30044         (Makefile.am): Insert arg-nonnull.h into signal.h.
30045         * modules/spawn (Depends-on): Add arg-nonnull.
30046         (Makefile.am): Insert arg-nonnull.h into spawn.h.
30047         * modules/stdio (Depends-on): Add arg-nonnull.
30048         (Makefile.am): Insert arg-nonnull.h into stdio.h.
30049         * modules/stdlib (Depends-on): Add arg-nonnull.
30050         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
30051         * modules/string (Depends-on): Add arg-nonnull.
30052         (Makefile.am): Insert arg-nonnull.h into string.h.
30053         * modules/strings (Depends-on): Add arg-nonnull.
30054         (Makefile.am): Insert arg-nonnull.h into strings.h.
30055         * modules/sys_socket (Depends-on): Add arg-nonnull.
30056         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
30057         * modules/sys_stat (Depends-on): Add arg-nonnull.
30058         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
30059         * modules/sys_time (Depends-on): Add arg-nonnull.
30060         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
30061         * modules/sys_times (Depends-on): Add arg-nonnull.
30062         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
30063         * modules/sys_utsname (Depends-on): Add arg-nonnull.
30064         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
30065         * modules/time (Depends-on): Add arg-nonnull.
30066         (Makefile.am): Insert arg-nonnull.h into time.h.
30067         * modules/unistd (Depends-on): Add arg-nonnull.
30068         (Makefile.am): Insert arg-nonnull.h into unistd.h.
30069         * modules/wchar (Depends-on): Add arg-nonnull.
30070         (Makefile.am): Insert arg-nonnull.h into wchar.h.
30071         * modules/argv-iter (Depends-on): Add arg-nonnull.
30072         * tests/test-canonicalize.c (null_ptr): New function.
30073         (main): Use it.
30074         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
30075         (main): Use it.
30076         * tests/test-memmem.c (null_ptr): New function.
30077         (main): Use it.
30078         Reported by Jim Meyering.
30079
30080 2009-12-10  Bruno Haible  <bruno@clisp.org>
30081
30082         Use spaces for indentation, not tabs.
30083         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30084         * m4/*.m4: Untabify.
30085         * build-aux/*.h: Untabify.
30086         * tests/**/*.[hc]: Untabify.
30087         * README: New section "Indent with spaces, not TABs", based on
30088         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
30089         * NEWS: Mention the change.
30090
30091 2009-12-10  Bruno Haible  <bruno@clisp.org>
30092
30093         pty test: Fix link error.
30094         * modules/pty-tests (Makefile.am): Add the default LDADD value to
30095         test_pty_LDADD.
30096
30097 2009-12-07  Simon Josefsson  <simon@josefsson.org>
30098
30099         * modules/pty: New file.
30100         * modules/pty-tests: New file.
30101         * m4/pty.m4: New file.
30102         * tests/test-pty.c: New file.
30103         * doc/glibc-headers/pty.texi: Modified.
30104         * doc/glibc-functions/forkpty.texi: Modified.
30105         * doc/glibc-functions/openpty.texi: Modified.
30106
30107 2009-12-10  Bruno Haible  <bruno@clisp.org>
30108
30109         Avoid syntax error in C++ mode.
30110         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
30111
30112 2009-12-10  Bruno Haible  <bruno@clisp.org>
30113
30114         Use sed with option -e.
30115         * gnulib-tool (func_version, func_emit_copyright_notice,
30116         func_emit_initmacro_end, func_import, func_create_testdir): Pass
30117         option -e to sed.
30118         * modules/link-warning (Makefile.am): Likewise.
30119
30120 2009-12-10  Jim Meyering  <meyering@redhat.com>
30121
30122         mgetgroups: do not write bytes beyond end of malloc'd buffer
30123         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
30124         username, we call getgroups with a one-element-shorter buffer,
30125         but still told it the length was original, max_n_groups.
30126
30127 2009-12-09  Eric Blake  <ebb9@byu.net>
30128
30129         cloexec: relax license
30130         * modules/cloexec (Maintainer): Add myself.
30131         (License): Use LGPL, not GPL.
30132
30133         link-warning: optimize generation
30134         * modules/link-warning (Makefile.am): Reduce process usage.
30135
30136 2009-12-09  Bruno Haible  <bruno@clisp.org>
30137
30138         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
30139         workaround was added on 2009-11-17.
30140
30141 2009-12-09  Jim Meyering  <meyering@redhat.com>
30142             Bruno Haible  <bruno@clisp.org>
30143
30144         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
30145         * modules/link-warning (Makefile.am): Make the comment-removing sed
30146         command more robust in the face of bootstrap-prepended comment lines.
30147
30148 2009-12-09  Bruno Haible  <bruno@clisp.org>
30149
30150         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
30151         most one group.
30152
30153 2009-12-09  Simon Josefsson <simon@josefsson.org>
30154             Bruno Haible  <bruno@clisp.org>
30155
30156         * build-aux/link-warning.h: Add copyright notice.
30157         * modules/link-warning (Makefile.am): Generate link-warning.h from
30158         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
30159         * NEWS: Mention change in link-warning module.
30160         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
30161         * modules/dirent (Makefile.am): Add dependency to dirent.h.
30162         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
30163         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
30164         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
30165         * modules/math (Makefile.am): Add dependency to math.h.
30166         * modules/search (Makefile.am): Add dependency to search.h.
30167         * modules/signal (Makefile.am): Add dependency to signal.h.
30168         * modules/spawn (Makefile.am): Add dependency to spawn.h.
30169         * modules/stdio (Makefile.am): Add dependency to stdio.h.
30170         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
30171         * modules/string (Makefile.am): Add dependency to string.h.
30172         * modules/strings (Makefile.am): Add dependency to strings.h.
30173         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
30174         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
30175         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
30176         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
30177         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
30178         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
30179         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
30180         * modules/unistd (Makefile.am): Add dependency to unistd.h.
30181         * modules/wchar (Makefile.am): Add dependency to wchar.h.
30182
30183 2009-12-09  Bruno Haible  <bruno@clisp.org>
30184
30185         fchdir: Optimize away rpl_fstat when possible.
30186         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
30187         REPLACE_OPEN_DIRECTORY.
30188         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
30189
30190 2009-12-09  Bruno Haible  <bruno@clisp.org>
30191
30192         * lib/fchdir.c: Update comment.
30193
30194 2009-12-09  Bruno Haible  <bruno@clisp.org>
30195
30196         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
30197
30198 2009-12-08  Eric Blake  <ebb9@byu.net>
30199
30200         fchdir: avoid memory leak on re-registration.
30201         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
30202
30203 2009-12-08  Jim Meyering  <meyering@redhat.com>
30204
30205         init.sh: avoid Solaris 10 /bin/sh portability problem
30206         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
30207         sourced script:
30208           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
30209           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
30210           bar
30211         tests/init.sh relied on that, accepting a --set-path=DIR argument,
30212         and two tests used that idiom.
30213         * tests/init.sh: Update suggested usage comments.
30214         (path_prepend_): New function, to be used in place
30215         of the --src-path=DIR option.
30216         (setup_): Move PATH-prepending code into path_prepend_.
30217         * tests/test-pread.sh: Adapt to new usage.
30218         * tests/test-xalloc-die.sh: Likewise.
30219
30220 2009-12-08  Simon Josefsson  <simon@josefsson.org>
30221
30222         * doc/gnulib.texi (Glibc pty.h): Add.
30223         * doc/glibc-functions/forkpty.texi: Add.
30224         * doc/glibc-functions/openpty.texi: Add.
30225         Suggested by Bruno Haible.
30226
30227 2009-12-08  Eric Blake  <ebb9@byu.net>
30228
30229         fchdir: fix logic bugs
30230         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
30231         * tests/test-fchdir.c (main): Enhance test.
30232         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
30233         is in use.
30234
30235         dup2: fix logic bugs
30236         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
30237         REPLACE_DUP2 to decide when rpl_dup2 is needed.
30238         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
30239         exists.
30240         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
30241
30242 2009-12-07  Eric Blake  <ebb9@byu.net>
30243
30244         unlink: fix m4 detection
30245         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
30246
30247         unistd-safer: add unit test
30248         * modules/unistd-safer-tests: New file.
30249         * tests/test-dup-safer.c: Likewise.
30250         * tests/test-cloexec.c (setmode): Avoid compiler warning.
30251         * tests/test-dup2.c (setmode): Likewise.
30252         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
30253
30254         cloexec: preserve text vs. binary across dup_cloexec
30255         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
30256         mode.
30257         * modules/dup2-tests (Depends-on): Add binary-io.
30258         * modules/cloexec-tests (Depends-on): Likewise.
30259         * tests/test-dup2.c (setmode, is_mode): New helpers.
30260         (main): Add tests that translation mode is preserved.
30261         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
30262         Reported by Bruno Haible.
30263
30264         mgetgroups: reduce duplicate listings
30265         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
30266         resulting array.
30267         * tests/test-chown.h (test_chown): Simplify client.
30268         * tests/test-lchown.h (test_lchown): Likewise.
30269
30270 2009-12-06  Bruno Haible  <bruno@clisp.org>
30271
30272         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
30273         value.
30274
30275 2009-12-06  Bruno Haible  <bruno@clisp.org>
30276
30277         * lib/progname.c: Include stdio.h, stdlib.h.
30278         (set_program_name): Reject a NULL argument.
30279
30280 2009-12-05  Eric Blake  <ebb9@byu.net>
30281
30282         pipe2-safer: new module
30283         * modules/pipe2-safer: New file.
30284         * lib/unistd-safer.h (pipe2_safer): New prototype.
30285         * lib/unistd--.h (pipe2): New wrapper.
30286         * lib/pipe-safer.c (pipe2_safer): New function.
30287         * modules/pipe (Depends-on): Add pipe2-safer.
30288         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
30289
30290         stdlib-safer: preserve cloexec flag for mkostemp[s]
30291         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
30292         fd_safer_flag.
30293
30294         unistd-safer: allow preservation of cloexec status via flag
30295         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
30296         prototypes.
30297         * lib/dup-safer.c (dup_safer_flag): New function.
30298         * lib/fd-safer.c (fd_safer_flag): Likewise.
30299         * modules/cloexec (configure.ac): Set witness.
30300
30301         test-dup2: enhance test
30302         * modules/dup2-tests (Depends-on): Add cloexec.
30303         * tests/test-dup2.c (main): Enhance test.
30304
30305         cloexec: add dup_cloexec
30306         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
30307         header and comments.
30308         * lib/cloexec.c (set_cloexec_flag): Add comments.
30309         (dup_cloexec): New function, with mingw implementation borrowed
30310         from...
30311         * lib/w32spawn.h (dup_noinherit): ...here.
30312         * modules/execute (Depends-on): Add cloexec.
30313         * modules/pipe (Depends-on): Likewise.
30314         * modules/cloexec (Depends-on): Add dup2.
30315         * modules/cloexec-tests (Files): New file.
30316         * tests/test-cloexec.c: Likewise.
30317
30318         test-xalloc-die: fix test for mingw
30319         * modules/xalloc-die-tests (Files): Add tests/init.sh.
30320         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
30321         directory and .exe suffix off argv[0] output.
30322
30323         test-fseeko: fix test for mingw
30324         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
30325         than undefining fseek, so test will pass on mingw.
30326
30327 2009-12-05  Bruno Haible  <bruno@clisp.org>
30328
30329         * lib/progname.h (set_program_name): Clarify specification.
30330         * lib/progname.c (set_program_name): Likewise.
30331         Reported by Jim Meyering.
30332
30333 2009-12-05  Jim Meyering  <meyering@redhat.com>
30334
30335         maint.mk: backslash-escape parens in default regexp
30336         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
30337         backslash-escape the literal parentheses.
30338
30339         maint.mk: news-date-check: use grep -E
30340         * top/maint.mk (today): Define a Make variable, not a...
30341         (news-date-check): ...shell variable.
30342         (news-date-regexp): Use the Make variable.
30343         Use grep's -E option.  Change the failing diagnostic to mention
30344         the variable, $(news-date-regexp).
30345
30346 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
30347
30348         maintainer-makefile: allow customization of NEWS entry format
30349         * top/maint.mk (news-date-regexp): New overridable variable.
30350         (news-date-check): Use it.
30351
30352 2009-12-04  Eric Blake  <ebb9@byu.net>
30353
30354         mgetgroups: add xgetgroups, and avoid ENOSYS failures
30355         * lib/mgetgroups.h (xgetgroups): New prototype.
30356         * lib/mgetgroups.c (xgetgroups): New wrapper.
30357         (mgetgroups): Handle ENOSYS.
30358         * modules/mgetgroups (Depends-on): Add realloc.
30359         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
30360
30361         mgetgroups: avoid argument promotion issues with -1
30362         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
30363         for invalid gid_t.
30364         * tests/test-chown.h (getegid, test_chown): Likewise.
30365         * tests/test-lchown.h (getegid, test_lchown): Likewise.
30366
30367 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
30368
30369         exclude: Fix header file problems.
30370         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
30371
30372 2009-12-01  Jim Meyering  <meyering@redhat.com>
30373
30374         fts: fts_open: do not let an empty string cause immediate failure
30375         This is required in support of GNU rm, for which the command
30376         "rm A '' B" must process and remove both A and B, in spite of
30377         the empty string argument.
30378         * lib/fts.c (fts_open): Do not let the presence of an empty string
30379         cause fts_open to fail immediately.  Most fts-using tools must be
30380         able to process all arguments, in order, and can be expected to
30381         diagnose such arguments themselves.
30382
30383 2009-11-30  Eric Blake  <ebb9@byu.net>
30384
30385         utimens: fix compilation error
30386         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
30387         Declare variable at right scope.
30388
30389 2009-11-29  Jim Meyering  <meyering@redhat.com>
30390
30391         bootstrap: handle perl-5.11's changed --version output
30392         * build-aux/bootstrap (get_version): Handle perl separately,
30393         since perl-5.11's --version output is different.
30394
30395 2009-11-28  Jim Meyering  <meyering@redhat.com>
30396
30397         userspec: depend on the inttostr module, too
30398         * modules/userspec (Depends-on): Add inttostr.
30399
30400         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
30401         * lib/userspec.c (parse_with_separator): Do not accept a user ID
30402         number of MAXUID when it evaluates to (uid_t) -1.
30403         Likewise for group ID.  Reported by Matt McCutchen in
30404         <http://savannah.gnu.org/bugs/?28113>
30405
30406         userspec: reformat to use spaces, not TABs
30407         * lib/userspec.c: Expand TABs to spaces.
30408         Add Emacs' "indent-tabs-mode: nil" hint.
30409
30410 2009-11-27  Eric Blake  <ebb9@byu.net>
30411
30412         getopt-gnu: flush out another BSD bug
30413         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
30414         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
30415         flush out BSD bug.
30416         * tests/test-getopt.h (test_getopt): End lists with NULL.
30417         * tests/test-getopt_long.h (test_getopt_long): Likewise.
30418         (test_getopt_long_posix): Enhance test.
30419         * modules/getopt-posix-tests (Depends-on): Add stdbool.
30420         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
30421         getopt-gnu.
30422         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30423         Likewise.
30424
30425 2009-11-27  Simon Josefsson  <simon@josefsson.org>
30426
30427         * modules/idpriv-droptemp-tests (Notice): Fix text.
30428
30429 2009-11-27  Jim Meyering  <meyering@redhat.com>
30430
30431         test-xalloc-die: avoid spurious failure due to libtool argv difference
30432         In a libtool-enabled project, this test would fail due to a difference
30433         in the emitted program name, e.g.,
30434         -test-xalloc-die: memory exhausted
30435         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
30436         Use program to avoid that.
30437         * modules/xalloc-die-tests (Depends-on): Add progname.
30438         * tests/test-xalloc-die.c: Include progname.h".
30439         (program_name): Remove decl.
30440         (main): Call set_program_name.
30441         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
30442
30443 2009-11-26  Richard Jones  <rjones@redhat.com>
30444
30445         w32sock: leave win32 error in place.
30446         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
30447
30448 2009-11-26  Eric Blake  <ebb9@byu.net>
30449
30450         init.sh: suggest to use skip_ and fail_ functions in comments
30451         * tests/init.sh: Add a sentence.
30452
30453 2009-11-25  Bruno Haible  <bruno@clisp.org>
30454
30455         init.sh: add documentation in comments
30456         * tests/init.sh: Add some developer and user documentation.
30457
30458 2009-11-26  Jim Meyering  <meyering@redhat.com>
30459
30460         init.sh: accommodate even those who specify bogus srcdir manually
30461         * tests/init.sh: Normally, srcdir is guaranteed by automake and
30462         configure-time tests to be sanitized, so that there is no need to
30463         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
30464         (with no double quotes) suffices.  However, since tests may be
30465         invoked manually, and since you may explicitly set srcdir to the
30466         name of a directory containing spaces, do quote its uses here.
30467         * tests/test-pread.sh: Likewise.
30468         Suggested by Bruno Haible.
30469
30470         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
30471         * tests/test-pread.sh: Write no data into the pipe, because
30472         test-pread actually reads none.  This avoids a diagnostic,
30473         "bash: echo: write error: Broken pipe", that arises in the unusual
30474         event something is ignoring SIGPIPE, and might be interpreted
30475         as some sort of failure.  Reported by Bruno Haible.
30476
30477 2009-11-25  Jim Meyering  <meyering@redhat.com>
30478
30479         test-pread: cover failure with ESPIPE and EINVAL
30480         * tests/test-pread.c (main): Test for failure, too.
30481         * tests/test-pread.sh: Invoke with stdin on a pipe.
30482         Suggested by Eric Blake.
30483
30484         pread: improvement and fix
30485         * modules/pread (Depends-on): Depend on lseek, for portability to
30486         e.g., mingw.  Suggested by Eric Blake.
30487         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
30488
30489         unistd.in.h: correct declaration of pread
30490         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
30491         Reported by Richard W.M. Jones.
30492
30493         test-pread.sh: distribute the test script
30494         * modules/pread-tests (Files): Include test-pread.sh.
30495
30496         test-pread.sh: clean up
30497         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
30498         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
30499         That is unnecessary, since it's always ".".
30500         Suggestion from Eric Blake.
30501
30502         test-pread.sh: make executable
30503         * tests/test-pread.sh: Set executable bit.
30504         Reported by Eric Blake.
30505
30506         correct typo in test-pread.sh
30507         * tests/test-pread.sh: Add #! line.
30508
30509         test pread
30510         * tests/test-pread.c: New file.
30511         * tests/test-pread.sh: Likewise.
30512         * modules/pread-tests: Likewise.
30513
30514         pread: new module
30515         * modules/pread: New file.
30516         * lib/unistd.in.h (pread): Define/declare.
30517         * lib/pread.c (pread): New file.
30518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
30519         * modules/unistd (Makefile.am): Substitute witnesses.
30520         * doc/posix-functions/pread.texi (pread): Update.
30521         * MODULES.html.sh: Add pread.
30522
30523 2009-11-25  Jim Meyering  <meyering@redhat.com>
30524
30525         tests/init.sh: new file to be used via most *.sh tests
30526         * tests/init.sh: New file.
30527
30528 2009-11-25  Eric Blake  <ebb9@byu.net>
30529
30530         utimens: work around older Linux failure with symlinks
30531         * lib/utimens.c (lutimensat_works_really): New variable.
30532         (fdutimens, lutimens): Use it to manage kernels that support
30533         nanosecond times on files, but not on symlinks.
30534         Reported by OndÅ™ej Vašík.
30535
30536         utimes: fix configure grammar
30537         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
30538
30539 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
30540
30541         regex: Fix fastmap for multibyte character ranges.
30542         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
30543         characters when a multibyte character range is included.
30544
30545 2009-11-22  Andy Wingo  <wingo@pobox.com>
30546
30547         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
30548         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
30549
30550 2009-11-24  Bruno Haible  <bruno@clisp.org>
30551
30552         doc: Most *_l functions exist in MacOS X 10.5.
30553         * doc/posix-functions/duplocale.texi: Update platforms list.
30554         * doc/posix-functions/freelocale.texi: Likewise.
30555         * doc/posix-functions/newlocale.texi: Likewise.
30556         * doc/posix-functions/uselocale.texi: Likewise.
30557         * doc/posix-functions/isalnum_l.texi: Likewise.
30558         * doc/posix-functions/isalpha_l.texi: Likewise.
30559         * doc/posix-functions/isblank_l.texi: Likewise.
30560         * doc/posix-functions/iscntrl_l.texi: Likewise.
30561         * doc/posix-functions/isdigit_l.texi: Likewise.
30562         * doc/posix-functions/isgraph_l.texi: Likewise.
30563         * doc/posix-functions/islower_l.texi: Likewise.
30564         * doc/posix-functions/isprint_l.texi: Likewise.
30565         * doc/posix-functions/ispunct_l.texi: Likewise.
30566         * doc/posix-functions/isspace_l.texi: Likewise.
30567         * doc/posix-functions/isupper_l.texi: Likewise.
30568         * doc/posix-functions/iswalnum_l.texi: Likewise.
30569         * doc/posix-functions/iswalpha_l.texi: Likewise.
30570         * doc/posix-functions/iswblank_l.texi: Likewise.
30571         * doc/posix-functions/iswcntrl_l.texi: Likewise.
30572         * doc/posix-functions/iswctype_l.texi: Likewise.
30573         * doc/posix-functions/iswdigit_l.texi: Likewise.
30574         * doc/posix-functions/iswgraph_l.texi: Likewise.
30575         * doc/posix-functions/iswlower_l.texi: Likewise.
30576         * doc/posix-functions/iswprint_l.texi: Likewise.
30577         * doc/posix-functions/iswpunct_l.texi: Likewise.
30578         * doc/posix-functions/iswspace_l.texi: Likewise.
30579         * doc/posix-functions/iswupper_l.texi: Likewise.
30580         * doc/posix-functions/iswxdigit_l.texi: Likewise.
30581         * doc/posix-functions/isxdigit_l.texi: Likewise.
30582         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
30583         * doc/posix-functions/strcasecmp_l.texi: Likewise.
30584         * doc/posix-functions/strcoll_l.texi: Likewise.
30585         * doc/posix-functions/strfmon_l.texi: Likewise.
30586         * doc/posix-functions/strftime_l.texi: Likewise.
30587         * doc/posix-functions/strncasecmp_l.texi: Likewise.
30588         * doc/posix-functions/strxfrm_l.texi: Likewise.
30589         * doc/posix-functions/tolower_l.texi: Likewise.
30590         * doc/posix-functions/toupper_l.texi: Likewise.
30591         * doc/posix-functions/towctrans_l.texi: Likewise.
30592         * doc/posix-functions/towlower_l.texi: Likewise.
30593         * doc/posix-functions/towupper_l.texi: Likewise.
30594         * doc/posix-functions/wcscoll_l.texi: Likewise.
30595         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
30596         * doc/posix-functions/wctrans_l.texi: Likewise.
30597         * doc/posix-functions/wctype_l.texi: Likewise.
30598         * doc/glibc-functions/strptime_l.texi: Likewise.
30599         * doc/glibc-functions/strtod_l.texi: Likewise.
30600         * doc/glibc-functions/strtof_l.texi: Likewise.
30601         * doc/glibc-functions/strtol_l.texi: Likewise.
30602         * doc/glibc-functions/strtold_l.texi: Likewise.
30603         * doc/glibc-functions/strtoll_l.texi: Likewise.
30604         * doc/glibc-functions/strtoul_l.texi: Likewise.
30605         * doc/glibc-functions/strtoull_l.texi: Likewise.
30606         * doc/glibc-functions/wcsftime_l.texi: Likewise.
30607         * doc/glibc-functions/wcstod_l.texi: Likewise.
30608         * doc/glibc-functions/wcstof_l.texi: Likewise.
30609         * doc/glibc-functions/wcstol_l.texi: Likewise.
30610         * doc/glibc-functions/wcstold_l.texi: Likewise.
30611         * doc/glibc-functions/wcstoll_l.texi: Likewise.
30612         * doc/glibc-functions/wcstoul_l.texi: Likewise.
30613         * doc/glibc-functions/wcstoull_l.texi: Likewise.
30614
30615 2009-11-24  Bruno Haible  <bruno@clisp.org>
30616
30617         duplocale: Fix logic bug.
30618         * lib/duplocale.c: Don't include <langinfo.h>.
30619         (_NL_LOCALE_NAME): Remove macro.
30620         (rpl_duplocale): Use setlocale instead of nl_langinfo.
30621         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
30622
30623 2009-11-23  Jim Meyering  <meyering@redhat.com>
30624
30625         test-update-copyright: don't hard-code /usr/bin/perl
30626         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
30627         perl to print the current year.  Gilles Espinasse reported that
30628         the replaced use of perl was hard-coded as /usr/bin/perl.
30629
30630 2009-11-23  Bruno Haible  <bruno@clisp.org>
30631
30632         duplocale: Add support for glibc 2.3.x.
30633         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
30634
30635 2009-11-22  Bruno Haible  <bruno@clisp.org>
30636
30637         vasnprintf: Tiny optimization.
30638         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
30639         MacOS X.
30640
30641 2009-11-22  Bruno Haible  <bruno@clisp.org>
30642
30643         Tests for module 'duplocale'.
30644         * modules/duplocale-tests: New file.
30645         * tests/test-duplocale.c: New file.
30646
30647         New module 'duplocale'.
30648         * m4/duplocale.m4: New file.
30649         * lib/locale.in.h (duplocale): New declaration.
30650         * lib/duplocale.c: New file.
30651         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
30652         gl_LOCALE_H_DEFAULTS): New macros.
30653         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
30654         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
30655         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
30656         REPLACE_DUPLOCALE.
30657         * modules/duplocale: New file.
30658         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
30659
30660 2009-11-22  Bruno Haible  <bruno@clisp.org>
30661
30662         * modules/locale-tests (configure.ac): Test for newlocale function.
30663         * tests/test-locale.c: When the system has extended locale functions,
30664         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
30665
30666         locale: Make locale_t available when possible.
30667         * lib/locale.in.h: Include <xlocale.h> when it exists.
30668         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
30669         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
30670         * modules/locale (Depends-on): Add extensions.
30671         (Makefile.am): Also substitute HAVE_XLOCALE_H.
30672         * doc/posix-headers/locale.texi: Document the problem with locale_t.
30673
30674 2009-11-22  Bruno Haible  <bruno@clisp.org>
30675
30676         Add comments.
30677         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
30678         invocation.
30679         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
30680         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30681         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30682
30683 2009-11-22  Bruno Haible  <bruno@clisp.org>
30684
30685         error: account for the possibility of freopen (stdout).
30686         * lib/error.c: Include <unistd.h>.
30687         (flush_stdout): New function, extracted from error and error_at_line.
30688         Determine stdout's fd dynamically.
30689         (error, error_at_line): Invoke flush_stdout.
30690         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
30691         * modules/error (Depends-on): Add unistd.
30692
30693 2009-11-22  Bruno Haible  <bruno@clisp.org>
30694
30695         diffseq: Add comment.
30696         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
30697
30698 2009-11-22  Jim Meyering  <meyering@redhat.com>
30699
30700         c-stack: avoid defining an unused static function
30701         * lib/c-stack.c (find_stack_direction): Do not define this function
30702         when it will not be used.
30703
30704         diffseq: avoid spurious gcc warnings
30705         * lib/diffseq.h (IF_LINT2): Define.
30706         (compareseq): Use it to initialize two members of "part".
30707         This avoids two used-uninitialized warnings.
30708
30709 2009-11-21  Jim Meyering  <meyering@redhat.com>
30710
30711         c-stack: avoid "ignoring return value of `write'" warning
30712         * lib/c-stack.c: Include "ignore-value.h".
30713         (die): Explicitly ignore each write return value.
30714         * modules/c-stack (Depends-on): Add ignore-value.
30715
30716 2009-11-21  Bruno Haible  <bruno@clisp.org>
30717
30718         diffseq: reduce scope of variable 'best'.
30719         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
30720         variable, earlier used for two different purposes.
30721
30722 2009-11-21  Jim Meyering  <meyering@redhat.com>
30723
30724         diffseq: remove useless assignment to "best"
30725         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
30726         assignment.  At that point "best" is already guaranteed to be zero.
30727
30728 2009-11-20  Eric Blake  <ebb9@byu.net>
30729
30730         build: mention ftp redirector in release announcements
30731         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
30732         values that used to come from cfg.mk; mention FTP redirect URL.
30733         * build-aux/announce-gen: Mention the mirror list.
30734         Suggested by Karl Berry.
30735
30736         nanosleep: improve port to mingw
30737         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
30738         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
30739         LIB_NANOSLEEP, but only when needed.
30740         * modules/select (Link): Document LIBSOCKET.
30741         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
30742         enough.
30743
30744         nanosleep: work around cygwin bug
30745         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
30746         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
30747         bug.
30748         (getnow): Delete, not needed.
30749         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
30750         LIB_CLOCK_GETTIME.
30751         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
30752         clock-time, gettime.
30753         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
30754         bug.
30755         * modules/nanosleep-tests: New test.
30756         * tests/test-nanosleep.c: New file.
30757
30758         sleep: work around cygwin bug
30759         * lib/sleep.c (rpl_sleep): Work around the bug.
30760         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
30761         (gl_PREREQ_SLEEP): Delete unused macro.
30762         * modules/sleep (Depends-on): Add verify.
30763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
30764         * modules/unistd (Makefile.am): Substitute witness.
30765         * lib/unistd.in.h (sleep): Update prototype.
30766         * doc/posix-functions/sleep.texi (sleep): Document the bug.
30767         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
30768         * modules/sleep-tests (Depends-on): Check for alarm.
30769
30770 2009-11-20  Jim Meyering  <meyering@redhat.com>
30771
30772         maint.mk: improve sc_prohibit_magic_number_exit
30773         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
30774         so it does not match uses like System.exit(1).
30775         Add comments showing how to correct all offenders.
30776
30777 2009-11-19  Eric Blake  <ebb9@byu.net>
30778
30779         xalloc-die-tests: add missing library
30780         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
30781
30782         test-xvasprintf: silence compiler warnings
30783         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
30784         empty string from gcc.
30785
30786 2009-11-19  Jim Meyering  <meyering@redhat.com>
30787
30788         xfreopen: new module, from coreutils
30789         * modules/xfreopen: New module.
30790         * lib/xfreopen.c: New file.
30791         * lib/xfreopen.h: New file.
30792         * MODULES.html.sh (File stream based Input/Output"): Add it.
30793
30794 2009-11-19  Eric Blake  <ebb9@byu.net>
30795
30796         manywarnings: depend on warnings
30797         * modules/manywarnings (Depends-on): Add warnings.
30798
30799         build: avoid compiler warnings
30800         * lib/select.c (rpl_select): Delete unused variable.
30801         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
30802
30803 2009-11-18  Eric Blake  <ebb9@byu.net>
30804
30805         tests: avoid false negative with --with-packager
30806         * tests/test-version-etc.sh: Discard packager information.
30807         * tests/test-argp-version-etc-1.sh: Likewise.
30808         Reported by Mike Frysinger.
30809
30810         utimens: fix regression on Solaris
30811         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
30812         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
30813         can only change fd timestamps via futimesat.  Instead, use an
30814         additional witness macro to avoid BSD bug.
30815         Reported by Jim Meyering.
30816
30817 2009-11-17  Eric Blake  <ebb9@byu.net>
30818
30819         usleep: use it to simplify tests
30820         * modules/stat-time-tests (Depends-on): Add usleep.
30821         (configure.ac): Drop usleep check.
30822         * modules/chown-tests (Depends-on, configure.ac): Likewise.
30823         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
30824         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
30825         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
30826         * modules/openat-tests (Depends-on, configure.ac): Likewise.
30827         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
30828         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
30829         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
30830         Likewise.
30831         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
30832         * tests/test-lchown.h (nap): Likewise.
30833         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
30834         * tests/test-stat-time.c (nap): Likewise.
30835         * tests/test-utimens-common.h (nap): Update comments.
30836
30837         usleep: new module
30838         * modules/usleep: New file.
30839         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
30840         * lib/usleep.c (usleep): Likewise.
30841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
30842         * modules/unistd (Makefile.am): Substitute witnesses.
30843         * lib/unistd.in.h (usleep): Add declaration.
30844         * doc/pastposix-functions/usleep.texi (usleep): Document this.
30845         * MODULES.html.sh (Date and time): Likewise.
30846         * modules/usleep-tests (Depends-on): New test.
30847         * tests/test-usleep.c: New file.
30848
30849         chown: work around OpenBSD bug
30850         * lib/chown.c (rpl_chown): Work around the bug.
30851         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
30852         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
30853         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
30854         * modules/chown (Depends-on): Add stdbool.
30855         * modules/lchown (Depends-on): Likewise.
30856         * doc/posix-functions/chown.texi (chown): Document the bug.
30857         * doc/posix-functions/lchown.texi (lchown): Likewise.
30858         * tests/test-lchown.h (test_chown): Relax test.
30859
30860         mkstemp: avoid conflict with C++ keyword template
30861         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
30862         * lib/mkostemp.c (mkostemp): Likewise.
30863         * lib/mkostemps.c (mkostemps): Likewise.
30864         * lib/mkstemp.c (mkstemp): Likewise.
30865         * lib/mkstemps.c (mkstemps): Likewise.
30866
30867         xalloc-die-tests: optimize
30868         * tests/test-xalloc-die.sh: Reduce number of processes.
30869
30870 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30871
30872         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
30873         patch from ludo@gnu.org (Ludovic Courtès).
30874
30875 2009-11-17  Jim Meyering  <meyering@redhat.com>
30876
30877         version-etc: use proper license string
30878         * modules/version-etc (License): Use LGPL, not LGPLv3+.
30879         * modules/version-etc-fsf: Likewise.
30880
30881 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30882
30883         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
30884         printed to stdout.  Deal with EOL differences.
30885
30886 2009-11-17  Eric Blake  <ebb9@byu.net>
30887
30888         unsetenv: work around Solaris bug
30889         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
30890         * lib/unsetenv.c (rpl_unsetenv): Work around it.
30891         Reported by Jim Meyering.
30892
30893         vasnprintf: avoid compiler warnings
30894         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
30895         variables.
30896         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
30897
30898 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30899
30900         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
30901         settings since xalloc-die is no longer the self test,
30902         xalloc-die.sh is.
30903
30904 2009-11-17  Jim Meyering  <meyering@redhat.com>
30905
30906         test-xalloc-die.sh: make the code agree with the commit log
30907         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
30908         at the end, just in case you happen to have a test-xalloc-die
30909         program in some other PATH directory.
30910
30911         test-xalloc-die.sh: fix a portability bug
30912         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
30913         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
30914         Otherwise, argv[0] (as often seen in diagnostics) would be too
30915         system-dependent, sometimes with, and sometimes without the leading "./".
30916
30917         version-etc-fsf: relax license to LGPLv3+
30918         * modules/version-etc-fsf (License): Relax license.
30919
30920 2009-11-16  Eric Blake  <ebb9@byu.net>
30921
30922         xalloc-die-tests: avoid printing null pointer
30923         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
30924         shell script.
30925         * tests/test-xalloc-die.c (program_name): Declare.
30926         * tests/test-xalloc-die.sh (tmpfiles): New file.
30927
30928         setenv, unsetenv: work around various bugs
30929         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
30930         (setenv) [HAVE_SETENV]: Work around bugs.
30931         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
30932         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
30933         for bugs.
30934         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
30935         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
30936         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
30937         * modules/stdlib (Makefile.am): Update substitutions.
30938         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
30939         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
30940         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
30941         * modules/setenv-tests: New test.
30942         * modules/unsetenv-tests: Likewise.
30943         * tests/test-setenv.c: New file.
30944         * tests/test-unsetenv.c: Likewise.
30945
30946 2009-11-16  Jim Meyering  <meyering@redhat.com>
30947
30948         version-etc: relax license to LGPLv3+
30949         * modules/version-etc (License): Relax license.
30950
30951         better AC_REQUIRE expanded-before-required-warning avoidance
30952         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
30953         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
30954         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
30955         which is no longer needed.
30956
30957 2009-11-16  Eric Blake  <ebb9@byu.net>
30958
30959         test-freading: clean up temporary file
30960         * tests/test-freading.c (main): Remove file on success, and use
30961         ASSERT more liberally.
30962         Reported by Jim Meyering.
30963
30964 2009-11-16  Jim Meyering  <meyering@redhat.com>
30965
30966         avoid new AC_REQUIRE expanded-before-required warnings
30967         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
30968         merely using it.
30969         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
30970         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
30971
30972 2009-11-15  Simon Josefsson  <simon@josefsson.org>
30973
30974         * tests/test-xalloc-die.c: New file.
30975         * modules/xalloc-die-tests: New file.
30976         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
30977         XFAIL_TESTS so it can be appended by modules.
30978
30979 2009-11-15  Simon Josefsson  <simon@josefsson.org>
30980
30981         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
30982         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
30983
30984 2009-11-14  Eric Blake  <ebb9@byu.net>
30985
30986         fnmatch: avoid compiler warning
30987         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
30988         to silence compiler warning about mismatch signedness in ?:.
30989         Reported by Robert Millan.
30990
30991         intprops: add double-inclusion guard
30992         * lib/intprops.h: Allow idempotent includes.
30993         Suggested by Bruce Korb.
30994
30995         openat: detect Solaris fchownat bug
30996         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
30997         penalizing glibc chownat when only lchownat is broken.
30998         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
30999         trailing slash bugs.
31000         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
31001         * modules/openat-tests (Files): Include more files.
31002         (Depends-on): Add mgetgroups, sleep, stat-time.
31003         (configure.ac): Add additional checks.
31004         (Makefile.am): Build new test.
31005         * tests/test-fchownat.c: New file.
31006
31007         lchown: detect Solaris and FreeBSD bug
31008         * lib/lchown.c (rpl_lchown): Work around bug.
31009         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
31010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31011         * modules/unistd (Makefile.am): Populate it.
31012         * lib/unistd.in.h (lchown): Update declaration.
31013         * doc/posix-functions/lchown.texi (lchown): Document the bug.
31014         * modules/lchown-tests: New file.
31015         * tests/test-lchown.h (test_lchown): Likewise.
31016         * tests/test-lchown.c (main): Likewise.
31017
31018         chown: detect Solaris and FreeBSD bug
31019         * lib/chown.c (rpl_chown): Work around bug.
31020         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
31021         (gl_PREREQ_CHOWN): Delete.
31022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31023         * modules/unistd (Makefile.am): Populate it.
31024         * lib/unistd.in.h (chown): Update declaration.
31025         * lib/lchown.c (chown): Update client.
31026         * modules/lchown (Depends-on): Add lstat.
31027         * doc/posix-functions/chown.texi (chown): Document the bug.
31028         * doc/posix-functions/getgroups.texi (getgroups): Document
31029         getgroups pitfall.
31030         * modules/chown-tests: New file.
31031         * tests/test-chown.h (test_chown): Likewise.
31032         * tests/test-chown.c (main): Likewise.
31033
31034 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
31035
31036         gnulib-tool: correctly detect absence of m4 directories
31037         * gnulib-tool: Avoid extra newline on data passed to wc -l.
31038
31039 2009-11-14  Jim Meyering  <meyering@redhat.com>
31040
31041         maint.mk: Prohibit inclusion of "xalloc.h" without use.
31042         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
31043
31044 2009-11-14  John W. Eaton  <jwe@gnu.org>
31045
31046         strftime.h: wrap funtion declaration in extern "C" block
31047         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
31048
31049 2009-11-13  Eric Blake  <ebb9@byu.net>
31050
31051         getgroups: avoid compiler warning
31052         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
31053
31054         getgroups: work around FreeBSD bug
31055         * lib/getgroups.c (rpl_getgroups): Work around the bug.
31056         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
31057         * doc/posix-functions/getgroups.texi (getgroups): Document it.
31058         * tests/test-getgroups.c (main): Fix buffer overrun.
31059
31060         getgroups: avoid compilation failure
31061         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
31062         * modules/getgroups (Depends-on): Add stdint.
31063
31064 2009-11-13  Jim Meyering  <meyering@redhat.com>
31065
31066         test-getgroups: avoid compilation failure
31067         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
31068
31069 2009-11-13  Eric Blake  <ebb9@byu.net>
31070
31071         mgetgroups: new module, taken from coreutils
31072         * modules/mgetgroups: New file.
31073         * lib/mgetgroups.h: Likewise.
31074         * lib/mgetgroups.c (mgetgroups): Likewise.
31075         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
31076         * MODULES.html.sh (Users and groups): Mention it.
31077
31078         getgroups: don't expose GETGROUPS_T to user
31079         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
31080         an element at a time if GETGROUPS_T is wrong size.
31081         * lib/getugroups.h (getugroups): Change signature.
31082         * lib/unistd.in.h (getgroups): Likewise.
31083         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
31084         signature needs fixing.
31085         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
31086         AC_TYPE_GETGROUPS.
31087         * modules/group-member (Depends-on): Add getgroups.
31088         * lib/group-member.c (group_info, get_group_info): Use gid_t.
31089         (group_member): Rely on getgroups replacement.
31090         * lib/getugroups.c (getugroups): Use gid_t.
31091         * tests/test-getgroups.c (main): Likewise.
31092         * NEWS: Mention the signature change.
31093         * doc/posix-functions/getgroups.texi (getgroups): Mention the
31094         problem with signature.
31095         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
31096         GETGROUPS_T is still useful for setgroups.
31097
31098         getgroups, getugroups: provide stubs for mingw
31099         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
31100         * lib/getugroups.c (getugroups): Likewise.
31101         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
31102         function.  Modernize replacement scheme.
31103         (gl_PREREQ_GETGROUPS): Delete.
31104         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
31105         * modules/getgroups (configure.ac): Declare witness.
31106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
31107         * modules/unistd (Depends-on): Substitute witness.
31108         * lib/unistd.in.h (getgroups): Declare replacement.
31109
31110         getgroups: avoid calling exit
31111         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
31112         drop xalloc.
31113         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
31114         dependencies.
31115         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
31116         exiting, in the rare case of malloc failure.
31117
31118         getgroups: fix logic error
31119         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
31120         has more than 20 groups.
31121         * modules/getgroups-tests: New test.
31122         * tests/test-getgroups.c: New file.
31123
31124 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31125
31126         * tests/test-base64.c: Improve.
31127
31128 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31129
31130         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
31131         Blake <ebb9@byu.net>.
31132
31133 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31134
31135         * tests/test-xvasprintf.c: Add %s%s related checks.
31136
31137 2009-11-12  Eric Blake  <ebb9@byu.net>
31138
31139         version-etc: match standards.texi style
31140         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
31141         and use <> only for URLs.
31142
31143 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
31144
31145         fts: do not fail on a submount during traversal
31146         * lib/fts.c (fts_build): Read the stat info again after opening
31147         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
31148         Original report at http://bugzilla.redhat.com/501848.
31149
31150 2009-11-12  Jim Meyering  <meyering@redhat.com>
31151
31152         bootstrap: sync from coreutils
31153         * build-aux/bootstrap (bootstrap_epilogue): New function.
31154         Use git_modules_config in one more place.  This make bootstrap's
31155         --gnulib-srcdir option more useful for testing.
31156
31157         bootstrap: generalize autoheader check
31158         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
31159         AC_CONFIG_HEADERS.
31160
31161 2009-11-11  Eric Blake  <ebb9@byu.net>
31162
31163         mkfifoat: use new modules for Solaris and BSD bugs
31164         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
31165         * lib/mkfifoat.c (mknodat): Split...
31166         * lib/mknodat.c (mknodat): ...into new file.
31167         * modules/mkfifoat (Files): Ship new file.
31168         (Depends-on): Add mkfifo, mknod.
31169         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
31170         (Depends-on): Add symlink.
31171         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
31172         redundant with test_mkfifo.h.
31173         (do_mkfifoat, do_mknodat): New helpers.
31174
31175         mknod: new module
31176         * modules/mknod: New file.
31177         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
31178         * lib/mknod.c (mknod): Likewise.
31179         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
31180         defaults.
31181         * modules/sys_stat (Makefile.am): Substitute them.
31182         * lib/sys_stat.in.h (mknod): Declare replacement.
31183         * MODULES.html.sh (Support for systems lacking POSIX:2008):
31184         Document it.
31185         * doc/posix-functions/mknod.texi (mknod): Likewise.
31186         * modules/mknod-tests: New test.
31187         * tests/test-mknod.c: Likewise.
31188
31189         mkfifo: new module
31190         * modules/mkfifo: New file.
31191         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
31192         * lib/mkfifo.c (mkfifo): Likewise.
31193         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
31194         defaults.
31195         * modules/sys_stat (Makefile.am): Substitute them.
31196         * lib/sys_stat.in.h (mkfifo): Declare replacement.
31197         * MODULES.html.sh (Support for systems lacking POSIX:2008):
31198         Document it.
31199         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
31200         * modules/mkfifo-tests: New test.
31201         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
31202         from test-mkfifoat.c.
31203         * tests/test-mkfifo.c: New file.
31204
31205         readlink: detect FreeBSD bug
31206         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
31207         slash on symlink.
31208         * doc/posix-functions/readlink.texi (readlink): Document the bug.
31209         * tests/test-readlink.h (test_readlink): Enhance test.
31210
31211         symlink: detect FreeBSD bug
31212         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
31213         slash on symlink.
31214         * doc/posix-functions/symlink.texi (symlink): Document the bug.
31215         * tests/test-symlink.h (test_symlink): Enhance test.
31216
31217 2009-11-10  Eric Blake  <ebb9@byu.net>
31218
31219         link: detect FreeBSD bug
31220         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
31221         symlink.
31222         * doc/posix-functions/link.texi (link): Document the bug.
31223         * tests/test-link.h (test_link): Enhance test.
31224         * tests/test-linkat.c (main): Update caller.
31225
31226         unlink, remove: detect FreeBSD bug
31227         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
31228         slash on symlink.
31229         * doc/posix-functions/unlink.texi (unlink): Document the bug.
31230         * doc/posix-functions/remove.texi (remove): Likewise.
31231         * tests/test-unlink.h (test_unlink): Enhance test.
31232         * tests/test-remove.c (main): Likewise.
31233
31234 2009-11-09  Eric Blake  <ebb9@byu.net>
31235
31236         rename: detect FreeBSD bug
31237         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
31238         slash on symlink.
31239         * modules/renameat-tests (Depends-on): Add filenamecat.
31240         * tests/test-rename.h (test_rename): Allow one more errno.
31241         * tests/test-renameat.c (main): Likewise.
31242         * doc/posix-functions/rename.texi (rename): Document the bug.
31243
31244         open: detect FreeBSD bug
31245         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
31246         symlink.
31247         * doc/posix-functions/open.texi (open): Document the bug.
31248         * doc/posix-functions/utimes.texi (utimes): Likewise.
31249         * tests/test-open.h (test_open): Add parameters, and test symlink
31250         handling.
31251         * tests/test-open.c (main): Adjust caller.
31252         * tests/test-fcntl-safer.c (main): Likewise.
31253         * modules/open-tests (Depends-on): Add stdbool, symlink.
31254         * modules/fcntl-safer-tests (Depends-on): Likewise.
31255         * tests/test-openat.c (main): Add test-open tests.
31256
31257         stat: detect FreeBSD bug
31258         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
31259         symlink.
31260         * doc/posix-functions/stat.texi (stat): Document the bug.
31261         * tests/test-stat.h (test_stat_func): Add argument.
31262         * tests/test-stat.c (main): Adjust caller.
31263         * tests/test-fstatat.c (main): Likewise.
31264         * modules/stat-tests (Depends-on): Add stdbool, symlink.
31265         Reported by Jim Meyering.
31266
31267 2009-11-09  James Youngman  <jay@gnu.org>
31268
31269         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
31270         * lib/strftime.c: Correct placement of #include "ignore-value.h".
31271
31272 2009-11-08  Jim Meyering  <meyering@redhat.com>
31273
31274         utimens: remove invalid futimesat call
31275         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
31276         It used the file descriptor of the target file as the DIR_FD
31277         parameter and NULL as the file name.  That caused failure with
31278         errno == EFAULT on FreeBSD-8.0-rc2
31279
31280 2009-11-07  Eric Blake  <ebb9@byu.net>
31281
31282         fflush, freadseek: use fseeko, not fseek
31283         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
31284         (clear_ungetc_buffer): Avoid potential problems on large files.
31285         * lib/freadseek.c (freadseek): Likewise.
31286         * modules/freadseek (Depends-on): Add fseeko.
31287         * modules/fseek (configure.ac): Set a witness.
31288         * tests/test-fflush.c (main): Use fseeko.
31289         * tests/test-fpurge.c (fseek): Disable link warning.
31290         * tests/test-freadable.c (fseek): Likewise.
31291         * tests/test-freading.c (fseek): Likewise.
31292         * tests/test-fseeko.c (fseek): Likewise.
31293         * tests/test-ftell.c (fseek): Likewise.
31294         * tests/test-ftello.c (fseek): Likewise.
31295         * tests/test-fwritable.c (fseek): Likewise.
31296         * tests/test-fwriting.c (fseek): Likewise.
31297
31298 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31299
31300         * modules/memchr (Depends-on): Drop getpagesize dependency.
31301
31302 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31303
31304         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
31305         Reported by Ludovic Courtès.
31306         * build-aux/pmccabe2html: Improve example usage.
31307         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
31308
31309 2009-11-06  Jim Meyering  <meyering@redhat.com>
31310
31311         do-release-commit-and-tag: New module.
31312         Automate the release-commit and tag process.
31313         * build-aux/do-release-commit-and-tag: New script, from coreutils.
31314         * modules/do-release-commit-and-tag: New file.
31315         * MODULES.html.sh (Support for maintaining and releasing): Add it.
31316
31317 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31318
31319         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
31320         because test-select.c uses inet_pton.
31321
31322 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31323
31324         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
31325         GETADDRINFO_LIB.  Bump serial number.
31326         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
31327         Suggested by Eric Blake <ebb9@byu.net>.
31328
31329 2009-11-05  Eric Blake  <ebb9@byu.net>
31330
31331         strtod: detect darwin bug
31332         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
31333         Reported by Leo Davis.
31334
31335         freopen-safer: new module
31336         * modules/freopen-safer: New module.
31337         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
31338         * lib/freopen-safer.c (freopen_safer): New file.
31339         * lib/stdio-safer.h (freopen_safer): New declaration.
31340         * lib/stdio--.h (freopen): New override.
31341         * MODULES.html.sh (File stream based Input/Output): Mention it.
31342         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
31343         freopen-safer module.
31344         * doc/posix-functions/stderr.texi (stderr): Likewise.
31345         * doc/posix-functions/stdin.texi (stdin): Likewise.
31346         * doc/posix-functions/stdout.texi (stdout): Likewise.
31347         * modules/freopen-safer-tests: New test.
31348         * tests/test-reopen-safer.c: New file.
31349
31350 2009-11-05  Jim Meyering  <meyering@redhat.com>
31351
31352         maint.mk: Prohibit inclusion of "close-stream.h" without use.
31353         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
31354
31355 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31356
31357         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
31358
31359 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31360
31361         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
31362
31363 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31364
31365         Fix link error.
31366         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
31367         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31368
31369 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31370
31371         * tests/test-func.c: Also test value of __func__.
31372
31373 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31374
31375         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
31376         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
31377
31378 2009-11-05  Bruno Haible  <bruno@clisp.org>
31379
31380         Fix link error.
31381         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
31382         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31383         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
31384
31385 2009-11-05  Bruno Haible  <bruno@clisp.org>
31386
31387         Tests for module 'inet_pton'.
31388         * modules/inet_pton-tests: New file.
31389         * tests/test-inet_pton.c: New file.
31390
31391 2009-11-05  Bruno Haible  <bruno@clisp.org>
31392
31393         Tests for module 'inet_ntop'.
31394         * modules/inet_ntop-tests: New file.
31395         * tests/test-inet_ntop.c: New file.
31396
31397 2009-11-04  Eric Blake  <ebb9@byu.net>
31398
31399         stdlib-safer: wrap all mkstemp variants
31400         * modules/mkostemp (configure.ac): Set witness.
31401         * modules/mkostemps (configure.ac): Likewise.
31402         * modules/mkstemps (configure.ac): Likewise.
31403         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
31404         (mkstemps_safer): Wrap more functions.
31405         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
31406         wrapping.
31407         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
31408         (mkstemps_safer): Implement the wrappers.
31409
31410         mkstemps, mkostemps: new modules
31411         * modules/mkostemps: New module.
31412         * modules/mkstemps: Likewise.
31413         * lib/mkostemps.c (mkostemps): New file.
31414         * lib/mkstemps.c (mkstemps): Likewise.
31415         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
31416         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
31417         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
31418         * modules/stdlib (Makefile.am): Substitute them.
31419         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
31420         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
31421         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
31422         * doc/gnulib.texi (Glibc stdlib.h): Include them.
31423         * MODULES.html.sh (File system functions): Mention them.
31424
31425         tempname: resync from glibc
31426         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
31427         same values for __GT_FILE as glibc.  Abort even when assertions
31428         are disabled.
31429         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
31430         match its value otherwise.  Allow idempotent inclusion.
31431         * lib/mkdtemp.c (mkdtemp): Adjust caller.
31432         * lib/mkostemp.c (mkostemp): Likewise.
31433         * lib/mkstemp.c (mkstemp): Likewise.
31434         * lib/tmpfile.c (tmpfile): Likewise.
31435         * NEWS: Document this.
31436
31437         utimens: fix use of futimens on older Linux
31438         * lib/utimens.c (fdutimens): Use updated, rather than original,
31439         timespec to avoid bug in older Linux kernel.
31440         Reported by Simon Josefsson.
31441
31442 2009-11-04  Bruno Haible  <bruno@clisp.org>
31443
31444         Make num_processors more flexible and consistent.
31445         * lib/nproc.h (enum nproc_query): New type.
31446         (num_processors): Add a 'query' argument.
31447         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
31448         (num_processors): Add a 'query' argument. Test the value of the
31449         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
31450         mingw, count the number of CPUs available for the current process.
31451         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
31452         Check for sched_getaffinity and sched_getaffinity_np.
31453         * modules/nproc (Depends-on): Add c-ctype, extensions.
31454         * NEWS: Mention the change.
31455
31456 2009-11-03  Bruno Haible  <bruno@clisp.org>
31457
31458         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
31459
31460 2009-11-03  Jim Meyering  <meyering@redhat.com>
31461
31462         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
31463         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
31464         if it is defined.
31465
31466 2009-11-02  Eric Blake  <ebb9@byu.net>
31467
31468         mktime, timegm: share common declaration
31469         * lib/mktime-internal.h: New file.
31470         * lib/mktime.c: Use it rather than open-coding a declaration.
31471         * lib/timegm.c: Likewise.
31472         * modules/mktime (Files): Ship it.
31473         * modules/timegm (Files): Likewise.
31474         Suggested by Bruno Haible.
31475
31476         test-update-copyright: update test to match script changes
31477         * tests/test-update-copyright.sh: Avoid hard-coding perl
31478         location.  Don't update *.bak created by earlier runs.
31479
31480 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
31481             Simon Josefsson  <simon@josefsson.org>
31482             Bruno Haible  <bruno@clisp.org>
31483
31484         Fix link error on Solaris 8.
31485         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
31486         also in libnsl. Define also INET_PTON_LIB.
31487         * modules/inet_pton (Link): New section.
31488
31489 2009-11-02  Simon Josefsson  <simon@josefsson.org>
31490             Bruno Haible  <bruno@clisp.org>
31491
31492         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
31493         * modules/inet_ntop (Link): New section.
31494         Reported by Boyan Kasarov <bkasarov@gmail.com>.
31495
31496 2009-11-02  Eric Blake  <ebb9@byu.net>
31497
31498         maint: avoid compiler warnings in m4 macros
31499         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
31500         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
31501
31502 2009-11-02  Simon Josefsson  <simon@josefsson.org>
31503
31504         * m4/pmccabe2html.m4: Remove file.
31505         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
31506         function.  Change maintainer.
31507         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
31508         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
31509         Courtès).
31510
31511 2009-10-31  Eric Blake  <ebb9@byu.net>
31512
31513         fseeko: fix m4 regression
31514         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
31515         regression from 2009-10-27.
31516         Reported by Ralf Wildenhues.
31517
31518 2009-10-31  Jim Meyering  <meyering@redhat.com>
31519
31520         inttostr: aesthetics and improved (compile-time) safety
31521         Define inttype_is_signed rather than inttype_is_unsigned,
31522         since the sole use is via "#if inttype_is_signed".
31523         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
31524         inttype_is_unsigned.
31525         * lib/offtostr.c (inttype_is_signed): Likewise.
31526         * lib/uinttostr.c (inttype_is_signed): Likewise.
31527         * lib/umaxtostr.c (inttype_is_signed): Likewise.
31528         * lib/inttostr.c (inttostr): Use verify to cross-check the
31529         inttype_is_signed value and the signedness of the actual type.
31530         * modules/inttostr (Depends-on): Add verify.
31531
31532 2009-10-30  Eric Blake  <ebb9@byu.net>
31533
31534         build: avoid compiler warnings
31535         * lib/fchmodat.c (lchmod): Mark unused variables.
31536         * lib/getopt.c (_getopt_initialize): Likewise.
31537         * lib/mktime.c (__mktime_internal): Provide prototype.
31538         * lib/inttostr.c (inttostr): Avoid compiler warning even with
31539         older gcc that do not understand #pragma GCC diagnostic.
31540         * lib/uinttostr.c (inttype_is_unsigned): Define.
31541         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
31542
31543 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
31544
31545         stat: fix compilation on AIX
31546         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
31547         only see struct stat64.
31548
31549 2009-10-30  Eric Blake  <ebb9@byu.net>
31550
31551         exclude: make more robust
31552         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
31553         rather than masking a coding bug.
31554         Suggested by Bruno Haible.
31555
31556 2009-10-30  Jim Meyering  <meyering@redhat.com>
31557
31558         perl scripts: remove #!/usr/bin/perl in favor of more portable...
31559         Rather than putting #!/usr/bin/perl on the first line,
31560         start with a variant of what's recommended by "man perlrun" that
31561         invokes the first "perl" program from your shell's search path.
31562         * build-aux/gitlog-to-changelog: Replace #!... as above.
31563         Add a "Local Variables" perl mode setting.
31564         Prompted by a patch from Ludovic Courtès.
31565         Improved by Eric Blake.
31566         * build-aux/useless-if-before-free: Likewise.
31567         * build-aux/announce-gen: Likewise.
31568         * build-aux/update-copyright: Likewise.
31569
31570 2009-10-29  Eric Blake  <ebb9@byu.net>
31571
31572         filenamecat-lgpl: adjust clients
31573         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
31574         filenamecat.
31575         * modules/renameat (Depends-on): Likewise.
31576
31577         filenamecat: split into filenamecat-lgpl
31578         * modules/filenamecat-lgpl: New module.
31579         * modules/filenamecat (Files): Move library-safe files into
31580         filenamecat-lgpl.
31581         (Depends-on): Add filenamecat-lgpl.
31582         (configure.ac): Declare witness.
31583         * lib/filenamecat.h (file_name_concat): Only declare when using
31584         GPL module.
31585         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
31586         Move...
31587         * lib/filenamecat-lgpl.c: ...into new file.
31588         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
31589         (gl_FILE_NAME_CONCAT): Use it.
31590         * MODULES.html.sh (File system functions): Mention new module.
31591
31592         argp: avoid memory leak
31593         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
31594         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
31595         base_name, since the latter malloc()s and can call exit().
31596         Leak introduced 2006-07-03.
31597
31598         dirname-lgpl: adjust clients that don't need full dirname
31599         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
31600         * modules/filenamecat (Depends-on): Likewise.
31601         * modules/linkat (Depends-on): Likewise.
31602         * modules/mkancesdirs (Depends-on): Likewise.
31603         * modules/mkdir (Depends-on): Likewise.
31604         * modules/openat (Depends-on): Likewise.
31605         * modules/savewd (Depends-on): Likewise.
31606         * modules/rename (Depends-on): Likewise.
31607         (License): Relax license.
31608         * modules/mkdir-tests (Depends-on): Drop progname.
31609         (Makefile.am): Delete unneeded LDADD.
31610         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
31611
31612         dirname: split into dirname-lgpl
31613         * modules/dirname-lgpl: New module.
31614         * modules/dirname (Files): Move library-safe files into
31615         dirname-lgpl.
31616         (Depends-on): Add dirname-lgpl.
31617         (configure.ac): Declare witness.
31618         * modules/double-slash-root (License): Relax license.
31619         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
31620         module.
31621         * lib/dirname.c (dir_len, mdir_name): Move...
31622         * lib/dirname-lgpl.c: ...into new file.
31623         * lib/basename.c (last_component, base_len): Move...
31624         * lib/basename-lgpl.c: ...into new file.
31625         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
31626         (gl_DIRNAME): Use it.
31627         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
31628         Mention new module.
31629         * modules/dirname-tests (Depends-on): Add progname.
31630         * tests/test-dirname.c (program_name): Delete.
31631
31632         mkdir: make safe for libraries
31633         * modules/mkdir (Depends-on): Drop xalloc.
31634         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
31635         exit.
31636
31637         tests: avoid some compiler warnings
31638         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
31639         literals.
31640         * tests/test-memchr.c (main): Avoid type mismatch.
31641         * tests/test-arpa_inet.c (main): Avoid unused parameters.
31642         * tests/test-base64.c (main): Likewise.
31643         * tests/test-getdelim.c (main): Likewise.
31644         * tests/test-gethostname.c (main): Likewise.
31645         * tests/test-getline.c (main): Likewise.
31646         * tests/test-netinet_in.c (main): Likewise.
31647         * tests/test-select.c (open_server_socket, main): Likewise.
31648         * tests/test-select-stdin.c (main): Likewise.
31649         * tests/test-sockets.c (main): Likewise.
31650         * tests/test-strsignal.c (main): Likewise.
31651         * tests/test-sys_select.c (main): Likewise.
31652         * tests/test-sys_socket.c (main): Likewise.
31653         * tests/test-u64.c (main): Likewise.
31654         * tests/test-xfprintf-posix.c (main): Likewise.
31655         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
31656
31657         sockets: avoid compiler warning
31658         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
31659
31660         maint: detect usage(1) and other suspicious exits
31661         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
31662
31663 2009-10-29  Jim Meyering  <meyering@redhat.com>
31664
31665         timespec: long-to-int truncation could make timespec_cmp malfunction
31666         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
31667         a multiple of 2^32 nanoseconds as no difference.
31668
31669 2009-10-28  Jim Meyering  <meyering@redhat.com>
31670
31671         fprintftime: wrap macro code argument in "do {...} while(0)"
31672         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
31673         cpy macro must be a statement that can be followed by a semicolon.
31674         Now that the else clause contains a comment and is hence longer
31675         than one line, I require curly braces.  That in turn requires
31676         that we wrap this code block in the standard do...while(0).
31677
31678         fprintftime: remove stray semicolon from previous change
31679         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
31680
31681         fprintftime: avoid a warning about ignored fwrite return value
31682         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
31683         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
31684         that is unsafe.
31685         * modules/fprintftime (Depends-on): Add ignore-value.
31686
31687         exclude: avoid an unwarranted warning
31688         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
31689
31690 2009-10-27  Eric Blake  <ebb9@byu.net>
31691
31692         fseek: avoid compilation failure when fflush is replaced
31693         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
31694         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
31695         module is in use.
31696         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
31697         module is not in use; since REPLACE_FSEEK worked otherwise.
31698         (GNULIB_FTELLO): Likewise for ftell.
31699         Reported by Ian Beckwith and others.
31700
31701 2009-10-27  Bruno Haible  <bruno@clisp.org>
31702
31703         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
31704         Reported by Jim Meyering.
31705
31706 2009-10-27  Jim Meyering  <jim@meyering.net>
31707             Bruno Haible  <bruno@clisp.org>
31708
31709         Avoid warning despite dropping the return value of fwrite.
31710         * lib/unicodeio.c: Include ignore-value.h.
31711         (fwrite_success_callback): Explicitly ignore fwrite's return value.
31712         * modules/unicodeio (Depends-on): Add ignore-value.
31713
31714 2009-10-26  Eric Blake  <ebb9@byu.net>
31715
31716         areadlinkat: fix fallback path
31717         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
31718         pointer and zero.
31719
31720 2009-10-22  Pádraig Brady  <P@draigBrady.com>
31721
31722         Use a better IO block size for modern systems
31723         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
31724         * lib/md2.c: Likewise.
31725         * lib/md4.c: Likewise.
31726         * lib/md5.c: Likewise.
31727         * lib/sha1.c: Likewise.
31728         * lib/sha256.c: Likewise.
31729         * lib/sha512.c: Likewise.
31730
31731 2009-10-22  Eric Blake  <ebb9@byu.net>
31732
31733         tests: avoid several compiler warnings
31734         * tests/test-getcwd.c (main): Avoid buffer underflow.
31735         * tests/test-getdate.c (main): String literals are not safe with
31736         putenv, so use setenv.  Declare unused argument.
31737         * modules/getdate-tests (Depends-on): Add setenv.
31738         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
31739         problems with string literals in char *.
31740         * tests/test-hash.c (main): Avoid shadowing declaration.
31741         (insert_new): Treat string literals as char const *.
31742         * tests/test-getopt.h (test_getopt): Likewise.
31743         (getopt_loop): Alter types to minimize casting elsewhere.
31744         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
31745         (test_getopt_long_posix): Likewise.
31746         (do_getopt_long): Add wrapper to minimize casting.
31747         * tests/test-atexit.c (clear_temp_file): Use void.
31748         * tests/test-areadlink-with-size.c (main): Declare unused
31749         arguments.
31750         * tests/test-areadlink.c (main): Likewise.
31751         * tests/test-areadlinkat-with-size.c (main): Likewise.
31752         * tests/test-areadlinkat.c (main): Likewise.
31753         * tests/test-canonicalize-lgpl.c (main): Likewise.
31754         * tests/test-canonicalize.c (main): Likewise.
31755         * tests/test-dirent-safer.c (main): Likewise.
31756         * tests/test-dirname.c (main): Likewise.
31757         * tests/test-dup2.c (main): Likewise.
31758         * tests/test-fchdir.c (main): Likewise.
31759         * tests/test-fcntl-h.c (main): Likewise.
31760         * tests/test-fcntl-safer.c (main): Likewise.
31761         * tests/test-fdopendir.c (main): Likewise.
31762         * tests/test-fdutimensat.c (main): Likewise.
31763         * tests/test-fflush.c (main): Likewise.
31764         * tests/test-filenamecat.c (main): Likewise.
31765         * tests/test-filevercmp.c (main): Likewise.
31766         * tests/test-fopen-safer.c (main): Likewise.
31767         * tests/test-fopen.c (main): Likewise.
31768         * tests/test-fpending.c (main): Likewise.
31769         * tests/test-fpurge.c (main): Likewise.
31770         * tests/test-freading.c (main): Likewise.
31771         * tests/test-fstatat.c (main): Likewise.
31772         * tests/test-fsync.c (main): Likewise.
31773         * tests/test-futimens.c (main): Likewise.
31774         * tests/test-getndelim2.c (main): Likewise.
31775         * tests/test-gettimeofday.c (main): Likewise.
31776         * tests/test-getopt.c (main): Likewise.
31777         * tests/test-i-ring.c (main): Likewise.
31778         * tests/test-inttypes.c (main): Likewise.
31779         * tests/test-link.c (main): Likewise.
31780         * tests/test-lstat.c (main): Likewise.
31781         * tests/test-math.c (main): Likewise.
31782         * tests/test-md5.c (main): Likewise.
31783         * tests/test-memchr2.c (main): Likewise.
31784         * tests/test-memrchr.c (main): Likewise.
31785         * tests/test-mkdir.c (main): Likewise.
31786         * tests/test-mkdirat.c (main): Likewise.
31787         * tests/test-mkfifoat.c (main): Likewise.
31788         * tests/test-open.c (main): Likewise.
31789         * tests/test-openat-safer.c (main): Likewise.
31790         * tests/test-openat.c (main): Likewise.
31791         * tests/test-quotearg.c (main): Likewise.
31792         * tests/test-rawmemchr.c (main): Likewise.
31793         * tests/test-readlink.c (main): Likewise.
31794         * tests/test-remove.c (main): Likewise.
31795         * tests/test-rename.c (main): Likewise.
31796         * tests/test-renameat.c (main): Likewise.
31797         * tests/test-rmdir.c (main): Likewise.
31798         * tests/test-sha1.c (main): Likewise.
31799         * tests/test-signal.c (main): Likewise.
31800         * tests/test-sigaction.c (main): Likewise.
31801         * tests/test-stat.c (main): Likewise.
31802         * tests/test-stat-time.c (main): Likewise.
31803         * tests/test-stddef.c (main): Likewise.
31804         * tests/test-stdint.c (main): Likewise.
31805         * tests/test-stdio.c (main): Likewise.
31806         * tests/test-stdlib.c (main): Likewise.
31807         * tests/test-strchrnul.c (main): Likewise.
31808         * tests/test-strerror.c (main): Likewise.
31809         * tests/test-string.c (main): Likewise.
31810         * tests/test-strtod.c (main): Likewise.
31811         * tests/test-strverscmp.c (main): Likewise.
31812         * tests/test-symlink.c (main): Likewise.
31813         * tests/test-symlinkat.c (main): Likewise.
31814         * tests/test-sys_stat.c (main): Likewise.
31815         * tests/test-sys_time.c (main): Likewise.
31816         * tests/test-time.c (main): Likewise.
31817         * tests/test-unistd.c (main): Likewise.
31818         * tests/test-unlink.c (main): Likewise.
31819         * tests/test-unlinkat.c (main): Likewise.
31820         * tests/test-utimens.c (main): Likewise.
31821         * tests/test-utimensat.c (main): Likewise.
31822         * tests/test-version-etc.c (main): Likewise.
31823         * tests/test-wchar.c (main): Likewise.
31824         * tests/test-wctype.c (main): Likewise.
31825         * tests/test-xprintf-posix.c (main): Likewise.
31826         * tests/test-posixtm.c (main): Likewise.
31827         (STREQ): Delete unused macro.
31828         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
31829         shadowed variables.
31830         * tests/test-memchr.c (main): Likewise.
31831
31832 2009-10-21  Eric Blake  <ebb9@byu.net>
31833
31834         areadlinkat: avoid failure on older glibc
31835         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
31836         rather than mis-comparing 0 against FUNC_RESULT of char*.
31837
31838 2009-10-21  Bruno Haible  <bruno@clisp.org>
31839
31840         * modules/stpncpy (License): Relicense under LGPLv2+.
31841         Reported by David Lutterkort <lutter@redhat.com>.
31842
31843 2009-10-20  Eric Blake  <ebb9@byu.net>
31844
31845         utimensat: work around Solaris 9 bug
31846         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
31847         has trailing slash bugs.
31848         * tests/test-lutimens.h (test_lutimens): Enhance test.
31849         * tests/test-utimens.h (test_utimens): Likewise.
31850         * doc/posix-functions/utime.texi (utime): Enhance documentation.
31851         * doc/posix-functions/utimes.texi (utimes): Likewise.
31852         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31853         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
31854         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
31855         * doc/posix-functions/futimens.texi (futimens): Likewise.
31856
31857         fdutimensat: new module
31858         * modules/fdutimensat: New file.
31859         * lib/fdutimensat.c (fdutimensat): Likewise.
31860         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
31861         * MODULES.html.sh (File system functions): Mention module.
31862         * modules/fdutimensat-tests: New test.
31863         * tests/test-fdutimensat.c: Likewise.
31864
31865         doc: regenerate INSTALL
31866         * doc/INSTALL: Reflect recent autoconf update.
31867         * doc/INSTALL.ISO: Likewise.
31868         * doc/INSTALL.UTF-8: Likewise.
31869
31870 2009-10-20  Pádraig Brady  <P@draigBrady.com>
31871
31872         acl: warn if ACL support is not detected
31873         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
31874
31875 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
31876
31877         * lib/nproc.h: Add extern "C" block for C++.
31878
31879 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
31880             Bruno Haible  <bruno@clisp.org>
31881
31882         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
31883         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
31884         * doc/posix-functions/isalpha.texi: Likewise.
31885         * doc/posix-functions/isblank.texi: Likewise.
31886         * doc/posix-functions/iscntrl.texi: Likewise.
31887         * doc/posix-functions/isdigit.texi: Likewise.
31888         * doc/posix-functions/isgraph.texi: Likewise.
31889         * doc/posix-functions/islower.texi: Likewise.
31890         * doc/posix-functions/isprint.texi: Likewise.
31891         * doc/posix-functions/ispunct.texi: Likewise.
31892         * doc/posix-functions/isspace.texi: Likewise.
31893         * doc/posix-functions/isupper.texi: Likewise.
31894         * doc/posix-functions/isxdigit.texi: Likewise.
31895
31896 2009-10-18  Bruno Haible  <bruno@clisp.org>
31897
31898         Tests for module 'isblank'.
31899         * modules/isblank-tests: New file.
31900         * tests/test-isblank.c: New file.
31901
31902         New module 'isblank'.
31903         * lib/isblank.c: New file.
31904         * m4/isblank.m4: New file.
31905         * modules/isblank: New file.
31906         * doc/posix-functions/isblank.texi: Mention the new module.
31907
31908 2009-10-18  Bruno Haible  <bruno@clisp.org>
31909
31910         New module 'ctype'.
31911         * lib/ctype.in.h: New file.
31912         * m4/ctype.m4: New file.
31913         * modules/ctype: New file.
31914         * doc/posix-headers/ctype.texi: Mention the new module.
31915
31916 2009-10-18  Jim Meyering  <meyering@redhat.com>
31917
31918         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
31919         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
31920         right after its initialization, rather than farther down.
31921         Keeping these in close proximity makes it easier to ensure
31922         that each such variable is initialized.  E.g.,
31923
31924             LIB_CLOCK_GETTIME=
31925             AC_SUBST([LIB_CLOCK_GETTIME])
31926
31927         This change also increments these serial numbers.
31928         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
31929         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
31930         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
31931
31932 2009-10-18  Bruno Haible  <bruno@clisp.org>
31933
31934         Don't let environment variables perturb build.
31935         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
31936         (gl_PREREQ_GETHRXTIME): ... not here.
31937
31938 2009-10-18  Bruno Haible  <bruno@clisp.org>
31939
31940         Avoid symlink attack in localcharset module.
31941         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
31942         (O_NOFOLLOW): Define fallback.
31943         (get_charset_aliases): Don't open the file if it is a symbolic link.
31944         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
31945         gl_FCNTL_H.
31946         (gl_FCNTL_H): Require it.
31947         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
31948         * modules/localcharset (Files): Add m4/fcntl_h.m4.
31949         Reported by Fergal Glynn <fglynn@veracode.com>.
31950
31951 2009-10-18  Bruno Haible  <bruno@clisp.org>
31952
31953         Implement nproc for mingw.
31954         * lib/nproc.c: Include <windows.h>
31955         (num_processors): On native Windows platforms, try GetSystemInfo.
31956
31957 2009-10-18  Bruno Haible  <bruno@clisp.org>
31958
31959         Implement nproc for IRIX.
31960         * lib/nproc.c: Include <sys/sysmp.h>.
31961         (num_processors): On IRIX systems, try sysmp.
31962         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
31963
31964 2009-10-18  Bruno Haible  <bruno@clisp.org>
31965
31966         Implement nproc for HP-UX.
31967         * lib/nproc.c: Include <sys/pstat.h>
31968         (num_processors): On HP-UX systems, try pstat_getdynamic.
31969         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
31970         pstat_getdynamic.
31971
31972 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
31973             Bruno Haible  <bruno@clisp.org>
31974
31975         Implement nproc for NetBSD, OpenBSD.
31976         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
31977         (ARRAY_SIZE): New macro.
31978         (num_processors): On BSD systems, try sysctl of HW_NCPU.
31979         * m4/nproc.m4: New file.
31980         * modules/nproc (Files): Add m4/nproc.m4.
31981         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
31982         (Makefile.am): Instead, augment lib_SOURCES.
31983
31984 2009-10-18  Bruno Haible  <bruno@clisp.org>
31985
31986         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
31987         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
31988         sys/param.h.
31989
31990 2009-10-16  Eric Blake  <ebb9@byu.net>
31991
31992         utimensat: new module
31993         * modules/utimensat: New file.
31994         * lib/utimensat.c (utimensat): Likewise.
31995         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31996         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
31997         so we can work around Linux bugs.
31998         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31999         * modules/sys_stat (Makefile.am): Substitute them.
32000         * lib/sys_stat.in.h (utimensat): Declare it.
32001         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32002         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32003         * modules/utimensat-tests: New test.
32004         * tests/test-utimensat.c: Likewise.
32005
32006         utimens: let lutimens work on non-symlinks
32007         * lib/utimens.c (lutimens): Fall back to utimens rather than
32008         failing with ENOSYS, when file is not a symlink.
32009         (utimens): Reduce redirection.
32010         * tests/test-lutimens.h (test_lutimens): Update test to cover
32011         non-symlinks.
32012         * tests/test-utimens.h (test_utimens): Update test to cover
32013         symlinks.
32014         * tests/test-utimens.c (main): Update caller.
32015
32016         utimens: cache whether utimensat syscall works
32017         * lib/utimens.c (utimensat_works_really): New cache variable.
32018         (fdutimens, lutimens): Use it to avoid failing syscall.
32019
32020         test-stat-time, test-utimens: improve portability
32021         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
32022         ext4 on alpha, and for cygwin.
32023         * tests/test-utimens-common.h: New file.
32024         (nap): Factor delays into single function.
32025         * tests/test-lutimens.h (test_lutimens): Use new header.
32026         * tests/test-futimens.h (test_futimens): Likewise.
32027         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
32028         timestamps to occur from same machine, as was done previously for
32029         test_utimens.
32030         * modules/utimens-tests (Files): Ship new file.
32031         * modules/futimens-tests (Files): Likewise.
32032         Reported in part by Jim Meyering.
32033
32034         sys_stat: sort replacement declarations
32035         * lib/sys_stat.in.h: Sort declarations.
32036         * lib/futimens.c (futimens): Fix typo.
32037
32038 2009-10-15  Jim Meyering  <meyering@redhat.com>
32039
32040         don't let environment settings perturb build
32041         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
32042         could cause a configure-time and/or build-time malfunction.
32043         Typically, a configure-time function-in-library test is performed
32044         via code like this:
32045
32046           LIB_VAR=
32047           AC_SUBST([LIB_VAR])
32048           prefix_saved_LIBS=$LIBS
32049             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
32050                        [test "$ac_cv_search_FUNC" = "none required" ||
32051                         LIB_VAR=$ac_cv_search_FUNC])
32052           LIBS=$prefix_saved_LIBS
32053
32054         However, in each of the files affected by this change, the LIB_VAR=
32055         initialization was omitted.  Thus, when set in the environment, its
32056         value would propagate into generated Makefiles when FUNC is not found
32057         in LIB_NAME.
32058         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
32059         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32060         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32061
32062 2009-10-14  Eric Blake  <ebb9@byu.net>
32063
32064         fchdir: avoid infinite recursion in mingw
32065         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
32066         recursing.
32067
32068         test-stat-time: port to mingw
32069         * tests/test-stat-time.c (force_unlink): Return a value.
32070         (test_ctime) [W32]: Fix compilation error.
32071         (nap): Don't call usleep with too large an argument.  Use
32072         force_unlink.
32073         * doc/pastposix-functions/usleep.texi (usleep): Document the
32074         portability issue.
32075
32076 2009-10-13  Jim Meyering  <meyering@redhat.com>
32077
32078         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
32079         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
32080         * modules/pipe-filter-ii: Likewise.
32081         * modules/sys_socket-tests: Likewise.
32082         * modules/tsearch-tests: Likewise.
32083         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
32084         (check): Depend on it.
32085
32086 2009-10-12  Eric Blake  <ebb9@byu.net>
32087
32088         utimens-tests: port to NFS file systems
32089         * tests/test-utimens.h (test_utimens): Refactor utimecmp
32090         comparisons to avoid spurious failures from timestamp drift
32091         between NFS machines.
32092
32093 2009-10-12  Eric Blake  <ebb9@byu.net>
32094
32095         stat-time-tests: minor cleanups
32096         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
32097         * tests/test-stat-time.c (nap): Separate assignment from call.
32098         Suggested by Paolo Bonzini and Bruno Haible.
32099
32100         sys_stat: guarantee struct timespec
32101         * lib/sys_stat.in.h (includes): Always include <time.h>
32102         * modules/sys_stat (Depends-on): Add time.
32103         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
32104         mode_t permission values.
32105         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
32106         get at subsecond timestamps.
32107
32108 2009-10-10  Eric Blake  <ebb9@byu.net>
32109
32110         futimens: new module
32111         * modules/futimens: New file.
32112         * lib/futimens.c (futimens): Likewise.
32113         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
32114         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
32115         we can work around Linux bugs.
32116         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32117         * modules/sys_stat (Makefile.am): Substitute them.
32118         * lib/sys_stat.in.h (futimens): Declare it.
32119         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32120         * doc/posix-functions/futimens.texi (futimens): Likewise.
32121         * modules/futimens-tests: New test.
32122         * tests/test-futimens.c: Likewise.
32123
32124         utimens: introduce fdutimens
32125         * lib/utimens.h (fdutimens): New prototype.
32126         * lib/utimens.c (gl_futimens): Move guts...
32127         (fdutimens): ...to new interface.
32128         * tests/test-utimens.c (do_fdutimens): Use it.
32129
32130         utimens: add UTIME_NOW and UTIME_OMIT support
32131         * lib/utimens.c (validate_timespec, update_timespec): New helper
32132         functions.
32133         (gl_futimens, lutimens): Use them.
32134         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
32135         stdbool, sys_stat.
32136         (Link): Mention resulting library dependency.
32137         * modules/utimecmp (Link): Likewise.
32138         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
32139         (Makefile.am): Pick up library dependency.
32140         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
32141         definition.
32142         * tests/test-sys_stat.c: Test the definitions.
32143         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
32144         * NEWS: Document library dependency.
32145
32146         utimecmp: support symlink timestamps
32147         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
32148         hashing when possible.  Use pathconf when available.
32149         (SYSCALL_RESOLUTION): Recognize tighter resolution.
32150         * modules/utimecmp (Depends-on): Add lstat.
32151
32152         utimens: add lutimens interface
32153         * lib/utimens.c (lutimens): New function.
32154         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
32155         * lib/utimens.h (lutimens): Declare new interface.
32156         * tests/test-utimens.c (main): Enhance test.
32157         * tests/test-lutimens.h (test_lutimens): New file.
32158         * modules/utimens-tests (Files): Distribute it.
32159         (Depends-on): Add symlink.
32160         (configure.ac): Check for usleep.
32161
32162         utimens: validate futimens usage
32163         * lib/utimens.c (gl_futimens): Require valid fd up front, using
32164         fewer syscalls on failure later on.  Avoid compiler warning on
32165         mingw.
32166         * modules/utimens (Depends-on): Add dup2.
32167
32168         utimens: add test
32169         * modules/utimens-tests: New test.
32170         * tests/test-utimens.h: New file.
32171         * tests/test-futimens.h: Likewise.
32172         * tests/test-utimens.c: Likewise.
32173
32174         doc: mention timestamp portability issues
32175         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
32176         instead.
32177         * doc/posix-functions/utime.texi (utime): Likewise.
32178         * doc/posix-functions/utimes.texi (utimes): Likewise.
32179         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
32180         instead.
32181         * doc/posix-functions/futimens.texi (futimens): Mention utimens
32182         module.
32183         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32184         Mention weakness with symlink timestamps.
32185         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
32186         to utimensat/futimens instead.
32187         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
32188
32189         test-dup2: enhance test
32190         * tests/test-dup2.c (main): Also check AT_FDCWD.
32191
32192         test-stat-time: avoid more spurious failures
32193         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
32194         xfs; and avoid race if the two timestamps cross quantization edge.
32195
32196         relocatable: prefer 'file system' over 'filesystem'
32197         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
32198         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
32199         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
32200         * doc/relocatable.texi (Enabling Relocatability): Likewise.
32201         * lib/relocatable.c (compute_curr_prefix): Likewise.
32202
32203 2009-10-10  Jim Meyering  <meyering@redhat.com>
32204
32205         stat-time-tests: check for the usleep function
32206         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
32207
32208 2009-10-10  Bruno Haible  <bruno@clisp.org>
32209
32210         * modules/xnanosleep: Put the Link section after the Include section.
32211
32212 2009-10-09  Eric Blake  <ebb9@byu.net>
32213
32214         dup2: work around FreeBSD 6.1 bug
32215         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
32216         * doc/posix-functions/dup2.texi (dup2): Document it.
32217         Reported by Nelson H. F. Beebe and Jim Meyering.
32218
32219         test-stat-time: port to buggy NFS clients
32220         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
32221         (test_ctime): Also skip test if mtime and ctime are skewed.
32222
32223         maint: prefer 'file system' over 'filesystem'
32224         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
32225         * doc/posix-functions/lstat.texi (lstat): Likewise.
32226         * lib/file-has-acl.c (file_has_acl): Likewise.
32227         * lib/fwriteerror.c [TEST]: Likewise.
32228         * tests/test-areadlink.h (test_areadlink): Likewise.
32229         * tests/test-areadlinkat-with-size.c (main): Likewise.
32230         * tests/test-areadlinkat.c (main): Likewise.
32231         * tests/test-canonicalize-lgpl.c (main): Likewise.
32232         * tests/test-canonicalize.c (main): Likewise.
32233         * tests/test-fstatat.c (main): Likewise.
32234         * tests/test-linkat.c (main): Likewise.
32235         * tests/test-lstat.h (test_lstat_func): Likewise.
32236         * tests/test-mkdir.h (test_mkdir): Likewise.
32237         * tests/test-readlink.h (test_readlink): Likewise.
32238         * tests/test-remove.c (main): Likewise.
32239         * tests/test-rename.h (test_rename): Likewise.
32240         * tests/test-renameat.c (main): Likewise.
32241         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32242         * tests/test-symlink.h (test_symlink): Likewise.
32243         * tests/test-symlinkat.c (main): Likewise.
32244         * tests/test-unlink.h (test_unlink_func): Likewise.
32245         * tests/test-unlinkat.c (main): Likewise.
32246
32247         maint: make realtime library usage explicit
32248         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
32249         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
32250         * modules/settime (Link): Likewise.
32251         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
32252
32253         test-stat-time: speed up execution
32254         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
32255         warning on mingw.
32256         (nap): New helper function.
32257         (prepare_test): Use it to reduce sleep time.
32258         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
32259         execution.
32260         * modules/stat-time-tests (configure.ac): Check for usleep.
32261
32262 2009-10-09  Jim Meyering  <meyering@redhat.com>
32263
32264         selinux-h: always use getfilecon wrappers
32265         * lib/getfilecon.c: New file.
32266         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
32267         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
32268         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
32269         (fgetfilecon): Provide a stub.
32270         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
32271         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
32272         file unconditionally.
32273         When <selinux/selinux.h> is found, arrange to use wrappers.
32274         * modules/selinux-h (Files): Add getfilecon.c.
32275         (Makefile.am): Substitute include-next-related bits
32276         into the now-always-generated selinux/selinux.h file.
32277         * doc/glibc-functions/lgetfilecon.texi: New file.
32278         * doc/glibc-functions/fgetfilecon.texi: New file.
32279         * doc/glibc-functions/getfilecon.texi: New file.
32280         * doc/glibc-functions/getfilecon-desc.texi: New file.
32281         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
32282         which to pull in the new files.
32283         * MODULES.html.sh (Misc): Add selinux-h.
32284
32285 2009-10-08  Jim Meyering  <meyering@redhat.com>
32286
32287         unistd: fix comment typo
32288         * lib/unistd.in.h (euidaccess): Fix a comment typo.
32289
32290 2009-10-08  Eric Blake  <ebb9@byu.net>
32291
32292         areadlink: use SIZE_MAX consistently
32293         * modules/areadlink (Depends-on): Add stdint.
32294         * modules/areadlink-with-size (Depends-on): Likewise.
32295         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
32296         gives NULL; drop sys/types, since unistd gives size_t; and add
32297         stdint for SIZE_MAX.
32298         (SIZE_MAX): Rely on headers.
32299         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
32300         and add stdint.
32301         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
32302         (SIZE_MAX): Likewise.
32303         (INITIAL_BUF_SIZE): Turn into enum.
32304         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
32305
32306 2009-10-08  Jim Meyering  <meyering@redhat.com>
32307
32308         areadlinkat: avoid compilation failure
32309         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
32310         Fix typo in comment.
32311
32312 2009-10-07  Eric Blake  <ebb9@byu.net>
32313
32314         areadlinkat-with-size: new module
32315         * modules/areadlinkat-with-size: New module.
32316         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
32317         * lib/areadlink.h (areadlinkat): Declare it.
32318         * MODULES.html.sh (File system functions): Mention it.
32319         * modules/areadlinkat-with-size-tests: New test.
32320         * tests/test-areadlinkat-with-size.c: New file.
32321
32322         xreadlinkat: new module
32323         * modules/xreadlinkat: New module.
32324         * lib/xreadlinkat.c (xreadlinkat): New file.
32325         * lib/xreadlink.h (xreadlinkat): Declare it.
32326         * MODULES.html.sh (File system functions): Mention it.
32327
32328         areadlinkat: new module
32329         * lib/at-func.c (FUNC_FAIL): New define.
32330         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
32331         * modules/areadlinkat: New module.
32332         * lib/linkat.c (areadlinkat): Move...
32333         * lib/areadlinkat.c (areadlinkat): ...to new file.
32334         * lib/areadlink.h (areadlinkat): Declare it.
32335         * modules/linkat (Depends-on): Add areadlinkat.
32336         * MODULES.html.sh (File system functions): Mention it.
32337         * modules/areadlinkat-tests: New test.
32338         * tests/test-areadlinkat.c: New file.
32339
32340         areadlink, areadlink-with-size: add tests
32341         * modules/areadlink-tests: New test.
32342         * modules/areadlink-with-size-tests: Likewise.
32343         * tests/test-areadlink.h: New file.
32344         * tests/test-areadlink.c: Likewise.
32345         * tests/test-areadlink-with-size.c: Likewise.
32346
32347         maint: minor cleanups
32348         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
32349         _UNUSED_PARAMETER_ instead.
32350         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
32351         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
32352         * modules/linkat-tests (Files): Distribute test-link.h.
32353
32354         openat, utimens: whitespace cleanup
32355         * lib/openat.c: Prefer space throughout, rather than mix of 8
32356         spaces vs. tabs.
32357         * lib/at-func.c: Likewise.
32358         * lib/utimens.c: Likewise.
32359
32360         openat: avoid using wrong fd
32361         * lib/openat.c (openat_permissive): Reject user's fd if saving the
32362         working directory chooses same fd.
32363         * lib/at-func.c (AT_FUNC_NAME): Likewise.
32364
32365         mkdir, mkdirat: fix cygwin 1.5.x bug
32366         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
32367         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
32368         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
32369         bug.
32370         (gl_PREREQ_MKDIR): Delete unused macro.
32371         * modules/mkdir (Files): Track file rename.
32372         (configure.ac): Update macro name.
32373         * modules/openat (Depends-on): Add mkdir.
32374         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
32375
32376         mkdir, mkdirat: add tests
32377         * modules/mkdir-tests: New test.
32378         * tests/test-mkdir.h: New file.
32379         * tests/test-mkdir.c: Likewise.
32380         * tests/test-mkdirat.c: Likewise.
32381         * modules/openat-tests (Files): Add new files.
32382         (Makefile.am): Run new test.
32383
32384 2009-10-06  Eric Blake  <ebb9@byu.net>
32385
32386         doc: tweak *at function documentation
32387         * doc/posix-functions/faccessat.texi (faccessat): Mention
32388         known issue with replacement.
32389         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
32390         * doc/posix-functions/linkat.texi (linkat): Likewise.
32391         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
32392         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
32393         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32394         * doc/posix-functions/renameat.texi (renameat): Likewise.
32395         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32396
32397         openat: fix GNU/Hurd bug in unlinkat
32398         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
32399         broken.
32400         * doc/posix-functions/unlink.texi (unlink): Document this.
32401         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
32402
32403         fdopendir: fix GNU/Hurd bug
32404         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
32405         allowing non-directory fds.
32406         * lib/fdopendir.c (rpl_fdopendir): Work around it.
32407         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
32408         * modules/dirent (Makefile.am): Substitute it.
32409         * lib/dirent.in.h (fdopendir): Declare replacement.
32410         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
32411         * tests/test-fdopendir.c (main): Test something other than
32412         /dev/null, since on Hurd that behaves like a directory.
32413
32414         test-symlink: port to GNU/Hurd
32415         * tests/test-symlink.h (test_symlink): Relax expected errno.
32416
32417         doc: tweak more cygwin information
32418         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
32419         now compatible with glibc.
32420         * doc/posix-functions/getopt.texi (getopt): Likewise.
32421
32422         getopt-gnu: add another test
32423         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
32424         guarantee behavior relied on by m4.
32425         * tests/test-getopt.c (main): Use it.
32426         * modules/getopt-posix-tests (Depends-on): Add setenv.
32427         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
32428
32429         getopt: fix compilation on darwin
32430         * lib/getopt.in.h (includes): Leave breadcrumbs during system
32431         include.
32432         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
32433         Reported by Ludovic Courtès.
32434
32435 2009-10-06  Bruno Haible  <bruno@clisp.org>
32436
32437         * modules/size_max (Description): Discourage its use.
32438         Reported by Simon Josefsson.
32439
32440 2009-10-06  Jim Meyering  <meyering@redhat.com>
32441
32442         linkat: avoid compilation failure
32443         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
32444
32445 2009-10-05  Eric Blake  <ebb9@byu.net>
32446
32447         linkat: support Linux 2.6.17
32448         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
32449         linkat on Linux, but allow cache variable override.
32450         * lib/linkat.c (rpl_linkat): Define override.
32451         * modules/linkat (Depends-on): Add symlinkat.
32452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
32453         * modules/unistd (Makefile.am): Substitute it.
32454         * lib/unistd.in.h (linkat): Declare replacement.
32455         Reported by Pádraig Brady.
32456
32457         quotearg: port test to systems with C.UTF-8 locale
32458         * tests/test-quotearg.c (struct result_strings): Add another
32459         member, differentiating between C.ASCII and C.UTF-8 handling.
32460         (compare_strings): Add parameter.
32461         (main): Adjust all callers.
32462
32463         getopt: avoid clash with FreeBSD _getopt_internal
32464         * lib/getopt.in.h (_getopt_internal): Override the name.
32465         * lib/getopt_int.h (includes): Pick up any overrides.
32466         Reported by Reuben Thomas.
32467
32468         hash: allow C89 compilation
32469         * lib/hash.c (check_tuning): Move declaration before statement.
32470         Reported by Reuben Thomas.
32471
32472 2009-10-05  Karl Berry  <karl@gnu.org>
32473
32474         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
32475
32476 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
32477             Bruno Haible  <bruno@clisp.org>
32478
32479         * lib/uname.c (uname): Use a table-driven algorithm to compute
32480         Windows NT versions.
32481
32482 2009-10-04  Bruno Haible  <bruno@clisp.org>
32483
32484         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
32485         program_invocation_short_name.
32486         * modules/progname (configure.ac): Test for presence of
32487         program_invocation_short_name.
32488         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
32489
32490 2009-10-04  Bruno Haible  <bruno@clisp.org>
32491
32492         * lib/progname.c (set_program_name): Fix comment.
32493         Reported by Jim Meyering.
32494
32495 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
32496             Bruno Haible  <bruno@clisp.org>
32497
32498         * lib/uname.c: Include <string.h>.
32499         (uname): Do only one call to GetVersionEx in the common case.
32500
32501 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
32502             Bruno Haible  <bruno@clisp.org>
32503
32504         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
32505         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
32506         (uname): Add support for Windows CE and various non-x86 CPU types.
32507
32508 2009-10-03  Bruno Haible  <bruno@clisp.org>
32509
32510         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
32511         invocation to tests/configure.ac.
32512         Reported by Ian Beckwith <ianb@erislabs.net>.
32513
32514 2009-10-02  Eric Blake  <ebb9@byu.net>
32515
32516         fchdir: avoid compiler warning
32517         * lib/fchdir.c (canonicalize_file_name)
32518         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
32519
32520         test-open: support mingw errno values
32521         * tests/test-open.h (test_open): Relax test.
32522         * tests/test-fopen.h (test_fopen): Likewise.
32523         * tests/test-openat-safer.c (main): Likewise.
32524
32525         open: fix opening directory on mingw
32526         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
32527
32528         test-open: on GNU/Hurd, /dev/null is a directory
32529         * tests/test-fopen.h (main): Rename...
32530         (test_fopen): ...to this.  Use a guaranteed non-directory when
32531         confirming open behavior on trailing slash.
32532         * tests/test-openat-safer.c (main): Likewise.
32533         * tests/test-open.h (main): Likewise....
32534         (test_open): ...to this.
32535         * tests/test-fopen.c (main): Adjust caller.
32536         * tests/test-fopen-safer.c (main): Likewise.
32537         * tests/test-open.c (main): Likewise.
32538         * tests/test-fcntl-safer.c (main): Likewise.
32539         Reported by Samuel Thibault.
32540
32541         rename, fchdir: don't ignore chdir failure
32542         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
32543         * lib/rename.c (rpl_rename) [W32]: Likewise.
32544         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
32545         an empty destination directory if source cannot be renamed,
32546         although there is still possibility for failure.
32547         * doc/posix-functions/rename.texi (rename): Document the race.
32548         Reported by Jim Meyering.
32549
32550         maint: cleanup whitespace in recent commits
32551         * lib/rename.c (rpl_rename): Remove tabs.
32552         * tests/test-link.h (test_link): Likewise.
32553         * lib/fchdir.c (get_name): Likewise.
32554         Reported by Jim Meyering.
32555
32556 2009-10-02  Ben Pfaff  <blp@gnu.org>
32557
32558         relocatable-prog-wrapper: Add missing dependency on
32559         double-slash-root.
32560         * modules/relocatable-prog-wrapper: Add dependency.
32561         Reported by Ian Beckwith <ianb@erislabs.net>.
32562
32563 2009-10-02  Eric Blake  <ebb9@byu.net>
32564
32565         renameat: fix Solaris bugs
32566         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
32567         needed fixing.
32568         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
32569         * modules/stdio (Makefile.am): Substitute it.
32570         * lib/stdio.in.h (renameat): Declare replacement.
32571         * lib/renameat.c (rpl_renameat): Implement fix.
32572
32573         renameat: new module
32574         * modules/renameat: New file.
32575         * lib/renameat.c (renameat): Likewise.
32576         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
32577         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
32578         * modules/stdio (Makefile.am): Substitute them.
32579         * lib/stdio.in.h (renameat): Declare it.
32580         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32581         * doc/posix-functions/renameat.texi (renameat): Likewise.
32582         * modules/renameat-tests: New test.
32583         * tests/test-renameat.c: Likewise.
32584
32585         rename: fix mingw bugs
32586         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
32587         directory overwrite bugs.
32588
32589         rename: fix another cygwin 1.5 bug
32590         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
32591         checks.
32592         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
32593         unnecessary cygwin workarounds.  Also work around bug with moving
32594         full directory onto an empty one.
32595         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
32596
32597         rename-dest-slash: merge into rename module
32598         * modules/rename-dest-slash (Status): Mark obsolete.
32599         (Depends-on): Add rename.
32600         (Files): Let rename do it all.
32601         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
32602         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
32603         * m4/rename-dest-slash.m4: ...so this file can be deleted.
32604         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
32605         * lib/rename.c (rpl_rename): Update comments.
32606
32607         rename: fix cygwin 1.5.x bugs
32608         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
32609         * lib/rename.c (rpl_rename): Work around them.
32610         * modules/rename (Depends-on): Add same-inode.
32611
32612         rename: fix Solaris 10 bug
32613         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
32614         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
32615         was the only bug.
32616
32617         rename: fix Solaris 9 bug
32618         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
32619         on non-directory.  Avoid calling exit.
32620         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
32621         strdup.
32622         * modules/rename-tests (Depends-on): Drop lstat.
32623         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
32624         (gl_PREREQ_RENAME): Delete unused macro.
32625
32626         rename-dest-slash: fix NetBSD bug
32627         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
32628         links.
32629         * modules/rename-dest-slash (Depends-on): Add same-inode.
32630
32631         rename-tests: new test, exposes several platform bugs
32632         * modules/rename-tests: New file.
32633         * tests/test-rename.h: Likewise.
32634         * tests/test-rename.c: Likewise.
32635         * doc/posix-functions/rename.texi (rename): Improve documentation,
32636         including bugs that will eventually be fixed in gnulib.
32637
32638 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
32639
32640         * lib/uname.c: Include <stdlib.h>
32641         (uname): Assume version info is available.
32642
32643 2009-10-02  Jim Meyering  <meyering@redhat.com>
32644
32645         gnu-web-doc-update: correct --help output
32646         * build-aux/gnu-web-doc-update: Make --help output relevant.
32647
32648         gnu-web-doc-update: add standard options
32649         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
32650
32651         gnu-web-doc-update: New module.
32652         Use this script to automatically update the on-line web documentation
32653         for your GNU project at http://www.gnu.org/software/$pkg/manual/
32654         * modules/gnu-web-doc-update: New file, from coreutils.
32655         * build-aux/gnu-web-doc-update: New script.
32656
32657 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
32658
32659         link: LoadLibrary is not needed.
32660         * lib/link.c: Use GetModuleHandle.
32661
32662 2009-10-01  Eric Blake  <ebb9@byu.net>
32663
32664         getopt: bump serial number
32665         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
32666         change.
32667
32668         tests: tighten link, rmdir, and remove tests
32669         * tests/test-link.h (includes): No need to use <config.h> here.
32670         Clean up if directory hard link was created, otherwise test for
32671         trailing '.'.
32672         * tests/test-linkat.c (main): Simplify.
32673         * tests/test-remove.c (main): Enhance test for trailing '.'.
32674         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32675
32676 2009-10-01  Jim Meyering  <meyering@redhat.com>
32677
32678         maint.mk: requiring "make major" was annoying, for a "minor" release.
32679         What is intended is "stable", to contrast with alpha and beta,
32680         so require "make stable", not "make major".
32681         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
32682         (get_tool_versions): Likewise.
32683         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
32684
32685 2009-09-30  Ben Pfaff  <blp@gnu.org>
32686
32687         Fix broken build of replacement for Windows tmpfile().
32688         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
32689         flags argument added along with the 'mkostemp' module.
32690
32691 2009-09-28  Bruno Haible  <bruno@clisp.org>
32692
32693         Avoid identifier clash with POSIX function 'remove' defined as a macro.
32694         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
32695         to 'remove_elt'.
32696         (gl_list_remove): Update.
32697         * lib/gl_list.c (gl_list_remove): Update.
32698         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
32699         to 'remove_elt'.
32700         (gl_oset_remove): Update.
32701         * lib/gl_list.c (gl_oset_remove): Update.
32702         Reported by Eric Blake.
32703
32704 2009-09-28  Eric Blake  <ebb9@byu.net>
32705
32706         doc: mention yet more cygwin 1.7 status
32707         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
32708         cygwin.
32709         * doc/glibc-functions/execvpe.texi (execvpe): New file.
32710         * doc/gnulib.texi (Glibc unistd.h): Mention it.
32711
32712         argp: fix test failure
32713         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
32714         that are not upper-case.  Pass correct range to tolower.
32715
32716 2009-09-27  Jim Meyering  <meyering@redhat.com>
32717
32718         test-yesno: work around sparc-dash here-document infelicity
32719         Without this change, the literal \177 byte in a here document
32720         would make dash 0.5.5.1-3 access uninitialized memory.
32721         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
32722         Instead, use a marker, "@", and filter through tr to create the desired
32723         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
32724
32725 2009-09-27  Bruno Haible  <bruno@clisp.org>
32726
32727         Disable untested support for new flavours of ACLs on AIX.
32728         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
32729         progress.
32730         * lib/set-mode-acl.c (qset_acl): Likewise.
32731
32732 2008-12-07  Bruno Haible  <bruno@clisp.org>
32733
32734         Add support for new flavours of ACLs on AIX. (Untested.)
32735         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
32736         (file_has_acl): Add support for newer AIX.
32737         * lib/set-mode-acl.c (qset_acl): Likewise.
32738         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
32739         Rainer Tammer <tammer@tammer.net>.
32740
32741 2009-09-26  Eric Blake  <ebb9@byu.net>
32742
32743         argp: fix compilation of getopt
32744         * lib/getopt.in.h (includes): Use different guard than glibc.
32745         Reported by Sergey Poznyakoff.
32746
32747         doc: mention more cygwin 1.7 status
32748         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
32749         bug.
32750         * doc/posix-functions/execl.texi (execl): Likewise.
32751         * doc/posix-functions/execle.texi (execle): Likewise.
32752         * doc/posix-functions/execlp.texi (execlp): Likewise.
32753         * doc/posix-functions/execv.texi (execv): Likewise.
32754         * doc/posix-functions/execve.texi (execve): Likewise.
32755         * doc/posix-functions/execvp.texi (execvp): Likewise.
32756         * doc/glibc-functions/canonicalize_file_name.texi
32757         (canonicalize_file_name): Cygwin 1.7 now provides this.
32758         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
32759         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
32760         on AT_SYMLINK_NOFOLLOW.
32761
32762 2009-09-24  Eric Blake  <ebb9@byu.net>
32763
32764         test-linkat: make test more robust
32765         * tests/test-linkat.c (main): Avoid collision with EEXIST.
32766
32767         getopt: fix inclusion guards for cygwin
32768         * modules/getopt-posix (Depends-on): Add include-next.
32769         (Makefile.am): Substitute more items in replacement header.
32770         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
32771         <getopt.h>.
32772         * lib/getopt.in.h (includes): Use split inclusion guard, and
32773         prefer <getopt.h> over include <unistd.h> when one is present.
32774         (option): Also override name of 'struct option'.
32775
32776         same-inode: revert prior change; it is not yet ready
32777         * NEWS: Undo mention of this change.
32778         * lib/same-inode.h (same-inode.h): Undo tri-state change.
32779         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
32780         * lib/cycle-check.c (cycle_check): Likewise.
32781         * lib/same.c (same_name): Likewise.
32782         * lib/at-func2.c (at_func2): Likewise.
32783
32784 2009-09-23  Eric Blake  <ebb9@byu.net>
32785
32786         linkat: new module
32787         * modules/linkat: New file.
32788         * lib/at-func2.c (at_func2): Likewise.
32789         * lib/linkat.c (linkat): Likewise.
32790         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
32791         * lib/openat-priv.h (at_func2): Add declaration.
32792         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32793         * modules/unistd (Makefile.am): Substitute them.
32794         * lib/unistd.in.h (linkat): Declare it.
32795         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32796         * doc/posix-functions/linkat.texi (linkat): Likewise.
32797         * doc/posix-functions/link.texi (link): Tweak wording.
32798         * tests/test-link.c (main): Move guts...
32799         * tests/test-link.h (test_link): ...into new file.
32800         * modules/linkat-tests: New test.
32801         * tests/test-linkat.c: Likewise.
32802         * modules/link-tests (Files): Ship new file.
32803         (Depends-on): Add stdbool.
32804
32805         dirname: add library-safe mdir_name
32806         * lib/dirname.h (mdir_name): New prototype.
32807         * lib/dirname.c (dir_name): Move guts...
32808         (mdir_name): ...to new function that avoids xalloc_die.
32809
32810         fchdir: another mingw fix
32811         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
32812         * lib/fchdir.c (get_name): New helper method; skips canonicalize
32813         on mingw (where it has not yet been ported), and make it optional
32814         elsewhere.
32815         (_gl_register_fd): Use it.
32816
32817         same-inode: make SAME_INODE tri-state, to port to mingw
32818         * NEWS: Mention this change.
32819         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
32820         st_ino always being 0.
32821         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
32822         * lib/cycle-check.c (cycle_check): Likewise.
32823         * lib/same.c (same_name): Likewise.
32824
32825         lstat: avoid mingw compilation error
32826         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
32827         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
32828         lstat ourselves.
32829         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
32830         was adequate.
32831         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
32832         the checks for lstat.
32833         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
32834
32835         link: fix test failure on Solaris 9
32836         * lib/link.c (rpl_link): Don't assume link will catch bogus
32837         trailing slash on source.
32838
32839         test-symlinkat: enhance test
32840         * tests/test-readlink.c (main): Move guts...
32841         * tests/test-readlink.h (test_readlink): ...into new file.
32842         * tests/test-symlink.c (main): Move guts...
32843         * tests/test-symlink.h (test_symlink): ...into new file.
32844         * tests/test-symlinkat.c (main): Use new files for further
32845         coverage.
32846         (do_symlink, do_readlink): New helper functions.
32847         * modules/symlink-tests (Files): Ship new file.
32848         (Depends-on): Add stdbool.
32849         * modules/readlink-tests (Files): Ship new file.
32850         (Depends-on): Add stdbool.
32851         * modules/symlinkat-tests (Files): Use new files.
32852
32853 2009-09-23  Eric Blake  <ebb9@byu.net>
32854
32855         readlink: document portability issue with symlink length
32856         * doc/posix-functions/lstat.texi (lstat): Mention that some file
32857         systems have bogus st_size on symlinks, and mention the
32858         areadlink-with-size module.
32859         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
32860         * doc/posix-functions/readlink.texi (readlink): Mention the
32861         areadlink module, and ERANGE failure.
32862         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32863         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
32864
32865         readlink: fix Solaris 9 bug with trailing slash
32866         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
32867         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
32868         * doc/posix-functions/readlink.texi (readlink): Document this.
32869         * modules/readlink-tests: New test.
32870         * tests/test-readlink.c: Likewise.
32871
32872         readlink: fix cygwin 1.5.x bug with return type
32873         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
32874         * lib/unistd.in.h (readlink): Use ssize_t.
32875         * lib/readlink.c (readlink): Likewise.
32876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32877         * modules/unistd (Makefile.am): Substitute it.
32878         * lib/unistd.in.h (readlink): Declare replacement.
32879         * doc/posix-functions/readlink.texi (readlink): Document this.
32880
32881         symlink: use throughout gnulib
32882         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
32883         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
32884         symlink is not used.
32885         * modules/symlinkat (Depends-on): Add symlink.
32886         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32887         * modules/canonicalize-tests (Depends-on): Likewise.
32888         * modules/lstat-tests (Depends-on): Likewise.
32889         * modules/openat-tests (Depends-on): Likewise.
32890         * modules/remove-tests (Depends-on): Likewise.
32891         * modules/rmdir-tests (Depends-on): Likewise.
32892         * modules/unlink-tests (Depends-on): Likewise.
32893         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
32894         * tests/test-canonicalize.c (symlink): Likewise.
32895         * tests/test-fstatat.c (symlink): Likewise.
32896         * tests/test-lstat.c (symlink): Likewise.
32897         * tests/test-remove.c (symlink): Likewise.
32898         * tests/test-rmdir.c (symlink): Likewise.
32899         * tests/test-unlink.c (symlink): Likewise.
32900         * tests/test-unlinkat.c (symlink): Likewise.
32901
32902         symlink: new module, for Solaris 9 bug
32903         * modules/symlink: New file.
32904         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
32905         * lib/symlink.c: Likewise.
32906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32907         * modules/unistd (Makefile.am): Substitute them.
32908         * lib/unistd.in.h (symlink): Declare replacement.
32909         * MODULES.html.sh (File system functions): Mention it.
32910         * doc/posix-functions/symlink.texi (symlink): Likewise.
32911         * modules/symlink-tests: New test.
32912         * tests/test-symlink.c: Likewise.
32913
32914 2009-09-23  Bruno Haible  <bruno@clisp.org>
32915
32916         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
32917         when needed.
32918         Test case: gnulib-tool --import --with-tests atexit inttypes.
32919         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
32920
32921 2009-09-23  Bruno Haible  <bruno@clisp.org>
32922
32923         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
32924         subcommand, not in a subshell.
32925
32926 2009-09-22  Eric Blake  <ebb9@byu.net>
32927
32928         unistd: sort replacement declarations
32929         * lib/unistd.in.h: Sort declarations.
32930
32931         open, openat: minor optimization
32932         * lib/open.c (open): If open succeeded, len is non-zero.
32933         * lib/openat.c (rpl_openat): Likewise.
32934
32935         link-follow: ensure correct result
32936         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
32937         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
32938         distinguish between possible failures.
32939
32940 2009-09-21  Eric Blake  <ebb9@byu.net>
32941
32942         fts: avoid compiler warning
32943         * lib/fts.c (dirent_inode_sort_may_be_useful)
32944         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
32945
32946 2009-09-19  Bruno Haible  <bruno@clisp.org>
32947
32948         * lib/progreloc.c (canonicalize_file_name): New declaration.
32949
32950 2009-09-19  Eric Blake  <ebb9@byu.net>
32951
32952         link: fix quoting
32953         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
32954
32955         openat: fix openat bugs on Solaris 9
32956         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
32957         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
32958         * modules/openat (Depends-on): Add open.
32959         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
32960         * modules/fcntl-h (Makefile.am): Substitute it.
32961         * lib/fcntl.in.h (openat): Declare replacement.
32962         * doc/posix-functions/openat.texi (openat): Document this.
32963
32964         openat: move fstatat and unlinkat into correct files
32965         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
32966         compiled.
32967         * lib/openat.c (fstatat, unlinkat): Move...
32968         * lib/fstatat.c (fstatat): ...into correct files.
32969         * lib/unlinkat.c (unlinkat): Likewise.
32970
32971         openat: fix unlinkat bugs on Solaris 9
32972         * lib/unlinkat.c (unlinkat): New file.
32973         * modules/openat (Depends-on): Add unlink.
32974         (Files): Distribute it.
32975         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
32976         trailing slash behavior is broken.
32977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32978         * modules/unistd (Makefile.am): Substitute it.
32979         * lib/unistd.in.h (unlinkat): Declare replacement.
32980         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
32981
32982         openat: fix fstatat bugs on Solaris 9
32983         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
32984         stat.
32985         * doc/posix-functions/fstatat.texi (fstatat): Document this.
32986
32987         test-unlinkat: enhance test, to expose Solaris 9 bug
32988         * tests/test-unlink.c (main): Factor guts...
32989         * tests/test-unlink.h (test_rmdir_func): ...into new file.
32990         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
32991         * tests/test-rmdir.c (main): Adjust caller.
32992         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
32993         (unlinker): New helper function.
32994         (rmdirat): Enhance check.
32995         * modules/rmdir-tests (Depends-on): Add stdbool.
32996         * modules/unlink-tests (Depends-on): Likewise.
32997         (Files): Add test-unlink.h.
32998         * modules/openat-tests (Files): Likewise.
32999         (Depends-on): Add unlinkdir.
33000
33001         test-fstatat: new test, to expose Solaris 9 bugs
33002         * tests/test-stat.c (main): Factor guts...
33003         * tests/test-stat.h (test_stat_func): ...into new file.
33004         * tests/test-lstat.c (main): Factor guts...
33005         * tests/test-lstat.h (test_lstat_func): ...into new file.
33006         * tests/test-fstatat.c: New file.
33007         * modules/stat-tests (Files): Add test-stat.h.
33008         * modules/lstat-tests (Files): Add test-lstat.h.
33009         (Depends-on): Add stdbool.
33010         * modules/openat-tests (Depends-on): Add pathmax.
33011         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
33012         (Makefile.am): Run new test.
33013
33014         remove: new module, for mingw and Solaris 9 bugs
33015         * modules/remove: New file.
33016         * lib/remove.c: Likewise.
33017         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
33018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33019         * modules/stdio (Makefile.am): Use them.
33020         * lib/stdio.in.h (remove): Declare replacement.
33021         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33022         * doc/posix-functions/remove.texi (remove): Likewise.
33023         * modules/remove-tests: New test.
33024         * tests/test-remove.c: Likewise.
33025
33026         unlink: new module, for Solaris 9 bug
33027         * modules/unlink: New file.
33028         * lib/unlink.c: Likewise.
33029         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
33030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33031         * modules/unistd (Makefile.am): Use them.
33032         * lib/unistd.in.h (stat): Declare replacement.
33033         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33034         * doc/posix-functions/unlink.texi (unlink): Likewise.
33035         * modules/unlink-tests: New test.
33036         * tests/test-unlink.c: Likewise.
33037
33038         lstat: fix Solaris 9 bug
33039         * lib/lstat.c (lstat): Also check for trailing slash on
33040         non-symlink, non-directories.  Use stat module to simplify logic.
33041         * doc/posix-functions/lstat.texi (lstat): Document it.
33042         * modules/lstat-tests (Depends-on): Add errno, same-inode.
33043         (configure.ac): Check for symlink.
33044         * tests/test-lstat.c (main): Add more tests.
33045
33046         stat: add as dependency to other modules
33047         * modules/chown (Depends-on): Add stat.
33048         * modules/euidaccess (Depends-on): Likewise.
33049         * modules/fchdir (Depends-on): Likewise.
33050         * modules/isdir (Depends-on): Likewise.
33051         * modules/link (Depends-on): Likewise.
33052         * modules/lstat (Depends-on): Likewise.
33053         * modules/mkdir-p (Depends-on): Likewise.
33054         * modules/modechange (Depends-on): Likewise.
33055         * modules/open (Depends-on): Likewise.
33056         * modules/readlink (Depends-on): Likewise.
33057         * modules/same (Depends-on): Likewise.
33058
33059         stat: fix Solaris 9 bug
33060         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
33061         slash.
33062         * lib/stat.c (rpl_stat): Work around it.
33063         * doc/posix-functions/stat.texi (stat): Update documentation.
33064
33065         stat: new module, for mingw bug
33066         * modules/stat: New file.
33067         * lib/stat.c: Likewise.
33068         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
33069         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33070         * modules/sys_stat (Makefile.am): Use them.
33071         * lib/sys_stat.in.h (stat): Declare replacement.
33072         * lib/openat.c (fstatat): Deal with lstat and stat being function
33073         macros.
33074         * modules/openat (Depends-on): Add inline.
33075         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33076         * doc/posix-functions/stat.texi (stat): Likewise.
33077         * modules/stat-tests: New test.
33078         * tests/test-stat.c: Likewise.
33079
33080 2009-09-19  Jim Meyering  <meyering@redhat.com>
33081
33082         syntax-check: detect unnecessary inclusion of canonicalize.h
33083         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
33084
33085 2009-09-19  Eric Blake  <ebb9@byu.net>
33086
33087         canonicalize-lgpl: adjust clients to use correct header
33088         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
33089         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
33090         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
33091         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
33092         * lib/progreloc.c (includes): Likewise.
33093
33094 2009-09-19  Jim Meyering  <meyering@redhat.com>
33095
33096         test-posixtm.c: correct a comment
33097         * tests/test-posixtm.c: Correct first-line comment.
33098         Spotted by Eric Blake.
33099
33100 2009-09-16  Jim Meyering  <meyering@redhat.com>
33101
33102         posixtm-tests: make T const-correct; add a test case
33103         * tests/test-posixtm.c (T): Declare const.
33104         Add a test for -(2^31+1).
33105         Remove useless can-succeed-only-in-2002 test.
33106
33107         posixtm-tests: adjust the sole failing test
33108         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
33109         expected output matches what mktime now produces.  Cross-checked via
33110         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
33111
33112         posixtm: move #ifdef'd tests into a new module
33113         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
33114         * tests/test-posixtm.c: ... this new file.
33115         * modules/posixtm-tests: New module.
33116
33117 2009-09-19  Eric Blake  <ebb9@byu.net>
33118
33119         openat: simplify use of at-func.c
33120         * lib/at-func.c (includes): Include prerequisites here, to
33121         simplify requirements on client files.
33122         * lib/openat-priv.h: Add double-inclusion guard.
33123         * lib/faccessat.c (includes): Simplify.
33124         * lib/fchmodat.c (includes): Likewise.
33125         * lib/fchownat.c (includes): Likewise.
33126         * lib/mkdirat.c (includes): Likewise.
33127         * lib/mkfifoat.c (includes): Likewise.
33128         * lib/symlinkat.c (includes): Likewise.
33129
33130         openat: allow return of fd 0
33131         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
33132         * modules/save-cwd (Depends-on): Replace fcntl-safer with
33133         unistd-safer.
33134         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
33135         <fcntl.h>; this module does not leak fds.
33136         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
33137         must be allowed to return 0, leaving openat_safer to add the
33138         safety.
33139         (openat_permissive): Avoid writing to just-opened fd 2 if
33140         restoring the current directory fails.
33141         * lib/openat-die.c (openat_restore_fail): Add comment.
33142         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
33143         (save_cwd): Guarantee safe fd, but without use of open_safer.
33144         * tests/test-openat.c: New test.
33145         * modules/openat-tests (Files, Makefile.am): Distribute and build
33146         new file.
33147
33148         relocatable-prog-wrapper: fix build
33149         * modules/relocatable-prog-wrapper (Files): Update name of
33150         canonicalize m4 file, broken on 2009-09-17.
33151         Reported by emad hajjar <aleppos@hotmail.com>.
33152
33153 2009-09-19  Bruno Haible  <bruno@clisp.org>
33154
33155         * lib/safe-alloc.h: Use the standard header with GPL copyright.
33156         * lib/safe-alloc.c: Likewise.
33157         Reported by Ian Beckwith <ianb@erislabs.net>.
33158
33159 2009-09-18  Bruno Haible  <bruno@clisp.org>
33160
33161         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
33162         Reported by <erobles@sensacd.com.mx>.
33163
33164 2009-09-17  Eric Blake  <ebb9@byu.net>
33165
33166         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
33167         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
33168         slashes when checking if last component is missing.
33169         * tests/test-canonicalize.c (main): Test this.
33170
33171         canonicalize, canonicalize-lgpl: honor // if distinct from /
33172         * modules/canonicalize (Files): Add double-slash-root.m4.
33173         * modules/canonicalize-lgpl (Files): Likewise.
33174         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
33175         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
33176         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
33177         fallback definition.
33178         (canonicalize_filename_mode): Use it to protect //.
33179         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
33180         (__realpath): Likewise.
33181         * tests/test-canonicalize.c (main): Test this.
33182         * tests/test-canonicalize-lgpl.c (main): Likewise.
33183         * modules/canonicalize-tests (Depends-on): Add same-inode.
33184         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33185
33186         canonicalize-lgpl: fix glibc bug with trailing slash
33187         * m4/canonicalize-lgpl.m4: Move contents...
33188         * m4/canonicalize.m4: ...here.
33189         (gl_CANONICALIZE_LGPL): Factor realpath check...
33190         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
33191         glibc 2.3.5 bug, fixed 2005-04-27.
33192         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
33193         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
33194         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
33195         * modules/canonicalize-lgpl (Files): Manage file rename.
33196         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
33197         * modules/stdlib (Makefile.am): Substitute witness.
33198         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
33199         is needed.
33200         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
33201         replacement is required.
33202         * lib/canonicalize.c (canonicalize_file_name): Likewise.
33203         * doc/glibc-functions/canonicalize_file_name.texi
33204         (canonicalize_file_name): Document this.
33205         * doc/posix-functions/realpath.texi (realpath): Likewise.
33206
33207         canonicalize-lgpl: reject non-directory with trailing slash
33208         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
33209         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
33210         catches failures in glibc 2.3.5.
33211         * tests/test-canonicalize.c (main): Likewise.
33212
33213         canonicalize-lgpl: use native realpath if it works
33214         * lib/canonicalize-lgpl.c (realpath): Guard with
33215         FUNC_REALPATH_WORKS.
33216         * lib/stdlib.in.h (realpath): Make declaration optional based on
33217         HAVE_REALPATH.
33218         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
33219         native realpath works.
33220         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
33221         * modules/stdlib (Makefile.am): Substitute witness.
33222
33223         canonicalize, canonicalize-lgpl: use <stdlib.h>
33224         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
33225         (Include): Mention <stdlib.h>.
33226         (configure.ac): Mention functions we provide.
33227         * modules/canonicalize (configure.ac): Likewise.
33228         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
33229         realpath if canonicalize_file_name is missing.
33230         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
33231         * modules/stdlib (Makefile.am): Substitute witnesses.
33232         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
33233         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
33234         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
33235         * NEWS: Document this.
33236         * doc/glibc-functions/canonicalize_file_name.texi
33237         (canonicalize_file_name): Likewise.
33238         * doc/posix-functions/realpath.texi (realpath): Likewise.
33239         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
33240
33241         test-canonicalize: consolidate into single C program
33242         * tests/test-canonicalize.sh: Delete; move setup into...
33243         * tests/test-canonicalize.c (main): ...the program, making it
33244         easier to run in debugger.  Add some tests.
33245         * modules/canonicalize-tests (Files): Remove unused file.
33246         (Depends-on): Add progname.
33247         (configure.ac, Makefile.am): Simplify.
33248
33249         test-canonicalize-lgpl: consolidate into single C program
33250         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
33251         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
33252         easier to run in debugger.  Add some tests.
33253         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
33254         (configure.ac, Makefile.am): Simplify.
33255
33256         canonicalize: avoid resolvepath
33257         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
33258         unnecessary checks.
33259         * lib/canonicalize.c (includes): Simplify.
33260         (canonicalize_file_name): Drop resolvepath implementation.
33261         * modules/canonicalize (Depends-on): Drop filenamecat.
33262
33263         canonicalize: don't lose errno
33264         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
33265         over calls to free.
33266
33267         canonicalize: simplify errno handling
33268         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
33269         assignment.
33270
33271         canonicalize, canonicalize-lgpl: update module dependencies
33272         * modules/canonicalize (Depends-on): Add extensions, lstat,
33273         pathmax, stdlib.
33274         (Files): Drop pathmax.h.
33275         (configure.ac): Adjust macro name.
33276         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
33277         lstat, stdlib, sys_stat.
33278         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
33279         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
33280         extensions.
33281         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
33282         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
33283         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
33284         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
33285         declaration, if available.
33286         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
33287         we can rely on the readlink module.
33288         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
33289         (includes): Use <unistd.h> unconditionally.
33290
33291 2009-09-17  Eric Blake  <ebb9@byu.net>
33292
33293         maint: make Include sections of modules consistent
33294         * modules/alloca: Use only header name; no need to list #include.
33295         * modules/alloca-opt: Likewise.
33296         * modules/arpa_inet: Likewise.
33297         * modules/canon-host: Likewise.
33298         * modules/configmake: Likewise.
33299         * modules/dirent: Likewise.
33300         * modules/eealloc: Likewise.
33301         * modules/environ: Likewise.
33302         * modules/fchdir: Likewise.
33303         * modules/fcntl: Likewise.
33304         * modules/fcntl-h: Likewise.
33305         * modules/gethrxtime: Likewise.
33306         * modules/gettime: Likewise.
33307         * modules/ignore-value: Likewise.
33308         * modules/inet_ntop: Likewise.
33309         * modules/inet_pton: Likewise.
33310         * modules/inttypes: Likewise.
33311         * modules/isnand-nolibm: Likewise.
33312         * modules/isnanf-nolibm: Likewise.
33313         * modules/mbchar: Likewise.
33314         * modules/mbfile: Likewise.
33315         * modules/mbiter: Likewise.
33316         * modules/mbuiter: Likewise.
33317         * modules/netdb: Likewise.
33318         * modules/netinet_in: Likewise.
33319         * modules/nproc: Likewise.
33320         * modules/pagealign_alloc: Likewise.
33321         * modules/poll: Likewise.
33322         * modules/printf-frexp: Likewise.
33323         * modules/pthread: Likewise.
33324         * modules/putenv: Likewise.
33325         * modules/random_r: Likewise.
33326         * modules/relocatable-prog: Likewise.
33327         * modules/search: Likewise.
33328         * modules/select: Likewise.
33329         * modules/selinux-h: Likewise.
33330         * modules/settime: Likewise.
33331         * modules/signal: Likewise.
33332         * modules/size_max: Likewise.
33333         * modules/socklen: Likewise.
33334         * modules/ssize_t: Likewise.
33335         * modules/stdarg: Likewise.
33336         * modules/stdbool: Likewise.
33337         * modules/stddef: Likewise.
33338         * modules/stdint: Likewise.
33339         * modules/stdio: Likewise.
33340         * modules/stdlib: Likewise.
33341         * modules/string: Likewise.
33342         * modules/strings: Likewise.
33343         * modules/sys_file: Likewise.
33344         * modules/sys_ioctl: Likewise.
33345         * modules/sys_select: Likewise.
33346         * modules/sys_socket: Likewise.
33347         * modules/sys_stat: Likewise.
33348         * modules/sys_time: Likewise.
33349         * modules/sys_times: Likewise.
33350         * modules/sys_utsname: Likewise.
33351         * modules/sys_wait: Likewise.
33352         * modules/sysexits: Likewise.
33353         * modules/time: Likewise.
33354         * modules/times: Likewise.
33355         * modules/tmpfile: Likewise.
33356         * modules/trim: Likewise.
33357         * modules/unistd: Likewise.
33358         * modules/wchar: Likewise.
33359         * modules/wctype: Likewise.
33360
33361 2009-09-17  Bruno Haible  <bruno@clisp.org>
33362
33363         Make getdate.y compile on QNX and NetBSD 5 / i386.
33364         * m4/getdate.m4 (gl_GETDATE): Conditionally define
33365         TIME_T_FITS_IN_LONG_INT.
33366         * lib/getdate.y (long_time_t): New type.
33367         (relative_time): Change type of 'seconds' field to long_time_t.
33368         (get_date): Update types of local variables. Check against overflow
33369         during conversion from long_time_t to time_t.
33370         Reported by Matt Kraai <kraai@ftbfs.org>
33371         and Hasso Tepper <hasso@netbsd.org>.
33372
33373 2009-09-17  Bruno Haible  <bruno@clisp.org>
33374
33375         * modules/COPYING: Update copyright years.
33376         * modules/README: Likeiwse.
33377         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
33378         Reported by Ian Beckwith <ianb@erislabs.net>.
33379
33380 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
33381
33382         * users.txt: Update references for gnuit package.
33383
33384 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
33385
33386         * m4/getdelim.m4: Fix typo in copyright line.
33387
33388 2009-09-17  Bruno Haible  <bruno@clisp.org>
33389
33390         * lib/atoll.c: Use the standard header with GPL copyright.
33391         * lib/argz.in.h: Likewise.
33392         * lib/glob.c: Likewise.
33393         * lib/glob-libc.h: Likewise.
33394         * lib/random_r.c: Likewise.
33395         * lib/siglist.h: Likewise.
33396         * lib/strsignal.c: Likewise.
33397         Reported by Ian Beckwith <ianb@erislabs.net>.
33398
33399 2009-09-17  Eric Blake  <ebb9@byu.net>
33400
33401         rmdir: ensure correct dependency order
33402         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
33403
33404 2009-09-17  Bruno Haible  <bruno@clisp.org>
33405
33406         Disable assertion that fails on NetBSD 5 / i386.
33407         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
33408         Reported by Sam Steingold <sds@gnu.org>
33409         and Hasso Tepper <hasso@netbsd.org>.
33410
33411 2009-09-16  Eric Blake  <ebb9@byu.net>
33412
33413         unlinkdir: port to mingw
33414         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
33415         on which no one can unlink a directory.
33416
33417         stdlib: sort witness names
33418         * modules/stdlib (Makefile.am): Sort replacements.
33419         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
33420         * lib/stdlib.in.h: Likewise.
33421
33422         parse-duration-tests: avoid link failure
33423         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
33424         LIBINTL.
33425         Reported by Tom G. Christensen.
33426
33427         openat-tests: ensure unlinkat behaves like rmdir
33428         * tests/test-rmdir.c (main): Factor guts...
33429         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
33430         * modules/rmdir-tests (Files): Ship new file.
33431         * modules/openat-tests: New test.
33432         * tests/test-unlinkat.c: Likewise.
33433
33434         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
33435         * modules/rmdir-errno (Status, Notice): Now obsolete.
33436
33437         rmdir: work around cygwin 1.5.x and mingw bugs
33438         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
33439         * lib/rmdir.c (rmdir): Work around it.
33440         * modules/rmdir (Status, Notice): No longer obsolete.
33441         (Files): Add dos.m4.
33442         (Depends-on): Add unistd.
33443         (configure.ac): Set witnesses.
33444         (License): Relax to LGPLv2+.
33445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
33446         * modules/unistd (Makefile.am): Substitute witnesses.
33447         * lib/unistd.in.h (rmdir): Declare replacement.
33448         * doc/posix-functions/rmdir.texi (rmdir): Document this.
33449         * modules/rmdir-tests: New tests.
33450         * tests/test-rmdir.c: Likewise.
33451
33452 2009-09-15  Eric Blake  <ebb9@byu.net>
33453
33454         fchdir: improve use of replacement functions
33455         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
33456         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
33457         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
33458         REPLACE_CLOSEDIR.
33459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
33460         * modules/sys_stat (Makefile.am): Substitute correct witness.
33461         * modules/dirent (Makefile.am): Likewise.
33462         * modules/unistd (Makefile.am): Likewise.
33463         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
33464         * lib/unistd.in.h (dup): Likewise.
33465         * lib/sys_stat.in.h (fstat): Likewise.
33466
33467         maint: ignore gnulib-tool temp files
33468         * .gitignore: Ignore files created during gnulib-tool --test.
33469
33470 2009-09-13  Jim Meyering  <meyering@redhat.com>
33471
33472         posixtm: don't reject a time that specify "60" as the number of seconds
33473         * lib/posixtm.c (posixtime): The code to reject invalid dates
33474         would also reject a time specified with the .60 suffix.
33475         But POSIX allows that, in order to accommodate leap seconds.
33476         So don't reject it.
33477         (main): Adjust tests accordingly.
33478         * modules/posixtm (Depends-on): Add stpcpy.
33479
33480 2009-09-11  Jim Meyering  <meyering@redhat.com>
33481
33482         announce-gen: include [$release_type] in emitted Subject:
33483         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
33484         e.g., [stable] in the emitted Subject: line.
33485
33486 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33487
33488         Remove obsolete macros from several modules.
33489         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
33490         obsolete Autoconf macros with their modern counterparts.
33491         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
33492         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
33493         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
33494         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
33495         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
33496         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
33497         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
33498         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
33499         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
33500         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
33501         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
33502         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
33503         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
33504         * m4/sockets.m4 (gl_SOCKETS): Likewise.
33505         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
33506         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
33507         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33508         * m4/time_r.m4 (gl_TIME_R): Likewise.
33509         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
33510         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
33511         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33512
33513         Fix copyright header in build-aux scripts.
33514         * build-aux/git-version-gen: Fix copyright header to match GPLv3
33515         recommendation.
33516         * build-aux/ncftpput-ftp: Likewise.
33517         * build-aux/update-copyright: Likewise.
33518
33519 2009-09-09  Eric Blake  <ebb9@byu.net>
33520
33521         test-link: allow Linux choice of errno
33522         * tests/test-link.c (main): Relax test for alternate error.
33523
33524         strndup: fix improper m4 caching
33525         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
33526         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
33527         (gl_PREREQ_STRNDUP): Delete.
33528         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
33529         * modules/string (Makefile.am): Substitute it.
33530         * lib/string.in.h (strndup): Modernize prototype.
33531
33532         getcwd: port to mingw
33533         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
33534         different from the POSIX assumptions made throughout the getcwd
33535         module; fortunately, the mingw getcwd does not need replacement.
33536         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
33537         * modules/getcwd-tests: New test.
33538         * tests/test-getcwd.c: Likewise.
33539
33540         link: fix platform bugs
33541         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
33542         * lib/link.c (link): Work around them.  Fix related mingw bug.
33543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
33544         * modules/unistd (Makefile.am): Substitute it.
33545         * lib/unistd.in.h (link): Declare replacement.
33546         * doc/posix-functions/link.texi (link): Document this.
33547         * modules/link (Depends-on): Add strdup-posix, sys_stat.
33548
33549         test-link: consolidate into single C program, test more cases
33550         * tests/test-link.sh: Delete.
33551         * tests/test-link.c: Test more error conditions.  Exposes bugs on
33552         at least Cygwin and Solaris.
33553         * modules/link-tests (Files): Remove unused file.
33554         (Depends-on): Add errno, sys_stat.
33555         (Makefile.am): Simplify.
33556
33557 2009-09-08  Bruno Haible  <bruno@clisp.org>
33558
33559         Work around towlower, towupper bug on mingw.
33560         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
33561         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
33562         * doc/posix-functions/towlower.texi: Mention the mingw bug.
33563         * doc/posix-functions/towupper.texi: Likewise.
33564         Reported by Eric Blake.
33565
33566 2009-09-08  Jim Meyering  <meyering@redhat.com>
33567
33568         build: don't try to run autoheader if we don't use it
33569         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
33570         is not used in configure.ac.
33571
33572 2009-09-08  Eric Blake  <ebb9@byu.net>
33573
33574         euidaccess: fix compilation error
33575         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
33576
33577         rawmemchr: relax license
33578         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
33579         okay.
33580         Reported by Jim Meyering.
33581
33582         mkfifoat: new module
33583         * modules/mkfifoat: New file.
33584         * lib/mkfifoat.c: Likewise.
33585         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
33586         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33587         * modules/sys_stat (Makefile.am): Use them.
33588         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
33589         * MODULES.html.sh (File system functions): Mention module.
33590         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
33591         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
33592         * modules/mkfifoat-tests: New test.
33593         * tests/test-mkfifoat.c: Likewise.
33594
33595         strchrnul: relax license
33596         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
33597         okay.
33598         Reported by Jim Meyering.
33599
33600 2009-09-08  Eric Blake  <ebb9@byu.net>
33601
33602         fstatat: fix compilation on Solaris
33603         * lib/fstatat.c (includes): Add fcntl.h.
33604         Reported by Pádraig Brady.
33605
33606 2009-09-07  Eric Blake  <ebb9@byu.net>
33607
33608         rename: modernize replacement
33609         * modules/rename (Depends-on): Add stdio.
33610         (configure.ac): Declare witness.
33611         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
33612         stdio take care of replacement.
33613         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
33614         * modules/stdio (Makefile.am): Substitute them.
33615         * lib/stdio.in.h (rename): Declare replacement.
33616         * lib/rename.c (includes): Allow cross-compilation to non-windows
33617         machines.
33618         * doc/posix-functions/rename.texi (rename): Improve
33619         documentation.
33620
33621         stdio: sort witness names
33622         * modules/stdio (Makefile.am): Sort replacements.
33623         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33624         * lib/stdio.in.h: Likewise.
33625
33626         getcwd: minor cleanups
33627         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
33628         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
33629
33630         openat: provide more convenience names
33631         * modules/faccessat (configure.ac): Add C witness.
33632         * lib/unistd.in.h (readlinkat): Fix typo.
33633         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
33634         convenience wrappers.
33635         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
33636         wrappers in syntax checks.
33637
33638 2009-09-06  Eric Blake  <ebb9@byu.net>
33639
33640         doc: fix comments in recent patches
33641         * lib/faccessat.c: Mention correct function.
33642         * lib/fchmodat.c: Likewise.
33643         * lib/fchownat.c: Likewise.
33644         * lib/symlinkat.c: Likewise.
33645         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
33646         constants.
33647
33648         faccessat, symlinkat: continue cleanup of previous patch
33649         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
33650         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
33651         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
33652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
33653         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
33654         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
33655         set.
33656
33657 2009-09-06  Bruno Haible  <bruno@clisp.org>
33658
33659         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
33660         (fstatat): Declare if GNULIB_FSTATAT is set.
33661         (mkdirat): Declare if GNULIB_MKDIRAT is set.
33662         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
33663         (unlinkat): Declare if GNULIB_UNLINKAT is set.
33664         * modules/fcntl-h (Files): Remove m4/openat.m4.
33665         * modules/sys_stat (Files): Remove m4/openat.m4.
33666         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
33667         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
33668         * modules/unistd (Files): Remove m4/openat.m4.
33669         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
33670         GNULIB_OPENAT.
33671         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
33672         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
33673         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
33674         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
33675         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
33676         gl_OPENAT_DEFAULTS.
33677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
33678         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
33679         Don't require gl_OPENAT_DEFAULTS.
33680         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
33681         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
33682         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
33683         (gl_OPENAT_DEFAULTS): Remove macro.
33684
33685 2009-09-06  Bruno Haible  <bruno@clisp.org>
33686
33687         * modules/openat (configure.ac): Remove unneeded witness.
33688
33689 2009-09-06  Bruno Haible  <bruno@clisp.org>
33690
33691         Set errno to ENOSYS when a function is entirely unsupported.
33692         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
33693         EOPNOTSUPP.
33694         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
33695         * modules/chown (Depends-on): Remove errno.
33696
33697 2009-09-06  Bruno Haible  <bruno@clisp.org>
33698
33699         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
33700
33701 2009-09-06  Bruno Haible  <bruno@clisp.org>
33702
33703         * lib/sys_stat.in.h: Fix preprocessor command indentation.
33704
33705 2009-09-06  Ben Pfaff  <blp@gnu.org>
33706             Bruno Haible  <bruno@clisp.org>
33707
33708         Work around a glibc bug in strtok_r.
33709         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
33710         Undefine if UNDEFINE_STRTOK_R is set.
33711         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
33712         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33713         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
33714         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
33715         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
33716         UNDEFINE_STRTOK_R.
33717         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
33718
33719 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
33720
33721         exclude: minor fix
33722         * lib/exclude.c: Include wctype.h
33723
33724 2009-09-06  Akim Demaille  <demaille@gostai.com>
33725
33726         bootstrap: improve error message
33727         * build-aux/bootstrap (find_tool): Upon failure, report the list
33728         of candidates.
33729         Honor the initial value of the envvar.
33730
33731 2009-09-05  Eric Blake  <ebb9@byu.net>
33732
33733         symlinkat: new module
33734         * modules/symlinkat: New file.
33735         * lib/symlinkat.c: Likewise.
33736         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
33737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33738         * modules/unistd (Makefile.am): Use them.
33739         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
33740         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
33741         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
33742         * MODULES.html.sh (File system functions): Mention module.
33743         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33744         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33745         * modules/symlinkat-tests: New test.
33746         * tests/test-symlinkat.c: Likewise.
33747
33748         test-openat-safer: add more checks
33749         * tests/test-openat-safer.c (main): Check more code paths.
33750
33751 2009-09-05  Jim Meyering  <meyering@redhat.com>
33752
33753         syntax-check: detect unnecessary inclusion of openat.h
33754         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
33755
33756 2009-09-05  Bruno Haible  <bruno@clisp.org>
33757
33758         Support towlower, towupper.
33759         * doc/posix-functions/towlower.texi: Mention module wctype.
33760         * doc/posix-functions/towupper.texi: Likewise.
33761         * lib/wctype.in.h (towlower, towupper): New functions.
33762         * tests/test-wctype.c: Include stdio.h, stdlib.h.
33763         (ASSERT): New macro.
33764         (e): New variable.
33765         (main): Test also towlower, towupper. Test WEOF argument.
33766         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33767
33768 2009-09-05  Bruno Haible  <bruno@clisp.org>
33769
33770         Fix conversion behaviour when the input is invalid.
33771         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
33772         mark occurring in first pass of indirect conversion.
33773         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
33774         input.
33775         Found by clang's static analyzer.
33776
33777 2009-09-05  Bruno Haible  <bruno@clisp.org>
33778
33779         * tests/test-striconveh.c (main): Test indirect conversion on platforms
33780         where direct conversion is possible.
33781
33782 2009-09-04  Eric Blake  <ebb9@byu.net>
33783
33784         openat: fail with ENOENT on empty name
33785         * lib/openat-proc.c (openat_proc_name): Special-case the empty
33786         buffer.
33787
33788         link-follow: fix logic bug in prior patch
33789         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
33790         reversed sense of yes and no in prior patch.  Avoid confusing
33791         compilation failure with desired semantics.
33792
33793         link-follow: accomodate mingw and cross-compilation
33794         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
33795         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
33796         cross-compilation results to -1, to make linkat easier to
33797         implement when cross-compiling.  Trivially support mingw.
33798         * modules/link-follow (configure.ac): Call new name.
33799         * NEWS: Mention this.
33800
33801 2009-09-03  Eric Blake  <ebb9@byu.net>
33802
33803         faccessat: compile replacement
33804         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
33805         needed.
33806
33807         fts: fix compilation error
33808         * lib/fts.c (includes): Re-add "openat.h", for
33809         openat_needs_fchdir.
33810
33811         faccessat: new module
33812         * modules/faccessat: New file.
33813         * lib/faccessat.c: Likewise.
33814         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
33815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33816         * modules/unistd (Makefile.am): Use it.
33817         * lib/unistd.in.h (faccessat): Declare it.
33818         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
33819         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
33820         * MODULES.html.sh (File system functions): Mention it.
33821         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
33822         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
33823
33824         euidaccess: prefer POSIX over non-standard implementation
33825         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
33826         * lib/euidaccess.c (euidaccess): Use it if available.
33827
33828         openat: make template easier to use
33829         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
33830         AT_FUNC_F2 to be undefined.
33831         (VALIDATE_FLAG): New macro; use it to reject bad flags.
33832         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
33833         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
33834         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
33835         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
33836         Likewise.
33837         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
33838         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
33839         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
33840         Likewise.
33841
33842         openat: declare in POSIX headers
33843         * NEWS: Mention this.
33844         * modules/openat (configure.ac): Declare witnesses.
33845         (Depends-on): Add fcntl-h, sys_stat, unistd.
33846         (Include): Mention correct headers.
33847         * modules/fcntl-h (Depends-on): Add link-warning.
33848         (Files): Add openat.m4.
33849         (Makefile.am): Substitute witnesses.
33850         * modules/sys_stat (Files, Makefile.am): Likewise.
33851         * modules/unistd (Files, Makefile.am): Likewise.
33852         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
33853         (gl_OPENAT_DEFAULTS): New macro.
33854         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
33855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
33856         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
33857         (SYS_STAT_H): Remove unused variable.
33858         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
33859         * lib/fcntl--.h (includes): Remove unneeded header.
33860         * lib/openat-safer.c (includes): Likewise.
33861         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
33862         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
33863         appropriate headers.
33864         (__OPENAT_PREFIX): Delete.
33865         * lib/fcntl.in.h (openat): Provide declaration.
33866         (AT_FDCWD): Fix Solaris bug.
33867         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
33868         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
33869         * lib/fchmodat.c (includes):  Adjust to find declaration.
33870         * lib/fchownat.c (includes): Likewise.
33871         * lib/mkdirat.c (includes): Likewise.
33872         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
33873         still visible.
33874
33875 2009-09-02  Eric Blake  <ebb9@byu.net>
33876
33877         errno: use consistently
33878         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
33879         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
33880         * lib/canonicalize.c (ELOOP): Likewise.
33881         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
33882         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
33883         * lib/lchown.c (EOPNOTSUPP): Likewise.
33884         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
33885         * lib/savewd.c (ESTALE): Likewise.
33886         * lib/settime.c (ENOSYS): Likewise.
33887         * lib/utimens.c (ENOSYS): Likewise.
33888         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
33889         * lib/chdir-safer.c (ELOOP): Likewise.
33890         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
33891         * modules/c-stack (Depends-on): Add errno.
33892         * modules/canonicalize (Depends-on): Likewise.
33893         * modules/chdir-safer (Depends-on): Likewise.
33894         * modules/fdopendir (Depends-on): Likewise.
33895         * modules/inet_ntop (Depends-on): Likewise.
33896         * modules/inet_pton (Depends-on): Likewise.
33897         * modules/lchown (Depends-on): Likewise.
33898         * modules/openat (Depends-on): Likewise.
33899         * modules/savewd (Depends-on): Likewise.
33900         * modules/settime (Depends-on): Likewise.
33901         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
33902
33903         fts: avoid leaking fds
33904         * modules/fts (Depends-on): Add cloexec.
33905         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
33906         flag.
33907
33908         fts: make directory fds more robust
33909         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
33910         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
33911
33912         backupfile, chdir-long, fts, savedir: make safer
33913         * lib/backupfile.c (includes): Use "dirent--.h", since
33914         numbered_backup can write to stderr during readdir.
33915         * lib/savedir.c (includes): Likewise.
33916         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
33917         emulation can write to stderr on failure.
33918         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
33919         * lib/getcwd.c: Document why opendir_safer is unused.
33920         * lib/glob.c: Likewise.
33921         * lib/scandir.c: Likewise.
33922         * lib/openat-proc.c: Likewise, for open_safer.
33923         * modules/backupfile (Depends-on): Add dirent-safer.
33924         * modules/savedir (Depends-on): Likewise.
33925         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
33926         * modules/chdir-long (Depends-on): Add openat-safer.
33927
33928         openat-safer: new module
33929         * modules/openat-safer: New file.
33930         * lib/openat-safer.c: Likewise.
33931         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
33932         * lib/fcntl-safer.h (openat_safer): Declare.
33933         * lib/fcntl--.h (openat): Override.
33934         * MODULES.html.sh (File descriptor based I/O): Mention it.
33935         * lib/openat.h: Add double-inclusion guards.
33936         * lib/openat.c (includes): Only include "fcntl-safer.h", not
33937         "fcntl--.h", so we can implement openat.
33938         * modules/openat-safer-tests: New test.
33939         * tests/test-openat-safer.c: New file.
33940
33941         dirent-safer: new module
33942         * modules/dirent-safer: New file.
33943         * lib/dirent--.h: Likewise.
33944         * lib/dirent-safer.h: Likewise.
33945         * lib/opendir-safer.c: Likewise.
33946         * m4/dirent-safer.m4: Likewise.
33947         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
33948         * modules/dirent-safer-tests: New test.
33949         * tests/test-dirent-safer.c: New file.
33950         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
33951
33952         fdopendir: optimize on mingw
33953         * lib/unistd.in.h (_gl_directory_name): New prototype.
33954         * lib/fchdir.c (_gl_directory_name): Implement it.
33955         (fchdir): Use it to simplify implementation.
33956         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
33957         fchdir, when available, to avoid calling [f]chdir().
33958
33959         fdopendir: split into its own module
33960         * lib/openat.c (fdopendir): Move...
33961         * lib/fdopendir.c: ...into new file.
33962         * modules/fdopendir: New module.
33963         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
33964         * modules/openat (Depends-on): Add fdopendir.
33965         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
33966         fdopendir here.
33967         * modules/savedir (Depends-on): Only need fdopendir, not full
33968         openat.
33969         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
33970         * lib/openat.h (fdopendir): Drop prototype.
33971         * lib/dirent.in.h (fdopendir): Provide prototype.
33972         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
33973         * modules/dirent (Makefile.am): Substitute them.
33974         * MODULES.html.sh (File system functions): Mention it.
33975         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
33976         * modules/fdopendir-tests: New file.
33977         * tests/test-fdopendir.c: Likewise.
33978
33979         fchdir: use more consistent macro convention
33980         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
33981         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
33982         REPLACE_FCHDIR, rather than relying on config.h macros.
33983         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
33984         inside a single make-time REPLACE_FCHDIR block, rather than using
33985         the config.h FCHDIR_REPLACEMENT.
33986         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
33987         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
33988         Manage fstat replacement.
33989         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
33990         REPLACE_FCHDIR.
33991         * modules/sys_stat (Files): Add m4/unistd_h.m4.
33992         (Makefile.am): Substitute REPLACE_FCHDIR.
33993         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
33994         FCHDIR_REPLACEMENT.
33995         * lib/dup-safer.c (dup_safer): Likewise.
33996         * lib/dup2.c (rpl_dup2): Likewise.
33997         * lib/dup3.c (rpl_dup3): Likewise.
33998         * lib/open.c (rpl_open): Likewise.
33999
34000         fchdir: simplify error handling, and support dup3
34001         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
34002         stdbool, malloc-posix, realloc-posix.
34003         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
34004         (ensure_dirs_slot): Return false on allocation failure.
34005         (rpl_dup2): Delete.
34006         (_gl_register_dup): New function.
34007         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
34008         (_gl_register_fd): Close fd on allocation failure.
34009         * lib/fcntl.in.h (_gl_register_fd): Update signature.
34010         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
34011         prototype.
34012         (rpl_dup2_fchdir): Delete prototype.
34013         * lib/open.c (open): Update caller.
34014         * lib/dup2.c (dup2): Track fchdir metadata.
34015         * lib/dup3.c (dup3): Likewise.
34016         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
34017         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
34018
34019 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34020
34021         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
34022         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
34023         don't pass arguments to AC_OUTPUT.
34024
34025 2009-09-02  Bruno Haible  <bruno@clisp.org>
34026
34027         * modules/mkdtemp (License): Relicense under LGPLv2+.
34028         Reported by Paolo Bonzini.
34029
34030 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34031
34032         Replace uses of obsolete autoconf macros in Jim's modules.
34033         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
34034         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
34035         can evoke a warning from autoconf when run with -Wobsolete
34036         enabled.  They were declared obsolete for good reasons (see
34037         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
34038         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
34039         should not continue using the deprecated macros.
34040         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
34041         obsolete Autoconf macros with modern counterparts.
34042         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
34043         * m4/dos.m4 (gl_AC_DOS): Likewise.
34044         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
34045         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
34046         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
34047         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
34048         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
34049         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
34050         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
34051         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
34052         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
34053         Likewise.
34054         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
34055         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
34056         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
34057         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
34058         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
34059         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
34060
34061 2009-09-01  Eric Blake  <ebb9@byu.net>
34062
34063         fchdir: fix off-by-one bug in previous patch
34064         * lib/fchdir.c (rpl_fstat): Use correct bounds.
34065         (_gl_unregister_fd): Delete useless if.
34066
34067 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
34068
34069         maint.mk: sort the list of syntax-check rules
34070         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
34071         easier to get a sense of progress when the rules are run sequentially
34072         and take a long time.
34073
34074 2009-09-01  Simon Josefsson  <simon@josefsson.org>
34075
34076         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
34077         * modules/netinet_in: Likewise.
34078         * modules/sys_file: Likewise.
34079         * modules/sys_ioctl: Likewise.
34080         * modules/sys_select: Likewise.
34081         * modules/sys_socket: Likewise.
34082         * modules/sys_stat: Likewise.
34083         * modules/sys_time: Likewise.
34084         * modules/sys_times: Likewise.
34085         * modules/sys_utsname: Likewise.
34086         * modules/sys_wait: Likewise.
34087
34088 2009-09-01  Jim Meyering  <meyering@redhat.com>
34089
34090         fts: help ensure that return values are not ignored
34091         * lib/fts_.h (__GNUC_PREREQ): Define.
34092         (__attribute_warn_unused_result__): Define.
34093         (fts_children, fts_close, fts_open, fts_read): Declare with
34094         __attribute_warn_unused_result__.
34095
34096         fts: fts_close now fails also when closing a dir file descriptor fails
34097         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
34098         and propagate to caller, along with errno.
34099
34100         announce-gen: correct formatting in --help output
34101         * build-aux/announce-gen (usage): Move the one-line description in
34102         --help output "up", to where it belongs, just after Usage:.
34103
34104 2009-08-31  Eric Blake  <ebb9@byu.net>
34105
34106         fchdir: port to mingw
34107         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
34108         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
34109         opened, then use a substitute.
34110         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
34111         replacement.
34112         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
34113         (_gl_register_fd): No need to check stat if open already filters
34114         all directories.
34115         (fchdir): Fix error condition to match POSIX.
34116         * modules/fchdir (Depends-on): Add sys_stat.
34117         * doc/posix-functions/open.texi (open): Document the limitation.
34118         * modules/fchdir-tests: New file.
34119         * tests/test-fchdir.c: Likewise.
34120
34121         canonicalize: allow cross-testing from cygwin to mingw
34122         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
34123         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
34124         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
34125         Likewise.
34126         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
34127         target does not support symlinks.
34128         * tests/test-canonicalize-lgpl.sh: Likewise.
34129
34130         chown: avoid compilation warning on mingw
34131         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
34132         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
34133         mingw.
34134         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
34135         * modules/chown (Depends-on): Add errno.
34136
34137 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
34138
34139         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
34140         command.
34141
34142 2009-08-31  Jim Meyering  <meyering@redhat.com>
34143
34144         canonicalize: remove useless initialization
34145         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
34146         initialization of local, "end".
34147
34148 2009-08-30  Bruno Haible  <bruno@clisp.org>
34149
34150         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
34151         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
34152         ENOSYS.
34153
34154 2009-08-30  Bruno Haible  <bruno@clisp.org>
34155
34156         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
34157         /usr/xpg4/bin/tr when it exists.
34158         * tests/test-pipe-filter-gi1.sh: Likewise.
34159
34160 2009-08-30  Bruno Haible  <bruno@clisp.org>
34161
34162         Work around deficient /usr/bin/id program on Solaris.
34163         * tests/test-file-has-acl.sh (ID): New variable.
34164         * tests/test-set-mode-acl.sh (ID): Likewise.
34165         * tests/test-copy-acl.sh (ID): Likewise.
34166         * tests/test-copy-file.sh (ID): Likewise.
34167
34168 2009-08-30  Bruno Haible  <bruno@clisp.org>
34169
34170         New module 'xstriconveh'.
34171         * lib/xstriconveh.h: New file.
34172         * lib/xstriconveh.c: New file.
34173         * modules/xstriconveh: New file.
34174
34175 2009-08-30  Bruno Haible  <bruno@clisp.org>
34176
34177         Make it easier to use mem_cd_iconveh.
34178         * lib/striconveh.h (iconveh_t): New type.
34179         (iconveh_open, iconveh_close): New declarations.
34180         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
34181         with a single 'const iconveh_t *' argument.
34182         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
34183         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
34184         with a single 'const iconveh_t *' argument.
34185         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
34186         * tests/test-striconveh.c (main): Update.
34187         * NEWS: Mention the change.
34188
34189 2009-08-30  Bruno Haible  <bruno@clisp.org>
34190
34191         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
34192         problem.
34193
34194 2009-08-30  Bruno Haible  <bruno@clisp.org>
34195
34196         Work around iconv_open problem on Solaris.
34197         * lib/iconv_open-solaris.gperf: New file.
34198         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
34199         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
34200         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
34201         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
34202         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
34203         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
34204
34205 2009-08-29  Jim Meyering  <meyering@redhat.com>
34206
34207         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
34208         * top/maint.mk (cvs-check): Remove target; it was just an alias
34209         to the better-named vc-diff-check.
34210         (maintainer-distcheck): Remove rule.  It was used only from
34211         the (alpha/beta/major) target, and all of its commands but one
34212         were coreutils-specific.
34213         (vc-dist): Remove rule.
34214         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
34215         Run vc-diff-check, not vc-dist.
34216         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
34217
34218 2009-08-27  Bruno Haible  <bruno@clisp.org>
34219
34220         * tests/test-bitrotate.c (main): Remove test that uses a shift count
34221         of 0.
34222
34223 2009-08-27  Bruno Haible  <bruno@clisp.org>
34224
34225         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
34226         compilers.
34227         * doc/func.texi: Document the SunPRO C bug.
34228
34229 2009-08-27  Bruno Haible  <bruno@clisp.org>
34230
34231         Fix link error on Solaris.
34232         * tests/test-parse-duration.c (xstrdup): Remove function.
34233
34234 2009-08-26  Pádraig Brady  <P@draigbrady.com>
34235
34236         ignore-value: handle pointer types, too
34237         * lib/ignore-value.h (__attribute__): Remove definition.
34238         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
34239         of a more concise and more-often effective "(void) i" statement.
34240         (ignore_ptr): New function to suppress warnings from functions that
34241         return pointers, and to make it explicit that one function doesn't
34242         handle all cases.
34243
34244 2009-08-25  Bruno Haible  <bruno@clisp.org>
34245
34246         dup2: work around a Linux bug.
34247         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
34248         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
34249         * doc/posix-functions/dup2.texi: Mention the Linux bug.
34250         Reported by Simon Josefsson.
34251
34252 2009-08-25  Jim Meyering  <meyering@redhat.com>
34253
34254         libguestfs uses gnulib
34255         * users.txt: Add libguestfs.
34256
34257 2009-08-24  Eric Blake  <ebb9@byu.net>
34258
34259         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
34260         * lib/pipe2.c (includes): Add binary-io.h.
34261         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
34262
34263 2009-08-24  Bruno Haible  <bruno@clisp.org>
34264
34265         Tolerate declared but missing accept4 syscall.
34266         * lib/accept4.c (accept4): Invoke original accept4 function first, if
34267         available.
34268         * lib/sys_socket.in.h (accept4): If the function is already present,
34269         override it.
34270         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
34271         * modules/accept4 (Makefile.am): Compile accept4.c always.
34272         Reported by Paolo Bonzini and Eric Blake.
34273
34274 2009-08-23  Bruno Haible  <bruno@clisp.org>
34275
34276         New module 'accept4'.
34277         * lib/sys_socket.in.h (accept4): New declaration.
34278         * lib/accept4.c: New file.
34279         * m4/accept4.m4: New file.
34280         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
34281         GNULIB_ACCEPT4, HAVE_ACCEPT4.
34282         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
34283         HAVE_ACCEPT4.
34284         * modules/accept4: New file.
34285         * doc/glibc-functions/accept4.texi: Mention the new module.
34286
34287 2009-08-24  Jim Meyering  <meyering@redhat.com>
34288
34289         progname: also set global program_invocation_name, when possible
34290         Before this change, a libtool-enabled program that calls glibc's
34291         error function would report the program name as
34292         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
34293         * modules/progname (configure.ac): Check for a declaration of
34294         program_invocation_name.
34295         * lib/progname.c:  Include <errno.h>.
34296         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
34297         Set program_invocation_name.
34298
34299 2009-08-23  Bruno Haible  <bruno@clisp.org>
34300
34301         * lib/dup3.c: Include <string.h>.
34302
34303 2009-08-23  Bruno Haible  <bruno@clisp.org>
34304
34305         * lib/dup3.c (dup3): Test only once whether the system actually exists.
34306         * lib/pipe2.c (pipe2): Likewise.
34307         Suggested by Eric Blake.
34308
34309 2009-08-23  Bruno Haible  <bruno@clisp.org>
34310
34311         Tolerate declared but missing dup3 syscall.
34312         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
34313         * lib/unistd.in.h (dup3): If the function is already present,
34314         override it.
34315         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
34316         * modules/dup3 (Makefile.am): Compile dup3.c always.
34317         Reported by Paolo Bonzini.
34318
34319 2009-08-23  Bruno Haible  <bruno@clisp.org>
34320
34321         Tolerate declared but missing pipe2 syscall.
34322         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
34323         available.
34324         * lib/unistd.in.h (pipe2): If the function is already present,
34325         override it.
34326         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
34327         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
34328         Reported by Paolo Bonzini.
34329
34330 2009-08-23  Bruno Haible  <bruno@clisp.org>
34331
34332         * lib/pipe2.c (pipe2): Move #ifs inside function.
34333
34334 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34335
34336         quotearg: document limitations of quote_these_too
34337         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
34338         those limitations are created.
34339         * lib/quotearg.h (set_char_quoting): Document that digits and
34340         letters that are special after backslash are not permitted.
34341         (quotearg_char): Cross-reference set_char_quoting documentation.
34342
34343 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
34344
34345         quotearg: implement custom_quoting_style
34346         * lib/quotearg.c: (struct quoting_options): Add left_quote and
34347         right_quote fields.
34348         (set_custom_quoting): New public function.
34349         (quotearg_buffer_restyled): Add left_quote and right_quote
34350         arguments, handle them very much like locale quoting, and update
34351         all uses.
34352         (quotearg_n_custom): New public function.
34353         (quotearg_n_custom_mem): New public function.
34354         (quotearg_custom): New public function.
34355         (quotearg_custom_mem): New public function.
34356         * lib/quotearg.h: Prototype and document new public functions.
34357         (enum quoting_style): For escape_quoting_style and
34358         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
34359         ignored even though they're otherwise like c_quoting_style.
34360         Add custom_quoting_style member and document with comparison to
34361         clocale_quoting_style.
34362         * tests/test-quotearg.c (custom_quotes): New array.
34363         (custom_results): New array.
34364         (main): Extend to test custom quoting.
34365
34366 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34367
34368         quotearg: fix right quote escaping when it's in quote_these_too
34369         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
34370         quote, be sure to prepend only one backslash.
34371         * tests/test-quotearg.c (use_quote_double_quotes): New function.
34372         (main): Test it.
34373
34374 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34375
34376         quotearg-tests: test escaping of embedded locale quotes
34377         * tests/test-quotearg.c (struct result_strings): Add member for
34378         new input.
34379         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
34380         (inputs): Add new input.
34381         (results_g): Add expected results.
34382         (flag_results): Likewise.
34383         (locale_results): Likewise.
34384         (compare_strings): Check those.
34385
34386 2009-08-23  Bruno Haible  <bruno@clisp.org>
34387
34388         Tests for module 'dup3'.
34389         * modules/dup3-tests: New file.
34390         * tests/test-dup3.c: New file.
34391
34392         New module 'dup3'.
34393         * lib/unistd.in.h (dup3): New declaration.
34394         * lib/dup3.c: New file.
34395         * m4/dup3.m4: New file.
34396         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
34397         HAVE_DUP3.
34398         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
34399         * modules/dup3: New file.
34400         * doc/glibc-functions/dup3.texi: Mention the new module.
34401
34402 2009-08-23  Bruno Haible  <bruno@clisp.org>
34403
34404         Tweak the dup2 test.
34405         * tests/test-dup2.c (main): Create the test file empty. Verify that an
34406         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
34407         the test file is still empty. Fix argument order of lseek.
34408
34409 2009-08-23  Bruno Haible  <bruno@clisp.org>
34410
34411         Avoid test link errors when the modules getopt-gnu, gettext are used.
34412         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
34413         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34414
34415 2009-08-23  Bruno Haible  <bruno@clisp.org>
34416
34417         Fix getdtablesize() on mingw.
34418         * lib/getdtablesize.c (getdtablesize): Implement differently.
34419         * lib/unistd.in.h (getdtablesize): Improve comment.
34420
34421 2009-08-23  Bruno Haible  <bruno@clisp.org>
34422
34423         New module 'mkostemp'.
34424         Based on Ulrich Drepper's 2007-08-10 change in glibc.
34425         * lib/stdlib.in.h (mksotemp): New declaration.
34426         * lib/mkostemp.c: New file, from glibc with modifications.
34427         * lib/tempname.h (GT_FILE): Remove outdated comment.
34428         (gen_tempname): Add flags argument.
34429         * lib/tempname.c (__GT_BIGFILE): Remove macro.
34430         (__GT_FILE): Map to 1.
34431         (small_open, large_open): Remove macros.
34432         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
34433         * lib/mkstemp.c (mkstemp): Update.
34434         * lib/mkdtemp.c (mkdtemp): Likewise.
34435         * m4/mkostemp.m4: New file.
34436         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
34437         HAVE_MKOSTEMP.
34438         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
34439         HAVE_MKOSTEMP.
34440         * modules/mkostemp: New file, based on modules/mkstemp.
34441         * doc/glibc-functions/mkostemp.texi: Mention the new module.
34442         * NEWS: Mention the change.
34443
34444 2009-08-23  Bruno Haible  <bruno@clisp.org>
34445
34446         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
34447         Reported by Eric Blake.
34448
34449 2009-08-23  Bruno Haible  <bruno@clisp.org>
34450
34451         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
34452         Reported by Eric Blake.
34453
34454 2009-08-23  Bruno Haible  <bruno@clisp.org>
34455
34456         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
34457         * modules/pipe2 (Depends-on): Likewise.
34458
34459 2009-08-23  Eric Blake  <ebb9@byu.net>
34460
34461         fcntl-h: add O_TTY_INIT support
34462         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
34463         * tests/test-fcntl-h.c (o): Test it.
34464         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
34465
34466         fcntl-h: rename from fcntl, in preparation for fcntl(2)
34467         * modules/fcntl: Move <fcntl.h> header replacement...
34468         * modules/fcntl-h: ...to new name, so as not to collide with
34469         like-named function.
34470         * tests/test-fcntl.c: Rename...
34471         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
34472         * modules/fcntl-tests: Rename...
34473         * modules/fcntl-h-tests: ...to this.  Update test file name.
34474         * modules/chdir-long (Depends-on): Update clients.
34475         * modules/chdir-safer (Depends-on): Likewise.
34476         * modules/fcntl-safer (Depends-on): Likewise.
34477         * modules/fts (Depends-on): Likewise.
34478         * modules/mkancesdirs (Depends-on): Likewise.
34479         * modules/mkdir-p (Depends-on): Likewise.
34480         * modules/open (Depends-on): Likewise.
34481         * modules/savewd (Depends-on): Likewise.
34482         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
34483         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
34484
34485 2009-08-22  Bruno Haible  <bruno@clisp.org>
34486
34487         * modules/binary-io (License): Relicense under LGPL.
34488         * modules/pipe2 (License): Likewise.
34489
34490 2009-08-22  Bruno Haible  <bruno@clisp.org>
34491
34492         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
34493         return value.
34494         * lib/pipe-filter-gi.c (filter_init): Likewise.
34495         Reported by Eric Blake.
34496
34497 2009-08-22  Bruno Haible  <bruno@clisp.org>
34498
34499         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
34500         * modules/pipe (Depends-on): Add pipe2.
34501
34502 2009-08-22  Bruno Haible  <bruno@clisp.org>
34503
34504         Tests for module 'pipe2'.
34505         * modules/pipe2-tests: New file.
34506         * tests/test-pipe2.c: New file.
34507
34508         New module 'pipe2'.
34509         * lib/unistd.in.h (pipe2): New declaration.
34510         * lib/pipe2.c: New file.
34511         * m4/pipe2.m4: New file.
34512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
34513         HAVE_PIPE2.
34514         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
34515         * modules/pipe2: New file.
34516         * doc/glibc-functions/pipe2.texi: Mention the new module.
34517
34518 2009-08-22  Bruno Haible  <bruno@clisp.org>
34519
34520         Reference some new glibc functions.
34521         * doc/glibc-functions/accept4.texi: New file.
34522         * doc/glibc-functions/dup3.texi: New file.
34523         * doc/glibc-functions/mkostemp.texi: New file.
34524         * doc/glibc-functions/pipe2.texi: New file.
34525         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
34526         (Glibc sys/socket.h): Refer to accept4.
34527         (Glibc unistd.h): Refer to dup3, pipe2.
34528         Reported by Eric Blake.
34529
34530 2009-08-22  Jim Meyering  <meyering@redhat.com>
34531             Bruno Haible  <bruno@clisp.org>
34532
34533         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
34534         This makes it so packages using automake-1.11's silent-rules option
34535         can print e.g., a single "GEN    configmake.h" line, rather than
34536         the 30+ statements that perform the job.  If you want to see the
34537         actual commands, you can still run "make V=1".
34538         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
34539         so that make output is abbreviated when those variables are defined
34540         appropriately.
34541         * modules/argz: Likewise.
34542         * modules/arpa_inet: Likewise.
34543         * modules/byteswap: Likewise.
34544         * modules/configmake: Likewise.
34545         * modules/dirent: Likewise.
34546         * modules/errno: Likewise.
34547         * modules/fcntl: Likewise.
34548         * modules/float: Likewise.
34549         * modules/fnmatch: Likewise.
34550         * modules/getopt-posix: Likewise.
34551         * modules/glob: Likewise.
34552         * modules/iconv_open: Likewise.
34553         * modules/inttypes: Likewise.
34554         * modules/localcharset: Likewise.
34555         * modules/locale: Likewise.
34556         * modules/math: Likewise.
34557         * modules/netdb: Likewise.
34558         * modules/netinet_in: Likewise.
34559         * modules/poll: Likewise.
34560         * modules/posix_spawnp-tests: Likewise.
34561         * modules/sched: Likewise.
34562         * modules/search: Likewise.
34563         * modules/selinux-h: Likewise.
34564         * modules/signal: Likewise.
34565         * modules/spawn: Likewise.
34566         * modules/stdarg: Likewise.
34567         * modules/stdbool: Likewise.
34568         * modules/stddef: Likewise.
34569         * modules/stdint: Likewise.
34570         * modules/stdio: Likewise.
34571         * modules/stdlib: Likewise.
34572         * modules/string: Likewise.
34573         * modules/strings: Likewise.
34574         * modules/sys_file: Likewise.
34575         * modules/sys_ioctl: Likewise.
34576         * modules/sys_select: Likewise.
34577         * modules/sys_socket: Likewise.
34578         * modules/sys_stat: Likewise.
34579         * modules/sys_time: Likewise.
34580         * modules/sys_times: Likewise.
34581         * modules/sys_utsname: Likewise.
34582         * modules/sys_wait: Likewise.
34583         * modules/sysexits: Likewise.
34584         * modules/time: Likewise.
34585         * modules/unistd: Likewise.
34586         * modules/wchar: Likewise.
34587         * modules/wctype: Likewise.
34588
34589 2009-08-22  Jim Meyering  <meyering@redhat.com>
34590
34591         announce-gen: detect write failure
34592         * build-aux/announce-gen: Add Coda at end.
34593         Remove equivalent-but-more-verbose block at top.
34594
34595 2009-08-19  Akim Demaille  <demaille@gostai.com>
34596
34597         bootstrap: --help to stdout.
34598         * bootstrap (usage): Don't send --help to stderr.
34599         Use a here doc instead of a long string.
34600
34601 2009-08-21  Eric Blake  <ebb9@byu.net>
34602
34603         test-popen-safer: split from test-popen
34604         * tests/test-popen.c (main): Move...
34605         * tests/test-popen.h: ...into new file.
34606         * tests/test-popen-safer2.c: New file.
34607         * modules/popen-tests (Files): Add test-popen.h.
34608         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
34609         Suggested by Bruno Haible.
34610
34611         test-fcntl-safer: split from test-open
34612         * tests/test-open.c (main): Move...
34613         * tests/test-open.h: ...into new file.
34614         * tests/test-fcntl-safer.c: New file.
34615         * modules/open-tests (Files): Add test-open.h.
34616         * modules/fcntl-safer-tests: New file.
34617         Suggested by Bruno Haible.
34618
34619         test-fopen-safer: split from test-fopen
34620         * tests/test-fopen.c (main): Move...
34621         * tests/test-fopen.h: ...into new file.
34622         * tests/test-fopen-safer.c: New file.
34623         * modules/fopen-tests (Files): Add test-fopen.h.
34624         * modules/fopen-safer-tests: New file.
34625         Suggested by Bruno Haible.
34626
34627 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
34628
34629         popen-safer: test O_CLOEXEC at run-time.
34630         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
34631
34632 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
34633
34634         fcntl: move more flags to the header
34635         * lib/cloexec.c: Do not define FD_CLOEXEC here.
34636         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
34637         * lib/fcntl.in.h: Do both things here.
34638
34639 2009-08-21  Jim Meyering  <meyering@redhat.com>
34640
34641         consistently remove $@-t before redirecting to it
34642         * modules/argz: Remove $@-t and $@ before redirecting to the former.
34643         * modules/alloca-opt: Likewise.
34644         * modules/byteswap: Likewise.
34645         * modules/fnmatch: Likewise.
34646         * modules/getopt-posix: Likewise.
34647         * modules/glob: Likewise.
34648         * modules/poll: Likewise.
34649         * modules/posix_spawnp-tests: Likewise.
34650         * modules/sys_socket: Likewise.
34651         * modules/sysexits: Likewise.
34652
34653 2009-08-21  Eric Blake  <ebb9@byu.net>
34654
34655         popen: simplify access to original popen
34656         * lib/popen.c (rpl_popen): No need to worry about popen being a
34657         macro.
34658         Reported by Bruno Haible.
34659
34660 2009-08-20  Eric Blake  <ebb9@byu.net>
34661
34662         build: avoid some compiler warnings
34663         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
34664         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
34665         type.
34666         (new_exclude_segment, excluded_file_pattern_p)
34667         (excluded_file_name_p): Reduce scope.
34668         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
34669         old-style declaration.
34670
34671 2009-08-20  Simon Josefsson  <simon@josefsson.org>
34672
34673         * tests/test-exclude1.sh: Handle Windows EOL.
34674         * tests/test-exclude2.sh: Likewise.
34675         * tests/test-exclude3.sh: Likewise.
34676         * tests/test-exclude4.sh: Likewise.
34677         * tests/test-exclude5.sh: Likewise.
34678         * tests/test-exclude6.sh: Likewise.
34679         * tests/test-exclude7.sh: Likewise.
34680
34681 2009-08-19  Akim Demaille  <demaille@gostai.com>
34682
34683         bootstrap: find sha1sum when named gsha1sum.
34684         * bootstrap (find_tool): New.
34685         ($SHA1SUM): New.
34686         Use it.
34687
34688 2009-08-20  Jim Meyering  <meyering@redhat.com>
34689
34690         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
34691         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
34692         expression that converts "." in a file name to "\." in the resulting
34693         regexp.  Start with a dummy statement, so that prior shell variable
34694         definitions are expanded portably.  Reported by Simon Josefsson.
34695
34696 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
34697
34698         Fix polling for writeability of a screen buffer.
34699         * lib/poll.c: Distinguish input and screen buffers for the
34700         Win32 implementation.
34701         * lib/select.c: Likewise.
34702
34703 2009-08-19  Eric Blake  <ebb9@byu.net>
34704
34705         popen-safer: prevent popen from clobbering std descriptors
34706         * modules/popen-safer: New file.
34707         * lib/popen-safer.c: Likewise.
34708         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
34709         * lib/stdio--.h (popen): Provide override.
34710         * lib/stdio-safer.h (popen_safer): Provide declaration.
34711         * tests/test-popen.c (includes): Partially test this.
34712         * modules/popen-safer-tests: New file, for more tests.
34713         * tests/test-popen-safer.c: Likewise.
34714         * MODULES.html.sh (file stream based Input/Output): Mention it.
34715
34716         tests: test some of the *-safer modules
34717         * modules/fopen-safer (Depends-on): Add fopen.
34718         * modules/fcntl-safer (Depends-on): Add fcntl.
34719         * modules/stdlib-safer (Depends-on): Add stdlib.
34720         (configure.ac): Set indicator.
34721         * modules/unistd-safer (configure.ac): Likewise.
34722         * modules/tmpfile-safer (configure.ac): Likewise.
34723         (Depends-on): Add tmpfile.
34724         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
34725         active.
34726         * tests/test-fopen.c (includes): Test safer versions when they are
34727         in use.
34728         * tests/test-open.c (includes): Likewise.
34729
34730         popen: fix cygwin 1.5 bug when stdin closed
34731         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
34732         * modules/popen: New file.
34733         * modules/popen-tests: Likewise.
34734         * tests/test-popen.c: Likewise.
34735         * m4/popen.m4: Likewise.
34736         * lib/popen.c: Likewise.
34737         * lib/stdio.in.h (popen): New declaration.
34738         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
34739         * modules/stdio (Makefile.am): Likewise.
34740         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
34741
34742 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
34743
34744         maint.mk: give full control over update-copyright exclusions
34745         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
34746         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
34747         (update-copyright): Don't force inclusion of top-level
34748         ChangeLog.  Don't force exclusion of all COPYING files, but make
34749         them the default exclusion instead.
34750
34751 2009-08-16  Bruno Haible  <bruno@clisp.org>
34752
34753         Fix test failures on Solaris 10.
34754         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
34755         tests when Solaris iconv() is used.
34756         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
34757         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
34758         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
34759         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
34760         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
34761
34762 2009-08-16  Bruno Haible  <bruno@clisp.org>
34763
34764         Fix test failures on Solaris 10.
34765         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
34766         'tr' program and pass it as first argument.
34767         * tests/test-pipe-filter-gi1.sh: Likewise.
34768         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
34769         program as first argument.
34770         * tests/test-pipe-filter-gi1.c (main): Likewise.
34771
34772 2009-08-16  Eric Blake  <ebb9@byu.net>
34773
34774         fpurge: fix previous commits
34775         * modules/fpurge (Makefile.am): Make replacement conditional,
34776         partially reverting 2007-04-29 change; missed in previous
34777         attempt.
34778         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
34779         is missing.
34780
34781 2009-08-16  Bruno Haible  <bruno@clisp.org>
34782
34783         Clarify fpurge's effect on the file position.
34784         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
34785         * tests/test-fpurge.c (main): Make a second pass for checking the file
34786         position.
34787
34788 2009-08-16  Bruno Haible  <bruno@clisp.org>
34789
34790         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
34791         declaration of fpurge is missing.
34792         * tests/test-fpurge.c (main): Check that the file has not more contents
34793         than expected. Close the file before removing it.
34794
34795 2009-08-15  Eric Blake  <ebb9@byu.net>
34796
34797         fpurge: don't wrap working cygwin implementation
34798         * lib/fpurge.c (fpurge): Fix comment typo.
34799         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
34800         1.7 to avoid replacement.
34801         * tests/test-fpurge.c (main): Enhance test.
34802
34803 2009-08-15  Eric Blake  <ebb9@byu.net>
34804         and Jim Meyering  <meyering@redhat.com>
34805
34806         test-update-copyright: skip if perl is insufficient
34807         * tests/test-update-copyright.sh: Failure to run maintainer tool
34808         should not cause testsuite failure on cygwin 1.5.
34809
34810 2009-08-14  Eric Blake  <ebb9@byu.net>
34811
34812         doc: mention more functions added in cygwin 1.7.0
34813         * doc/posix-headers/limits.texi (limits.h): Update for recent
34814         cygwin additions.
34815         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
34816         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
34817         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
34818         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
34819         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
34820
34821 2009-08-14  Eric Blake  <ebb9@byu.net>
34822
34823         maint.mk: simplify update-copyright rule
34824         * top/maint.mk (update-copyright-local): Delete, and document how
34825         to do it in cfg.mk instead.
34826         (update-copyright-exclude-regexp): Delete, and document how to do
34827         it in .x-update-copyright instead.
34828         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
34829         exclude ChangeLog.
34830
34831 2009-08-14  Bruno Haible  <bruno@clisp.org>
34832
34833         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
34834
34835 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34836
34837         maint.mk: support update-copyright-env
34838         * top/maint.mk (update-copyright-env): Define place-holder.
34839         (update-copyright): Expand $(update-copyright-env) before
34840         invoking update-copyright.
34841
34842 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34843
34844         update-copyright: implement forced reformatting
34845         * build-aux/update-copyright: Implement and document
34846         UPDATE_COPYRIGHT_FORCE.
34847         * tests/test-update-copyright.sh: Test it.
34848
34849 2009-08-14  Eric Blake  <ebb9@byu.net>
34850         and Bruno Haible  <bruno@clisp.org>
34851
34852         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
34853         * tests/test-locale.c: Revert previous patch related to NULL.
34854         * tests/test-stdio.c: Likewise.
34855         * tests/test-stdlib.c: Likewise.
34856         * tests/test-string.c: Likewise.
34857         * tests/test-unistd.c: Likewise.
34858         * modules/time-tests (Depends-on): Add verify.
34859         * modules/wchar-tests (Depends-on): Likewise.
34860         * tests/test-time.c: Test for NULL compliance.
34861         * tests/test-wchar.c: Likewise.
34862         * modules/locale (Depends-on): Add stddef.
34863         * modules/stdio (Depends-on): Likewise.
34864         * modules/stdlib (Depends-on): Likewise.
34865         * modules/string (Depends-on): Likewise.
34866         * modules/time (Depends-on): Likewise.
34867         * modules/unistd (Depends-on): Likewise.
34868         * modules/wchar (Depends-on): Likewise.
34869         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
34870         * lib/stdlib.in.h (includes): Likewise.
34871         * lib/string.in.h (includes): Likewise.
34872         * lib/time.in.h (includes): Likewise.
34873         * lib/unistd.in.h (includes): Likewise.
34874         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
34875         replaced.
34876         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34877         * m4/stddef_h.m4: New file.
34878         * modules/stddef: Likewise.
34879         * lib/stddef.in.h: Likewise.
34880         * modules/stddef-tests: Likewise.
34881         * tests/test-stddef.c: Likewise.
34882         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
34883         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
34884         * doc/posix-headers/locale.texi (locale.h): Likewise.
34885         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
34886         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
34887         * doc/posix-headers/string.texi (string.h): Likewise.
34888         * doc/posix-headers/time.texi (time.h): Likewise.
34889         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
34890         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
34891
34892 2009-08-14  Eric Blake  <ebb9@byu.net>
34893
34894         doc: improve git diff of texinfo files
34895         * .gitattributes: Add rule for *.texi files, with hint on how to
34896         use it.
34897         Copied from m4, and based on a report by Bruno Haible.
34898
34899 2009-08-14  Bruno Haible  <bruno@clisp.org>
34900
34901         Disable multithread support by default on Cygwin 1.5.x for real.
34902         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
34903
34904 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34905
34906         update-copyright: much ado about intervals
34907         * build-aux/update-copyright: Implement and document
34908         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
34909         of copyright year intervals.
34910         Also, document UPDATE_COPYRIGHT_YEAR.
34911         * tests/test-update-copyright.sh: Test it.
34912
34913         update-copyright: convert 2-digit to 4-digit years
34914         * build-aux/update-copyright: Implement and document.
34915         * tests/test-update-copyright.sh: Update.
34916
34917 2009-08-14  Jim Meyering  <meyering@redhat.com>
34918
34919         test-exclude: avoid coreutils "make check" failure
34920         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
34921         just as in test-argmatch.c.
34922
34923 2009-08-13  Eric Blake  <ebb9@byu.net>
34924
34925         test-dup2: fix bad assumption
34926         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
34927         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
34928
34929         test-version-etc: fix CRLF portability issue
34930         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
34931         recognize \r.
34932         * tests/test-argp-version-etc-1.sh: Likewise.
34933
34934         getopt: update client modules
34935         * modules/argp (Depends-on): Use getopt-gnu.
34936         * modules/git-merge-changelog (Depends-on): Likewise.
34937         * modules/long-options (Depends-on): Likewise.
34938         * modules/xstrtol (Depends-on): Likewise.
34939
34940 2009-08-13  Simon Josefsson  <simon@josefsson.org>
34941
34942         * tests/test-version-etc.sh: Don't fail on different
34943         project/version.  Don't fail on CRLF differences.  Rewrite to use
34944         multiple -e instead of multiple sed forks, suggested by Eric Blake
34945         <ebb9@byu.net>.
34946         * tests/test-argp-version-etc-1.sh: Likewise.
34947
34948 2009-08-13  Simon Josefsson  <simon@josefsson.org>
34949
34950         * tests/test-version-etc.sh: Don't fail on different
34951         project/version.
34952
34953 2009-08-12  Bruno Haible  <bruno@clisp.org>
34954
34955         Tests for modules 'getopt-posix', 'getopt-gnu'.
34956         * modules/getopt-posix-tests: New file.
34957         * tests/test-getopt.c: New file.
34958         * tests/test-getopt.h: New file.
34959         * tests/test-getopt_long.h: New file.
34960
34961         New modules 'getopt-posix', 'getopt-gnu'.
34962         * modules/getopt-gnu: New file, renamed from modules/getopt.
34963         * modules/getopt-posix: New file.
34964         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
34965         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
34966         (gl_GETOPT): Remove macro.
34967         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
34968         Disable the test against BSD systems that declare optreset. Test
34969         against mingw bug. Test against lack of support of optional arguments
34970         on many platforms.
34971         * doc/glibc-headers/getopt.texi: Update module name and list of
34972         relevant platforms.
34973         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
34974         'getopt-gnu' and more portability problems.
34975         * NEWS: Mention the changes.
34976
34977 2009-08-12  Bruno Haible  <bruno@clisp.org>
34978
34979         Ensure that optarg etc. get declared by <unistd.h>.
34980         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
34981         AC_USE_SYSTEM_EXTENSIONS.
34982         * modules/getopt (Depends-on): Add 'extensions'.
34983
34984 2009-08-12  Bruno Haible  <bruno@clisp.org>
34985
34986         Avoid test link errors.
34987         * modules/pipe-filter-ii-tests (Makefile.am): Define
34988         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
34989         * modules/pipe-filter-gi-tests (Makefile.am): Define
34990         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
34991         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34992
34993 2009-08-12  Bruno Haible  <bruno@clisp.org>
34994
34995         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
34996         gl_GETOPT_SUBSTITUTE before.
34997         (gl_GETOPT): Use it.
34998         * m4/argp.m4 (gl_ARGP): Update.
34999         Reported by Sergey Poznyakoff.
35000
35001         * m4/getopt.m4: Reorder macros.
35002         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
35003         (gl_GETOPT_SUBSTITUTE): Remove macro.
35004
35005 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35006
35007         Minor improvement in gitlog-to-changelog
35008
35009         * build-aux/gitlog-to-changelog: New option `--format' makes
35010         output format string configurable.
35011
35012 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35013
35014         Optimize exclude: use hash tables for non-wildcard patterns.
35015
35016         * lib/exclude.c: Include hash.h and mbuiter.h
35017         (struct exclude_pattern, exclude_segment): New data types.
35018         (struct exclude): Rewrite.
35019         (fnmatch_pattern_has_wildcards): New function.
35020         (new_exclude_segment, free_exclude_segment): New functions.
35021         (excluded_file_pattern_p, excluded_file_name_p): New functions.
35022         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
35023         * lib/exclude.h (is_fnmatch_pattern): New prototype.
35024         * modules/exclude: Depend on hash and mbuiter.
35025
35026         * modules/exclude-tests: New file.
35027         * tests/test-exclude.c: New file.
35028         * tests/test-exclude1.sh: New file.
35029         * tests/test-exclude2.sh: New file.
35030         * tests/test-exclude3.sh: New file.
35031         * tests/test-exclude4.sh: New file.
35032         * tests/test-exclude5.sh: New file.
35033         * tests/test-exclude6.sh: New file.
35034         * tests/test-exclude7.sh: New file.
35035
35036 2009-08-12  Bruno Haible  <bruno@clisp.org>
35037
35038         Ensure that getopt() gets declared by <unistd.h>.
35039         * lib/unistd.in.h: Conditionally include getopt.h.
35040         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
35041         Set GNULIB_UNISTD_H_GETOPT.
35042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35043         GNULIB_UNISTD_H_GETOPT.
35044         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
35045
35046 2009-08-12  Bruno Haible  <bruno@clisp.org>
35047
35048         Clarify logic.
35049         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
35050         gl_replace_getopt instead of GETOPT_H.
35051
35052 2009-08-12  Bruno Haible  <bruno@clisp.org>
35053
35054         * m4/getopt.m4: Add comments.
35055
35056 2009-08-12  Bruno Haible  <bruno@clisp.org>
35057
35058         Disable multithread support by default on Cygwin 1.5.x.
35059         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
35060         set gl_use_threads=no if not specified otherwise.
35061
35062 2009-08-11  Bruno Haible  <bruno@clisp.org>
35063
35064         Avoid compilation error on NetBSD 5.0.
35065         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
35066         * tests/test-stdio.c: Likewise.
35067         * tests/test-stdlib.c: Likewise.
35068         * tests/test-string.c: Likewise.
35069         * tests/test-unistd.c: Likewise.
35070         Reported by Greg Troxel <gdt@ir.bbn.com>
35071         at <https://savannah.gnu.org/support/?106973>.
35072
35073 2009-08-11  Bruno Haible  <bruno@clisp.org>
35074
35075         * modules/dup2-tests (Depends-on): Remove close.
35076
35077         Undo 2009-07-19 commit.
35078         * modules/acl-tests (Depends-on): Remove close.
35079         * modules/binary-io-tests (Depends-on): Likewise.
35080         * modules/closein-tests (Depends-on): Likewise.
35081         * modules/flock-tests (Depends-on): Likewise.
35082         * modules/fsync-tests (Depends-on): Likewise.
35083         * modules/lseek-tests (Depends-on): Likewise.
35084         * modules/pipe-tests (Depends-on): Likewise.
35085         * modules/posix_spawn-tests (Depends-on): Likewise.
35086         * modules/posix_spawnp-tests (Depends-on): Likewise.
35087         * modules/stat-time-tests (Depends-on): Likewise.
35088         * modules/yesno-tests (Depends-on): Likewise.
35089
35090 2009-08-10  Bruno Haible  <bruno@clisp.org>
35091
35092         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
35093
35094 2009-08-10  Bruno Haible  <bruno@clisp.org>
35095
35096         Fix a gcc warning.
35097         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
35098
35099 2009-08-10  Bruno Haible  <bruno@clisp.org>
35100
35101         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
35102         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
35103         not only the first time.
35104         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
35105         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
35106         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
35107         is 1, not only the the first time.
35108
35109 2009-08-10  Bruno Haible  <bruno@clisp.org>
35110
35111         Make it possible to use module 'gethostname' without module 'close'.
35112         * lib/unistd.in.h (close): Evoke a link error only if
35113         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
35114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35115         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35116         * modules/unistd (Makefile.am): Substitute
35117         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35118         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
35119         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
35120         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35121         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35122         * modules/sys_ioctl (Makefile.am): Substitute
35123         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35124         * modules/socket (configure.ac): On native Windows, set
35125         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
35126         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35127         Reported by Sam Steingold <sds@gnu.org>.
35128
35129 2009-08-10  Bruno Haible  <bruno@clisp.org>
35130
35131         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
35132         * modules/ioctl (configure.ac): Likewise.
35133
35134 2009-08-10  Bruno Haible  <bruno@clisp.org>
35135
35136         Avoid collision between gnulib wrapper and libintl wrapper.
35137         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
35138         already defined in intl/printf.c.
35139         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
35140         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
35141
35142 2009-08-09  Bruno Haible  <bruno@clisp.org>
35143
35144         Make <sys/select.h> really self-contained, also on Solaris 10.
35145         * lib/sys_select.in.h: Include <string.h>.
35146         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
35147         Solaris 10 problem.
35148         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
35149         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
35150         Reported by Jim Meyering.
35151
35152 2009-08-09  Bruno Haible  <bruno@clisp.org>
35153
35154         Avoid warnings from 'aclocal' that are due to a use of macro name
35155         AM_XGETTEXT_OPTION that is not defined in automake.
35156         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
35157         automake.
35158         * modules/error (configure.ac): Likewise.
35159         * modules/propername (configure.ac): Likewise.
35160         * modules/vasprintf (configure.ac): Likewise.
35161         * modules/verror (configure.ac): Likewise.
35162         * modules/xprintf (configure.ac): Likewise.
35163         * modules/xvasprintf (configure.ac): Likewise.
35164
35165 2009-08-08  Bruno Haible  <bruno@clisp.org>
35166
35167         Avoid compilation error in C++ mode.
35168         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
35169         Reported by Sam Steingold <sds@gnu.org>.
35170
35171 2009-08-08  Bruno Haible  <bruno@clisp.org>
35172
35173         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
35174         for the various Unix platforms.
35175         * doc/posix-headers/limits.texi: Update platforms list regarding
35176         HOST_NAME_MAX.
35177         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35178
35179 2009-08-07  Jim Meyering  <meyering@redhat.com>
35180
35181         selinux-at: fix typo in a comment
35182         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
35183         Spotted by Paolo Bonzini.
35184
35185         selinux-at: remove redundant m4 code, add documentation
35186         * modules/selinux-at (configure.ac): Remove redundant code.
35187         LIB_SELINUX is already set via the dependent module, selinux-h.
35188         (Include): Add quotes around selinux-at.h.
35189         * lib/selinux-at.h: Add documentation.
35190         Reported by Bruno Haible in
35191         http://marc.info/?l=gnulib-bug&m=124958988300749
35192
35193 2009-08-07  Bruno Haible  <bruno@clisp.org>
35194
35195         Avoid link error on MacOS X 10.3 and 10.4.
35196         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
35197         on non-ELF systems.
35198         * lib/argp-pv.c (argp_program_version): Likewise.
35199         Reported by Simon Josefsson.
35200
35201 2009-08-07  Simon Josefsson  <simon@josefsson.org>
35202
35203         * tests/test-version-etc.sh: Use $EXEEXT.
35204
35205 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
35206
35207         update-copyright: update documentation to point to maint.mk
35208         * build-aux/update-copyright: Here.
35209
35210 2009-08-06  Jim Meyering  <meyering@redhat.com>
35211
35212         maint.mk: support update-copyright-local
35213         * top/maint.mk (update-copyright-local): Define place-holder.
35214         (update-copyright): Depend on $(update-copyright-local).
35215
35216 2009-08-06  Jim Meyering  <meyering@redhat.com>
35217
35218         selinux-at: new module
35219         Initially written for coreutils, this module will soon be
35220         used by findutils, too.
35221         * MODULES.html.sh [Misc]: Add selinux-at.
35222         * lib/selinux-at.h: New file, from coreutils.
35223         * lib/selinux-at.c: Likewise.
35224         * modules/selinux-at: Likewise.
35225         (License): Change from LGPL to GPL, since it depends
35226         on the GPL'd openat module.
35227
35228         doc: update README
35229         * README: Remove references to cogito.
35230         Remove cvs-repo-updating instructions from 2007.
35231         Don't imply that CVS is better if you have limited disk space.
35232
35233 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35234
35235         update-copyright: support C-style comments
35236         * build-aux/update-copyright: Implement and document.
35237         * tests/test-update-copyright.sh: Test.
35238
35239 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35240
35241         update-copyright: support omitted "(C)"
35242         * build-aux/update-copyright: Implement and document.  Also,
35243         allow variable whitespace before "(C)".
35244         * tests/test-update-copyright.sh: Test.
35245
35246 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35247
35248         update-copyright: don't trip on non-FSF copyright statements
35249         * build-aux/update-copyright: Fix so that the first correctly
35250         formatted FSF copyright statement is recognized no matter what
35251         appears before it.  Update documentation.
35252         * tests/test-update-copyright.sh: Test that.
35253
35254 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35255
35256         update-copyright: clean up code a little
35257         * build-aux/update-copyright: Append "_re" to the name of any
35258         variable holding a regular expression.
35259         Replace "old" and "new" with "stmt" in variable names.
35260         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
35261         handled correctly.
35262         Format code more consistently.
35263
35264 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35265
35266         update-copyright-tests: improve portability
35267         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
35268         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
35269
35270 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
35271
35272         update-copyright: support @copyright{} and &copy;
35273         * build-aux/update-copyright: Implement and document.
35274         * tests/test-update-copyright.sh: Test.
35275
35276 2009-08-04  Jim Meyering  <meyering@redhat.com>
35277
35278         update-copyright-tests: correctly test EOL=\r\n handling
35279         * tests/test-update-copyright.sh: Put \r at the end of some lines
35280         for the dos-eol tests.  Based on a patch by Joel E. Denny.
35281
35282         maint.mk: make update-copyright exclusion list more configurable
35283         * top/maint.mk (update-copyright): Default to excluding COPYING,
35284         but allow an override, in case someone does want to update that file.
35285
35286         maint.mk: don't update copyright date in COPYING
35287         * top/maint.mk (update-copyright): Exclude COPYING.
35288
35289         maint.mk: add a copyright-updating rule
35290         * top/maint.mk (update-copyright): New rule.
35291         Derived from coreutils/Makefile.am.
35292
35293         update-copyright: rename some variables
35294         * build-aux/update-copyright: Rename a few variables for clarity.
35295         Tweak syntax.  List Joel E. Denny as coauthor.
35296
35297 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
35298
35299         update-copyright: fix bug for 2-digit last year and add tests
35300         * build-aux/update-copyright: Fix bug.
35301         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
35302         specified.
35303         * modules/update-copyright-tests: New
35304         * tests/test-update-copyright.sh: New.
35305
35306 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35307
35308         update-copyright: handle leading tabs in line prefix
35309         * build-aux/update-copyright: Count leading tabs as 8 spaces
35310         when computing margin.  This helps with the formatting of
35311         ChangeLogs, for example.
35312         Fix documentation a little.
35313
35314 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35315
35316         update-copyright: support EOL=\r\n
35317         * build-aux/update-copyright: Implement that.
35318
35319 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35320
35321         update-copyright: automatically format copyright statements
35322         * build-aux/update-copyright: Implement that.
35323         Also, be a little more predictable and safer by always failing
35324         when the full copyright format is not perfectly recognized as an
35325         unbroken whole.  Discussed at
35326         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
35327         Rewrite documentation.
35328
35329 2009-08-03  Bruno Haible  <bruno@clisp.org>
35330
35331         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
35332
35333 2009-08-02  Bruno Haible  <bruno@clisp.org>
35334
35335         Tests for module 'uname'.
35336         * modules/uname-tests: New file.
35337         * tests/test-uname.c: New file.
35338
35339         New module 'uname'.
35340         * lib/uname.c: New file.
35341         * m4/uname.m4: New file.
35342         * modules/uname: New file.
35343         * doc/posix-functions/uname.texi: Mention the new module.
35344
35345 2009-08-02  Bruno Haible  <bruno@clisp.org>
35346
35347         Tests for module 'sys_utsname'.
35348         * modules/sys_utsname-tests: New file.
35349         * tests/test-sys_utsname.c: New file.
35350
35351         New module 'sys_utsname'.
35352         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
35353         * m4/sys_utsname_h.m4: New file.
35354         * modules/sys_utsname: New file.
35355         * doc/posix-headers/sys_utsname.texi: Mention the new module.
35356
35357 2009-08-02  Bruno Haible  <bruno@clisp.org>
35358
35359         Implicitly initialize the sockets library.
35360         * lib/gethostname.c: Include sockets.h.
35361         (rpl_gethostname): Invoke gl_sockets_startup.
35362         * lib/socket.c: Include sockets.h.
35363         (rpl_socket): Invoke gl_sockets_startup.
35364         * modules/gethostname (Depends-on): Add sockets.
35365         * modules/socket (Depends-on): Likewise.
35366         * tests/test-poll.c: Don't include sockets.h.
35367         (main): Don't invoke gl_sockets_startup.
35368         * tests/test-select.c: Don't include sockets.h.
35369         (main): Don't invoke gl_sockets_startup.
35370
35371 2009-08-02  Bruno Haible  <bruno@clisp.org>
35372
35373         Allow multiple calls to gl_sockets_startup.
35374         * lib/sockets.c (initialized_sockets_version): New variable.
35375         (gl_sockets_startup): Do nothing if already called for this or a higher
35376         version.
35377         (gl_sockets_cleanup): Reset initialized_sockets_version.
35378
35379 2009-08-03  Simon Josefsson  <simon@josefsson.org>
35380
35381         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
35382         different project/version.
35383
35384 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
35385             Bruno Haible  <bruno@clisp.org>
35386
35387         Tests for module 'pipe-filter-gi'.
35388         * modules/pipe-filter-gi-tests: New file.
35389         * tests/test-pipe-filter-gi1.sh: New file.
35390         * tests/test-pipe-filter-gi1.c: New file.
35391         * tests/test-pipe-filter-gi2.sh: New file.
35392         * tests/test-pipe-filter-gi2-main.c: New file.
35393         * tests/test-pipe-filter-gi2-child.c: New file.
35394
35395         New module 'pipe-filter-gi'.
35396         * lib/pipe-filter-gi.c: New file.
35397         * modules/pipe-filter-gi: New file.
35398
35399 2009-08-02  Bruno Haible  <bruno@clisp.org>
35400             Paolo Bonzini  <bonzini@gnu.org>
35401
35402         Tests for module 'pipe-filter-ii'.
35403         * modules/pipe-filter-ii-tests: New file.
35404         * tests/test-pipe-filter-ii1.sh: New file.
35405         * tests/test-pipe-filter-ii1.c: New file.
35406         * tests/test-pipe-filter-ii2.sh: New file.
35407         * tests/test-pipe-filter-ii2-main.c: New file.
35408         * tests/test-pipe-filter-ii2-child.c: New file.
35409
35410         New module 'pipe-filter-ii'.
35411         * lib/pipe-filter.h: New file.
35412         * lib/pipe-filter-ii.c: New file.
35413         * lib/pipe-filter-aux.h: New file.
35414         * modules/pipe-filter-ii: New file.
35415
35416 2009-08-02  Simon Josefsson  <simon@josefsson.org>
35417
35418         * lib/gc-libgcrypt.c: Change copyright to FSF.
35419         * lib/gc-gnulib.c: Likewise.
35420
35421 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
35422
35423         * lib/gethostname.c: Include limits.h.
35424
35425 2009-08-02  Simon Josefsson  <simon@josefsson.org>
35426             Bruno Haible  <bruno@clisp.org>
35427
35428         Ensure HOST_NAME_MAX as part of the gethostname module.
35429         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
35430         define also HOST_NAME_MAX.
35431         * tests/test-gethostname.c: Include <limits.h>.
35432         (main): Check also HOST_NAME_MAX.
35433         * doc/posix-headers/limits.texi: Document the mingw problem.
35434
35435 2009-08-02  Bruno Haible  <bruno@clisp.org>
35436
35437         * lib/gethostname.c (gethostname): Fix handling of large len argument.
35438         Add comments.
35439
35440 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35441
35442         * lib/gethostname.c: Add Windows wrapper.
35443         * m4/gethostname.m4: Look for gethostname in -lws2_32.
35444         * modules/gethostname: Depend on sys_socket & errno, for also
35445         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
35446         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
35447
35448 2009-07-31  Jim Meyering  <meyering@redhat.com>
35449
35450         getloadavg: fix symbol name in comment
35451         * lib/getloadavg.c: Correct a typo I introduced when adding
35452         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
35453         Matt Kraai spotted the problem.
35454
35455 2009-07-29  Matt Kraai  <mkraai@beckman.com>
35456
35457         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
35458         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
35459         code also if ! defined N_NAME_POINTER.
35460         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
35461         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
35462         but the n_name member is a 12-byte array.
35463
35464 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
35465
35466         update-copyright: generalize comment handling
35467         * build-aux/update-copyright: Handle copyright statements
35468         within more comment styles.
35469         Document usage.
35470         Report any file with an external copyright holder or parse failure.
35471
35472 2009-07-29  Jim Meyering  <meyering@redhat.com>
35473
35474         mktime: correct setting of REPLACE_MKTIME
35475         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
35476
35477         update-copyright: new module
35478         * modules/update-copyright: New file.
35479         * build-aux/update-copyright: New file.
35480         * MODULES.html.sh (maint+release support): Add update-copyright.
35481
35482 2009-07-27  Bruno Haible  <bruno@clisp.org>
35483
35484         Fix compilation error when <ctime> is used and mktime is replaced.
35485         * lib/time.in.h (mktime): New declaration.
35486         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
35487         REPLACE_MKTIME instead of defining mktime in config.h.
35488         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
35489         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
35490         Reported by Ross McFarland <rwmcfa1@neces.com>.
35491
35492 2009-07-27  Bruno Haible  <bruno@clisp.org>
35493
35494         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
35495         Reported by Matt Kraai <mkraai@beckman.com>.
35496
35497 2009-07-25  Jim Meyering  <meyering@redhat.com>
35498
35499         maint.mk: avoid warnings about missing files
35500         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
35501         diagnostic when .prev-version does not exist.
35502         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
35503         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
35504         nonexistent cfg.mk.
35505         Suggestions from Simon Josefsson.
35506
35507 2009-07-25  Bruno Haible  <bruno@clisp.org>
35508
35509         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
35510         defined as macros. Needed on QNX 6.4.1.
35511         Reported by Matt Kraai <mkraai@beckman.com>.
35512
35513 2009-07-23  Jim Meyering  <meyering@redhat.com>
35514
35515         maint.mk: invoke "make dist" with a working value of XZ_OPT
35516         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
35517
35518 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
35519
35520         Make fseeko.c compile on QNX.
35521         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
35522
35523 2009-07-22  Peter Simons  <simons@cryp.to>
35524
35525         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
35526         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
35527         * lib/md4.h: Likewise.
35528         * lib/md5.h: Likewise.
35529         * lib/sha1.h: Likewise.
35530         * lib/sha256.h: Likewise.
35531         * lib/sha512.h: Likewise.
35532
35533         tests-sha1: don't assign literal string to 'char *' variable
35534         * tests/test-sha1.c (main): Declare locals with "const" to match
35535         attributes of the right hand side.
35536
35537 2009-07-21  Eric Blake  <ebb9@byu.net>
35538
35539         dup2: fix more mingw problems
35540         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
35541         fd to itself.
35542         * doc/posix-functions/dup2.texi (dup2): Document the bug.
35543         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
35544         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
35545         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
35546         care of mingw bugs.
35547
35548 2009-07-21  Jim Meyering  <meyering@redhat.com>
35549
35550         vc-list-files: avoid failure when /bin/sh is dash
35551         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
35552         On some Debian based systems, /bin/sh is a symlink to dash, and running
35553         this command would omit the "/" following each 'tests' prefix:
35554           dash -x build-aux/vc-list-files -C . tests
35555         That is because bash and dash work differently:
35556           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
35557           bash ok
35558           dash odd
35559
35560 2009-07-21  Eric Blake  <ebb9@byu.net>
35561
35562         dup2-tests: test previous patch
35563         * modules/dup2-tests: New file.
35564         * tests/test-dup2.c: Likewise.
35565         * tests/test-open.c (main): Avoid unspecified behavior.
35566         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
35567         test.
35568
35569         dup2: work around mingw and cygwin 1.5 bug
35570         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
35571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35572         * modules/unistd (Makefile.am): Substitute it.
35573         * lib/unistd.in.h (dup2): Declare the replacement.
35574         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
35575         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
35576         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
35577         * modules/execute (Depends-on): Add dup2.
35578         * modules/fseterr (Depends-on): Likewise.
35579         * modules/pipe (Depends-on): Likewise.
35580         * modules/posix_spawn-internal (Depends-on): Likewise.
35581
35582 2009-07-21  Bruno Haible  <bruno@clisp.org>
35583
35584         * modules/.gitattributes: New file.
35585
35586 2009-07-20  Bruno Haible  <bruno@clisp.org>
35587
35588         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
35589         (main): Use it.
35590
35591 2009-07-20  Eric Blake  <ebb9@byu.net>
35592
35593         test-pipe: make a bit more robust.
35594         * tests/test-pipe.c (myerr): Allow error messages regardless of
35595         what we do to stderr.
35596         (test_pipe): Rearrange to avoid deadlock.
35597         (child_main): Try a larger read, to ensure we avoided deadlock.
35598         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
35599         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
35600         if misused.
35601
35602 2009-07-19  Jim Meyering  <meyering@redhat.com>
35603
35604         fts: avoid false-positive cycle-detection
35605         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
35606         for each new command line argument.
35607
35608 2009-07-19  Bruno Haible  <bruno@clisp.org>
35609
35610         Fix build error on mingw with the modules sys_select and unistd.
35611         * modules/acl-tests (Depends-on): Add close.
35612         * modules/binary-io-tests (Depends-on): Likewise.
35613         * modules/closein-tests (Depends-on): Likewise.
35614         * modules/flock-tests (Depends-on): Likewise.
35615         * modules/fsync-tests (Depends-on): Likewise.
35616         * modules/lseek-tests (Depends-on): Likewise.
35617         * modules/pipe-tests (Depends-on): Likewise.
35618         * modules/posix_spawn-tests (Depends-on): Likewise.
35619         * modules/posix_spawnp-tests (Depends-on): Likewise.
35620         * modules/stat-time-tests (Depends-on): Likewise.
35621         * modules/yesno-tests (Depends-on): Likewise.
35622
35623 2009-07-19  Bruno Haible  <bruno@clisp.org>
35624
35625         Unify conditionals.
35626         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
35627         macros, not at the compiler macros.
35628         * lib/pipe.c: Likewise.
35629         * lib/execute.c: Likewise.
35630         * lib/spawni.c: Likewise.
35631
35632 2009-07-19  Bruno Haible  <bruno@clisp.org>
35633
35634         Fix handling of closed stdin/stdout/stderr on mingw.
35635         * lib/w32spawn.h: Include unistd.h.
35636         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
35637         file descriptor with O_NOINHERIT flag.
35638         (fd_safer_noinherit): New function, based on fd-safer.c.
35639         (dup_safer_noinherit): New function, based on dup-safer.c.
35640         (undup_safer_noinherit): New function.
35641         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
35642         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
35643         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
35644         instead of fd_safer.
35645         * tests/test-pipe.c: Include <windows.h>.
35646         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
35647         result.
35648
35649         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
35650         from main.
35651         (test_pipe): Pass an extra argument for disambiguation.
35652         (main): Invoke parent_main or child_main.
35653
35654         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
35655         consistently.
35656
35657 2009-07-18  Eric Blake  <ebb9@byu.net>
35658
35659         test-pipe: fix mingw build
35660         * tests/test-pipe.c (main): Avoid fcntl on mingw.
35661
35662 2009-07-18  Bruno Haible  <bruno@clisp.org>
35663
35664         * modules/pipe-tests (Makefile.am): Fix typo.
35665
35666 2009-07-18  Eric Blake  <ebb9@byu.net>
35667
35668         error: fix mingw build
35669         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
35670         Reported by Bruno Haible.
35671
35672         error: avoid undefined use of stdout
35673         * lib/error.c (error, error_at_line): Check that fd 1 is open
35674         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
35675         is handling faults and the close_stdout module wants to report the
35676         detection of closed stdout as an error.
35677
35678 2009-07-17  Eric Blake  <ebb9@byu.net>
35679
35680         pipe: be robust in face of closed fds
35681         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
35682         should cause child to misbehave.
35683         * modules/pipe-tests: New module.
35684         * tests/test-pipe.c: New file.
35685         * tests/test-pipe.sh: New file.
35686         Reported by Akim Demaille.
35687
35688 2009-07-14  Bruno Haible  <bruno@clisp.org>
35689
35690         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
35691         Reported by anonymous kc.
35692
35693 2009-07-07  Jim Meyering  <meyering@redhat.com>
35694
35695         maint.mk: don't look for translatable strings in *.m4 or *.mk
35696         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
35697         when searching for translatable strings.
35698
35699 2009-07-05  Jim Meyering  <meyering@redhat.com>
35700
35701         remove superfluous parentheses in STREQ definition
35702         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
35703         * lib/getugroups.c (STREQ): Likewise.
35704         * lib/fnmatch.c (STREQ): Likewise.
35705         Spotted by Bruno Haible.
35706
35707 2009-07-04  Jim Meyering  <meyering@redhat.com>
35708
35709         argv-iter: new module
35710         * MODULES.html.sh: Add argv-iter.
35711         * lib/argv-iter.c, lib/argv-iter.h: New files.
35712         * modules/argv-iter: New file.
35713         * modules/argv-iter-tests: New file.
35714         * tests/test-argv-iter.c: Test it.
35715
35716 2009-07-04  Bruno Haible  <bruno@clisp.org>
35717
35718         Fix assertion.
35719         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
35720         contains more exact copies of a given entry than file2, leave the extra
35721         copies unpaired rather than aborting.
35722         Reported by Eric Blake.
35723
35724 2009-07-02  Bruno Haible  <bruno@clisp.org>
35725
35726         Speedup git-merge-changelog for git cherry-pick.
35727         * lib/git-merge-changelog.c (struct entries_mapping): New type.
35728         (entries_mapping_get): New function, extracted from compute_mapping.
35729         (entries_mapping_reverse_get): New function.
35730         (compute_mapping): Add a 'full' argument. Return the result in a
35731         'struct entries_mapping'.
35732         (main): Update. Access the mappings through entries_mapping_get.
35733         Reported by Eric Blake.
35734
35735 2009-07-02  Bruno Haible  <bruno@clisp.org>
35736
35737         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
35738         best_i.
35739
35740 2009-07-02  Bruno Haible  <bruno@clisp.org>
35741
35742         Speed up approximate search for matching ChangeLog entries.
35743         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
35744         argument. Call fstrcmp_bounded instead of fstrcmp.
35745         (compute_mapping, try_split_merged_entry, main): Update callers.
35746
35747 2009-07-02  Bruno Haible  <bruno@clisp.org>
35748
35749         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
35750
35751 2009-06-30  Bruno Haible  <bruno@clisp.org>
35752
35753         Reduce the number of uc_is_cased calls.
35754         * lib/unicase.h (casing_suffix_context_t): Add
35755         'first_char_except_ignorable' field.
35756         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
35757         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
35758         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
35759         Update initializer.
35760         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
35761         case-ignorable characters.
35762         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
35763         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
35764         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
35765         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
35766         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
35767
35768 2009-06-30  Bruno Haible  <bruno@clisp.org>
35769
35770         Tests for module 'unicase/ignorable'.
35771         * modules/unicase/ignorable-tests: New file.
35772         * tests/unicase/test-ignorable.c: New file, generated by
35773         gen-uni-tables.
35774
35775         Tests for module 'unicase/cased'.
35776         * modules/unicase/cased-tests: New file.
35777         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
35778         * tests/unicase/test-predicate-part1.h: New file, derived from
35779         tests/unictype/test-predicate-part1.h.
35780         * tests/unicase/test-predicate-part2.h: New file, same as
35781         tests/unictype/test-predicate-part2.h.
35782
35783         Fix evaluation of "Before C" condition of FINAL_SIGMA.
35784         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
35785         (output_casing_properties): New function.
35786         (main): Call it.
35787         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
35788         * lib/unicase/cased.c: Include unictype/bitmap.h.
35789         (uc_is_cased): Define through a bitmap lookup.
35790         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
35791         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
35792         (uc_is_case_ignorable): Define through a bitmap lookup.
35793         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
35794         lib/unictype/bitmap.h.
35795         (Depends-on): Add inline. Clean up.
35796         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
35797         lib/unictype/bitmap.h.
35798         (Depends-on): Add inline. Clean up.
35799         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
35800         recognition.
35801         * tests/unicase/test-u16-tolower.c (main): Likewise.
35802         * tests/unicase/test-u32-tolower.c (main): Likewise.
35803
35804 2009-06-30  Bruno Haible  <bruno@clisp.org>
35805
35806         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
35807         * lib/unicase/u16-casemap.c: Likewise.
35808         * lib/unicase/u32-casemap.c: Likewise.
35809
35810 2009-06-29  Bruno Haible  <bruno@clisp.org>
35811
35812         Define u32_casefold as a wrapper around u32_ct_casefold.
35813         * lib/unicase/u32-casefold.c: Update.
35814         * modules/unicase/u32-casefold (Depends-on): Add
35815         unicase/u32-ct-casefold, unicase/empty-prefix-context,
35816         unicase/empty-suffix-context. Clean up.
35817
35818         Define u16_casefold as a wrapper around u16_ct_casefold.
35819         * lib/unicase/u16-casefold.c: Update.
35820         * modules/unicase/u16-casefold (Depends-on): Add
35821         unicase/u16-ct-casefold, unicase/empty-prefix-context,
35822         unicase/empty-suffix-context. Clean up.
35823
35824         Define u8_casefold as a wrapper around u8_ct_casefold.
35825         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
35826         * lib/unicase/u8-casefold.c: Update.
35827         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
35828         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35829
35830         Define u32_totitle as a wrapper around u32_ct_totitle.
35831         * lib/unicase/u32-totitle.c: Update.
35832         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
35833         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35834
35835         Define u16_totitle as a wrapper around u16_ct_totitle.
35836         * lib/unicase/u16-totitle.c: Update.
35837         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
35838         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35839
35840         Define u8_totitle as a wrapper around u8_ct_totitle.
35841         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
35842         functions.
35843         (FUNC): Delegate to U_CT_TOTITLE.
35844         * lib/unicase/u8-totitle.c: Update.
35845         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
35846         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35847
35848         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
35849         invocation.
35850         * modules/unicase/u32-tolower (Depends-on): Add
35851         unicase/empty-prefix-context, unicase/empty-suffix-context.
35852
35853         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
35854         invocation.
35855         * modules/unicase/u16-tolower (Depends-on): Add
35856         unicase/empty-prefix-context, unicase/empty-suffix-context.
35857
35858         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
35859         * modules/unicase/u8-tolower (Depends-on): Add
35860         unicase/empty-prefix-context, unicase/empty-suffix-context.
35861
35862         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
35863         invocation.
35864         * modules/unicase/u32-toupper (Depends-on): Add
35865         unicase/empty-prefix-context, unicase/empty-suffix-context.
35866
35867         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
35868         invocation.
35869         * modules/unicase/u16-toupper (Depends-on): Add
35870         unicase/empty-prefix-context, unicase/empty-suffix-context.
35871
35872         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
35873         * modules/unicase/u8-toupper (Depends-on): Add
35874         unicase/empty-prefix-context, unicase/empty-suffix-context.
35875
35876         New module 'unicase/u32-ct-casefold'.
35877         * lib/unicase/u32-ct-casefold.c: New file.
35878         * modules/unicase/u32-ct-casefold: New file.
35879
35880         New module 'unicase/u16-ct-casefold'.
35881         * lib/unicase/u16-ct-casefold.c: New file.
35882         * modules/unicase/u16-ct-casefold: New file.
35883
35884         New module 'unicase/u8-ct-casefold'.
35885         * lib/unicase/u8-ct-casefold.c: New file.
35886         * lib/unicase/u-ct-casefold.h: New file, derived from
35887         lib/unicase/u-casefold.h.
35888         * modules/unicase/u8-ct-casefold: New file.
35889
35890         New module 'unicase/u32-ct-totitle'.
35891         * lib/unicase/u32-ct-totitle.c: New file.
35892         * modules/unicase/u32-ct-totitle: New file.
35893
35894         New module 'unicase/u16-ct-totitle'.
35895         * lib/unicase/u16-ct-totitle.c: New file.
35896         * modules/unicase/u16-ct-totitle: New file.
35897
35898         New module 'unicase/u8-ct-totitle'.
35899         * lib/unicase/u8-ct-totitle.c: New file.
35900         * lib/unicase/u-ct-totitle.h: New file, derived from
35901         lib/unicase/u-totitle.h.
35902         * modules/unicase/u8-ct-totitle: New file.
35903
35904         New module 'unicase/u32-ct-tolower'.
35905         * lib/unicase/u32-ct-tolower.c: New file.
35906         * modules/unicase/u32-ct-tolower: New file.
35907
35908         New module 'unicase/u16-ct-tolower'.
35909         * lib/unicase/u16-ct-tolower.c: New file.
35910         * modules/unicase/u16-ct-tolower: New file.
35911
35912         New module 'unicase/u8-ct-tolower'.
35913         * lib/unicase/u8-ct-tolower.c: New file.
35914         * modules/unicase/u8-ct-tolower: New file.
35915
35916         New module 'unicase/u32-ct-toupper'.
35917         * lib/unicase/u32-ct-toupper.c: New file.
35918         * modules/unicase/u32-ct-toupper: New file.
35919
35920         New module 'unicase/u16-ct-toupper'.
35921         * lib/unicase/u16-ct-toupper.c: New file.
35922         * modules/unicase/u16-ct-toupper: New file.
35923
35924         New module 'unicase/u8-ct-toupper'.
35925         * lib/unicase/u8-ct-toupper.c: New file.
35926         * modules/unicase/u8-ct-toupper: New file.
35927
35928         Add context arguments to u*_casemap functions.
35929         * lib/unicase/unicasemap.h: Include unicase.h.
35930         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
35931         suffix_context arguments.
35932         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
35933         functions.
35934         (FUNC): Add prefix_context and suffix_context arguments. Use
35935         uc_is_cased and uc_is_case_ignorable.
35936         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
35937         * lib/unicase/u16-casemap.c: Likewise.
35938         * lib/unicase/u32-casemap.c: Likewise.
35939         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
35940         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35941         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
35942         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35943         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
35944         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35945
35946         New module 'unicase/u32-suffix-context'.
35947         * lib/unicase/u32-suffix-context.c: New file.
35948         * modules/unicase/u32-suffix-context: New file.
35949
35950         New module 'unicase/u16-suffix-context'.
35951         * lib/unicase/u16-suffix-context.c: New file.
35952         * modules/unicase/u16-suffix-context: New file.
35953
35954         New module 'unicase/u8-suffix-context'.
35955         * lib/unicase/u8-suffix-context.c: New file.
35956         * lib/unicase/u-suffix-context.h: New file.
35957         * modules/unicase/u8-suffix-context: New file.
35958
35959         New module 'unicase/empty-suffix-context'.
35960         * lib/unicase/empty-suffix-context.c: New file.
35961         * modules/unicase/empty-suffix-context: New file.
35962
35963         New module 'unicase/u32-prefix-context'.
35964         * lib/unicase/u32-prefix-context.c: New file.
35965         * modules/unicase/u32-prefix-context: New file.
35966
35967         New module 'unicase/u16-prefix-context'.
35968         * lib/unicase/u16-prefix-context.c: New file.
35969         * modules/unicase/u16-prefix-context: New file.
35970
35971         New module 'unicase/u8-prefix-context'.
35972         * lib/unicase/u8-prefix-context.c: New file.
35973         * lib/unicase/u-prefix-context.h: New file.
35974         * lib/unicase/context.h: New file.
35975         * modules/unicase/u8-prefix-context: New file.
35976
35977         New module 'unicase/empty-prefix-context'.
35978         * lib/unicase/empty-prefix-context.c: New file.
35979         * modules/unicase/empty-prefix-context: New file.
35980
35981         New module 'unicase/ignorable'.
35982         * lib/unicase/ignorable.c: New file.
35983         * modules/unicase/ignorable: New file.
35984
35985         New module 'unicase/cased'.
35986         * lib/unicase/caseprop.h: New file.
35987         * lib/unicase/cased.c: New file.
35988         * modules/unicase/cased: New file.
35989
35990         New functions for case mapping of substrings.
35991         * lib/unicase.h (casing_prefix_context_t): New type.
35992         (unicase_empty_prefix_context): New variable.
35993         (u8_casing_prefix_context, u16_casing_prefix_context,
35994         u32_casing_prefix_context, u8_casing_prefixes_context,
35995         u16_casing_prefixes_context, u32_casing_prefixes_context): New
35996         declarations.
35997         (casing_suffix_context_t): New type.
35998         (unicase_empty_suffix_context): New variable.
35999         (u8_casing_suffix_context, u16_casing_suffix_context,
36000         u32_casing_suffix_context, u8_casing_suffixes_context,
36001         u16_casing_suffixes_context, u32_casing_suffixes_context,
36002         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
36003         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
36004         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
36005         declarations.
36006
36007 2009-06-28  Jim Meyering  <meyering@redhat.com>
36008
36009         boostrap: indent only with spaces
36010         * build-aux/bootstrap: Indent only with spaces, never TABs.
36011
36012         bootstrap: split long lines
36013         * build-aux/bootstrap: Keep line length < 80.
36014
36015         bootstrap: sync from coreutils
36016         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
36017         just as autoreconf does.  Verify a list of prerequisite
36018         package-name,version-number pairs if defined in bootstrap.conf.
36019         Refer to README-prereq, if prerequisites are not satisfied.
36020
36021 2009-06-27  Eric Blake  <ebb9@byu.net>
36022
36023         tests: add test for bogus NULL definition
36024         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
36025         * tests/test-stdlib.c: Likewise.
36026         * tests/test-string.c: Likewise.
36027         * tests/test-locale.c: Likewise.
36028         * tests/test-unistd.c: Likewise.
36029         * modules/stdio-tests (Depends-on): Add verify.
36030         * modules/stdlib-tests (Depends-on): Likewise.
36031         * modules/string-tests (Depends-on): Likewise.
36032         * modules/locale-tests (Depends-on): Likewise.
36033         * modules/unistd-tests (Depends-on): Likewise.
36034
36035 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
36036
36037         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
36038         self-explaining comment.
36039         * m4/selinux-selinux-h: Update serial.
36040         (gl_LIBSELINUX): New macro, adding a warning for missing development
36041         packages to code extracted from...
36042         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
36043         Add warning for missing development packages here, too.
36044
36045 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
36046
36047         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
36048
36049 2009-06-25  Eric Blake  <ebb9@byu.net>
36050
36051         version-etc: fix regression
36052         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
36053         gcc.
36054         (version_etc): Use it, to catch bugs with trailing NULL.
36055         * lib/version-etc.c (version_etc_arn): Delete unused argument.
36056         (version_etc_va): Fix logic bug.
36057         * modules/version-etc-tests: Add test.
36058         * tests/test-version-etc.c: New file.
36059         * tests/test-version-etc.sh: Likewise.
36060
36061 2009-06-25  Sam Steingold  <sds@gnu.org>
36062
36063         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
36064         mbtowc declaration.
36065
36066 2009-06-25  Eric Blake  <ebb9@byu.net>
36067
36068         fpurge: migrate into <stdio.h>
36069         * lib/fpurge.h: Delete...
36070         * lib/stdio.in.h (fpurge): ...and declare here, instead.
36071         * lib/fpurge.c (fpurge): Change declaring header.
36072         * modules/fpurge (Files): Drop deleted file.
36073         (Depends-on): Add stdio.
36074         (configure.ac): Set witness.
36075         * modules/stdio (Makefile.am): Support fpurge macros.
36076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36077         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
36078         * lib/fflush.c: Update client.
36079         * tests/test-fpurge.c: Likewise.
36080         * NEWS: Mention the change.
36081
36082 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36083
36084         * lib/argp-version-etc.c (program_authors): Add const
36085         qualifier.
36086         * lib/version-etc.c: Fix typos in the comments.
36087         * modules/argp-version-etc: Depends on version-etc.
36088
36089 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36090
36091         argp-version-etc: new module.
36092
36093         * lib/argp-version-etc.c: New file.
36094         * lib/argp-version-etc.h: New file.
36095         * modules/argp-version-etc: New file.
36096         * modules/argp-version-etc-tests: New file.
36097         * tests/test-argp-version-etc.c: New test.
36098         * tests/test-argp-version-etc-1.sh: New test.
36099
36100 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36101
36102         Provide additional interfaces and documentation for version-etc
36103         module.
36104
36105         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
36106         interfaces.
36107         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
36108         prototypes.
36109
36110 2009-06-24  Bruno Haible  <bruno@clisp.org>
36111
36112         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
36113         HAVE_LIB${NAME} macro.
36114         Reported by Sam Steingold <sds@gnu.org>.
36115
36116 2009-06-23  Simon Josefsson  <simon@josefsson.org>
36117
36118         * modules/hash-tests (test_hash_LDADD): Link to libintl when
36119         needed.
36120
36121 2009-06-21  Bruno Haible  <bruno@clisp.org>
36122
36123         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
36124         work.
36125         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
36126         together with LIB${NAME}, LTLIB${NAME}.
36127         Reported by Sam Steingold <sds@gnu.org>.
36128
36129 2009-06-20  Jim Meyering  <meyering@redhat.com>
36130
36131         tests: make sc_require_test_exit_idiom more generic
36132         * top/maint.mk (Exit_witness_file): New overridable variable.
36133         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
36134         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
36135
36136 2009-06-19  Jim Meyering  <meyering@redhat.com>
36137
36138         hash: reverse order of src/dst parameters in an internal interface
36139         * lib/hash.c (transfer_entries): Reverse order of parameters to
36140         put DST before SRC.  Adjust callers.
36141
36142         tests: test-hash: avoid wholesale duplication
36143         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
36144         Instead, use a loop and add a single conditional.
36145
36146         tests: test-hash: allow seed selection via a command line argument
36147         * tests/test-hash.c (get_seed): New function.
36148         (main): Use it.
36149
36150 2009-06-19  Eric Blake  <ebb9@byu.net>
36151
36152         hash: avoid memory leak on allocation failure
36153         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
36154         failure.  Factor repeated algorithm...
36155         (transfer_entries): ...into new helper routine.
36156         (hash_delete): React to hash_rehash return value.
36157
36158         hash: reduce memory pressure in hash_rehash no-op case
36159         * lib/hash.c (next_prime): Avoid overflow.
36160         (hash_initialize): Factor bucket size computation...
36161         (compute_bucket_size): ...into new helper function.
36162         (hash_rehash): Use new function and open coding to reduce memory
36163         pressure, and avoid a memory leak in USE_OBSTACK code.
36164         Reported by Jim Meyering.
36165
36166 2009-06-18  Eric Blake  <ebb9@byu.net>
36167
36168         hash: make rotation more obvious
36169         * modules/hash (Depends-on): Add bitrotate and stdint.
36170         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
36171         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
36172         (SIZE_MAX): Rely on headers for definition.
36173         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
36174         (raw_hasher): Use rotr_sz.
36175         Suggested by Jim Meyering.
36176
36177         hash: fix memory leak in last patch
36178         * lib/hash.c (hash_rehash): Avoid memory leak.
36179
36180         hash: avoid no-op rehashing
36181         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
36182
36183         hash: provide default callback functions
36184         * lib/hash.c (raw_hasher, raw_comparator): New functions.
36185         (hash_initialize): Use them as defaults.
36186         * tests/test-hash.c (main): Test this.
36187
36188         hash: minor optimization
36189         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
36190         when possible.
36191         (hash_initialize): Document this promise.
36192         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
36193         * tests/test-hash.c (hash_compare_strings): Test this.
36194
36195 2009-06-18  Bruno Haible  <bruno@clisp.org>
36196
36197         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
36198         going to be replaced anyway.
36199
36200 2009-06-18  Bruno Haible  <bruno@clisp.org>
36201
36202         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
36203         in one place.
36204         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
36205         be replaced anyway.
36206
36207 2009-06-18  Eric Blake  <ebb9@byu.net>
36208
36209         hash: check for resize before insertion
36210         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
36211         threshold before insertion, so that a pathological hash_rehash
36212         that fills every bucket can still trigger another rehash.
36213
36214 2009-06-18  Jim Meyering  <meyering@redhat.com>
36215
36216         hash-tests: add a loop around the small tests
36217         * tests/test-hash.c (main): Repeat small tests with selected
36218         small initial table sizes.
36219
36220 2009-06-17  Eric Blake  <ebb9@byu.net>
36221
36222         hash: minor cleanups
36223         * lib/hash.h (hash_entry): Make opaque, by moving...
36224         * lib/hash.c (hash_entry): ...here.
36225         (hash_insert): Clarify restrictions on what can be inserted.
36226         (hash_get_next): Clarify when it is safe to remove an element
36227         during traversal.
36228         (check_tuning): Skip verification when tuning is known safe.
36229         (hash_initialize): Clarify restrictions on tuning.
36230
36231 2009-06-17  Jim Meyering  <jim@meyering.net>
36232         and Eric Blake  <ebb9@byu.net>
36233
36234         hash-tests: new module
36235         * modules/hash-tests: New file.
36236         * tests/test-hash.c: New file.
36237
36238 2009-06-17  Eric Blake  <ebb9@byu.net>
36239
36240         strstr-simple: document new module
36241         * MODULES.html.sh: Document new module.
36242
36243         strstr, strcasestr: replace on platforms with broken memchr
36244         * modules/strstr: Split into...
36245         * modules/strstr-simple: ...new module that does not care about
36246         performance, but does care about glibc bug.
36247         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
36248         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
36249         if platform memchr is broken, per Debian bug 521737.
36250         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
36251         memchr.
36252         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
36253         * doc/posix-functions/strstr.texi (strstr): Document the fix.
36254         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
36255         * modules/mountlist (Depends-on): Add strstr-simple.
36256         * modules/gen-uni-tables (Depends-on): Likewise.
36257         * modules/argz (Depends-on): Add strstr.
36258
36259 2009-06-17  Bruno Haible  <bruno@clisp.org>
36260
36261         * modules/posix_spawn-internal (Depends-on): Add errno.
36262
36263 2009-06-17  Bruno Haible  <bruno@clisp.org>
36264
36265         Define missing ESTALE on Interix 3.5.
36266         * lib/errno.in.h (ESTALE): Assign a value if missing.
36267         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
36268         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
36269         missing.
36270         * doc/posix-headers/errno.texi: Mention the Interix bug.
36271         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
36272
36273 2009-06-15  Eric Blake  <ebb9@byu.net>
36274
36275         memchr, memchr2: add valgrind exception
36276         * lib/memchr.valgrind: New file.
36277         * lib/memchr2.valgrind: New file.
36278         * modules/memchr (Files): Distribute valgrind file.
36279         * modules/memchr2 (Files): Likewise.
36280
36281         docs: memchr is no longer obsolete
36282         * MODULES.html.sh: Move memchr from obsolete to string.h section.
36283         * lib/string.in.h (memchr): Simplify logic.
36284
36285 2009-06-14  Jim Meyering  <meyering@redhat.com>
36286
36287         link-follow: fix the "checking..." message to not mention trailing slash
36288         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
36289         never considered trailing slashes.
36290
36291 2009-06-14  Bruno Haible  <bruno@clisp.org>
36292
36293         * m4/memchr.m4: Mention also the bug on IA-64.
36294         * doc/posix-functions/memchr.texi: Likewise.
36295
36296 2009-06-12  Eric Blake  <ebb9@byu.net>
36297
36298         memchr: detect broken x86_64 and alpha implementations
36299         * modules/memchr-tests (Depends-on): Move mmap detection...
36300         * modules/memchr (Depends-on): ...here.
36301         (configure.ac): Set indicator.
36302         * lib/string.in.h (memchr): Declare replacement.
36303         * modules/string (Makefile.am): Trigger replacement.
36304         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
36305         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
36306         bugs.
36307         * doc/posix-functions/memchr.texi (memchr): Document the bug.
36308         * modules/getpagesize (License): Relax license.
36309
36310 2009-06-11  Bruno Haible  <bruno@clisp.org>
36311
36312         * lib/idpriv.h: Add more references.
36313
36314 2009-06-08  Bruno Haible  <bruno@clisp.org>
36315
36316         Tests for module 'idpriv-droptemp'.
36317         * modules/idpriv-droptemp-tests: New file.
36318         * tests/test-idpriv-droptemp.sh: New file.
36319         * tests/test-idpriv-droptemp.su.sh: New file.
36320         * tests/test-idpriv-droptemp.c: New file.
36321
36322         New module 'idpriv-droptemp'.
36323         * lib/idpriv-droptemp.c: New file.
36324         * modules/idpriv-droptemp: New file.
36325
36326 2009-06-08  Bruno Haible  <bruno@clisp.org>
36327
36328         Tests for module 'idpriv-drop'.
36329         * modules/idpriv-drop-tests: New file.
36330         * tests/test-idpriv-drop.sh: New file.
36331         * tests/test-idpriv-drop.su.sh: New file.
36332         * tests/test-idpriv-drop.c: New file.
36333
36334         New module 'idpriv-drop'.
36335         * lib/idpriv.h: New file.
36336         * lib-idpriv-drop.c: New file.
36337         * m4/idpriv.m4: New file.
36338         * modules/idpriv-drop: New file.
36339
36340 2009-06-08  Bruno Haible  <bruno@clisp.org>
36341
36342         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
36343         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36344         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36345         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36346         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36347         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36348         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36349
36350 2009-06-08  Eric Blake  <ebb9@byu.net>
36351
36352         test-strstr: use memory fence, when possible
36353         * tests/test-strstr.c (main): Use memory fence, in order to be
36354         more likely to trigger Debian bug 521737.
36355         * modules/strstr-tests (Files): Pull in additional files.
36356
36357         memchr: no longer obsolete, for wider field testing
36358         * modules/memchr (Status, Notice): Delete, this module is no
36359         longer obsolete.
36360         * modules/vasnprintf (Depends-on): Add memchr.
36361
36362 2009-06-07  Jim Meyering  <meyering@redhat.com>
36363
36364         hash: declare some functions with the warn_unused_result attribute
36365         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
36366
36367 2009-06-07  Bruno Haible  <bruno@clisp.org>
36368
36369         * tests/test-alignof.c: Don't test int64_t if it does not exist.
36370         Reported by Eric Blake.
36371
36372 2009-06-06  Eric Blake  <ebb9@byu.net>
36373
36374         test-alignof: fix typo with long double
36375         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
36376         compiler error.
36377
36378 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
36379
36380         Escape non-texinfo { and }s.
36381         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
36382         markup error.
36383
36384 2009-06-04  Jim Meyering  <meyering@redhat.com>
36385
36386         gitlog-to-changelog: don't infloop on an empty commit log
36387         * build-aux/gitlog-to-changelog: Warn about an empty log message.
36388         Reported by Boris Petersen <transacid@centerim.org>.
36389
36390 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
36391
36392         version-etc: extend for packagers
36393         Add three new configure options, intended for packagers:
36394           --with-packager="packager name"
36395           --with-packager-version="packager-specific version"
36396           --with-packager-bug-reports="packager bug reporting"
36397         An example with coreutils:
36398           $ ./configure \
36399             --with-packager=Gentoo \
36400             --with-packager-bug-report=http://bugs.gentoo.org/ \
36401             --with-packager-version="patchset 1.6"
36402           $ ./src/ls --version | head -n2
36403           ls (GNU coreutils) 7.1-dirty
36404           Packaged by Gentoo (patchset 1.6)
36405         Note that the bug reporting info via --help doesn't show up because
36406         coreutils uses its own custom emit_bug_reporting_address() implementation
36407         in src/system.h.  If it didn't, it'd look like:
36408           $ ./src/ls --help | tail -n4
36409           Report bugs to <bug-coreutils@gnu.org>.
36410           Report Gentoo bugs to <http://bugs.gentoo.org/>.
36411           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
36412           General help using GNU software: <http://www.gnu.org/gethelp/>.
36413         * lib/version-etc.c: Print new information, if provided.
36414         * m4/version-etc.m4: New file.
36415         * modules/version-etc (Files): Add m4/version-etc.m4.
36416         (configure.ac): Add gl_VERSION_ETC.
36417
36418 2009-05-31  Bruno Haible  <bruno@clisp.org>
36419
36420         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
36421         and 'int64_t'.
36422         * modules/alignof-tests (Dependencies): Add stdint.
36423         Reported by Eric Blake.
36424
36425 2009-05-31  Bruno Haible  <bruno@clisp.org>
36426
36427         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
36428         restriction due to compiler bugs.
36429         Reported by Eric Blake.
36430
36431 2009-05-31  Simon Josefsson  <simon@josefsson.org>
36432             Bruno Haible  <bruno@clisp.org>
36433
36434         Fix test-alignof failure.
36435         * lib/alignof.h (alignof_slot): New macro.
36436         (alignof_type): New macro, with the same semantics as the previous
36437         'alignof'.
36438         (alignof): Alias to alignof_slot.
36439         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
36440         check that the results are usable as constant expressions.
36441
36442 2009-05-31  Bruno Haible  <bruno@clisp.org>
36443
36444         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
36445         * tests/test-memchr.c (main): Check that memchr does not read past the
36446         first occurrence of the byte.
36447         * tests/test-strstr.c (main): Update comment.
36448         Suggested by Eric Blake.
36449
36450 2009-05-30  Bruno Haible  <bruno@clisp.org>
36451
36452         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
36453         detail how to use dumpbin.
36454         Reported by David Byron <dbyron@dbyron.com>.
36455
36456 2009-06-02  Simon Josefsson  <simon@josefsson.org>
36457
36458         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
36459
36460 2009-06-02  Simon Josefsson  <simon@josefsson.org>
36461
36462         * m4/manywarnings.m4: Add GCC 4.4 warnings.
36463
36464 2009-05-28  Bruno Haible  <bruno@clisp.org>
36465
36466         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
36467         build-aux/ files.
36468
36469 2009-05-28  Simon Josefsson  <simon@josefsson.org>
36470
36471         * gnulib-tool (func_import): Transform license on build-aux/ files too.
36472
36473 2009-05-27  Simon Josefsson  <simon@josefsson.org>
36474
36475         * gnulib-tool (sed_transform_main_lib_file)
36476         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
36477         regexps.
36478
36479 2009-05-26  Simon Josefsson  <simon@josefsson.org>
36480
36481         * tests/test-strstr.c: Add another self-test.
36482         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
36483         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
36484
36485 2009-05-23  Bruno Haible  <bruno@clisp.org>
36486
36487         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
36488         change.
36489
36490 2009-05-21  Bruno Haible  <bruno@clisp.org>
36491
36492         Simplify use of mode_t varargs.
36493         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
36494         uses 'mode_t' or 'int'.
36495         * lib/openat.c (openat): Likewise.
36496         * lib/open-safer.c (open_safer): Likewise.
36497         * m4/mode_t.m4: New file.
36498         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
36499         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
36500         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
36501         * modules/open (Files): Add m4/mode_t.m4.
36502         * modules/openat (Files): Likewise.
36503         * modules/fcntl-safer (Files): Likewise.
36504         Suggested by Eric Blake.
36505
36506 2009-05-21  Pádraig Brady  <P@draigbrady.com>
36507
36508         * doc/glibc-functions/fallocate.texi: New file.
36509         * doc/gnulib.texi: Include it.
36510
36511 2009-05-21  Eric Blake  <ebb9@byu.net>
36512             Bruno Haible  <bruno@clisp.org>
36513
36514         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
36515         invocations.
36516         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36517
36518 2009-05-21  Eric Blake  <ebb9@byu.net>
36519             Bruno Haible  <bruno@clisp.org>
36520
36521         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
36522         include_next. Fix of 2008-11-20 commit.
36523         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
36524         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
36525         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
36526         NEXT_MATH_H.
36527         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
36528         instead of NEXT_MATH_H.
36529
36530 2009-05-21  Bruno Haible  <bruno@clisp.org>
36531
36532         Avoid redefinition warnings for SIZE_MAX.
36533         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
36534         Reported by Simon Josefsson.
36535
36536 2009-05-21  Bruno Haible  <bruno@clisp.org>
36537
36538         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
36539         AC_CACHE_VAL.
36540
36541 2009-05-20  Bruno Haible  <bruno@clisp.org>
36542
36543         Make zeroptr.h work on mingw.
36544         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
36545         mprotect.
36546         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
36547         * modules/memchr2-tests (configure.ac): Likewise.
36548         * modules/memcmp-tests (configure.ac): Likewise.
36549         * modules/memmem-tests (configure.ac): Likewise.
36550         * modules/memrchr-tests (configure.ac): Likewise.
36551         Reported by Simon Josefsson.
36552
36553 2009-05-20  Simon Josefsson  <simon@josefsson.org>
36554
36555         * tests/test-glob.c: Include string.h for strcmp prototype.
36556
36557 2009-05-20  Simon Josefsson  <simon@josefsson.org>
36558
36559         * modules/getdelim (Depends-on): Add explicit stdint, although it
36560         was implicitly already pulled in via realloc-posix.
36561         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
36562
36563 2009-05-20  Simon Josefsson  <simon@josefsson.org>
36564
36565         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
36566         G. Christensen" <tgc@jupiterrise.com>.
36567         * m4/sys_socket_h.m4: Check for sa_family_t.
36568         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
36569         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
36570         * tests/test-sys_socket.c: Check that sa_family_t works.
36571
36572 2009-05-18  Eric Blake  <ebb9@byu.net>
36573
36574         maint.mk: allow gnulib_dir in VPATH build
36575         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
36576
36577 2009-05-15  Jim Meyering  <meyering@redhat.com>
36578
36579         maint.mk: Give gnulib_dir a default definition.
36580         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
36581         Thus, most packages no longer need to specify this variable in cfg.mk
36582
36583 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
36584
36585         rename.m4: fix typos that would make non-mingw cross-configure fail
36586         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
36587
36588 2009-05-13  Eric Blake  <ebb9@byu.net>
36589
36590         mmap-anon: avoid out-of-order autoconf expansion
36591         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
36592         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
36593         * modules/memchr-tests (Depends-on): Add extensions.
36594         * modules/memchr2-tests (Depends-on): Add extensions.
36595         * modules/memcmp-tests (Depends-on): Add extensions.
36596         * modules/memmem-tests (Depends-on): Add extensions.
36597         * modules/memrchr-tests (Depends-on): Add extensions.
36598
36599 2009-05-13  Bruno Haible  <bruno@clisp.org>
36600
36601         Make some tests ISO C 99 compliant.
36602         * tests/zerosize-ptr.h: New file.
36603         * tests/test-memchr.c: Include zerosize-ptr.h.
36604         (main): Use a zero-size object pointer instead of NULL.
36605         * tests/test-memchr2.c: Include zerosize-ptr.h.
36606         (main): Use a zero-size object pointer instead of NULL.
36607         * tests/test-memcmp.c: Include zerosize-ptr.h.
36608         (main): Use a zero-size object pointer instead of NULL.
36609         * tests/test-memmem.c: Include zerosize-ptr.h.
36610         (main): Use a zero-size object pointer instead of NULL.
36611         * tests/test-memrchr.c: Include zerosize-ptr.h.
36612         (main): Use a zero-size object pointer instead of NULL.
36613         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
36614         m4/mmap-anon.m4.
36615         (Depends-on): Add getpagesize.
36616         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36617         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
36618         m4/mmap-anon.m4.
36619         (Depends-on): Add getpagesize.
36620         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36621         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
36622         m4/mmap-anon.m4.
36623         (Depends-on): Add getpagesize.
36624         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36625         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
36626         m4/mmap-anon.m4.
36627         (Depends-on): Add getpagesize.
36628         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36629         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
36630         m4/mmap-anon.m4.
36631         (Depends-on): Add getpagesize.
36632         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36633
36634 2009-05-12  Bruno Haible  <bruno@clisp.org>
36635
36636         Tests for module 'alignof'.
36637         * modules/alignof-tests: New file.
36638         * tests/test-alignof.c: New file.
36639
36640 2009-05-12  Bruno Haible  <bruno@clisp.org>
36641
36642         Fix alignof macro.
36643         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
36644         vendor compilers that are always correct.
36645
36646 2009-05-12  Bruno Haible  <bruno@clisp.org>
36647
36648         Make the MAP_ANONYMOUS detection work on HP-UX 11.
36649         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
36650         not whether its fully works.
36651
36652 2009-05-12  Bruno Haible  <bruno@clisp.org>
36653
36654         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
36655
36656 2009-05-12  Jim Meyering  <meyering@redhat.com>
36657
36658         * top/maint.mk: Adjust backslash alignment.
36659
36660 2009-05-11  Simon Josefsson  <simon@josefsson.org>
36661
36662         * top/maint.mk: Make $(srcdir)/build-aux configurable.
36663
36664 2009-05-11  Eric Blake  <ebb9@byu.net>
36665
36666         argp: avoid undefined behavior
36667         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
36668         macros.
36669
36670 2009-05-08  Simon Josefsson  <simon@josefsson.org>
36671
36672         * tests/test-vc-list-files-git.sh: Do git config of user.email and
36673         user.name to prevent git commit from complaining.
36674
36675 2009-05-10  Bruno Haible  <bruno@clisp.org>
36676
36677         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
36678         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
36679         it rewrites every file name only once.
36680         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
36681
36682 2009-05-08  Bruno Haible  <bruno@clisp.org>
36683
36684         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
36685         instead of 'max'.
36686
36687 2009-05-08  Simon Josefsson  <simon@josefsson.org>
36688
36689         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
36690         sockaddr_storage test.
36691
36692 2009-05-07  Simon Josefsson  <simon@josefsson.org>
36693
36694         * modules/sys_socket (Makefile.am): Substitute
36695         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
36696         * m4/sys_socket_h.m4: Check for sockaddr_storage.
36697         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
36698         * tests/test-sys_socket.c: Check sockaddr_storage.
36699
36700 2009-05-08  Bruno Haible  <bruno@clisp.org>
36701
36702         New module 'alignof'.
36703         * lib/alignof.h: New file.
36704         * modules/alignof: New file.
36705
36706 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36707             Bruno Haible  <bruno@clisp.org>
36708
36709         Fix test-file-has-acl on FreeBSD.
36710         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
36711         mask is implicitly added.
36712         * tests/test-file-has-acl.c: Include <signal.h>.
36713         (main): Terminate the test after 5 seconds.
36714         * modules/acl-tests (configure.ac): Check for alarm function.
36715
36716 2009-05-04  Bruno Haible  <bruno@clisp.org>
36717
36718         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
36719         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
36720         * modules/errno (configure.ac): Drop AC_REQUIRE.
36721         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
36722         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
36723
36724 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36725
36726         * modules/glob-tests: New module.
36727         * tests/test-glob.c: Add.
36728
36729 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36730
36731         * modules/fnmatch-tests: New module.
36732         * tests/test-fnmatch.c: Add.
36733
36734 2009-05-04  Eric Blake  <ebb9@byu.net>
36735
36736         maint: make the new no-submodule-changes rule VPATH-safe
36737         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
36738
36739 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36740             Bruno Haible  <bruno@clisp.org>
36741
36742         acl: Fix infinite loop on FreeBSD.
36743         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
36744         of return value from acl_get_entry.
36745         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
36746         Likewise.
36747
36748 2009-05-03  Bruno Haible  <bruno@clisp.org>
36749
36750         * lib/acl-internal.h (acl_entries): Clarify return value.
36751         * lib/acl_entries.c (acl_entries): Likewise.
36752
36753 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36754
36755         Bug fix in acl module.
36756         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
36757
36758 2009-05-03  Bruno Haible  <bruno@clisp.org>
36759
36760         Create gperf-generated file in the source dir, not in the build dir.
36761         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
36762         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
36763         * modules/unicase/locale-language (unicase/locale-languages.h):
36764         Likewise.
36765         * modules/unicase/special-casing (unicase/special-casing-table.h):
36766         Likewise.
36767         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
36768         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
36769         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
36770         Reported by Ralf Wildenhues.
36771
36772 2009-05-03  Bruno Haible  <bruno@clisp.org>
36773
36774         * modules/fnmatch (Description, configure.ac): Taken from
36775         fnmatch-posix.
36776         * modules/fnmatch-posix: Turn into a symbolic reference to the
36777         'fnmatch' module, and deprecate.
36778         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
36779
36780 2009-05-03  Bruno Haible  <bruno@clisp.org>
36781
36782         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
36783         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
36784         Reported by Ralf Wildenhues.
36785
36786 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36787
36788         * m4/fnmatch.m4: Fix fnmatch re-define.
36789
36790 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36791
36792         priv-set: new module and tests; adapt write-any-file
36793         * lib/priv-set.c: New file.
36794         * lib/priv-set.h: New file.
36795         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
36796         * lib/write-any-file.c: Simplify by using priv-set module.
36797         * m4/priv-set.m4: New file.
36798         * modules/priv-set: New file.
36799         * modules/unlinkdir: Add dependency on priv-set module.
36800         * modules/write-any-file: Likewise.
36801
36802         Tests for module 'priv-set'.
36803         * modules/priv-set-tests: New file.
36804         * tests/test-priv-set.c: New file.
36805
36806 2009-05-03  Jim Meyering  <meyering@redhat.com>
36807             Bruno Haible  <bruno@clisp.org>
36808
36809         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
36810         use the converted UTF-8 variant of the name instead.
36811
36812 2009-05-03  Jim Meyering  <meyering@redhat.com>
36813
36814         tests: tighten some getdate tests
36815         * tests/test-getdate.c (main): Tighten tests: require equality,
36816         not just greater than.  Set TZ envvar to UTC0.
36817
36818 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
36819
36820         getdate: correctly interpret "next monday" when run on a Monday
36821         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
36822         that e.g., "next tues" (when run on a tuesday) results in a date
36823         that is one week in the future, and not today's date.
36824         I.e., add a week when the wday is the same as the current one.
36825         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
36826         and earlier by Martin Bernreuther and Jan Minář.
36827         * tests/test-getdate.c (main): Check that "next DAY" is always in
36828         the future and that "last DAY" is always in the past.
36829
36830 2009-05-02  Jim Meyering  <meyering@redhat.com>
36831
36832         build: ensure that a release build fails when a submodule is unclean
36833         * top/maint.mk (no-submodule-changes): New rule.
36834         (alpha beta major): Depend on it.
36835
36836 2009-05-02  Bruno Haible  <bruno@clisp.org>
36837
36838         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
36839         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
36840         shell variable gl_fnmatch_required to detect which variant is
36841         requested.
36842         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
36843         gl_FUNC_FNMATCH_POSIX.
36844         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
36845         exclude fnmatch-posix.
36846
36847 2009-05-02  Bruno Haible  <bruno@clisp.org>
36848
36849         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
36850         * modules/mbsrtowcs (License): Change to LGPLv2+.
36851         * modules/strnlen1 (License): Likewise.
36852         Reported by Simon Josefsson.
36853
36854 2009-05-02  Bruno Haible  <bruno@clisp.org>
36855
36856         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
36857         "cross".
36858         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
36859         gnulib-tool was called with option --source-base=lib.
36860
36861 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36862
36863         Use automake *-local hooks without commands, for extensibility.
36864         * modules/localcharset (Makefile.am): Rename install-exec-local
36865         rule to install-exec-localcharset, and make it a prerequisite of
36866         install-exec-local.  Likewise, rename the uninstall-local rule to
36867         uninstall-localcharset, and make it a prerequisite of the former.
36868
36869 2009-05-01  Bruno Haible  <bruno@clisp.org>
36870
36871         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
36872         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
36873         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
36874         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
36875         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
36876         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
36877         m4/locale-zh.m4, m4/codeset.m4.
36878
36879         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
36880         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
36881         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
36882         m4/locale-zh.m4.
36883
36884         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
36885         REPLACE_WCRTOMB if mbstate_t must be replaced.
36886         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
36887         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
36888
36889 2009-05-01  Bruno Haible  <bruno@clisp.org>
36890
36891         Avoid compiler warnings when redefining macros defined by <libintl.h>.
36892         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
36893         dngettext, dcngettext, textdomain, bindtextdomain,
36894         bind_textdomain_codeset): Undefine before redefining.
36895
36896 2009-04-30  Bruno Haible  <bruno@clisp.org>
36897
36898         Fix bug introduced on 2009-04-25.
36899         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
36900         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
36901         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
36902         is defined.
36903         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
36904         is defined.
36905         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
36906         is defined.
36907         Reported by Elbert_Pol <elbert.pol@gmail.com>.
36908
36909 2009-04-28  Bruno Haible  <bruno@clisp.org>
36910
36911         Comment tweaks.
36912         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
36913         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
36914         * lib/unicase.h (u*_casexfrm): Likewise.
36915         Reported by Paolo Bonzini.
36916
36917 2009-04-28  Bruno Haible  <bruno@clisp.org>
36918
36919         Fix a compilation error.
36920         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
36921         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
36922         Reported by Jim Meyering.
36923
36924 2009-04-27  Bruno Haible  <bruno@clisp.org>
36925
36926         New module 'libunistring'.
36927         * modules/libunistring: New file.
36928         * m4/libunistring.m4: New file.
36929         * MODULES.html.sh (Unicode string functions): Add it.
36930
36931 2009-04-27  Eric Blake  <ebb9@byu.net>
36932
36933         maint.mk: allow package-specific header to provide <config.h>
36934         * top/maint.mk (sc_require_config_h): New variable.
36935         (sc_require_config_h, sc_require_config_h_first): Use it.
36936
36937 2009-04-27  Simon Josefsson  <simon@josefsson.org>
36938
36939         * top/maint.mk (sc_avoid_if_before_free): Except
36940         useless-if-before-free script.
36941
36942 2009-04-27  Eric Blake  <ebb9@byu.net>
36943
36944         maintainer-makefile: depend on all required helper scripts
36945         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
36946         useless-if-before-free.
36947         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
36948         version, rather than assuming gnulib checkout is available.
36949         Reported by Simen Josefsson.
36950
36951 2009-04-26  Bruno Haible  <bruno@clisp.org>
36952
36953         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
36954         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
36955         "../" or "..".
36956
36957 2009-04-26  Bruno Haible  <bruno@clisp.org>
36958
36959         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
36960         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
36961         AC_LIB_HAVE_LINKFLAGS.
36962
36963 2009-04-26  Bruno Haible  <bruno@clisp.org>
36964
36965         Simplify calling convention of u*_conv_from_encoding.
36966         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
36967         u32_conv_from_encoding): Expect a resultbuf argument and return the
36968         result directly as a pointer.
36969         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
36970         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
36971         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
36972         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
36973         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
36974         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
36975         Update.
36976         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
36977         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
36978         * lib/vasnprintf.c (VASNPRINTF): Update.
36979         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
36980         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
36981         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
36982         * NEWS: Mention the change.
36983
36984 2009-04-26  Bruno Haible  <bruno@clisp.org>
36985
36986         Simplify calling convention of u*_conv_to_encoding.
36987         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
36988         u32_conv_to_encoding): Expect a resultbuf argument and return the
36989         result directly as a pointer.
36990         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
36991         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
36992         freeing scaled_offsets if mem_iconveha failed.
36993         * lib/unicase/u-casexfrm.h (FUNC): Update.
36994         * lib/uninorm/u-normxfrm.h (FUNC): Update.
36995         * lib/vasnprintf.c (VASNPRINTF): Update.
36996         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
36997         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
36998         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
36999         * NEWS: Mention the change.
37000
37001 2009-04-26  Bruno Haible  <bruno@clisp.org>
37002
37003         Avoid test failures on AIX and OSF/1.
37004         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
37005         malloc(0).
37006         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37007         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37008         Likewise.
37009         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
37010         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
37011         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
37012         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
37013         * doc/posix-functions/malloc.texi: Document the portability problem
37014         related to malloc(0).
37015
37016 2009-04-26  Bruno Haible  <bruno@clisp.org>
37017
37018         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
37019         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
37020         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
37021
37022 2009-04-25  Bruno Haible  <bruno@clisp.org>
37023
37024         Avoid link error when creating a namespace clean library.
37025         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
37026         as macro with arguments if already defined as an alias.
37027         * lib/signbitf.c (gl_signbitf): Don't undefine.
37028         * lib/signbitd.c (gl_signbitd): Don't undefine.
37029         * lib/signbitl.c (gl_signbitl): Don't undefine.
37030
37031 2009-04-25  Jim Meyering  <meyering@redhat.com>
37032
37033         vc-list-files: fix another quoting bug
37034         * build-aux/vc-list-files: Avoid sed backslash expansion
37035         of pathological directory names.
37036
37037 2009-04-25  Eric Blake  <ebb9@byu.net>
37038
37039         vc-list-files: fix shell quoting error
37040         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
37041         timestamp.
37042
37043 2009-04-25  Jim Meyering  <meyering@redhat.com>
37044
37045         vc-list-files: restore lost functionality with subdir argument
37046         * build-aux/vc-list-files: When given a non-"." sub-directory
37047         argument, substitute the $dir/ prefix back onto each resulting name.
37048         Otherwise, coreutils' root_tests check would fail.
37049
37050 2009-04-24  Eric Blake  <ebb9@byu.net>
37051
37052         vc-list-files: ignore git symlinks
37053         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
37054         than ls-files, to ignore git symlinks.
37055
37056         maint.mk: import improvements from m4
37057         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
37058         (move_if_change): Delete unused macro.
37059         (news-date-check, vc-diff-check): Support VPATH builds.
37060         (announcement): Likewise.  Split --bootstrap-tools list...
37061         (boostrap-tools): ...into separate list, which can be overridden
37062         in cfg.mk.
37063         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
37064         requiring dependency on useless-if-before-free module.
37065         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
37066         Support VPATH builds.
37067
37068 2009-04-24  Jim Meyering  <meyering@redhat.com>
37069
37070         maint.mk: remove coreutils-specific rules and variables
37071         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
37072         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
37073         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
37074
37075         maint.mk: remove obsolete rule
37076         * top/maint.mk (rel-check): Remove rule.
37077         (WGET, WGETFLAGS): Remove now-unused variables.
37078
37079 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37080
37081         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
37082         consistency.
37083
37084         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
37085         '$(PATH_SEPARATOR)' instead of ':'.
37086
37087 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37088
37089         * lib/getopt1.c (main): Use 'const' for static array.
37090
37091 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37092
37093         * top/maint.mk: Sync with coreutils.
37094         * NEWS: Explain incompatibilities.
37095
37096 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37097             Bruno Haible  <bruno@clisp.org>
37098
37099         Fix cross-compilation results.
37100         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
37101         statement, as third argument of AC_TRY_RUN.
37102         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
37103         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
37104         Likewise.
37105         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
37106         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
37107         Likewise.
37108         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
37109         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
37110         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
37111
37112 2009-04-20  Bruno Haible  <bruno@clisp.org>
37113
37114         Avoid test failure on mingw.
37115         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
37116
37117 2009-04-20  Bruno Haible  <bruno@clisp.org>
37118
37119         Avoid compilation error on mingw.
37120         * modules/localename-tests (Depends-on): Add locale.
37121
37122 2009-04-19  Bruno Haible  <bruno@clisp.org>
37123
37124         Support for building a shared library on Windows platforms.
37125         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
37126         (main): Test the presence of UNINORM_NFC here.
37127         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
37128         (main): Test the presence of UNINORM_NFD here.
37129         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
37130         (main): Test the presence of UNINORM_NFKC here.
37131         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
37132         (main): Test the presence of UNINORM_NFKD here.
37133
37134 2009-04-19  Bruno Haible  <bruno@clisp.org>
37135
37136         Avoid a compiler warning.
37137         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
37138         Change type of variable 'sequence'.
37139
37140 2009-04-19  Bruno Haible  <bruno@clisp.org>
37141
37142         * modules/configmake (Makefile.am): When the contents of configmake.h
37143         does not change, arrange to preserve its modification time.
37144
37145 2009-04-17  Simon Josefsson  <simon@josefsson.org>
37146
37147         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
37148         gettext domain.
37149
37150 2009-04-16  Jim Meyering  <meyering@redhat.com>
37151
37152         useless-if-before-free: improve conversion code
37153         * build-aux/useless-if-before-free: Adjust code-in-comment to match
37154         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
37155
37156 2009-04-14  Bruno Haible  <bruno@clisp.org>
37157
37158         * modules/fcntl (Depends-on): Add extensions.
37159         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
37160
37161 2009-04-12  Ben Pfaff  <blp@gnu.org>
37162
37163         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
37164         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
37165
37166 2009-03-20  Ben Pfaff  <blp@gnu.org>
37167
37168         Make rename replace existing destinations on Windows.
37169         * m4/rename.m4: Add test for Mingw.
37170         * lib/rename.c: Add rename replacement that uses MoveFileEx with
37171         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
37172         * doc/posix-functions/rename.texi: Document.
37173
37174 2009-04-10  Bruno Haible  <bruno@clisp.org>
37175
37176         New include file "iconveh.h".
37177         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
37178         * lib/striconveh.h: Include it.
37179         (enum iconv_ilseq_handler): Remove definition.
37180         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
37181         striconveh.h.
37182         * lib/striconveha.c: Include striconveh.h.
37183         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
37184         * modules/striconveh (Files): Add lib/iconveh.h.
37185         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
37186         lib/striconveh.h.
37187
37188 2009-04-10  Bruno Haible  <bruno@clisp.org>
37189
37190         * lib/uniconv.h: Update comment.
37191
37192 2009-04-10  Bruno Haible  <bruno@clisp.org>
37193
37194         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
37195         always.
37196         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
37197         * lib/unistr/u16-mbtouc-aux.c: Likewise.
37198         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
37199         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
37200         "unistring-notinline.h", so that the function gets defined always.
37201         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
37202         * lib/unistr/u8-uctomb.c: Likewise.
37203         * lib/unistr/u16-mbtouc.c: Likewise.
37204         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
37205         * lib/unistr/u16-uctomb.c: Likewise.
37206         * lib/unistr/u32-mbtouc.c: Likewise.
37207         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
37208         * lib/unistr/u32-uctomb.c: Likewise.
37209
37210 2009-04-10  Bruno Haible  <bruno@clisp.org>
37211
37212         Mark 'utime' obsolete.
37213         * modules/utime (Status, Notice): New sections.
37214         Suggested by Jim Meyering.
37215
37216         Fix cross-compile guess for utime test.
37217         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
37218         autoconf.
37219         * doc/posix-functions/utime.texi: Give more precisions.
37220         Reported by Jan <ipif@ymail.com>.
37221
37222 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
37223
37224         filevercmp: correct today's change
37225         * lib/filevercmp.c: Also handle coreutils' test inputs.
37226         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
37227
37228         Fix regression in 'filevercmp' module. Thanks Sven Joachim
37229         for reporting it.
37230         * lib/filevercmp.c: Special handle for "", "." and "..".
37231         * tests/test-filevercmp.c: Enlarge the set suite.
37232
37233 2009-04-07  Jim Meyering  <meyering@redhat.com>
37234
37235         useless-if-before-free: show how to remove braced useless free, too
37236         * build-aux/useless-if-before-free: still only in a comment, though.
37237
37238 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
37239
37240         maint.mk: import changes to syntax-check macros from coreutils
37241         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
37242         Use them in the relevant macros.
37243
37244 2009-04-06  Bruno Haible  <bruno@clisp.org>
37245
37246         Fix unportable use of bit-fields.
37247         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
37248         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
37249         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
37250
37251 2009-04-06  Bruno Haible  <bruno@clisp.org>
37252
37253         Avoid test failures on AIX and OSF/1.
37254         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
37255         that malloc(0) = NULL.
37256         * tests/unicase/test-u8-tolower.c (check): Likewise.
37257         * tests/unicase/test-u8-totitle.c (check): Likewise.
37258         * tests/unicase/test-u8-toupper.c (check): Likewise.
37259         * tests/unicase/test-u16-casefold.c (check): Likewise.
37260         * tests/unicase/test-u16-tolower.c (check): Likewise.
37261         * tests/unicase/test-u16-totitle.c (check): Likewise.
37262         * tests/unicase/test-u16-toupper.c (check): Likewise.
37263         * tests/unicase/test-u32-casefold.c (check): Likewise.
37264         * tests/unicase/test-u32-tolower.c (check): Likewise.
37265         * tests/unicase/test-u32-totitle.c (check): Likewise.
37266         * tests/unicase/test-u32-toupper.c (check): Likewise.
37267         * tests/uninorm/test-u8-nfc.c (check): Likewise.
37268         * tests/uninorm/test-u8-nfd.c (check): Likewise.
37269         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
37270         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
37271         * tests/uninorm/test-u16-nfc.c (check): Likewise.
37272         * tests/uninorm/test-u16-nfd.c (check): Likewise.
37273         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
37274         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
37275         * tests/uninorm/test-u32-nfc.c (check): Likewise.
37276         * tests/uninorm/test-u32-nfd.c (check): Likewise.
37277         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
37278         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
37279
37280 2009-04-05  Bruno Haible  <bruno@clisp.org>
37281
37282         Work around an autoconf limitation.
37283         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
37284         comment line if it would be longer than 3 KB.
37285
37286 2009-04-05  Bruno Haible  <bruno@clisp.org>
37287
37288         Avoid test failure with libiconv-1.13.
37289         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
37290         of the expected test results.
37291
37292 2009-04-05  Bruno Haible  <bruno@clisp.org>
37293
37294         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
37295         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
37296         that it should be installed.
37297
37298 2009-04-05  Bruno Haible  <bruno@clisp.org>
37299
37300         * gnulib-tool: New option --copy-file.
37301         (func_usage): Document it.
37302         (func_dest_tmpfilename): Moved out of func_import.
37303         (func_add_file, func_update_file): New functions, extracted from
37304         func_import.
37305         (func_import): Update.
37306
37307 2009-04-05  Karl Berry  <karl@gnu.org>
37308
37309         * README: prominently mention gnulib-tool.
37310         Rearrange sections so getting the code is near the top.
37311
37312 2009-04-05  Bruno Haible  <bruno@clisp.org>
37313
37314         * lib/unicase.h: Mention u*_cmp2.
37315         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
37316         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
37317         * lib/unicase/ulc-casecmp.c: Likewise.
37318         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
37319         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
37320         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
37321         unistr/u8-cmp.
37322         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
37323         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
37324         unistr/u16-cmp.
37325         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
37326         unistr/u32-cmp.
37327
37328         * lib/uninorm.h: Mention u*_cmp2.
37329         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
37330         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
37331         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
37332         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
37333         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
37334         unistr/u8-cmp.
37335         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
37336         unistr/u16-cmp.
37337         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
37338         unistr/u32-cmp.
37339
37340         New module 'unistr/u32-cmp2'.
37341         * lib/unistr/u32-cmp2.c: New file.
37342         * modules/unistr/u32-cmp2: New file.
37343
37344         New module 'unistr/u16-cmp2'.
37345         * lib/unistr/u16-cmp2.c: New file.
37346         * modules/unistr/u16-cmp2: New file.
37347
37348         New module 'unistr/u8-cmp2'.
37349         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
37350         * lib/unistr/u8-cmp2.c: New file.
37351         * lib/unistr/u-cmp2.h: New file.
37352         * modules/unistr/u8-cmp2: New file.
37353
37354 2009-04-05  Bruno Haible  <bruno@clisp.org>
37355
37356         * lib/unictype.h (uc_property_is_valid): New macro.
37357         * tests/unictype/test-pr_byname.c (main): Use it.
37358
37359         * lib/unistr.h: Doc fixes.
37360         * lib/uniconv.h: Doc fixes.
37361         * lib/unictype.h: Doc fixes.
37362
37363 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
37364
37365         Port coreutils 7.2 to Solaris 8.
37366
37367         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
37368         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
37369         for Solaris 8.  This is a bit of a hack, as it means it's the
37370         caller's responsibility to add -lnsl if needed, but most likely it
37371         won't be needed since only getaddrinfo uses this and getaddrinfo
37372         isn't needed on Solaris 8.
37373
37374         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
37375         problem to Solaris 8 encountered with coreutils 7.2, which
37376         resulted in a message "fnmatch.c:292: warning: passing argument 4
37377         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
37378         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
37379
37380 2009-04-03  Simon Josefsson  <simon@josefsson.org>
37381
37382         * m4/ld-version-script.m4: Add FIXME comment.
37383
37384 2009-04-02  Simon Josefsson  <simon@josefsson.org>
37385
37386         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
37387         SOVERSION variable.
37388
37389 2009-04-02  Bruno Haible  <bruno@clisp.org>
37390
37391         * Makefile (info, html, dvi, pdf): Combine the rules.
37392         Suggested by Jim Meyering.
37393
37394 2009-04-01  Bruno Haible  <bruno@clisp.org>
37395
37396         * Makefile (info, html, dvi, pdf): New targets.
37397         Reported by Reuben Thomas <rrt@sc3d.org>.
37398
37399 2009-04-01  Bruno Haible  <bruno@clisp.org>
37400
37401         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
37402         can be put into PATH.
37403         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
37404
37405 2009-04-01  Bruno Haible  <bruno@clisp.org>
37406
37407         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
37408
37409 2009-04-01  Bruno Haible  <bruno@clisp.org>
37410
37411         Rename module 'visibility'.
37412         * modules/lib-symbol-visibility: Renamed from modules/visibility.
37413         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
37414         * doc/gnulib.texi: Update.
37415         * MODULES.html.sh (Misc): Update.
37416         * NEWS: Mention the change.
37417
37418 2009-04-01  Simon Josefsson  <simon@josefsson.org>
37419
37420         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
37421         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
37422         Eric Blake <ebb9@byu.net> for review.
37423         * MODULES.html.sh: Add lib-msvc-compat.
37424         * doc/gnulib.texi: Link to new section.
37425         * m4/ld-output-def.m4: New file.
37426         * doc/ld-output-def.texi: New file.
37427
37428 2009-04-01  Simon Josefsson  <simon@josefsson.org>
37429
37430         Rename ld-version-script to lib-symbol-versions.  Suggested by
37431         Bruno Haible <bruno@clisp.org>.
37432         * modules/ld-version-script: Renamed to lib-symbol-versions.
37433         * doc/ld-version-script.texi: Fix module name.
37434         * MODULES.html.sh: Add lib-symbol-versions.
37435
37436 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37437
37438         * modules/u64-tests: New file.
37439         * tests/test-u64.c: New file.
37440
37441 2009-03-04  Simon Josefsson  <simon@josefsson.org>
37442
37443         * MODULES.html.sh: Mention u64.
37444         * modules/u64: New module.
37445         * modules/crypto/sha512: Depend on u64 module instead of providing
37446         u64.h.
37447
37448 2009-03-27  Eric Blake  <ebb9@byu.net>
37449
37450         test-strerror: make debugging EAI_SYSTEM easier
37451         * modules/getaddrinfo-tests (Depends-on): Add strerror.
37452         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
37453         failure was EAI_SYSTEM.
37454
37455 2009-03-25  Bruno Haible  <bruno@clisp.org>
37456
37457         Fix a problem with --enable-relocatable on Solaris 7.
37458         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
37459         since 2008-02-24.
37460
37461 2009-03-25  Eric Blake  <ebb9@byu.net>
37462
37463         test-sockets: avoid gcc warning
37464         * tests/test-sockets.c (main): Silence compiler warning.
37465
37466 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
37467
37468         New modules nproc, pthread, contributed by Glen Lenker.
37469
37470         * MODULES.html.sh: Add pthread, nproc.
37471         * lib/nproc.c: New file.
37472         * lib/nproc.h: New file.
37473         * lib/pthread.in.h: New file.
37474         * m4/pthread.m4: New file.
37475         * modules/nproc: New file.
37476         * modules/pthread: New file.
37477
37478 2009-03-24  Simon Josefsson  <simon@josefsson.org>
37479
37480         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
37481         New variable.
37482
37483 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
37484
37485         filevercmp: handle simple~ and numbered.~3~ backup suffixes
37486         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
37487         * tests/test-filevercmp.c: Add tests for backup suffixes.
37488
37489 2009-03-24  Simon Josefsson  <simon@josefsson.org>
37490
37491         * modules/stdlib (Depends-on): Add stdint, needed when defining
37492         struct random_data on, for example, HP-UX 10.20.  Reported by
37493         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37494
37495 2009-03-24  Simon Josefsson  <simon@josefsson.org>
37496
37497         * lib/readline.c (readline): Call fflush on stdout after printing
37498         prompt.
37499
37500 2009-03-20  Bruno Haible  <bruno@clisp.org>
37501
37502         Remove dependency from 'close' module to -lws2_32 on native Windows.
37503         * lib/close-hook.h: New file.
37504         * lib/close-hook.c: New file.
37505         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
37506         w32sock.h.
37507         (_gl_close_fd_maybe_socket): Remove function.
37508         (rpl_close): Invoke execute_all_close_hooks instead of
37509         _gl_close_fd_maybe_socket.
37510         * lib/sockets.c: Include close-hook.h, w32sock.h.
37511         (close_fd_maybe_socket): New function, essentially from lib/close.c.
37512         (close_sockets_hook): New variable.
37513         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
37514         (gl_sockets_cleanup): Unregister it.
37515         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
37516         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
37517         * modules/close-hook: New file.
37518         * modules/close (Files): Remove lib/w32sock.h.
37519         (Depends-on): Add close-hook.
37520         (Link): Remove section.
37521         * modules/sockets (Files): Add lib/w32sock.h.
37522         (Depends-on): Add close-hook.
37523         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
37524         invocation.
37525         * NEWS: Mention that LIB_CLOSE is gone.
37526
37527 2009-03-23  Eric Blake  <ebb9@byu.net>
37528
37529         signal-tests: test previous patch
37530         * tests/test-signal.c: New file.
37531         * modules/signal-tests: Likewise.
37532
37533         signal.h: always support 'volatile sig_atomic_t'
37534         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
37535         (gl_SIGNAL_H_DEFAULTS): Add a default.
37536         * modules/signal (Makefile.am): Substitute if needed.
37537         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
37538         users can blindly add volatile.
37539         * doc/posix-headers/signal.texi (signal.h): Document it.
37540         Reported by Matthew Woehlke.
37541
37542 2009-03-23  Jim Meyering  <meyering@redhat.com>
37543
37544         pathmax: PATH_MAX: use pathconf only when available
37545         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
37546         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
37547         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
37548         This avoids a link failure in a PSP cross-compilation environment
37549         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
37550
37551         * lib/vasnprintf.c (divide): Fix typo in comment.
37552
37553 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37554
37555         * gnulib-tool (func_filter_filelist): Fix comment.
37556
37557 2009-03-20  Bruno Haible  <bruno@clisp.org>
37558
37559         Make sockets.h self-contained.
37560         * lib/sockets.c: Include sockets.h first.
37561         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
37562
37563 2009-03-19  Eric Blake  <ebb9@byu.net>
37564
37565         doc: mention more functions added in cygwin 1.7.0
37566         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
37567         addition.
37568         * doc/posix-functions/log2f.texi: Likewise.
37569
37570 2009-03-19  Jim Meyering  <meyering@redhat.com>
37571
37572         fsusage: avoid syntax error due to statement-before-declaration
37573         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
37574         after all declarations.  Reported by Matthew Woehlke in
37575         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
37576
37577 2009-03-18  Eric Blake  <ebb9@byu.net>
37578
37579         build-aux/compile: sync from automake
37580         * build-aux/compile: New file, from automake.
37581         * config/srclist.txt: Mention build-aux/compile.
37582
37583 2009-03-17  Bruno Haible  <bruno@clisp.org>
37584
37585         * lib/git-merge-changelog.c: Fix typo in comment.
37586         Reported by Reuben Thomas <rrt@sc3d.org>.
37587
37588 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
37589
37590         * m4/regex.m4: update and improve help for
37591         --without-included-regex.
37592
37593 2009-03-17  Simon Josefsson  <simon@josefsson.org>
37594
37595         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
37596         failure on missing include files.
37597
37598 2009-03-17  Eric Blake  <ebb9@byu.net>
37599
37600         doc: mention more functions added in cygwin 1.7.0
37601         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
37602         addition.
37603         * doc/posix-functions/fwscanf.texi: Likewise.
37604         * doc/posix-functions/swprintf.texi: Likewise.
37605         * doc/posix-functions/swscanf.texi: Likewise.
37606         * doc/posix-functions/vfwprintf.texi: Likewise.
37607         * doc/posix-functions/vfwscanf.texi: Likewise.
37608         * doc/posix-functions/vswprintf.texi: Likewise.
37609         * doc/posix-functions/vswscanf.texi: Likewise.
37610         * doc/posix-functions/vwprintf.texi: Likewise.
37611         * doc/posix-functions/vwscanf.texi: Likewise.
37612         * doc/posix-functions/wcscasecmp.texi: Likewise.
37613         * doc/posix-functions/wcsdup.texi: Likewise.
37614         * doc/posix-functions/wcsftime.texi: Likewise.
37615         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37616         * doc/posix-functions/wprintf.texi: Likewise.
37617         * doc/posix-functions/wscanf.texi: Likewise.
37618         * doc/glibc-functions/gethostbyname2.texi: Likewise.
37619
37620 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37621
37622         maint.mk: really add $(AM_MAKEFLAGS)
37623         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
37624         was inadvertently omitted in the last commit.
37625         Spotted by Bruno Haible.
37626
37627         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
37628         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
37629         $(AM_MAKEFLAGS)' rather than plain `make'.
37630
37631         gnulib-tool: execute $MAKE not make
37632         * gnulib-tool: Default $MAKE to 'make'.
37633         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
37634         than make.  Initialize $MAKE in the do-autobuild script.
37635
37636         gnulib-tool: use $MAKE not make in generated files
37637         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
37638         make, in generated files.  Initialize $MAKE in the do-autobuild
37639         script.
37640
37641         * top/GNUmakefile (_have-git-version-gen): Fix typo.
37642
37643         GNUmakefile: disable parallelism only for multiple, recursive targets
37644         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
37645         additions in the Makefile.
37646         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
37647         by Automake.
37648         (.NOTPARALLEL): Only disable parallel builds if multiple targets
37649         are listed on the command line and at least one of them is
37650         listed in $(ALL_RECURSIVE_TARGETS).
37651
37652 2009-03-14  Bruno Haible  <bruno@clisp.org>
37653
37654         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
37655         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
37656         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
37657         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
37658         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
37659         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
37660         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
37661         unistr/u8-uctomb.
37662         * modules/unistr/u8-strchr (Depends-on): Likewise.
37663         * modules/unistr/u8-strrchr (Depends-on): Likewise.
37664         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
37665         unistr/u16-uctomb.
37666         * modules/unistr/u16-strchr (Depends-on): Likewise.
37667         * modules/unistr/u16-strrchr (Depends-on): Likewise.
37668
37669 2009-03-12  Bruno Haible  <bruno@clisp.org>
37670
37671         Work around select() bug on Interix 3.5.
37672         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
37673         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
37674         * m4/select.m4: New file.
37675         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
37676         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
37677         * modules/select (Files): Add m4/select.m4.
37678         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
37679         * modules/nanosleep (Depends-on): Add select.
37680         * modules/poll (Depends-on): Likewise.
37681         * doc/posix-functions/select.texi: Mention the Interix bug.
37682         Reported by Markus Duft <mduft@gentoo.org>.
37683
37684         * lib/select.c: Renamed from lib/winsock-select.c.
37685         * modules/select (Files): Add lib/select.c, remove
37686         lib/winsock-select.c.
37687         (configure.ac): Update.
37688
37689 2009-03-12  Jim Meyering  <meyering@redhat.com>
37690
37691         avoid gcc warnings about unused macro definitions
37692         * lib/readtokens.c (STREQ): Remove unused definition.
37693         * lib/xmalloc.c (SIZE_MAX): Likewise.
37694         * lib/openat-die.c (N_): Likewise.
37695         * lib/mountlist.c (SIZE_MAX): Remove definition.
37696         Instead, include <stdint.h>.
37697         * lib/readutmp.c: Likewise.
37698         * modules/readutmp (Depends-on): Add stdint.
37699         * modules/mountlist (Depends-on): Add stdint.
37700         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
37701
37702 2009-03-10  Bruno Haible  <bruno@clisp.org>
37703
37704         Tests for module 'mbmemcasecoll'.
37705         * modules/mbmemcasecoll-tests: New file.
37706         * tests/test-mbmemcasecoll1.sh: New file.
37707         * tests/test-mbmemcasecoll2.sh: New file.
37708         * tests/test-mbmemcasecoll3.sh: New file.
37709         * tests/test-mbmemcasecoll.c: New file.
37710
37711         New module 'mbmemcasecoll'.
37712         * lib/mbmemcasecoll.h: New file.
37713         * lib/mbmemcasecoll.c: New file.
37714         * modules/mbmemcasecoll: New file.
37715
37716         * tests/test-mbmemcasecmp.h: New file, extracted from
37717         tests/test-mbmemcasecmp.c.
37718         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
37719         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
37720         (main): Update.
37721         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
37722
37723 2009-03-09  Bruno Haible  <bruno@clisp.org>
37724
37725         Tests for module 'mbmemcasecmp'.
37726         * modules/mbmemcasecmp-tests: New file.
37727         * tests/test-mbmemcasecmp1.sh: New file.
37728         * tests/test-mbmemcasecmp2.sh: New file.
37729         * tests/test-mbmemcasecmp3.sh: New file.
37730         * tests/test-mbmemcasecmp.c: New file.
37731
37732         New module 'mbmemcasecmp'.
37733         * lib/mbmemcasecmp.h: New file.
37734         * lib/mbmemcasecmp.c: New file.
37735         * modules/mbmemcasecmp: New file.
37736
37737 2009-03-09  Bruno Haible  <bruno@clisp.org>
37738
37739         Tests for module 'unicase/ulc-casecoll'.
37740         * modules/unicase/ulc-casecoll-tests: New file.
37741         * tests/unicase/test-ulc-casecoll1.sh: New file.
37742         * tests/unicase/test-ulc-casecoll2.sh: New file.
37743         * tests/unicase/test-ulc-casecoll.c: New file.
37744
37745         New module 'unicase/ulc-casecoll'.
37746         * lib/unicase.h (ulc_casecoll): New declaration.
37747         * lib/unicase/ulc-casecoll.c: New file.
37748         * modules/unicase/ulc-casecoll: New file.
37749
37750         New module 'unicase/ulc-casexfrm'.
37751         * lib/unicase.h (ulc_casexfrm): New declaration.
37752         * lib/unicase/ulc-casexfrm.c: New file.
37753         * modules/unicase/ulc-casexfrm: New file.
37754
37755 2009-03-09  Bruno Haible  <bruno@clisp.org>
37756
37757         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
37758         invocations.
37759
37760         * m4/mbscasecmp.m4: Remove file.
37761         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
37762         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
37763
37764         * m4/mbscasestr.m4: Remove file.
37765         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
37766         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
37767
37768         * m4/mbschr.m4: Remove file.
37769         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
37770         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
37771
37772         * m4/mbscspn.m4: Remove file.
37773         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
37774         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
37775
37776         * m4/mbslen.m4: Remove file.
37777         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
37778         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
37779
37780         * m4/mbsncasecmp.m4: Remove file.
37781         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
37782         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
37783
37784         * m4/mbsnlen.m4: Remove file.
37785         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
37786         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
37787
37788         * m4/mbspbrk.m4: Remove file.
37789         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
37790         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
37791
37792         * m4/mbspcasecmp.m4: Remove file.
37793         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
37794         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
37795
37796         * m4/mbsrchr.m4: Remove file.
37797         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
37798         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
37799
37800         * m4/mbssep.m4: Remove file.
37801         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
37802         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
37803
37804         * m4/mbsspn.m4: Remove file.
37805         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
37806         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
37807
37808         * m4/mbsstr.m4: Remove file.
37809         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
37810         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
37811
37812         * m4/mbstok_r.m4: Remove file.
37813         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
37814         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
37815
37816         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
37817
37818         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
37819         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
37820
37821         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
37822
37823 2009-03-08  Bruno Haible  <bruno@clisp.org>
37824
37825         Tests for module 'unicase/ulc-casecmp'.
37826         * modules/unicase/ulc-casecmp-tests: New file.
37827         * tests/unicase/test-ulc-casecmp1.sh: New file.
37828         * tests/unicase/test-ulc-casecmp2.sh: New file.
37829         * tests/unicase/test-ulc-casecmp.c: New file.
37830
37831         New module 'unicase/ulc-casecmp'.
37832         * lib/unicase.h (ulc_casecmp): New declaration.
37833         * lib/unicase/ulc-casecmp.c: New file.
37834         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
37835         'const SRC_UNIT *'.
37836         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
37837         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
37838         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
37839         * modules/unicase/ulc-casecmp: New file.
37840
37841         Tests for module 'unicase/u32-is-cased'.
37842         * modules/unicase/u32-is-cased-tests: New file.
37843         * tests/unicase/test-u32-is-cased.c: New file.
37844
37845         Tests for module 'unicase/u16-is-cased'.
37846         * modules/unicase/u16-is-cased-tests: New file.
37847         * tests/unicase/test-u16-is-cased.c: New file.
37848
37849         Tests for module 'unicase/u8-is-cased'.
37850         * modules/unicase/u8-is-cased-tests: New file.
37851         * tests/unicase/test-u8-is-cased.c: New file.
37852         * tests/unicase/test-is-cased.h: New file.
37853
37854         New module 'unicase/u32-is-cased'.
37855         * lib/unicase/u32-is-cased.c: New file.
37856         * modules/unicase/u32-is-cased: New file.
37857
37858         New module 'unicase/u16-is-cased'.
37859         * lib/unicase/u16-is-cased.c: New file.
37860         * modules/unicase/u16-is-cased: New file.
37861
37862         New module 'unicase/u8-is-cased'.
37863         * lib/unicase/u8-is-cased.c: New file.
37864         * lib/unicase/u-is-cased.h: New file.
37865         * modules/unicase/u8-is-cased: New file.
37866
37867         Tests for module 'unicase/u32-is-casefolded'.
37868         * modules/unicase/u32-is-casefolded-tests: New file.
37869         * tests/unicase/test-u32-is-casefolded.c: New file.
37870
37871         Tests for module 'unicase/u16-is-casefolded'.
37872         * modules/unicase/u16-is-casefolded-tests: New file.
37873         * tests/unicase/test-u16-is-casefolded.c: New file.
37874
37875         Tests for module 'unicase/u8-is-casefolded'.
37876         * modules/unicase/u8-is-casefolded-tests: New file.
37877         * tests/unicase/test-u8-is-casefolded.c: New file.
37878         * tests/unicase/test-is-casefolded.h: New file.
37879
37880         New module 'unicase/u32-is-casefolded'.
37881         * lib/unicase/u32-is-casefolded.c: New file.
37882         * modules/unicase/u32-is-casefolded: New file.
37883
37884         New module 'unicase/u16-is-casefolded'.
37885         * lib/unicase/u16-is-casefolded.c: New file.
37886         * modules/unicase/u16-is-casefolded: New file.
37887
37888         New module 'unicase/u8-is-casefolded'.
37889         * lib/unicase/u8-is-casefolded.c: New file.
37890         * modules/unicase/u8-is-casefolded: New file.
37891
37892         Tests for module 'unicase/u32-is-titlecase'.
37893         * modules/unicase/u32-is-titlecase-tests: New file.
37894         * tests/unicase/test-u32-is-titlecase.c: New file.
37895
37896         Tests for module 'unicase/u16-is-titlecase'.
37897         * modules/unicase/u16-is-titlecase-tests: New file.
37898         * tests/unicase/test-u16-is-titlecase.c: New file.
37899
37900         Tests for module 'unicase/u8-is-titlecase'.
37901         * modules/unicase/u8-is-titlecase-tests: New file.
37902         * tests/unicase/test-u8-is-titlecase.c: New file.
37903         * tests/unicase/test-is-titlecase.h: New file.
37904
37905         New module 'unicase/u32-is-titlecase'.
37906         * lib/unicase/u32-is-titlecase.c: New file.
37907         * modules/unicase/u32-is-titlecase: New file.
37908
37909         New module 'unicase/u16-is-titlecase'.
37910         * lib/unicase/u16-is-titlecase.c: New file.
37911         * modules/unicase/u16-is-titlecase: New file.
37912
37913         New module 'unicase/u8-is-titlecase'.
37914         * lib/unicase/u8-is-titlecase.c: New file.
37915         * modules/unicase/u8-is-titlecase: New file.
37916
37917         Tests for module 'unicase/u32-is-lowercase'.
37918         * modules/unicase/u32-is-lowercase-tests: New file.
37919         * tests/unicase/test-u32-is-lowercase.c: New file.
37920
37921         Tests for module 'unicase/u16-is-lowercase'.
37922         * modules/unicase/u16-is-lowercase-tests: New file.
37923         * tests/unicase/test-u16-is-lowercase.c: New file.
37924
37925         Tests for module 'unicase/u8-is-lowercase'.
37926         * modules/unicase/u8-is-lowercase-tests: New file.
37927         * tests/unicase/test-u8-is-lowercase.c: New file.
37928         * tests/unicase/test-is-lowercase.h: New file.
37929
37930         New module 'unicase/u32-is-lowercase'.
37931         * lib/unicase/u32-is-lowercase.c: New file.
37932         * modules/unicase/u32-is-lowercase: New file.
37933
37934         New module 'unicase/u16-is-lowercase'.
37935         * lib/unicase/u16-is-lowercase.c: New file.
37936         * modules/unicase/u16-is-lowercase: New file.
37937
37938         New module 'unicase/u8-is-lowercase'.
37939         * lib/unicase/u8-is-lowercase.c: New file.
37940         * modules/unicase/u8-is-lowercase: New file.
37941
37942         Tests for module 'unicase/u32-is-uppercase'.
37943         * modules/unicase/u32-is-uppercase-tests: New file.
37944         * tests/unicase/test-u32-is-uppercase.c: New file.
37945
37946         Tests for module 'unicase/u16-is-uppercase'.
37947         * modules/unicase/u16-is-uppercase-tests: New file.
37948         * tests/unicase/test-u16-is-uppercase.c: New file.
37949
37950         Tests for module 'unicase/u8-is-uppercase'.
37951         * modules/unicase/u8-is-uppercase-tests: New file.
37952         * tests/unicase/test-u8-is-uppercase.c: New file.
37953         * tests/unicase/test-is-uppercase.h: New file.
37954
37955         New module 'unicase/u32-is-uppercase'.
37956         * lib/unicase/u32-is-uppercase.c: New file.
37957         * modules/unicase/u32-is-uppercase: New file.
37958
37959         New module 'unicase/u16-is-uppercase'.
37960         * lib/unicase/u16-is-uppercase.c: New file.
37961         * modules/unicase/u16-is-uppercase: New file.
37962
37963         New module 'unicase/u8-is-uppercase'.
37964         * lib/unicase/u8-is-uppercase.c: New file.
37965         * modules/unicase/u8-is-uppercase: New file.
37966
37967         New module 'unicase/u32-is-invariant'.
37968         * lib/unicase/u32-is-invariant.c: New file.
37969         * modules/unicase/u32-is-invariant: New file.
37970
37971         New module 'unicase/u16-is-invariant'.
37972         * lib/unicase/u16-is-invariant.c: New file.
37973         * modules/unicase/u16-is-invariant: New file.
37974
37975         New module 'unicase/u8-is-invariant'.
37976         * lib/unicase/u8-is-invariant.c: New file.
37977         * lib/unicase/invariant.h: New file.
37978         * lib/unicase/u-is-invariant.h: New file.
37979         * modules/unicase/u8-is-invariant: New file.
37980
37981         Tests for module 'unicase/u32-casecoll'.
37982         * modules/unicase/u32-casecoll-tests: New file.
37983         * tests/unicase/test-u32-casecoll.c: New file.
37984
37985         Tests for module 'unicase/u16-casecoll'.
37986         * modules/unicase/u16-casecoll-tests: New file.
37987         * tests/unicase/test-u16-casecoll.c: New file.
37988
37989         Tests for module 'unicase/u8-casecoll'.
37990         * modules/unicase/u8-casecoll-tests: New file.
37991         * tests/unicase/test-u8-casecoll.c: New file.
37992
37993         New module 'unicase/u32-casecoll'.
37994         * lib/unicase/u32-casecoll.c: New file.
37995         * modules/unicase/u32-casecoll: New file.
37996
37997         New module 'unicase/u16-casecoll'.
37998         * lib/unicase/u16-casecoll.c: New file.
37999         * modules/unicase/u16-casecoll: New file.
38000
38001         New module 'unicase/u8-casecoll'.
38002         * lib/unicase/u8-casecoll.c: New file.
38003         * lib/unicase/u-casecoll.h: New file.
38004         * modules/unicase/u8-casecoll: New file.
38005
38006         New module 'unicase/u32-casexfrm'.
38007         * lib/unicase/u32-casexfrm.c: New file.
38008         * modules/unicase/u32-casexfrm: New file.
38009
38010         New module 'unicase/u16-casexfrm'.
38011         * lib/unicase/u16-casexfrm.c: New file.
38012         * modules/unicase/u16-casexfrm: New file.
38013
38014         New module 'unicase/u8-casexfrm'.
38015         * lib/unicase/u8-casexfrm.c: New file.
38016         * lib/unicase/u-casexfrm.h: New file.
38017         * modules/unicase/u8-casexfrm: New file.
38018
38019         Tests for module 'unicase/u32-casecmp'.
38020         * modules/unicase/u32-casecmp-tests: New file.
38021         * tests/unicase/test-u32-casecmp.c: New file.
38022
38023         Tests for module 'unicase/u16-casecmp'.
38024         * modules/unicase/u16-casecmp-tests: New file.
38025         * tests/unicase/test-u16-casecmp.c: New file.
38026
38027         Tests for module 'unicase/u8-casecmp'.
38028         * modules/unicase/u8-casecmp-tests: New file.
38029         * tests/unicase/test-u8-casecmp.c: New file.
38030         * tests/unicase/test-casecmp.h: New file.
38031
38032         New module 'unicase/u32-casecmp'.
38033         * lib/unicase/u32-casecmp.c: New file.
38034         * modules/unicase/u32-casecmp: New file.
38035
38036         New module 'unicase/u16-casecmp'.
38037         * lib/unicase/u16-casecmp.c: New file.
38038         * modules/unicase/u16-casecmp: New file.
38039
38040         New module 'unicase/u8-casecmp'.
38041         * lib/unicase/u8-casecmp.c: New file.
38042         * lib/unicase/u-casecmp.h: New file.
38043         * modules/unicase/u8-casecmp: New file.
38044
38045         Tests for module 'unicase/u32-casefold'.
38046         * modules/unicase/u32-casefold-tests: New file.
38047         * tests/unicase/test-u32-casefold.c: New file.
38048
38049         Tests for module 'unicase/u16-casefold'.
38050         * modules/unicase/u16-casefold-tests: New file.
38051         * tests/unicase/test-u16-casefold.c: New file.
38052
38053         Tests for module 'unicase/u8-casefold'.
38054         * modules/unicase/u8-casefold-tests: New file.
38055         * tests/unicase/test-u8-casefold.c: New file.
38056
38057         New module 'unicase/u32-casefold'.
38058         * lib/unicase/u32-casefold.c: New file.
38059         * modules/unicase/u32-casefold: New file.
38060
38061         New module 'unicase/u16-casefold'.
38062         * lib/unicase/u16-casefold.c: New file.
38063         * modules/unicase/u16-casefold: New file.
38064
38065         New module 'unicase/u8-casefold'.
38066         * lib/unicase/u8-casefold.c: New file.
38067         * lib/unicase/u-casefold.h: New file.
38068         * modules/unicase/u8-casefold: New file.
38069
38070         New module 'unicase/tocasefold'.
38071         * lib/unicase/casefold.h: New file.
38072         * lib/unicase/tocasefold.c: New file.
38073         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
38074         * modules/unicase/tocasefold: New file.
38075
38076         Tests for module 'unicase/u32-totitle'.
38077         * modules/unicase/u32-totitle-tests: New file.
38078         * tests/unicase/test-u32-totitle.c: New file.
38079
38080         Tests for module 'unicase/u16-totitle'.
38081         * modules/unicase/u16-totitle-tests: New file.
38082         * tests/unicase/test-u16-totitle.c: New file.
38083
38084         Tests for module 'unicase/u8-totitle'.
38085         * modules/unicase/u8-totitle-tests: New file.
38086         * tests/unicase/test-u8-totitle.c: New file.
38087
38088         New module 'unicase/u32-totitle'.
38089         * lib/unicase/u32-totitle.c: New file.
38090         * modules/unicase/u32-totitle: New file.
38091
38092         New module 'unicase/u16-totitle'.
38093         * lib/unicase/u16-totitle.c: New file.
38094         * modules/unicase/u16-totitle: New file.
38095
38096         New module 'unicase/u8-totitle'.
38097         * lib/unicase/u8-totitle.c: New file.
38098         * lib/unicase/u-totitle.h: New file.
38099         * modules/unicase/u8-totitle: New file.
38100
38101         Tests for module 'unicase/u32-tolower'.
38102         * modules/unicase/u32-tolower-tests: New file.
38103         * tests/unicase/test-u32-tolower.c: New file.
38104
38105         Tests for module 'unicase/u16-tolower'.
38106         * modules/unicase/u16-tolower-tests: New file.
38107         * tests/unicase/test-u16-tolower.c: New file.
38108
38109         Tests for module 'unicase/u8-tolower'.
38110         * modules/unicase/u8-tolower-tests: New file.
38111         * tests/unicase/test-u8-tolower.c: New file.
38112
38113         New module 'unicase/u32-tolower'.
38114         * lib/unicase/u32-tolower.c: New file.
38115         * modules/unicase/u32-tolower: New file.
38116
38117         New module 'unicase/u16-tolower'.
38118         * lib/unicase/u16-tolower.c: New file.
38119         * modules/unicase/u16-tolower: New file.
38120
38121         New module 'unicase/u8-tolower'.
38122         * lib/unicase/u8-tolower.c: New file.
38123         * modules/unicase/u8-tolower: New file.
38124
38125         Tests for module 'unicase/u32-toupper'.
38126         * modules/unicase/u32-toupper-tests: New file.
38127         * tests/unicase/test-u32-toupper.c: New file.
38128
38129         Tests for module 'unicase/u16-toupper'.
38130         * modules/unicase/u16-toupper-tests: New file.
38131         * tests/unicase/test-u16-toupper.c: New file.
38132
38133         Tests for module 'unicase/u8-toupper'.
38134         * modules/unicase/u8-toupper-tests: New file.
38135         * tests/unicase/test-u8-toupper.c: New file.
38136
38137         New module 'unicase/u32-toupper'.
38138         * lib/unicase/u32-toupper.c: New file.
38139         * modules/unicase/u32-toupper: New file.
38140
38141         New module 'unicase/u16-toupper'.
38142         * lib/unicase/u16-toupper.c: New file.
38143         * modules/unicase/u16-toupper: New file.
38144
38145         New module 'unicase/u8-toupper'.
38146         * lib/unicase/u8-toupper.c: New file.
38147         * modules/unicase/u8-toupper: New file.
38148
38149         New module 'unicase/u32-casemap'.
38150         * lib/unicase/u32-casemap.c: New file.
38151         * modules/unicase/u32-casemap: New file.
38152
38153         New module 'unicase/u16-casemap'.
38154         * lib/unicase/u16-casemap.c: New file.
38155         * modules/unicase/u16-casemap: New file.
38156
38157         New module 'unicase/u8-casemap'.
38158         * lib/unicase/unicasemap.h: New file.
38159         * lib/unicase/u8-casemap.c: New file.
38160         * lib/unicase/u-casemap.h: New file.
38161         * modules/unicase/u8-casemap: New file.
38162
38163         New module 'unicase/special-casing'.
38164         * lib/unicase/special-casing.h: New file.
38165         * lib/unicase/special-casing.c: New file.
38166         * lib/unicase/special-casing-table.gperf: New file, generated by
38167         gen-uni-tables.c.
38168         * modules/unicase/special-casing: New file.
38169
38170         Tests for module 'unicase/locale-language'.
38171         * modules/unicase/locale-language-tests: New file.
38172         * tests/unicase/test-locale-language.sh: New file.
38173         * tests/unicase/test-locale-language.c: New file.
38174
38175         New module 'unicase/locale-language'.
38176         * lib/unicase/locale-language.c: New file.
38177         * lib/unicase/locale-languages.gperf: New file.
38178         * modules/unicase/locale-language: New file.
38179
38180         Generate more tables for case conversion and case folding.
38181         * lib/gen-uni-tables.c (SCC_*): New enum items.
38182         (struct special_casing_rule): New type.
38183         (casing_rules, num_casing_rules, allocated_casing_rules): New
38184         variables.
38185         (add_casing_rule, fill_casing_rules): New functions.
38186         (struct casefold_rule): New type.
38187         (casefolding_rules, num_casefolding_rules,
38188         allocated_casefolding_rules): New variables.
38189         (fill_casefolding_rules): New function.
38190         (unicode_casefold): New variable.
38191         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
38192         sort_casing_rules, output_casing_rules): New functions.
38193         (main): Accept to more arguments: SpecialCasing.txt and
38194         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
38195         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
38196         Output mapping for casefolding.
38197
38198         * lib/unicase.h: Include stdbool.h, uninorm.h.
38199         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
38200         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
38201         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
38202         arguments.
38203         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
38204         resultp arguments.
38205         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
38206         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
38207         resultp arguments.
38208         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
38209         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
38210         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
38211         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
38212         declarations.
38213         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
38214
38215 2009-03-08  Bruno Haible  <bruno@clisp.org>
38216
38217         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
38218         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
38219         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
38220         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
38221
38222 2009-03-07  Bruno Haible  <bruno@clisp.org>
38223
38224         Adjust u*_normcmp, u*_normcoll API.
38225         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
38226         u16_normcoll, u32_normcoll): Change failure conventions.
38227         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
38228         errno and return -1.
38229         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
38230
38231 2009-03-07  Bruno Haible  <bruno@clisp.org>
38232
38233         Tests for module 'uninorm/u32-normcoll'.
38234         * modules/uninorm/u32-normcoll-tests: New file.
38235         * tests/uninorm/test-u32-normcoll.c: New file.
38236
38237         Tests for module 'uninorm/u16-normcoll'.
38238         * modules/uninorm/u16-normcoll-tests: New file.
38239         * tests/uninorm/test-u16-normcoll.c: New file.
38240
38241         Tests for module 'uninorm/u8-normcoll'.
38242         * modules/uninorm/u8-normcoll-tests: New file.
38243         * tests/uninorm/test-u8-normcoll.c: New file.
38244
38245 2009-03-07  Bruno Haible  <bruno@clisp.org>
38246
38247         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
38248         tests/uninorm/test-u32-normcmp.c.
38249         * tests/uninorm/test-u32-normcmp.c: Include it.
38250         (test_nonascii): New function, extracted from main. Add some more
38251         tests.
38252         (main): Invoke test_ascii and test_nonascii.
38253         * modules/uninorm/u32-normcmp-tests (Files): Add
38254         tests/uninorm/test-u32-normcmp.h.
38255         (Depends-on): Remove uninorm/u32-normcmp.
38256
38257         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
38258         tests/uninorm/test-u16-normcmp.c.
38259         * tests/uninorm/test-u16-normcmp.c: Include it.
38260         (test_nonascii): New function, extracted from main. Add some more
38261         tests.
38262         (main): Invoke test_ascii and test_nonascii.
38263         * modules/uninorm/u16-normcmp-tests (Files): Add
38264         tests/uninorm/test-u16-normcmp.h.
38265         (Depends-on): Remove uninorm/u16-normcmp.
38266
38267         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
38268         tests/uninorm/test-u8-normcmp.c.
38269         * tests/uninorm/test-u8-normcmp.c: Include it.
38270         (test_nonascii): New function, extracted from main. Add some more
38271         tests.
38272         (main): Invoke test_ascii and test_nonascii.
38273         * modules/uninorm/u8-normcmp-tests (Files): Add
38274         tests/uninorm/test-u8-normcmp.h.
38275         (Depends-on): Remove uninorm/u8-normcmp.
38276
38277 2009-03-07  Bruno Haible  <bruno@clisp.org>
38278
38279         New module 'uninorm/u32-normcoll'.
38280         * lib/uninorm/u32-normcoll.c: New file.
38281         * modules/uninorm/u32-normcoll: New file.
38282
38283         New module 'uninorm/u16-normcoll'.
38284         * lib/uninorm/u16-normcoll.c: New file.
38285         * modules/uninorm/u16-normcoll: New file.
38286
38287         New module 'uninorm/u8-normcoll'.
38288         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
38289         declarations.
38290         * lib/uninorm/u8-normcoll.c: New file.
38291         * lib/uninorm/u-normcoll.h: New file.
38292         * modules/uninorm/u8-normcoll: New file.
38293
38294         New module 'uninorm/u32-normxfrm'.
38295         * lib/uninorm/u32-normxfrm.c: New file.
38296         * modules/uninorm/u32-normxfrm: New file.
38297
38298         New module 'uninorm/u16-normxfrm'.
38299         * lib/uninorm/u16-normxfrm.c: New file.
38300         * modules/uninorm/u16-normxfrm: New file.
38301
38302         New module 'uninorm/u8-normxfrm'.
38303         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
38304         declarations.
38305         * lib/uninorm/u8-normxfrm.c: New file.
38306         * lib/uninorm/u-normxfrm.h: New file.
38307         * modules/uninorm/u8-normxfrm: New file.
38308
38309 2009-03-07  Bruno Haible  <bruno@clisp.org>
38310
38311         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
38312         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
38313         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
38314
38315 2009-03-07  Bruno Haible  <bruno@clisp.org>
38316
38317         New module 'memxfrm'.
38318         * lib/memxfrm.h: New file.
38319         * lib/memxfrm.c: New file.
38320         * modules/memxfrm: New file.
38321
38322 2009-03-07  Bruno Haible  <bruno@clisp.org>
38323
38324         New module 'memcmp2'.
38325         * lib/memcmp2.h: New file.
38326         * lib/memcmp2.c: New file.
38327         * modules/memcmp2: New file.
38328
38329 2009-03-07  Bruno Haible  <bruno@clisp.org>
38330
38331         Tests for module 'uninorm/decomposing-form'.
38332         * modules/uninorm/decomposing-form-tests: New file.
38333         * tests/uninorm/test-decomposing-form.c: New file.
38334
38335         New module 'uninorm/decomposing-form'.
38336         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
38337         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
38338         Add 'decomposing_variant' field.
38339         * lib/uninorm/decomposing-form.c: New file.
38340         * lib/uninorm/nfc.c (uninorm_nfc): Update.
38341         * lib/uninorm/nfd.c (uninorm_nfd): Update.
38342         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
38343         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
38344         * modules/uninorm/decomposing-form: New file.
38345         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
38346         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
38347
38348 2009-03-07  Bruno Haible  <bruno@clisp.org>
38349
38350         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
38351         strings.
38352
38353 2009-03-06  Bruno Haible  <bruno@clisp.org>
38354
38355         Tests for module 'uninorm/u32-normcmp'.
38356         * tests/uninorm/test-u32-normcmp.c: New file.
38357         * modules/uninorm/u32-normcmp-tests: New file.
38358
38359         Tests for module 'uninorm/u16-normcmp'.
38360         * tests/uninorm/test-u16-normcmp.c: New file.
38361         * modules/uninorm/u16-normcmp-tests: New file.
38362
38363         Tests for module 'uninorm/u8-normcmp'.
38364         * tests/uninorm/test-u8-normcmp.c: New file.
38365         * modules/uninorm/u8-normcmp-tests: New file.
38366
38367         New module 'uninorm/u32-normcmp'.
38368         * lib/uninorm/u32-normcmp.c: New file.
38369         * modules/uninorm/u32-normcmp: New file.
38370
38371         New module 'uninorm/u16-normcmp'.
38372         * lib/uninorm/u16-normcmp.c: New file.
38373         * modules/uninorm/u16-normcmp: New file.
38374
38375         New module 'uninorm/u8-normcmp'.
38376         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
38377         declarations.
38378         * lib/uninorm/u8-normcmp.c: New file.
38379         * lib/uninorm/u-normcmp.h: New file.
38380         * modules/uninorm/u8-normcmp: New file.
38381
38382 2009-03-06  Bruno Haible  <bruno@clisp.org>
38383
38384         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
38385         Reported by Eric Blake.
38386
38387 2009-03-06  Eric Blake  <ebb9@byu.net>
38388             Bruno Haible  <bruno@clisp.org>
38389
38390         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
38391         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
38392         condition.
38393         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
38394         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
38395         condition.
38396         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
38397
38398 2009-03-06  Eric Blake  <ebb9@byu.net>
38399
38400         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
38401         to avoid compiler warnings.
38402         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
38403
38404 2009-03-05  Bruno Haible  <bruno@clisp.org>
38405
38406         * tests/test-ftell.c (main): Disable test beyond end of file on
38407         FreeMiNT.
38408         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
38409
38410 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
38411
38412         * lib/filevercmp.c: Move hidden files up in ordering.
38413         * tests/test-filevercmp.c: Add tests for hidden files.
38414
38415 2009-03-04  Bruno Haible  <bruno@clisp.org>
38416
38417         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
38418         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
38419         AM_CFLAGS.
38420         Reported by Simon Josefsson.
38421
38422 2009-03-03  Bruno Haible  <bruno@clisp.org>
38423
38424         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
38425         Reported by Simon Josefsson.
38426
38427         * doc/ld-version-script.texi: Update node reference.
38428
38429 2009-03-03  Bruno Haible  <bruno@clisp.org>
38430
38431         * modules/visibility (License): Change to 'unlimited'.
38432         Suggested by Simon Josefsson.
38433
38434 2009-03-03  Jim Meyering  <meyering@redhat.com>
38435
38436         unlinkdir: cannot_unlink_dir may modify process state
38437         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
38438         it's neither thread-safe nor appropriate for use in a library.
38439
38440 2009-03-03  Eric Blake  <ebb9@byu.net>
38441
38442         test-closein: silence test under Darwin
38443         * tests/test-closein.sh: Ignore stderr from cat, since we don't
38444         care if it dies from EPIPE or EBADF.
38445
38446 2009-03-03  Bruno Haible  <bruno@clisp.org>
38447
38448         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
38449         earlier.
38450         * doc/visibility.texi: Fix @node and @section.
38451
38452 2009-03-03  Simon Josefsson  <simon@josefsson.org>
38453
38454         * doc/gnulib.texi: Link to sections for ld version script and
38455         visibility.
38456         * doc/visibility.texi: Add @node and @section.
38457         * modules/ld-version-script: New module.
38458         * m4/ld-version-script.m4: New file.
38459         * doc/ld-version-script.texi: New file.
38460
38461 2009-03-02  David Lutterkort  <lutter@redhat.com>
38462
38463         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
38464         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38465
38466 2009-03-02  Bruno Haible  <bruno@clisp.org>
38467
38468         * doc/visibility.texi: Mention libtool's -export-symbols option.
38469
38470 2009-03-02  Jim Meyering  <meyering@redhat.com>
38471
38472         announce-gen: new option: --no-print-checksums
38473         * build-aux/announce-gen (usage): Describe it.
38474         (print_checksums): Print a newline here, not in the [*] footnote.
38475         (main): Honor it.
38476
38477 2009-03-01  Bruno Haible  <bruno@clisp.org>
38478
38479         Use socklen_t in the native Windows replacements prototypes.
38480         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
38481         instead of 'int'.
38482         * lib/getsockopt.c (rpl_getsockopt): Likewise.
38483         * lib/setsockopt.c (rpl_setsockopt): Likewise.
38484         * modules/getsockopt (Depends-on): Add socklen.
38485         * modules/setsockopt (Depends-on): Add socklen.
38486
38487 2009-03-01  Bruno Haible  <bruno@clisp.org>
38488
38489         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
38490         least 4.2.
38491
38492 2009-03-01  Eric Blake  <ebb9@byu.net>
38493             Bruno Haible  <bruno@clisp.org>
38494
38495         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
38496         error messages.
38497         * lib/wait-process.c (wait_subprocess): Omit error message about
38498         deadly signal sent to the child of termsigp != NULL.
38499
38500 2009-03-01  Eric Blake  <ebb9@byu.net>
38501
38502         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
38503
38504 2009-03-01  Bruno Haible  <bruno@clisp.org>
38505
38506         Avoid a gcc warning.
38507         * tests/test-sched.c (b): Make global.
38508         Reported by Eric Blake.
38509
38510 2009-01-19  Martin Lambers  <marlam@marlam.de>
38511
38512         Provide POSIX semantics for socket timeout options on W32.
38513         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
38514         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
38515         * modules/setsockopt: Depend on sys_time module for struct timeval.
38516         * modules/getsockopt: Depend on sys_time module for struct timeval.
38517
38518 2009-03-01  Simon Josefsson  <simon@josefsson.org>
38519
38520         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
38521         __USE_GNU, for consistency with netdb.in.h.
38522         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38523
38524 2009-03-01  Bruno Haible  <bruno@clisp.org>
38525
38526         More support for FreeMiNT.
38527         * lib/fseeko.c (rpl_fseeko): Complete last commit.
38528         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38529
38530 2009-03-01  Bruno Haible  <bruno@clisp.org>
38531
38532         More support for FreeMiNT.
38533         * lib/fpurge.c (fpurge): Correct last commit.
38534         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38535
38536 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38537
38538         Fix unportable awk script in vc-list-files.
38539         * build-aux/vc-list-files: In the replacement awk script, use
38540         substr with a second argument of 1, not zero.
38541         Report by Simon Josefsson.
38542
38543 2009-02-28  Bruno Haible  <bruno@clisp.org>
38544
38545         More support for FreeMiNT.
38546         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
38547         to FreeMiNT today.
38548         * lib/fwriting.c (fwriting): Likewise.
38549         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
38550
38551 2009-02-28  Bruno Haible  <bruno@clisp.org>
38552
38553         * tests/test-freadseek.c (main): Disable test beyond end of file on
38554         FreeMiNT.
38555         * tests/test-ftello.c (main): Likewise.
38556         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
38557
38558 2009-02-28  Bruno Haible  <bruno@clisp.org>
38559
38560         Add tentative support for FreeMiNT.
38561         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
38562         * lib/fpurge.c (fpurge): Likewise.
38563         * lib/freadable.c (freadable): Likewise.
38564         * lib/freading.c (freading): Likewise.
38565         * lib/freadptr.c (freadptr): Likewise.
38566         * lib/freadseek.c (freadptrinc): Likewise.
38567         * lib/fseeko.c (rpl_fseeko): Likewise.
38568         * lib/fseterr.c (fseterr): Likewise.
38569         * lib/fwritable.c (fwritable): Likewise.
38570         * lib/fwriting.c (fwriting): Likewise.
38571         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
38572         Hourihane.
38573         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38574
38575 2009-02-28  Bruno Haible  <bruno@clisp.org>
38576
38577         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
38578         SIGCHLD.
38579         Reported by Jim Meyering.
38580
38581 2009-02-28  Bruno Haible  <bruno@clisp.org>
38582
38583         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
38584         Mention the results of these tests on various platforms.
38585         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
38586         order.
38587         * doc/posix-functions/printf.texi: Likewise.
38588         * doc/posix-functions/snprintf.texi: Likewise.
38589         * doc/posix-functions/sprintf.texi: Likewise.
38590         * doc/posix-functions/vfprintf.texi: Likewise.
38591         * doc/posix-functions/vprintf.texi: Likewise.
38592         * doc/posix-functions/vsnprintf.texi: Likewise.
38593         * doc/posix-functions/vsprintf.texi: Likewise.
38594         * doc/glibc-functions/obstack_printf.texi: Likewise.
38595         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
38596
38597 2009-02-28  Bruno Haible  <bruno@clisp.org>
38598
38599         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
38600         Reported by Loïc Minier <lool@dooz.org>.
38601
38602 2009-02-27  Bruno Haible  <bruno@clisp.org>
38603
38604         * gnulib-tool (func_import): Make the sed expression used to create the
38605         sed script for updating the .gitignore file POSIX compliant.
38606         Reported by Eric Blake.
38607
38608 2009-02-27  Bruno Haible  <bruno@clisp.org>
38609
38610         * gnulib-tool (sed): Don't alias as "sed --posix".
38611         Reported by Eric Blake.
38612
38613 2009-02-27  Bruno Haible  <bruno@clisp.org>
38614
38615         Avoid test link errors.
38616         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
38617         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
38618         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
38619         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
38620         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38621
38622 2009-02-27  Bruno Haible  <bruno@clisp.org>
38623
38624         Avoid spurious "(cached)" in configure output.
38625         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
38626         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
38627         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
38628         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
38629         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
38630         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
38631         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
38632         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
38633         Reported by Eric Blake.
38634
38635 2009-02-27  Eric Blake  <ebb9@byu.net>
38636
38637         printf: fix regression in previous patch
38638         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
38639
38640 2009-02-27  Bruno Haible  <bruno@clisp.org>
38641
38642         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
38643         value.
38644         * lib/stdint.in.h: Likewise.
38645         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
38646
38647 2009-02-27  Eric Blake  <ebb9@byu.net>
38648
38649         doc: mention more functions added in cygwin 1.7.0
38650         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
38651         addition.
38652         * doc/posix-functions/open_wmemstream.texi: Likewise.
38653         * doc/posix-functions/wcsnlen.texi: Likewise.
38654         * doc/posix-functions/wcsnrtombs.texi: Likewise.
38655         * doc/posix-functions/wcstod.texi: Likewise.
38656         * doc/posix-functions/wcstof.texi: Likewise.
38657         * doc/posix-functions/wcstoimax.texi: Likewise.
38658         * doc/posix-functions/wcstok.texi: Likewise.
38659         * doc/posix-functions/wcstoumax.texi: Likewise.
38660
38661         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
38662         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
38663         * doc/posix-functions/fprintf.texi: Update.
38664         * doc/posix-functions/printf.texi: Update.
38665         * doc/posix-functions/snprintf.texi: Update.
38666         * doc/posix-functions/sprintf.texi: Update.
38667         * doc/posix-functions/vfprintf.texi: Update.
38668         * doc/posix-functions/vprintf.texi: Update.
38669         * doc/posix-functions/vsnprintf.texi: Update.
38670         * doc/posix-functions/vsprintf.texi: Update.
38671         * doc/glibc-functions/obstack_printf.texi: Update.
38672         * doc/glibc-functions/obstack_vprintf.texi: Update.
38673
38674 2009-02-26  Eric Blake  <ebb9@byu.net>
38675
38676         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
38677         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
38678         compilation bug by using runtime conversion.
38679         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
38680         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
38681         * modules/ceill-tests (Files): Use nan.h.
38682         * modules/floorl-tests (Files): Likewise.
38683         * modules/frexpl-tests (Files): Likewise.
38684         * modules/isnanl-tests (Files): Likewise.
38685         * modules/ldexpl-tests (Files): Likewise.
38686         * modules/roundl-tests (Files): Likewise.
38687         * modules/truncl-tests (Files): Likewise.
38688         * tests/test-ceill.c (main): Use a working NaN.
38689         * tests/test-floorl.c (main): Likewise.
38690         * tests/test-frexpl.c (main): Likewise.
38691         * tests/test-isnan.c (test_long_double): Likewise.
38692         * tests/test-isnanl.h (main): Likewise.
38693         * tests/test-ldexpl.h (main): Likewise.
38694         * tests/test-roundl.h (main): Likewise.
38695         * tests/test-truncl.h (main): Likewise.
38696         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
38697
38698 2009-02-26  Eric Blake  <ebb9@byu.net>
38699             Bruno Haible  <bruno@clisp.org>
38700
38701         Work around a *printf bug with %ls on Solaris.
38702         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
38703         precision is specified, sprintf stops converting the wide string
38704         argument when the number of bytes that have been produced by this
38705         conversion equals or exceeds the precision.
38706         * doc/posix-functions/fprintf.texi: Update.
38707         * doc/posix-functions/printf.texi: Update.
38708         * doc/posix-functions/snprintf.texi: Update.
38709         * doc/posix-functions/sprintf.texi: Update.
38710         * doc/posix-functions/vfprintf.texi: Update.
38711         * doc/posix-functions/vprintf.texi: Update.
38712         * doc/posix-functions/vsnprintf.texi: Update.
38713         * doc/posix-functions/vsprintf.texi: Update.
38714         * doc/glibc-functions/obstack_printf.texi: Update.
38715         * doc/glibc-functions/obstack_vprintf.texi: Update.
38716
38717 2009-02-26  Eric Blake  <ebb9@byu.net>
38718
38719         stdlib: favor compiler check of random.h
38720         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
38721         to avoid an ObjC random.h installed by Swarm.
38722
38723 2009-02-26  Bruno Haible  <bruno@clisp.org>
38724
38725         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
38726         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
38727         Reported by Gary V. Vaughan <gary@gnu.org>.
38728
38729 2009-02-26  Bruno Haible  <bruno@clisp.org>
38730
38731         Fix *printf behaviour regarding the %ls directive.
38732         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
38733         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
38734         NEED_PRINTF_DIRECTIVE_LS.
38735         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
38736         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38737         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38738         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
38739         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
38740         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
38741         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
38742         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38743         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38744         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38745         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38746         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
38747         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38748         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38749         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38750         * doc/posix-functions/fprintf.texi: Update.
38751         * doc/posix-functions/printf.texi: Update.
38752         * doc/posix-functions/snprintf.texi: Update.
38753         * doc/posix-functions/sprintf.texi: Update.
38754         * doc/posix-functions/vfprintf.texi: Update.
38755         * doc/posix-functions/vprintf.texi: Update.
38756         * doc/posix-functions/vsnprintf.texi: Update.
38757         * doc/posix-functions/vsprintf.texi: Update.
38758         * doc/glibc-functions/obstack_printf.texi: Update.
38759         * doc/glibc-functions/obstack_vprintf.texi: Update.
38760         Reported by Eric Blake.
38761
38762 2009-02-25  Bruno Haible  <bruno@clisp.org>
38763
38764         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
38765         with known value.
38766         Reported by Gary V. Vaughan <gary@gnu.org>.
38767
38768 2009-02-25  Bruno Haible  <bruno@clisp.org>
38769
38770         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
38771         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
38772         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
38773         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
38774         Reported by Gary V. Vaughan <gary@gnu.org>.
38775
38776 2009-02-25  Bruno Haible  <bruno@clisp.org>
38777
38778         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
38779         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
38780         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
38781         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
38782         Reported by Gary V. Vaughan <gary@gnu.org>.
38783
38784 2009-02-25  Eric Blake  <ebb9@byu.net>
38785
38786         tests: skip fseek/ftell tests if ungetc is broken
38787         * m4/ungetc.m4: New file.
38788         * modules/fseek-tests: Split test, so ungetc dependency is
38789         separate from rest of test.
38790         * modules/fseeko-tests: Likewise.
38791         * modules/ftell-tests: Likewise.
38792         * modules/ftello-tests: Likewise.
38793         * tests/test-fseek.c (main): Isolate ungetc dependency.
38794         * tests/test-fseeko.c (main): Likewise.
38795         * tests/test-ftell.c (main): Likewise.
38796         * tests/test-ftello.c (main): Likewise.
38797         * tests/test-fseek2.sh: New file.
38798         * tests/test-fseeko2.sh: Likewise.
38799         * tests/test-ftell2.sh: Likewise.
38800         * tests/test-ftello2.sh: Likewise.
38801
38802 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
38803
38804         test-getaddrinfo: fix usage of skip return code 77
38805         * tests/test-gettaddrinfo.c: Return skip code 77 only
38806         for first occurance of skip (4x77 is not 77)
38807
38808 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
38809
38810         strtod: avoid C99 decl-after-statement
38811         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
38812
38813 2009-02-24  Eric Blake  <ebb9@byu.net>
38814
38815         strtod: detect HP-UX 11.31 bug
38816         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
38817         Reported by Gary V. Vaughan.
38818
38819 2009-02-23  Bruno Haible  <bruno@clisp.org>
38820
38821         Fix invalid read past end of memory block.
38822         * lib/vasnprintf.c (DCHAR_SET): Define.
38823         (local_wcslen): Define only when needed.
38824         (local_strnlen, local_wcsnlen): New functions.
38825         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
38826         directives that involve a conversion ourselves.
38827         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
38828         wcsnlen, mbrtowc, wcrtomb.
38829         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
38830         * tests/test-vasprintf-posix.c (test_function): Likewise.
38831         * tests/test-snprintf-posix.h (test_function): Likewise.
38832         * tests/test-sprintf-posix.h (test_function): Likewise.
38833         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38834
38835 2009-02-22  Bruno Haible  <bruno@clisp.org>
38836
38837         Implement new clarified decomposition of Hangul syllables.
38838         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
38839         of type LTV, return only a pairwise decomposition.
38840         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
38841         Likewise.
38842         * tests/uninorm/test-decomposition.c (main): Updated expected result.
38843         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
38844         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
38845
38846 2009-02-22  Bruno Haible  <bruno@clisp.org>
38847
38848         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
38849         zero-length results and shrink excess allocated memory.
38850         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
38851         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
38852         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
38853         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
38854         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
38855         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
38856         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
38857         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
38858         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
38859         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
38860         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
38861         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
38862
38863 2009-02-21  Bruno Haible  <bruno@clisp.org>
38864
38865         * doc/gnulib.texi: Include safe-alloc.texi earlier.
38866         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
38867         spaces after a period. Put a space between a macro name and its
38868         argument list. Trivial rewordings.
38869         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
38870         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
38871         (main): Return 0 explicitly.
38872
38873 2009-02-21  Bruno Haible  <bruno@clisp.org>
38874
38875         Tests for module 'uninorm/filter'.
38876         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
38877         * modules/uninorm/filter-tests: New file.
38878
38879         New module 'uninorm/filter'.
38880         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
38881         uninorm_filter_flush, uninorm_filter_free): New declarations.
38882         * lib/uninorm/uninorm-filter.c: New file.
38883         * modules/uninorm/filter: New file.
38884
38885 2009-02-21  Bruno Haible  <bruno@clisp.org>
38886
38887         Tests for module 'uninorm/nfkc'.
38888         * tests/uninorm/test-nfkc.c: New file.
38889         * tests/uninorm/test-u8-nfkc.c: New file.
38890         * tests/uninorm/test-u16-nfkc.c: New file.
38891         * tests/uninorm/test-u32-nfkc.c: New file.
38892         * tests/uninorm/test-u32-nfkc-big.sh: New file.
38893         * tests/uninorm/test-u32-nfkc-big.c: New file.
38894         * modules/uninorm/nfkc-tests: New file.
38895
38896         New module 'uninorm/nfkc'.
38897         * lib/uninorm/nfkc.c: New file.
38898         * modules/uninorm/nfkc: New file.
38899
38900         Tests for module 'uninorm/nfkd'.
38901         * tests/uninorm/test-nfkd.c: New file.
38902         * tests/uninorm/test-u8-nfkd.c: New file.
38903         * tests/uninorm/test-u16-nfkd.c: New file.
38904         * tests/uninorm/test-u32-nfkd.c: New file.
38905         * tests/uninorm/test-u32-nfkd-big.sh: New file.
38906         * tests/uninorm/test-u32-nfkd-big.c: New file.
38907         * modules/uninorm/nfkd-tests: New file.
38908
38909         New module 'uninorm/nfkd'.
38910         * lib/uninorm/nfkd.c: New file.
38911         * modules/uninorm/nfkd: New file.
38912
38913         Tests for module 'uninorm/nfc'.
38914         * tests/uninorm/test-nfc.c: New file.
38915         * tests/uninorm/test-u8-nfc.c: New file.
38916         * tests/uninorm/test-u16-nfc.c: New file.
38917         * tests/uninorm/test-u32-nfc.c: New file.
38918         * tests/uninorm/test-u32-nfc-big.sh: New file.
38919         * tests/uninorm/test-u32-nfc-big.c: New file.
38920         * modules/uninorm/nfc-tests: New file.
38921
38922         New module 'uninorm/nfc'.
38923         * lib/uninorm/nfc.c: New file.
38924         * modules/uninorm/nfc: New file.
38925
38926         Tests for module 'uninorm/nfd'.
38927         * tests/uninorm/test-nfd.c: New file.
38928         * tests/uninorm/test-u8-nfd.c: New file.
38929         * tests/uninorm/test-u16-nfd.c: New file.
38930         * tests/uninorm/test-u32-nfd.c: New file.
38931         * tests/uninorm/test-u32-nfd-big.sh: New file.
38932         * tests/uninorm/test-u32-nfd-big.c: New file.
38933         * tests/uninorm/test-u32-normalize-big.h: New file.
38934         * tests/uninorm/test-u32-normalize-big.c: New file.
38935         * tests/uninorm/NormalizationTest.txt: New file, created from
38936         Unicode 5.1.0 NormalizationTest.txt.
38937         * modules/uninorm/nfd-tests: New file.
38938
38939         New module 'uninorm/nfd'.
38940         * lib/uninorm/nfd.c: New file.
38941         * modules/uninorm/nfd: New file.
38942
38943         New module 'uninorm/u32-normalize'.
38944         * lib/uninorm/u32-normalize.c: New file.
38945         * modules/uninorm/u32-normalize: New file.
38946
38947         New module 'uninorm/u16-normalize'.
38948         * lib/uninorm/u16-normalize.c: New file.
38949         * modules/uninorm/u16-normalize: New file.
38950
38951         New module 'uninorm/u8-normalize'.
38952         * lib/uninorm/u8-normalize.c: New file.
38953         * lib/uninorm/normalize-internal.h: New file.
38954         * lib/uninorm/u-normalize-internal.h: New file.
38955         * modules/uninorm/u8-normalize: New file.
38956
38957         New module 'uninorm/decompose-internal'.
38958         * lib/uninorm/decompose-internal.c: New file.
38959         * modules/uninorm/decompose-internal: New file.
38960
38961         Tests for module 'uninorm/composition'.
38962         * tests/uninorm/test-composition.c: New file.
38963         * modules/uninorm/composition-tests: New file.
38964
38965         New module 'uninorm/composition'.
38966         * lib/uninorm/composition.c: New file.
38967         * lib/uninorm/composition-table.gperf: New file, generated by
38968         gen-uni-tables.
38969         * modules/uninorm/composition: New file.
38970
38971         Tests for module 'uninorm/compat-decomposition'.
38972         * tests/uninorm/test-compat-decomposition.c: New file.
38973         * modules/uninorm/compat-decomposition-tests: New file.
38974
38975         New module 'uninorm/compat-decomposition'.
38976         * lib/uninorm/decompose-internal.h: New file.
38977         * lib/uninorm/compat-decomposition.c: New file.
38978         * modules/uninorm/compat-decomposition: New file.
38979
38980         Tests for module 'uninorm/canonical-decomposition'.
38981         * tests/uninorm/test-canonical-decomposition.c: New file.
38982         * modules/uninorm/canonical-decomposition-tests: New file.
38983
38984         New module 'uninorm/canonical-decomposition'.
38985         * lib/uninorm/canonical-decomposition.c: New file.
38986         * modules/uninorm/canonical-decomposition: New file.
38987
38988         Tests for module 'uninorm/decomposition'.
38989         * tests/uninorm/test-decomposition.c: New file.
38990         * modules/uninorm/decomposition-tests: New file.
38991
38992         New module 'uninorm/decomposition'.
38993         * lib/uninorm/decomposition.c: New file.
38994         * modules/uninorm/decomposition: New file.
38995
38996         New module 'uninorm/decomposition-table'.
38997         * lib/uninorm/decomposition-table.h: New file.
38998         * lib/uninorm/decomposition-table.c: New file.
38999         * lib/uninorm/decomposition-table1.h: New file, generated by
39000         gen-uni-tables.
39001         * lib/uninorm/decomposition-table2.h: New file, generated by
39002         gen-uni-tables.
39003         * modules/uninorm/decomposition-table: New file.
39004
39005         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
39006         (UC_DECOMP_*): New enumeration items.
39007         (get_decomposition): New function.
39008         (struct decomp_table): New type.
39009         (output_decomposition, output_decomposition_tables): New functions.
39010         (unicode_composition_exclusions): New variable.
39011         (fill_composition_exclusions, debug_output_composition_tables): New
39012         functions.
39013         (main): Accept one more argument. Invoke fill_composition_exclusions.
39014         Output decomposition and composition tables.
39015
39016         New module 'uninorm/base'.
39017         * lib/uninorm.h: New file.
39018         * lib/unictype.h: Update comment.
39019         * modules/uninorm/base: New file.
39020
39021 2009-02-21  David Lutterkort  <lutter@redhat.com>
39022
39023         Tests for module 'safe-alloc'.
39024         * tests/test-safe-alloc.c: New file.
39025         * modules/safe-alloc-tests: New file.
39026
39027         New module 'safe-alloc'.
39028         * lib/safe-alloc.h: New file.
39029         * lib/safe-alloc.c: New file.
39030         * m4/safe-alloc.m4: New file.
39031         * modules/safe-alloc: New file.
39032         * doc/safe-alloc.texi: New file.
39033         * doc/gnulib.texi: Include it.
39034         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
39035         safe-alloc.
39036
39037 2009-02-18  Bruno Haible  <bruno@clisp.org>
39038
39039         Fix link error on non-glibc systems.
39040         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
39041         variable.
39042         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39043
39044 2009-02-18  Jim Meyering  <meyering@redhat.com>
39045
39046         fts: avoid used-uninitialized error due to recent change
39047         * lib/fts.c (fts_read): Guard uses of the new member,
39048         parent->fts_n_dirs_remaining, since it's not relevant for
39049         the parent of a directory specified on the command-line.
39050
39051 2009-02-17  James Youngman  <jay@gnu.org>
39052             Bruno Haible  <bruno@clisp.org>
39053
39054         * m4/include_next.m4: Reformulate comment.
39055
39056 2009-02-16  Jim Meyering  <meyering@redhat.com>
39057
39058         fts: add #if guards so that the fts_lgpl module still builds
39059         * lib/fts.c: Guard just-added hash-table-using parts with
39060         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
39061         Reported by Simon Josefsson.
39062
39063 2009-02-15  Bruno Haible  <bruno@clisp.org>
39064
39065         * modules/array-mergesort-tests: New file.
39066         * tests/test-array-mergesort.c: New file.
39067
39068         New module 'array-mergesort'.
39069         * modules/array-mergesort: New file.
39070         * lib/array-mergesort.h: New file.
39071
39072 2009-02-15  Bruno Haible  <bruno@clisp.org>
39073
39074         Fix 2009-02-07 commit.
39075         * lib/gen-uni-tables.c (output_predicate, output_category,
39076         output_combclass, output_bidi_category, output_decimal_digit,
39077         output_digit, output_numeric, output_mirror, output_scripts,
39078         output_ident_category, output_simple_mapping): Fix format directives.
39079         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
39080
39081 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
39082
39083         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
39084         fixes are available from IBM.
39085
39086 2009-02-13  Jim Meyering  <meyering@redhat.com>
39087
39088         fts: arrange not to stat non-directories in more cases
39089         This makes GNU find (when it doesn't need to stat each file)
39090         *much* more efficient at traversing reiserfs file systems.
39091         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
39092         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
39093         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
39094         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
39095         (leaf_optimization_applies): New function.
39096         (LCO_hash, LCO_compare): New helper functions.
39097         (link_count_optimize_ok): New function.
39098         (fts_stat): Initialize new member (if dir).
39099         (fts_read): Decrement parent's fts_n_dirs_remaining count if
39100         we've just stat'ed a directory.  Skip the stat call when possible.
39101         ---
39102         Note this AFS-related exchange:
39103         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
39104         and note find's pioctl call in find/fstype.c.
39105         But that is necessary only if you want to enable the
39106         optimization for AFS, and for now, I don't.
39107
39108         fts: move a function definition "up" (no semantic change)
39109         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
39110         "up" to precede upcoming use of a related function.
39111
39112 2009-02-11  Jim Meyering  <meyering@redhat.com>
39113
39114         fts: correct internal computation of nlinks (optimization-related)
39115         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
39116         whether the current entry is a directory, so don't test it.
39117
39118 2009-02-10  Bruno Haible  <bruno@clisp.org>
39119
39120         Tests for module 'uniwbrk/ulc-wordbreaks'.
39121         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
39122         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
39123         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
39124
39125         Tests for module 'uniwbrk/u32-wordbreaks'.
39126         * modules/uniwbrk/u32-wordbreaks-tests: New file.
39127         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
39128
39129         Tests for module 'uniwbrk/u16-wordbreaks'.
39130         * modules/uniwbrk/u16-wordbreaks-tests: New file.
39131         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
39132
39133         Tests for module 'uniwbrk/u8-wordbreaks'.
39134         * modules/uniwbrk/u8-wordbreaks-tests: New file.
39135         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
39136
39137 2009-02-10  Bruno Haible  <bruno@clisp.org>
39138
39139         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
39140         property.
39141         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
39142         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
39143         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
39144
39145 2009-02-10  Simon Josefsson  <simon@josefsson.org>
39146
39147         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
39148         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
39149
39150 2009-02-10  Bruno Haible  <bruno@clisp.org>
39151
39152         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
39153         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
39154         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
39155         * lib/unilbrk/u8-possible-linebreaks.c: Update.
39156         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
39157         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
39158
39159 2009-02-09  Simon Josefsson  <simon@josefsson.org>
39160
39161         * lib/sockets.h (gl_fd_to_handle): New function.
39162
39163         * tests/test-sockets.c: Call gl_fd_to_handle.
39164
39165 2009-02-09  Bruno Haible  <bruno@clisp.org>
39166
39167         * doc/havelib.texi: Document the conventions on bi-arch systems.
39168
39169 2009-02-08  Bruno Haible  <bruno@clisp.org>
39170
39171         Document the AC_LIB_LINKFLAGS macro.
39172         * doc/havelib.texi: New file, mostly written on 2005-05-24.
39173         * doc/gnulib.texi: Include it.
39174
39175 2009-02-08  Bruno Haible  <bruno@clisp.org>
39176
39177         Fix wrong order of sections, compared to TOC.
39178         * doc/gnulib.texi: Include relocatable-maint.texi after the
39179         "Regular expressions" node, not before.
39180
39181 2009-02-08  Bruno Haible  <bruno@clisp.org>
39182
39183         Tests for module 'unicase/totitle'.
39184         * modules/unicase/totitle-tests: New file.
39185
39186         Tests for module 'unicase/tolower'.
39187         * modules/unicase/tolower-tests: New file.
39188
39189         Tests for module 'unicase/toupper'.
39190         * modules/unicase/toupper-tests: New file.
39191         * tests/unicase/test-mapping-part1.h: New file.
39192         * tests/unicase/test-mapping-part2.h: New file.
39193
39194         New module 'unicase/totitle'.
39195         * modules/unicase/totitle: New file.
39196         * lib/unicase/totitle.c: New file.
39197
39198         New module 'unicase/tolower'.
39199         * modules/unicase/tolower: New file.
39200         * lib/unicase/tolower.c: New file.
39201
39202         New module 'unicase/toupper'.
39203         * modules/unicase/toupper: New file.
39204         * lib/unicase/toupper.c: New file.
39205         * lib/unicase/simple-mapping.h: New file.
39206
39207         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
39208         (mapping_table): New structure.
39209         (output_simple_mapping): New function.
39210         (main): Invoke output_simple_mapping_test and output_simple_mapping.
39211         * modules/gen-uni-tables (Description): Update.
39212         * lib/unicase/toupper.h: New file, automatically generated by
39213         gen-uni-tables.
39214         * lib/unicase/tolower.h: New file, automatically generated by
39215         gen-uni-tables.
39216         * lib/unicase/totitle.h: New file, automatically generated by
39217         gen-uni-tables.
39218         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
39219         gen-uni-tables.
39220         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
39221         gen-uni-tables.
39222         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
39223         gen-uni-tables.
39224
39225         New module 'unicase/base'.
39226         * modules/unicase/base: New file.
39227         * lib/unicase.h: New file.
39228
39229 2009-02-08  Bruno Haible  <bruno@clisp.org>
39230
39231         New module 'uniwbrk/ulc-wordbreaks'.
39232         * modules/uniwbrk/ulc-wordbreaks: New file.
39233         * lib/uniwbrk/ulc-wordbreaks.c: New file.
39234
39235         New module 'uniwbrk/u32-wordbreaks'.
39236         * modules/uniwbrk/u32-wordbreaks: New file.
39237         * lib/uniwbrk/u32-wordbreaks.c: New file.
39238
39239         New module 'uniwbrk/u16-wordbreaks'.
39240         * modules/uniwbrk/u16-wordbreaks: New file.
39241         * lib/uniwbrk/u16-wordbreaks.c: New file.
39242
39243         New module 'uniwbrk/u8-wordbreaks'.
39244         * modules/uniwbrk/u8-wordbreaks: New file.
39245         * lib/uniwbrk/u8-wordbreaks.c: New file.
39246         * lib/uniwbrk/u-wordbreaks.h: New file.
39247
39248         New module 'uniwbrk/table'.
39249         * modules/uniwbrk/table: New file.
39250         * lib/uniwbrk/wbrktable.h: New file.
39251         * lib/uniwbrk/wbrktable.c: New file.
39252
39253         New module 'uniwbrk/wordbreak-property'.
39254         * modules/uniwbrk/wordbreak-property: New file.
39255         * lib/uniwbrk/wordbreak-property.c: New file.
39256
39257         * lib/gen-uni-tables.c (WBP_*): New enum items.
39258         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
39259         (unicode_org_wbp): New variable.
39260         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
39261         New functions.
39262         (wbp_table): New structure.
39263         (output_wbp, output_wbrk_tables): New functions.
39264         (main): Accept additional argument. Invoke fill_org_wbp,
39265         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
39266         output_wbrk_tables.
39267         * modules/gen-uni-tables (Description): Update.
39268         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
39269         gen-uni-tables.
39270
39271         New module 'uniwbrk/base'.
39272         * modules/uniwbrk/base: New file.
39273         * lib/uniwbrk.h: New file.
39274
39275 2009-02-08  Bruno Haible  <bruno@clisp.org>
39276
39277         Update to Unicode 5.1.0.
39278         * lib/gen-uni-tables.c (is_property_alphabetic): Include
39279         U+2185..U+2188.
39280         (is_property_default_ignorable_code_point): Don't include characters
39281         of category Cc or Cs and not-a-characters.
39282         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
39283         U+0D79, U+109E, U+109F, U+A60C.
39284         * lib/unictype/bidi_of.h: Regenerated.
39285         * lib/unictype/blocks.h: Regenerated.
39286         * lib/unictype/categ_C.h: Regenerated.
39287         * lib/unictype/categ_Cf.h: Regenerated.
39288         * lib/unictype/categ_Cn.h: Regenerated.
39289         * lib/unictype/categ_L.h: Regenerated.
39290         * lib/unictype/categ_Ll.h: Regenerated.
39291         * lib/unictype/categ_Lm.h: Regenerated.
39292         * lib/unictype/categ_Lo.h: Regenerated.
39293         * lib/unictype/categ_Lu.h: Regenerated.
39294         * lib/unictype/categ_M.h: Regenerated.
39295         * lib/unictype/categ_Mc.h: Regenerated.
39296         * lib/unictype/categ_Me.h: Regenerated.
39297         * lib/unictype/categ_Mn.h: Regenerated.
39298         * lib/unictype/categ_N.h: Regenerated.
39299         * lib/unictype/categ_Nd.h: Regenerated.
39300         * lib/unictype/categ_Nl.h: Regenerated.
39301         * lib/unictype/categ_No.h: Regenerated.
39302         * lib/unictype/categ_P.h: Regenerated.
39303         * lib/unictype/categ_Pd.h: Regenerated.
39304         * lib/unictype/categ_Pe.h: Regenerated.
39305         * lib/unictype/categ_Pf.h: Regenerated.
39306         * lib/unictype/categ_Pi.h: Regenerated.
39307         * lib/unictype/categ_Po.h: Regenerated.
39308         * lib/unictype/categ_Ps.h: Regenerated.
39309         * lib/unictype/categ_S.h: Regenerated.
39310         * lib/unictype/categ_Sk.h: Regenerated.
39311         * lib/unictype/categ_Sm.h: Regenerated.
39312         * lib/unictype/categ_So.h: Regenerated.
39313         * lib/unictype/categ_of.h: Regenerated.
39314         * lib/unictype/combining.h: Regenerated.
39315         * lib/unictype/ctype_alnum.h: Regenerated.
39316         * lib/unictype/ctype_alpha.h: Regenerated.
39317         * lib/unictype/ctype_graph.h: Regenerated.
39318         * lib/unictype/ctype_lower.h: Regenerated.
39319         * lib/unictype/ctype_print.h: Regenerated.
39320         * lib/unictype/ctype_punct.h: Regenerated.
39321         * lib/unictype/ctype_upper.h: Regenerated.
39322         * lib/unictype/decdigit.h: Regenerated.
39323         * lib/unictype/digit.h: Regenerated.
39324         * lib/unictype/mirror.h: Regenerated.
39325         * lib/unictype/numeric.h: Regenerated.
39326         * lib/unictype/pr_alphabetic.h: Regenerated.
39327         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
39328         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
39329         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
39330         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
39331         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
39332         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
39333         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
39334         * lib/unictype/pr_combining.h: Regenerated.
39335         * lib/unictype/pr_dash.h: Regenerated.
39336         * lib/unictype/pr_decimal_digit.h: Regenerated.
39337         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
39338         * lib/unictype/pr_deprecated.h: Regenerated.
39339         * lib/unictype/pr_diacritic.h: Regenerated.
39340         * lib/unictype/pr_extender.h: Regenerated.
39341         * lib/unictype/pr_format_control.h: Regenerated.
39342         * lib/unictype/pr_grapheme_base.h: Regenerated.
39343         * lib/unictype/pr_grapheme_extend.h: Regenerated.
39344         * lib/unictype/pr_grapheme_link.h: Regenerated.
39345         * lib/unictype/pr_id_continue.h: Regenerated.
39346         * lib/unictype/pr_id_start.h: Regenerated.
39347         * lib/unictype/pr_ideographic.h: Regenerated.
39348         * lib/unictype/pr_ignorable_control.h: Regenerated.
39349         * lib/unictype/pr_lowercase.h: Regenerated.
39350         * lib/unictype/pr_math.h: Regenerated.
39351         * lib/unictype/pr_numeric.h: Regenerated.
39352         * lib/unictype/pr_other_alphabetic.h: Regenerated.
39353         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
39354         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
39355         * lib/unictype/pr_other_id_continue.h: Regenerated.
39356         * lib/unictype/pr_other_lowercase.h: Regenerated.
39357         * lib/unictype/pr_other_math.h: Regenerated.
39358         * lib/unictype/pr_punctuation.h: Regenerated.
39359         * lib/unictype/pr_sentence_terminal.h: Regenerated.
39360         * lib/unictype/pr_soft_dotted.h: Regenerated.
39361         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
39362         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
39363         * lib/unictype/pr_unified_ideograph.h: Regenerated.
39364         * lib/unictype/pr_uppercase.h: Regenerated.
39365         * lib/unictype/pr_xid_continue.h: Regenerated.
39366         * lib/unictype/pr_xid_start.h: Regenerated.
39367         * lib/unictype/pr_zero_width.h: Regenerated.
39368         * lib/unictype/scripts.h: Regenerated.
39369         * lib/unictype/scripts_byname.gperf: Regenerated.
39370         * lib/unictype/sy_java_ident.h: Regenerated.
39371         * lib/unilbrk/lbrkprop1.h: Regenerated.
39372         * lib/unilbrk/lbrkprop2.h: Regenerated.
39373         * tests/unictype/test-categ_C.c: Regenerated.
39374         * tests/unictype/test-categ_Cf.c: Regenerated.
39375         * tests/unictype/test-categ_Cn.c: Regenerated.
39376         * tests/unictype/test-categ_L.c: Regenerated.
39377         * tests/unictype/test-categ_Ll.c: Regenerated.
39378         * tests/unictype/test-categ_Lm.c: Regenerated.
39379         * tests/unictype/test-categ_Lo.c: Regenerated.
39380         * tests/unictype/test-categ_Lu.c: Regenerated.
39381         * tests/unictype/test-categ_M.c: Regenerated.
39382         * tests/unictype/test-categ_Mc.c: Regenerated.
39383         * tests/unictype/test-categ_Me.c: Regenerated.
39384         * tests/unictype/test-categ_Mn.c: Regenerated.
39385         * tests/unictype/test-categ_N.c: Regenerated.
39386         * tests/unictype/test-categ_Nd.c: Regenerated.
39387         * tests/unictype/test-categ_Nl.c: Regenerated.
39388         * tests/unictype/test-categ_No.c: Regenerated.
39389         * tests/unictype/test-categ_P.c: Regenerated.
39390         * tests/unictype/test-categ_Pd.c: Regenerated.
39391         * tests/unictype/test-categ_Pe.c: Regenerated.
39392         * tests/unictype/test-categ_Pf.c: Regenerated.
39393         * tests/unictype/test-categ_Pi.c: Regenerated.
39394         * tests/unictype/test-categ_Po.c: Regenerated.
39395         * tests/unictype/test-categ_Ps.c: Regenerated.
39396         * tests/unictype/test-categ_S.c: Regenerated.
39397         * tests/unictype/test-categ_Sk.c: Regenerated.
39398         * tests/unictype/test-categ_Sm.c: Regenerated.
39399         * tests/unictype/test-categ_So.c: Regenerated.
39400         * tests/unictype/test-ctype_alnum.c: Regenerated.
39401         * tests/unictype/test-ctype_alpha.c: Regenerated.
39402         * tests/unictype/test-ctype_graph.c: Regenerated.
39403         * tests/unictype/test-ctype_lower.c: Regenerated.
39404         * tests/unictype/test-ctype_print.c: Regenerated.
39405         * tests/unictype/test-ctype_punct.c: Regenerated.
39406         * tests/unictype/test-ctype_upper.c: Regenerated.
39407         * tests/unictype/test-decdigit.h: Regenerated.
39408         * tests/unictype/test-digit.h: Regenerated.
39409         * tests/unictype/test-numeric.h: Regenerated.
39410         * tests/unictype/test-pr_alphabetic.c: Regenerated.
39411         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
39412         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
39413         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
39414         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
39415         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
39416         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
39417         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
39418         * tests/unictype/test-pr_combining.c: Regenerated.
39419         * tests/unictype/test-pr_dash.c: Regenerated.
39420         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
39421         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
39422         * tests/unictype/test-pr_deprecated.c: Regenerated.
39423         * tests/unictype/test-pr_diacritic.c: Regenerated.
39424         * tests/unictype/test-pr_extender.c: Regenerated.
39425         * tests/unictype/test-pr_format_control.c: Regenerated.
39426         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
39427         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
39428         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
39429         * tests/unictype/test-pr_id_continue.c: Regenerated.
39430         * tests/unictype/test-pr_id_start.c: Regenerated.
39431         * tests/unictype/test-pr_ideographic.c: Regenerated.
39432         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
39433         * tests/unictype/test-pr_lowercase.c: Regenerated.
39434         * tests/unictype/test-pr_math.c: Regenerated.
39435         * tests/unictype/test-pr_numeric.c: Regenerated.
39436         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
39437         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
39438         Regenerated.
39439         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
39440         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
39441         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
39442         * tests/unictype/test-pr_other_math.c: Regenerated.
39443         * tests/unictype/test-pr_punctuation.c: Regenerated.
39444         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
39445         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
39446         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
39447         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
39448         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
39449         * tests/unictype/test-pr_uppercase.c: Regenerated.
39450         * tests/unictype/test-pr_xid_continue.c: Regenerated.
39451         * tests/unictype/test-pr_xid_start.c: Regenerated.
39452         * tests/unictype/test-pr_zero_width.c: Regenerated.
39453
39454         Update to Unicode 5.1.0.
39455         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
39456         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
39457         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
39458         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
39459         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
39460         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
39461         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
39462         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
39463         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
39464         (nonspacing_table_ind): Update.
39465         * tests/uniwidth/test-uc_width2.sh: Update expected result.
39466
39467         Update to Unicode 5.1.0.
39468         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
39469         code transform.
39470         * lib/uniname/uniname.c (unicode_character_name,
39471         unicode_name_character): Add the range 0x1Fxxx to the code transform.
39472         * lib/uniname/uninames.h: Regenerated.
39473         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
39474
39475 2009-02-07  Bruno Haible  <bruno@clisp.org>
39476
39477         Merge gen-ctype and gen-lbrk into a single program.
39478         * lib/gen-uni-tables.c: New file, incorporating
39479         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
39480         Add directory prefixes to the names of the generated files.
39481         * lib/unictype/gen-ctype.c: Remove file.
39482         * lib/unilbrk/gen-lbrk.c: Remove file.
39483         * modules/gen-uni-tables: New file.
39484         * modules/unictype/gen-ctype: Remove file.
39485         * modules/unilbrk/gen-lbrk: Remove file.
39486
39487 2009-02-07  Bruno Haible  <bruno@clisp.org>
39488
39489         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
39490
39491         New module 'unistr/u32-strcoll'.
39492         * modules/unistr/u32-strcoll: New file.
39493         * lib/unistr/u32-strcoll.c: New file.
39494
39495         New module 'unistr/u16-strcoll'.
39496         * modules/unistr/u16-strcoll: New file.
39497         * lib/unistr/u16-strcoll.c: New file.
39498
39499         New module 'unistr/u8-strcoll'.
39500         * modules/unistr/u8-strcoll: New file.
39501         * lib/unistr/u8-strcoll.c: New file.
39502         * lib/unistr/u-strcoll.h: New file.
39503
39504 2009-02-07  Bruno Haible  <bruno@clisp.org>
39505
39506         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
39507         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
39508         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
39509         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
39510         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
39511         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
39512
39513 2009-02-07  Bruno Haible  <bruno@clisp.org>
39514
39515         Make 64-bit clean.
39516         * lib/unictype/gen-ctype.c (output_predicate, output_category,
39517         output_combclass, output_bidi_category, output_decimal_digit,
39518         output_digit, output_numeric, output_mirror, output_scripts,
39519         output_ident_category): Use proper width specifier in format strings.
39520
39521 2009-02-07  Bruno Haible  <bruno@clisp.org>
39522
39523         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
39524         failure behaviour.
39525
39526 2009-02-07  Jim Meyering  <meyering@redhat.com>
39527
39528         regex: avoid compilation failure with upcoming gcc-4.4
39529         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
39530         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
39531         "... error: integer overflow in preprocessor expression".
39532
39533 2009-02-05  Ben Pfaff  <blp@gnu.org>
39534
39535         Fix link errors on Windows when close module is used.
39536         * modules/close: Add $(LIB_CLOSE) to Link section.
39537         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
39538         $(LIB_CLOSE) on Windows.
39539
39540 2009-02-05  Jim Meyering  <meyering@redhat.com>
39541
39542         still avoid unused-parameter warnings, but do it cleanly
39543         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
39544         (get_fs_usage): Cast to void instead.
39545         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
39546         (dev_from_mount_options, read_file_system_list): Cast to void.
39547         Prompted by Bruno Haible.
39548
39549 2009-02-04  Jim Meyering  <meyering@redhat.com>
39550
39551         fsusage.c: correct copyright year
39552         * lib/fsusage.c: Reflect year in which the change is pushed into
39553
39554         avoid misc. warnings
39555         * lib/fsusage.c (UNUSED_PARAM): Define.
39556         (get_fs_usage): Mark parameter "disk" as unused.
39557         * lib/getugroups.c (getgrent): Use "void" in prototype.
39558         * lib/mountlist.c: Mark unused parameters.
39559         (read_file_system_list): Declare a local with "const".
39560         * lib/nanosleep.c (getnow): Declare static.
39561         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
39562
39563         dirfd: set errno upon failure
39564         * lib/dirfd.c: Include <errno.h>.
39565         Set errno to ENOTSUP when returning -1.
39566         * modules/dirfd (Depends-on): Add errno.
39567         Suggested by John Kodis <kodis@comcast.net>.
39568
39569 2009-02-01  Bruno Haible  <bruno@clisp.org>
39570
39571         Don't assume sizeof (long) >= sizeof (void *).
39572         * lib/memcmp.c: Include stdint.h.
39573         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
39574         srcp2 to 'const byte *'.
39575         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
39576         types to uintptr_t.
39577         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
39578         * modules/memcmp (Depends-on): Add stdint.
39579         Reported by Ozkan Sezer <sezeroz@gmail.com>.
39580
39581 2009-01-30  Eric Blake  <ebb9@byu.net>
39582
39583         fix more require-before-expand issues
39584         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
39585         expand, AC_PROG_AWK.
39586         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
39587
39588 2009-01-28  Eric Blake  <ebb9@byu.net>
39589
39590         version-etc: use consistent URL formatting
39591         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
39592         Improve formatting.  Use fputs for string without %.
39593
39594 2009-01-28  Jim Meyering  <meyering@redhat.com>
39595
39596         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
39597         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
39598         "underquoted definition of NAME" from autoconf-2.59.
39599
39600 2009-01-28  Bruno Haible  <bruno@clisp.org>
39601
39602         * doc/gnulib.texi: Add "Obsolete modules" to index.
39603
39604 2009-01-28  Jim Meyering  <meyering@redhat.com>
39605
39606         useless-if-before-free: recognize more variants
39607         * build-aux/useless-if-before-free: Also recognize e.g.,
39608         if (NULL != p) free (p);
39609
39610 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
39611
39612         test-getaddrinfo: skip (don't fail) this test when there's no network
39613         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
39614         on the presumption that it means you lack network access.
39615
39616 2009-01-26  Jim Meyering  <meyering@redhat.com>
39617
39618         fflush: avoid warnings on modern systems
39619         * lib/fflush.c (rpl_fflush): Move declarations of locals,
39620         pos and result, into scopes where they're used.
39621
39622 2009-01-26  Eric Blake  <ebb9@byu.net>
39623
39624         Silence warning reintroduced by recent extensions patch.
39625         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
39626         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
39627         autoconf.
39628
39629         Backport improved autoconf semantics of AC_DEFUN_ONCE.
39630         * m4/00gnulib.m4: New file.
39631         * gnulib-tool (func_get_filelist): Always use it.
39632         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
39633         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
39634
39635 2009-01-25  Bruno Haible  <bruno@clisp.org>
39636
39637         Make test-quotearg work on MacOS X and AIX.
39638         * tests/test-quotearg.sh: New file.
39639         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
39640         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
39641         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
39642         include <libintl.h>.
39643         (fake_locale): Remove variable.
39644         (gettext, dgettext, dcgettext): Remove functions.
39645         (main): Instead of setting a fake locale, set a real locale. Call
39646         textdomain and bindtextdomain.
39647         * modules/quotearg-tests (Files): Add the new files.
39648         (Depends-on): Add gettext, setenv, unsetenv.
39649         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
39650         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
39651         Augment TESTS_ENVIRONMENT.
39652
39653 2009-01-25  Bruno Haible  <bruno@clisp.org>
39654
39655         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
39656         fr_FR.ISO8859-1 locale on MacOS X.
39657         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
39658         ja_JP.eucJP locale on MacOS X.
39659         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
39660         zh_CN.GB18030 locale on MacOS X.
39661
39662 2009-01-25  Bruno Haible  <bruno@clisp.org>
39663
39664         Avoid link errors on MacOS X 10.3.
39665         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
39666         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39667
39668 2009-01-25  Bruno Haible  <bruno@clisp.org>
39669
39670         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
39671         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
39672         * modules/pipe (Files): Remove m4/posix_spawn.m4.
39673         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
39674         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
39675         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
39676         posix_spawnattr_init, posix_spawnattr_setsigmask,
39677         posix_spawnattr_setflags, posix_spawnattr_destroy.
39678
39679         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
39680         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
39681         * modules/execute (Files): Remove m4/posix_spawn.m4.
39682         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
39683         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
39684         posix_spawnattr_init, posix_spawnattr_setsigmask,
39685         posix_spawnattr_setflags, posix_spawnattr_destroy.
39686
39687 2009-01-25  Bruno Haible  <bruno@clisp.org>
39688
39689         * lib/glthread/threadlib.c: Include <stdlib.h>.
39690
39691 2009-01-25  Bruno Haible  <bruno@clisp.org>
39692
39693         * lib/glthread/threadlib.c (dummy): New declaration.
39694
39695 2009-01-25  Bruno Haible  <bruno@clisp.org>
39696
39697         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
39698         multibyte characters also for the GB18030 encoding. Don't crash when
39699         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
39700
39701 2009-01-25  Bruno Haible  <bruno@clisp.org>
39702
39703         Avoid redefining 'struct random_data' on OSF/1 5.1.
39704         * lib/stdlib.in.h: Include <random.h> if it exists.
39705         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
39706         HAVE_RANDOM_H. Include <random.h> when testing whether
39707         'struct random_data' exists.
39708         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
39709
39710 2009-01-25  Bruno Haible  <bruno@clisp.org>
39711
39712         Don't install charset.alias on MacOS X >= 10.3.
39713         * lib/localcharset.c (DARWIN7): New macro.
39714         (get_charset_aliases): Hardcode the result for Darwin7.
39715         * modules/localcharset (install-exec-local): Don't install
39716         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
39717
39718 2009-01-25  Bruno Haible  <bruno@clisp.org>
39719
39720         Don't install charset.alias on mingw and Cygwin.
39721         * modules/localcharset (install-exec-local): Don't install
39722         charset.alias on mingw and Cygwin, if the file does not yet exist.
39723         The result for these platforms is hardcoded in localcharset.c.
39724
39725 2009-01-25  Bruno Haible  <bruno@clisp.org>
39726
39727         Make it possible again to use AC_GNU_SOURCE together with gnulib.
39728         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
39729         before requiring AC_USE_SYSTEM_EXTENSIONS.
39730
39731 2009-01-25  Jim Meyering  <meyering@redhat.com>
39732
39733         c-strtod: avoid warnings
39734         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
39735         "assignment discards qualifiers from pointer target type" warnings.
39736
39737 2009-01-24  Bruno Haible  <bruno@clisp.org>
39738
39739         Add support for non-UTF-8 locales on MacOS X.
39740         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
39741         canonical encodings. For Darwin 7 and newer, don't map traditional
39742         encodings to UTF-8.
39743         Reported by Vincent Lefevre <vincent@vinc17.org>
39744         at <http://savannah.gnu.org/bugs/?25235>.
39745
39746 2009-01-24  Bruno Haible  <bruno@clisp.org>
39747
39748         * doc/gnulib.texi (Obsolete modules): New section.
39749         Reported by Mike Frysinger <vapier@gentoo.org>.
39750
39751 2009-01-24  Bruno Haible  <bruno@clisp.org>
39752
39753         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
39754         (%.dvi): New rule.
39755
39756 2009-01-24  Bruno Haible  <bruno@clisp.org>
39757
39758         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
39759         Reported by Eric Blake.
39760
39761 2009-01-24  Bruno Haible  <bruno@clisp.org>
39762
39763         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
39764         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
39765         Reported by Gary V. Vaughan <gary@gnu.org>.
39766
39767 2009-01-24  Bruno Haible  <bruno@clisp.org>
39768
39769         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
39770
39771 2009-01-23  Bruno Haible  <bruno@clisp.org>
39772
39773         Make c-strtod, c-strtold usable in libraries.
39774         * lib/c-strtod.c: Include string.h instead of xalloc.h.
39775         (C_STRTOD): Call strdup instead of xstrdup.
39776         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
39777         * modules/c-strtold (Depends-on): Likewise.
39778         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
39779         * NEWS: Mention the change.
39780         Reported by Michael Gold <mgold@ncf.ca>.
39781
39782 2009-01-23  Jim Meyering  <meyering@redhat.com>
39783
39784         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
39785         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
39786         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
39787
39788 2009-01-23  Simon Josefsson  <simon@josefsson.org>
39789
39790         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
39791         GNU CoreUtils.
39792         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
39793         * modules/version-etc (Description): Update.
39794
39795 2009-01-22  Bruno Haible  <bruno@clisp.org>
39796
39797         Cache the C locale object.
39798         * lib/c-strtod.c (c_locale_cache): New variable.
39799         (c_locale): New function.
39800         (C_STRTOD): Use it, and don't call freelocale.
39801         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
39802         Suggested by Paolo Bonzini.
39803
39804 2009-01-21  Bruno Haible  <bruno@clisp.org>
39805
39806         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
39807         conditions other than overflow.
39808
39809 2009-01-21  Bruno Haible  <bruno@clisp.org>
39810
39811         * lib/c-strtod.c: Include errno.h.
39812         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
39813         value from STRTOD_L and STRTOD.
39814
39815 2009-01-21  Bruno Haible  <bruno@clisp.org>
39816         and Jim Meyering  <meyering@redhat.com>
39817
39818         nanosleep: skip configure test (fail it) for apple universal builds
39819         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
39820         universal builds, assume that nanosleep does not work.
39821         * modules/nanosleep (Depends-on): Add multiarch.
39822
39823         mktime: skip configure test (fail it) for apple universal builds
39824         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
39825         universal builds, assume that mktime does not work.
39826         * modules/mktime (Depends-on): Add multiarch.
39827
39828 2009-01-21  Eric Blake  <ebb9@byu.net>
39829
39830         multiarch: avoid expand-before-require warning
39831         * modules/multiarch (configure.ac): Require, rather than expand,
39832         gl_MULTIARCH.
39833         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
39834         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
39835         enforce that all clients require it.  Partial reversion of
39836         2008-12-29 patch.
39837
39838         error: avoid expand-before-require warning
39839         * modules/errno (configure.ac): Require, rather than expand,
39840         gl_HEADER_ERRNO_H.
39841         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
39842         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
39843         enforce that all clients require it.
39844
39845         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
39846         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
39847         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
39848         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
39849
39850 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
39851
39852         Revert:
39853         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
39854
39855         regex: do not depend on obsolete modules.
39856         * modules/regex: Remove memcmp and memmove.
39857
39858 2009-01-20  Bruno Haible  <bruno@clisp.org>
39859
39860         Make the 'link' module link on Windows NT 4.
39861         * lib/link.c (_WIN32_WINNT): Don't define.
39862         (CreateHardLinkFuncType): New type.
39863         (CreateHardLinkFunc, initialized): New variables.
39864         (initialize): New function.
39865         (link): Invoke CreateHardLink indirectly through the function pointer.
39866
39867 2009-01-20  Bruno Haible  <bruno@clisp.org>
39868
39869         Fix compilation failure on mingw.
39870         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
39871
39872 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
39873
39874         * doc/c-strtod.texi: Mention a couple of restrictions.
39875
39876 2009-01-20  Jim Meyering  <meyering@redhat.com>
39877
39878         gettimeofday: move more declarations out of functions
39879         * lib/gettimeofday.c: Move extern declarations of tzset and
39880         gmtime out of containing functions.  Prompted by Bruno Haible.
39881
39882 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
39883
39884         regex: do not depend on obsolete modules.
39885         * modules/regex: Remove memcmp and memmove.
39886
39887 2009-01-19  Bruno Haible  <bruno@clisp.org>
39888
39889         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
39890         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
39891         gl_BIGENDIAN, not AC_C_BIGENDIAN.
39892         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
39893         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
39894
39895 2009-01-19  Bruno Haible  <bruno@clisp.org>
39896
39897         * tests/test-link.c: Include <errno.h>.
39898         (main): Exit with code 77 when a hard link cannot be created due to
39899         the file system.
39900         * tests/test-link.sh: Skip test when a hard link cannot be created due
39901         to the file system.
39902         Suggested by Eric Blake.
39903
39904 2009-01-19  Martin Lambers  <marlam@marlam.de>
39905
39906         * modules/link-tests: New file.
39907         * tests/test-link.sh: New file.
39908         * tests/test-link.c: New file.
39909
39910 2009-01-19  Eric Blake  <ebb9@byu.net>
39911
39912         doc: mention another function added in cygwin 1.7.0
39913         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
39914         Another new function in cygwin 1.7.
39915
39916 2009-01-19  Bruno Haible  <bruno@clisp.org>
39917
39918         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
39919         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
39920         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
39921         gl_BIGENDIAN, not AC_C_BIGENDIAN.
39922         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
39923         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
39924         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
39925         * m4/md4.m4 (gl_MD4): Likewise.
39926         * m4/md5.m4 (gl_MD5): Likewise.
39927         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
39928         * m4/sha1.m4 (gl_SHA1): Likewise.
39929         * m4/sha256.m4 (gl_SHA256): Likewise.
39930         * m4/sha512.m4 (gl_SHA512): Likewise.
39931
39932 2009-01-19  Bruno Haible  <bruno@clisp.org>
39933
39934         * modules/uniname/uniname-tests (Depends-on): Add progname.
39935         * tests/uniname/test-uninames.c: Include progname.h.
39936         (main): Call set_program_name.
39937
39938         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
39939         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
39940         (main): Call set_program_name.
39941
39942         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
39943         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
39944         (main): Call set_program_name.
39945
39946         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
39947         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
39948         (main): Call set_program_name.
39949
39950         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
39951         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
39952         (main): Call set_program_name.
39953
39954         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
39955         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
39956         (main): Call set_program_name.
39957
39958         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
39959         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
39960         (main): Call set_program_name.
39961
39962         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
39963         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
39964         (main): Call set_program_name.
39965
39966         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
39967         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
39968         (main): Call set_program_name.
39969
39970 2009-01-19  Eric Blake  <ebb9@byu.net>
39971
39972         test-unistd: test previous patch
39973         * tests/test-unistd.c: Test *_FILENO macros.
39974
39975         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
39976         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39977         Guarantee a definition.
39978         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
39979         * modules/unistd-safer (Depends-on): Add dependency on unistd.
39980         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
39981         * lib/dup-safer.c (STDERR_FILENO): Likewise.
39982         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39983         Likewise.
39984         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
39985         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
39986         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39987         Likewise.
39988         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
39989         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
39990         (STDERR_FILENO): Likewise.
39991         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
39992         (STDERR_FILENO): Likewise.
39993         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
39994         (STDERR_FILENO): Likewise.
39995         Reported by Elbert Pol.
39996
39997 2009-01-19  Eric Blake  <ebb9@byu.net>
39998
39999         doc: mention more functions added in cygwin 1.7.0
40000         * doc/posix-functions/abort.texi (abort): Update wording related
40001         to cygwin.
40002         * doc/posix-functions/daylight.texi (daylight): Likewise.
40003         * doc/posix-functions/optarg.texi (optarg): Likewise.
40004         * doc/posix-functions/optarg.texi (opterr): Likewise.
40005         * doc/posix-functions/optarg.texi (optind): Likewise.
40006         * doc/posix-functions/optarg.texi (optopt): Likewise.
40007         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
40008         worked in 1.5.x, and was withdrawn in 1.7.
40009         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
40010         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
40011         cygwin versions.
40012         * doc/posix-functions/perror.texi (perror): Likewise.
40013         * doc/posix-functions/printf.texi (printf): Likewise.
40014         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
40015         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
40016         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
40017         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
40018         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
40019         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
40020         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40021         Likewise.
40022         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40023         Likewise.
40024         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
40025         this function.
40026         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
40027         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
40028         Likewise.
40029         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
40030         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
40031         * doc/posix-functions/confstr.texi (confstr): Likewise.
40032         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
40033         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
40034         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
40035         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
40036         * doc/posix-functions/fputws.texi (fputws): Likewise.
40037         * doc/posix-functions/fwide.texi (fwide): Likewise.
40038         * doc/posix-functions/getwc.texi (getwc): Likewise.
40039         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
40040         * doc/posix-functions/putwc.texi (putwc): Likewise.
40041         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
40042         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
40043         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
40044         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
40045         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
40046         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
40047         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
40048         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
40049         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
40050         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
40051         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
40052
40053 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40054
40055         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
40056         * lib/ioctl.c: Include <sys/ioctl.h>.
40057
40058 2009-01-19  Simon Josefsson  <simon@josefsson.org>
40059
40060         * modules/getdate-tests (Depends-on): Add progname.
40061         * tests/test-getdate.c: Use progname module, to avoid link errors
40062         on non-glibc systems.
40063
40064 2009-01-18  Simon Josefsson  <simon@josefsson.org>
40065
40066         * modules/filenamecat-tests (Depends-on): Add progname.
40067         * modules/fstrcmp-tests (Depends-on): Likewise.
40068
40069         * tests/test-filenamecat.c: Use progname module, to avoid link
40070         errors on non-glibc systems.
40071         * tests/test-fstrcmp.c: Likewise.
40072
40073 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40074
40075         gettimeofday: avoid warning: nested extern declaration of 'localtime'
40076         * lib/gettimeofday.c: Move extern declaration out of function.
40077
40078 2009-01-18  Bruno Haible  <bruno@clisp.org>
40079
40080         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
40081         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
40082         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
40083
40084 2009-01-18  Bruno Haible  <bruno@clisp.org>
40085
40086         * lib/strftime.c (MEMPCPY): Remove unused macro.
40087         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
40088
40089 2009-01-18  Martin Lambers  <marlam@marlam.de>
40090
40091         New module 'link'.
40092         * lib/unistd.in.h (link): New declaration.
40093         * lib/link.c: New file.
40094         * m4/link.m4: New file.
40095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
40096         HAVE_LINK.
40097         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
40098         * modules/link: New file.
40099         * doc/posix-functions/link.texi: Mention the new module.
40100
40101 2009-01-18  Bruno Haible  <bruno@clisp.org>
40102
40103         * tests/test-avltree_list.c (main): Call set_program_name.
40104         * tests/test-avltree_oset.c (main): Likewise.
40105         * tests/test-obstack-printf.c: Include progname.h.
40106         (main): Call set_program_name.
40107         * tests/test-quotearg.c: Include progname.h.
40108         (main): Call set_program_name.
40109         * tests/test-xmemdup0.c: Include progname.h.
40110         (main): Call set_program_name.
40111
40112 2009-01-18  Bruno Haible  <bruno@clisp.org>
40113
40114         New module 'alphasort'.
40115         * lib/dirent.in.h (alphasort): New declaration.
40116         * lib/alphasort.c: New file, from glibc with modifications.
40117         * m4/alphasort.m4: New file.
40118         * modules/alphasort: New file.
40119         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
40120         HAVE_ALPHASORT.
40121         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
40122         HAVE_ALPHASORT.
40123         * doc/posix-functions/alphasort.texi: Mention the new module and the
40124         portability problems.
40125
40126 2009-01-18  Bruno Haible  <bruno@clisp.org>
40127
40128         New module 'scandir'.
40129         * lib/dirent.in.h (scandir): New declaration.
40130         * lib/scandir.c: New file, from glibc with modifications.
40131         * m4/scandir.m4: New file.
40132         * modules/scandir: New file.
40133         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
40134         HAVE_SCANDIR.
40135         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
40136         HAVE_SCANDIR.
40137         * doc/posix-functions/scandir.texi: Mention the new module and the
40138         portability problems.
40139
40140 2009-01-17  Bruno Haible  <bruno@clisp.org>
40141
40142         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
40143         Update documentation.
40144         (func_remove_suffix): Escape all dots in the suffix. Update
40145         documentation.
40146         (func_filter_filelist): Update documentation.
40147         Reported by Ralf Wildenhues.
40148
40149 2009-01-17  Bruno Haible  <bruno@clisp.org>
40150
40151         * modules/dprintf-posix-tests: New file.
40152         * tests/test-dprintf-posix.sh: New file.
40153         * tests/test-dprintf-posix.c: New file.
40154
40155         New modules 'dprintf', 'dprintf-posix'.
40156         * lib/stdio.in.h (dprintf): New declaration.
40157         * lib/dprintf.c: New file.
40158         * m4/dprintf.m4: New file.
40159         * m4/dprintf-posix.m4: New file.
40160         * modules/dprintf: New file.
40161         * modules/dprintf-posix: New file.
40162         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
40163         HAVE_DPRINTF, REPLACE_DPRINTF.
40164         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
40165         HAVE_DPRINTF, REPLACE_DPRINTF.
40166         * doc/posix-functions/dprintf.texi: Mention the new modules.
40167
40168 2009-01-17  Bruno Haible  <bruno@clisp.org>
40169
40170         * modules/vdprintf-posix-tests: New file.
40171         * tests/test-vdprintf-posix.sh: New file.
40172         * tests/test-vdprintf-posix.c: New file.
40173
40174         New modules 'vdprintf', 'vdprintf-posix'.
40175         * lib/stdio.in.h (vdprintf): New declaration.
40176         * lib/vdprintf.c: New file.
40177         * m4/vdprintf.m4: New file.
40178         * m4/vdprintf-posix.m4: New file.
40179         * modules/vdprintf: New file.
40180         * modules/vdprintf-posix: New file.
40181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
40182         HAVE_VDPRINTF, REPLACE_VDPRINTF.
40183         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
40184         HAVE_VDPRINTF, REPLACE_VDPRINTF.
40185         * doc/posix-functions/vdprintf.texi: Mention the new modules.
40186
40187 2009-01-17  Bruno Haible  <bruno@clisp.org>
40188
40189         Fix replacement of fopen on mingw.
40190         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
40191         mingw.
40192
40193 2009-01-17  Bruno Haible  <bruno@clisp.org>
40194
40195         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
40196         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
40197
40198 2009-01-17  Bruno Haible  <bruno@clisp.org>
40199
40200         Avoid test-fflush2.sh failure on mingw.
40201         * tests/test-fflush2.c: Include binary-io.h.
40202         (main): Put standard input into binary mode.
40203         * modules/fflush-tests (Depends-on): Add binary-io.
40204
40205 2009-01-17  Bruno Haible  <bruno@clisp.org>
40206
40207         * lib/wchar.in.h: In another particular situation, include only the
40208         system's <wchar.h> file.
40209         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
40210         Reported by Albert Chin-A-Young <china@thewrittenword.com>
40211         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
40212
40213 2009-01-17  Bruno Haible  <bruno@clisp.org>
40214
40215         Support for stripping executables in --enable-relocatable.
40216         * build-aux/install-reloc: Expect one more argument, or an environment
40217         variable RELOC_STRIP_PROG. If set, strip the destination program and
40218         its wrapper.
40219         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
40220         RELOC_STRIP_PROG.
40221         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
40222         to set RELOCATABLE_STRIP.
40223         * NEWS: Mention the new Makefile requirement.
40224
40225 2009-01-17  Bruno Haible  <bruno@clisp.org>
40226
40227         * build-aux/install-reloc: Remove debugging information left over by
40228         C compiler on MacOS X.
40229
40230 2009-01-17  Bruno Haible  <bruno@clisp.org>
40231
40232         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
40233         * lib/progreloc.c (find_executable): Fix type of pointer passed to
40234         _NSGetExecutablePath.
40235
40236 2009-01-16  Jim Meyering  <meyering@redhat.com>
40237
40238         strerror: avoid warnings about discarding "const"
40239         * lib/strerror.c (rpl_strerror): Instead of returning a const
40240         string from each and every "case", use a variable, and add a single
40241         cast after the switch.
40242
40243 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
40244
40245         * lib/arpa_inet.in.h: Add extern "C" block for C++.
40246
40247 2009-01-16  Bruno Haible  <bruno@clisp.org>
40248
40249         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
40250         array initializer syntax that also works in C++ mode.
40251         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40252
40253 2009-01-16  Jim Meyering  <meyering@redhat.com>
40254
40255         poll: suppress a warning
40256         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
40257         to ignore "...unsigned expression < 0 is always false" warnings.
40258
40259 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
40260
40261         poll: remove declarations of unused variables
40262         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
40263         sockbuf and optlen.
40264
40265 2009-01-15  Bruno Haible  <bruno@clisp.org>
40266
40267         Make fflush-after-ungetc POSIX compliant on BSD systems.
40268         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
40269         (clear_ungetc_buffer): Implement also for other systems.
40270         (rpl_fflush): On glibc systems, invoke
40271         clear_ungetc_buffer_preserving_position. Otherwise, invoke
40272         clear_ungetc_buffer after fetching the stream's position, not before.
40273
40274 2009-01-15  Bruno Haible  <bruno@clisp.org>
40275
40276         Make fflush-after-ungetc POSIX compliant on glibc systems.
40277         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
40278         after ungetc.
40279         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
40280         (rpl_fflush): On glibc systems, simply call the system's fflush
40281         function after clearing the ungetc buffer.
40282         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
40283         Instead, lseek only to the end of file, then use the system's fseeko
40284         for the rest. On glibc systems, reset the EOF indicator bit.
40285
40286 2009-01-15  Jim Meyering  <meyering@redhat.com>
40287
40288         openmp.m4: revert quote-adding change, for portability to older autoconf
40289         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
40290         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
40291         Simon Josefsson noticed the problem when using autoconf-2.61.
40292
40293 2009-01-15  Bruno Haible  <bruno@clisp.org>
40294
40295         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
40296         * tests/test-fflush2.c (ASSERT): Always fail.
40297         (main): Add two tests for fflush() after ungetc(), taking into account
40298         the Austin Group's clarification.
40299         Suggested by Eric Blake.
40300
40301 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
40302
40303         mktime.m4: remove K&R-style function prototypes
40304         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
40305         for the Sun C++ compiler.
40306
40307 2009-01-14  Bruno Haible  <bruno@clisp.org>
40308
40309         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
40310         while including <wchar.h>.
40311         * lib/wchar.in.h: In two particular situations on HP-UX, include only
40312         the system's <wchar.h> file.
40313         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40314
40315 2009-01-14  Bruno Haible  <bruno@clisp.org>
40316
40317         * m4/csharp.m4: Don't mention gettext on the serial number line.
40318         * m4/csharpexec.m4: Likewise.
40319         * m4/eaccess.m4: Likewise.
40320         * m4/javaexec.m4: Likewise.
40321         * m4/sig_atomic_t.m4: Likewise.
40322         * m4/tmpdir.m4: Likewise.
40323         * m4/intldir.m4: Bump gettext version.
40324         * m4/lib-ld.m4: Likewise.
40325
40326 2009-01-14  Bruno Haible  <bruno@clisp.org>
40327
40328         * lib/progname.c (set_program_name): Add more comments.
40329         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40330
40331 2009-01-14  Simon Josefsson  <simon@josefsson.org>
40332
40333         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
40334         were sys/stat.h does not define it.
40335
40336 2009-01-14  Jim Meyering  <meyering@redhat.com>
40337
40338         many *.m4 files: improve m4 quoting
40339         99% of this change was performed by running the following commands:
40340         git ls-files | grep '\.m4$' | xargs perl -pi \
40341           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
40342           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
40343           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
40344           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
40345         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
40346         The remainder were to add Copyright dates, increment serial numbers,
40347         undo some changes in comments, exclude m4/intl.m4, and add quotes
40348         around the "1" in ",1" where the unusual spacing prohibited the
40349         above regexps from doing the job.  For more details, see
40350         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
40351         * m4/acl.m4: Modified.
40352         * m4/afs.m4: Likewise.
40353         * m4/alloca.m4: Likewise.
40354         * m4/argp.m4: Likewise.
40355         * m4/argz.m4: Likewise.
40356         * m4/atexit.m4: Likewise.
40357         * m4/bison-i18n.m4: Likewise.
40358         * m4/bison.m4: Likewise.
40359         * m4/byteswap.m4: Likewise.
40360         * m4/c-stack.m4: Likewise.
40361         * m4/c-strtod.m4: Likewise.
40362         * m4/calloc.m4: Likewise.
40363         * m4/canonicalize-lgpl.m4: Likewise.
40364         * m4/chown.m4: Likewise.
40365         * m4/clock_time.m4: Likewise.
40366         * m4/codeset.m4: Likewise.
40367         * m4/copy-file.m4: Likewise.
40368         * m4/csharp.m4: Likewise.
40369         * m4/csharpcomp.m4: Likewise.
40370         * m4/csharpexec.m4: Likewise.
40371         * m4/d-ino.m4: Likewise.
40372         * m4/d-type.m4: Likewise.
40373         * m4/dirfd.m4: Likewise.
40374         * m4/double-slash-root.m4: Likewise.
40375         * m4/eaccess.m4: Likewise.
40376         * m4/eealloc.m4: Likewise.
40377         * m4/environ.m4: Likewise.
40378         * m4/errno_h.m4: Likewise.
40379         * m4/euidaccess.m4: Likewise.
40380         * m4/execute.m4: Likewise.
40381         * m4/fatal-signal.m4: Likewise.
40382         * m4/fchdir.m4: Likewise.
40383         * m4/fcntl_h.m4: Likewise.
40384         * m4/fileblocks.m4: Likewise.
40385         * m4/filenamecat.m4: Likewise.
40386         * m4/findprog.m4: Likewise.
40387         * m4/flexmember.m4: Likewise.
40388         * m4/fnmatch.m4: Likewise.
40389         * m4/fopen.m4: Likewise.
40390         * m4/fpending.m4: Likewise.
40391         * m4/fprintf-posix.m4: Likewise.
40392         * m4/free.m4: Likewise.
40393         * m4/frexp.m4: Likewise.
40394         * m4/frexpl.m4: Likewise.
40395         * m4/fsusage.m4: Likewise.
40396         * m4/ftruncate.m4: Likewise.
40397         * m4/gc-camellia.m4: Likewise.
40398         * m4/gc-random.m4: Likewise.
40399         * m4/gc.m4: Likewise.
40400         * m4/getaddrinfo.m4: Likewise.
40401         * m4/getcwd-abort-bug.m4: Likewise.
40402         * m4/getcwd-path-max.m4: Likewise.
40403         * m4/getdate.m4: Likewise.
40404         * m4/getdomainname.m4: Likewise.
40405         * m4/getgroups.m4: Likewise.
40406         * m4/gethostname.m4: Likewise.
40407         * m4/gethrxtime.m4: Likewise.
40408         * m4/getline.m4: Likewise.
40409         * m4/getloadavg.m4: Likewise.
40410         * m4/getndelim2.m4: Likewise.
40411         * m4/getpass.m4: Likewise.
40412         * m4/gettext.m4: Likewise.
40413         * m4/gettime.m4: Likewise.
40414         * m4/gettimeofday.m4: Likewise.
40415         * m4/gnulib-common.m4: Likewise.
40416         * m4/group-member.m4: Likewise.
40417         * m4/host-os.m4: Likewise.
40418         * m4/iconv.m4: Likewise.
40419         * m4/iconv_open.m4: Likewise.
40420         * m4/inet_ntop.m4: Likewise.
40421         * m4/inet_pton.m4: Likewise.
40422         * m4/inline.m4: Likewise.
40423         * m4/intldir.m4: Likewise.
40424         * m4/intlmacosx.m4: Likewise.
40425         * m4/intmax.m4: Likewise.
40426         * m4/intmax_t.m4: Likewise.
40427         * m4/inttypes.m4: Likewise.
40428         * m4/inttypes_h.m4: Likewise.
40429         * m4/inttypes-pri.m4: Likewise.
40430         * m4/isapipe.m4: Likewise.
40431         * m4/isnand.m4: Likewise.
40432         * m4/isnanf.m4: Likewise.
40433         * m4/isnanl.m4: Likewise.
40434         * m4/javacomp.m4: Likewise.
40435         * m4/javaexec.m4: Likewise.
40436         * m4/jm-winsz1.m4: Likewise.
40437         * m4/jm-winsz2.m4: Likewise.
40438         * m4/lchown.m4: Likewise.
40439         * m4/lcmessage.m4: Likewise.
40440         * m4/ldexpl.m4: Likewise.
40441         * m4/lib-ld.m4: Likewise.
40442         * m4/lib-link.m4: Likewise.
40443         * m4/libsigsegv.m4: Likewise.
40444         * m4/link-follow.m4: Likewise.
40445         * m4/localcharset.m4: Likewise.
40446         * m4/locale-fr.m4: Likewise.
40447         * m4/locale-ja.m4: Likewise.
40448         * m4/locale-tr.m4: Likewise.
40449         * m4/locale-zh.m4: Likewise.
40450         * m4/lock.m4: Likewise.
40451         * m4/longlong.m4: Likewise.
40452         * m4/ls-mntd-fs.m4: Likewise.
40453         * m4/lstat.m4: Likewise.
40454         * m4/malloc.m4: Likewise.
40455         * m4/mathl.m4: Likewise.
40456         * m4/mbrtowc.m4: Likewise.
40457         * m4/mbstate_t.m4: Likewise.
40458         * m4/mbswidth.m4: Likewise.
40459         * m4/memchr.m4: Likewise.
40460         * m4/memcmp.m4: Likewise.
40461         * m4/memcpy.m4: Likewise.
40462         * m4/memmem.m4: Likewise.
40463         * m4/memmove.m4: Likewise.
40464         * m4/mempcpy.m4: Likewise.
40465         * m4/memrchr.m4: Likewise.
40466         * m4/memset.m4: Likewise.
40467         * m4/minmax.m4: Likewise.
40468         * m4/mkdir-slash.m4: Likewise.
40469         * m4/mkdtemp.m4: Likewise.
40470         * m4/mktime.m4: Likewise.
40471         * m4/mmap-anon.m4: Likewise.
40472         * m4/mountlist.m4: Likewise.
40473         * m4/nanosleep.m4: Likewise.
40474         * m4/nls.m4: Likewise.
40475         * m4/nocrash.m4: Likewise.
40476         * m4/open.m4: Likewise.
40477         * m4/openat.m4: Likewise.
40478         * m4/openmp.m4: Likewise.
40479         * m4/pathmax.m4: Likewise.
40480         * m4/perl.m4: Likewise.
40481         * m4/physmem.m4: Likewise.
40482         * m4/pipe.m4: Likewise.
40483         * m4/po.m4: Likewise.
40484         * m4/poll.m4: Likewise.
40485         * m4/posixtm.m4: Likewise.
40486         * m4/posixver.m4: Likewise.
40487         * m4/printf-frexp.m4: Likewise.
40488         * m4/printf-frexpl.m4: Likewise.
40489         * m4/printf-posix.m4: Likewise.
40490         * m4/printf-posix-rpl.m4: Likewise.
40491         * m4/printf.m4: Likewise.
40492         * m4/progtest.m4: Likewise.
40493         * m4/putenv.m4: Likewise.
40494         * m4/readline.m4: Likewise.
40495         * m4/readlink.m4: Likewise.
40496         * m4/readutmp.m4: Likewise.
40497         * m4/realloc.m4: Likewise.
40498         * m4/regex.m4: Likewise.
40499         * m4/relocatable.m4: Likewise.
40500         * m4/relocatable-lib.m4: Likewise.
40501         * m4/rename-dest-slash.m4: Likewise.
40502         * m4/rename.m4: Likewise.
40503         * m4/rmdir-errno.m4: Likewise.
40504         * m4/rmdir.m4: Likewise.
40505         * m4/roundf.m4: Likewise.
40506         * m4/roundl.m4: Likewise.
40507         * m4/rpmatch.m4: Likewise.
40508         * m4/save-cwd.m4: Likewise.
40509         * m4/selinux-selinux-h.m4: Likewise.
40510         * m4/setenv.m4: Likewise.
40511         * m4/settime.m4: Likewise.
40512         * m4/sig2str.m4: Likewise.
40513         * m4/sig_atomic_t.m4: Likewise.
40514         * m4/signalblocking.m4: Likewise.
40515         * m4/signbit.m4: Likewise.
40516         * m4/sigpipe.m4: Likewise.
40517         * m4/sockets.m4: Likewise.
40518         * m4/sockpfaf.m4: Likewise.
40519         * m4/st_dm_mode.m4: Likewise.
40520         * m4/stat-time.m4: Likewise.
40521         * m4/stdbool.m4: Likewise.
40522         * m4/stdint.m4: Likewise.
40523         * m4/stdint_h.m4: Likewise.
40524         * m4/stpcpy.m4: Likewise.
40525         * m4/stpncpy.m4: Likewise.
40526         * m4/strcase.m4: Likewise.
40527         * m4/strchrnul.m4: Likewise.
40528         * m4/strcspn.m4: Likewise.
40529         * m4/strdup.m4: Likewise.
40530         * m4/strftime.m4: Likewise.
40531         * m4/strndup.m4: Likewise.
40532         * m4/strnlen.m4: Likewise.
40533         * m4/strpbrk.m4: Likewise.
40534         * m4/strptime.m4: Likewise.
40535         * m4/strsep.m4: Likewise.
40536         * m4/strtod.m4: Likewise.
40537         * m4/strtoimax.m4: Likewise.
40538         * m4/strtok_r.m4: Likewise.
40539         * m4/strtol.m4: Likewise.
40540         * m4/strtoll.m4: Likewise.
40541         * m4/strtoul.m4: Likewise.
40542         * m4/strtoull.m4: Likewise.
40543         * m4/strtoumax.m4: Likewise.
40544         * m4/strverscmp.m4: Likewise.
40545         * m4/threadlib.m4: Likewise.
40546         * m4/timegm.m4: Likewise.
40547         * m4/tm_gmtoff.m4: Likewise.
40548         * m4/tmpdir.m4: Likewise.
40549         * m4/tmpfile.m4: Likewise.
40550         * m4/tzset.m4: Likewise.
40551         * m4/uintmax_t.m4: Likewise.
40552         * m4/unlinkdir.m4: Likewise.
40553         * m4/unlocked-io.m4: Likewise.
40554         * m4/uptime.m4: Likewise.
40555         * m4/userspec.m4: Likewise.
40556         * m4/utimbuf.m4: Likewise.
40557         * m4/utime.m4: Likewise.
40558         * m4/utimes-null.m4: Likewise.
40559         * m4/utimes.m4: Likewise.
40560         * m4/vararrays.m4: Likewise.
40561         * m4/vasnprintf.m4: Likewise.
40562         * m4/vfprintf-posix.m4: Likewise.
40563         * m4/vprintf-posix.m4: Likewise.
40564         * m4/wait-process.m4: Likewise.
40565         * m4/wchar_t.m4: Likewise.
40566         * m4/wint_t.m4: Likewise.
40567         * m4/write-any-file.m4: Likewise.
40568         * m4/yield.m4: Likewise.
40569
40570 2009-01-13  Bruno Haible  <bruno@clisp.org>
40571
40572         Avoid test-copy-file.sh failures when ACL support insufficient.
40573         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
40574         TESTS_ENVIRONMENT.
40575         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
40576         Reported by Jim Meyering.
40577
40578 2009-01-13  Bruno Haible  <bruno@clisp.org>
40579
40580         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
40581         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
40582         * modules/unistdio/u8-printf-parse (Files): Likewise.
40583         * modules/unistdio/u32-printf-parse (Files): Likewise.
40584         * modules/unistdio/ulc-printf-parse (Files): Likewise.
40585
40586 2009-01-13  Simon Josefsson  <simon@josefsson.org>
40587
40588         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
40589         and m4/inttypes_h.m4 too.
40590
40591 2009-01-12  Eric Blake  <ebb9@byu.net>
40592
40593         tests: IRIX 6.2 cc can't compile -0.0 into .data
40594         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
40595         rather than at compile-time.
40596         * tests/test-floorl.c (minus_zero): Likewise.
40597         * tests/test-frexpl.c (minus_zero): Likewise.
40598         * tests/test-isnan.c (minus_zerol): Likewise.
40599         * tests/test-isnanl.h (minus_zero): Likewise.
40600         * tests/test-ldexpl.c (minus_zero): Likewise.
40601         * tests/test-roundl.c (minus_zero): Likewise.
40602         * tests/test-signbit.c (minus_zerol): Likewise.
40603         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
40604         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
40605         * tests/test-truncl.c (minus_zero): Likewise.
40606         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
40607         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
40608         Reported by Tom G. Christensen and Nelson H. F. Beebe.
40609
40610 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
40611
40612         regex: fix glibc bug 9697
40613         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
40614         handling.
40615
40616 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
40617
40618         regex: fix glibc bug 697
40619         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
40620         being NULL also if there are no backreferences.
40621
40622 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
40623
40624         regex: merge glibc changes
40625         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
40626         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
40627         re_string_skip_chars, re_string_reconstruct): Likewise.
40628         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
40629
40630 2009-01-07  Jim Meyering  <meyering@redhat.com>
40631
40632         poll: filter through cppi
40633         * lib/poll.c: Indent cpp directives to reflect nesting.
40634
40635 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
40636
40637         poll: don't return uninitialized
40638         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
40639
40640 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
40641
40642         avoid compile failure on AIX 6.1
40643         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
40644         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
40645
40646 2009-01-04  Jim Meyering  <meyering@redhat.com>
40647
40648         remove duplicate inclusion of <stdio.h>
40649         * tests/test-fprintf-posix.c: Likewise.
40650         * tests/test-printf-posix.c: Likewise.
40651         * tests/test-snprintf-posix.c: Likewise.
40652         * tests/test-sprintf-posix.c: Likewise.
40653         * tests/test-vasprintf-posix.c: Likewise.
40654         * tests/test-vfprintf-posix.c: Likewise.
40655         * tests/test-vprintf-posix.c: Likewise.
40656         * tests/test-vsnprintf-posix.c: Likewise.
40657         * tests/test-vsprintf-posix.c: Likewise.
40658
40659 2009-01-03  Jim Meyering  <meyering@redhat.com>
40660
40661         gnulib-tool: fix sed-based filtering
40662         * gnulib-tool (func_filter_filelist): Remove extra backslash
40663         in sed_fff_filter definition.
40664
40665 2009-01-02  Jim Meyering  <meyering@redhat.com>
40666
40667         strftime: avoid compilation failure on Solaris 2.6
40668         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
40669         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
40670         Don't #define mbrlen or mbsinit, since now they're guaranteed to
40671         be available.  Reported by Tom G. Christensen.  Details in
40672         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
40673
40674 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40675             Bruno Haible  <bruno@clisp.org>
40676
40677         Speed up gnulib-tool by doing more string processing through shell
40678         built-ins.
40679         * gnulib-tool (fast_func_append): New variable.
40680         (func_remove_prefix, func_remove_suffix): New functions.
40681         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
40682         (func_filter_filelist): New function.
40683         (func_get_dependencies): Use func_remove_suffix instead of sed.
40684         (func_get_automake_snippet): Use func_filter_filelist instead of a
40685         subshell and sed invocation.
40686
40687 2009-01-01  Bruno Haible  <bruno@clisp.org>
40688
40689         Fix a security bug.
40690         * gnulib-tool (func_import, import, update): Don't allow the characters
40691         '"', '$', '`', '\' in macro arguments that become part of commands that
40692         are evaluated.
40693
40694 2009-01-01  Bruno Haible  <bruno@clisp.org>
40695
40696         * gnulib-tool (func_reset_sigpipe): Add more comments.
40697
40698 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40699
40700         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
40701         func_emit_tests_Makefile_am, func_import): Abort loops early if we
40702         already know the answer.
40703
40704 2009-01-01  Jim Meyering  <meyering@redhat.com>
40705
40706         * lib/version-etc.c (version_etc_va): Update copyright year.
40707
40708 2008-12-30  Bruno Haible  <bruno@clisp.org>
40709
40710         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
40711         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
40712         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
40713
40714 2008-12-29  Eric Blake  <ebb9@byu.net>
40715
40716         multiarch: avoid autoconf AC_REQUIRE bug
40717         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
40718         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
40719         2.63 and older.
40720         Reported by Bruno Haible, and analyzed in
40721         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
40722
40723 2008-12-29  Bruno Haible  <bruno@clisp.org>
40724
40725         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
40726         files in subdirectories correctly.
40727         Reported by Ralf Wildenhues.
40728
40729 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40730
40731         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
40732         rather than 'join FILE -', for Solaris join.
40733
40734 2008-12-29  Bruno Haible  <bruno@clisp.org>
40735
40736         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
40737         quoting.
40738         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
40739         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
40740         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
40741         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
40742         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
40743         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
40744         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
40745         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
40746         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
40747         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
40748         * m4/nls.m4 (AM_NLS): Likewise.
40749         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
40750         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
40751         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
40752         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
40753         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
40754         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
40755         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
40756         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
40757         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
40758         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40759         * m4/xsize.m4 (gl_XSIZE): Likewise.
40760         Suggested by Jim Meyering.
40761
40762 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40763
40764         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
40765         * lib/parse-duration.c: use a switch instead of cascading if's.
40766
40767 2008-12-29  Eric Blake  <ebb9@byu.net>
40768
40769         wchar.h: supply WEOF on Irix 5.3
40770         * lib/wchar.in.h (wint_t): Also supply WEOF.
40771         * lib/wctype.in.h (wint_t): Likewise.
40772         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
40773         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
40774         Reported by Tom G. Christensen.
40775
40776 2008-12-26  Bruno Haible  <bruno@clisp.org>
40777
40778         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
40779         i486, i586, i686.
40780
40781 2008-12-26  Bruno Haible  <bruno@clisp.org>
40782
40783         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
40784
40785 2008-12-26  Bruno Haible  <bruno@clisp.org>
40786
40787         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
40788         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
40789         not __STDC_CONSTANT_MACROS.
40790         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
40791
40792 2008-12-25  Bruno Haible  <bruno@clisp.org>
40793
40794         Add support for universal builds to vasnprintf.
40795         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
40796         universal builds, guess no.
40797         * modules/vasnprintf-posix (Depends-on): Add multiarch.
40798         * modules/vasprintf-posix (Depends-on): Likewise.
40799         * modules/fprintf-posix (Depends-on): Likewise.
40800         * modules/vfprintf-posix (Depends-on): Likewise.
40801         * modules/snprintf-posix (Depends-on): Likewise.
40802         * modules/vsnprintf-posix (Depends-on): Likewise.
40803         * modules/sprintf-posix (Depends-on): Likewise.
40804         * modules/vsprintf-posix (Depends-on): Likewise.
40805         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40806         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40807         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40808         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40809         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40810         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40811         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40812
40813         Add support for universal builds to <inttypes.h>.
40814         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
40815         _SCNu64_PREFIX): In Apple
40816         universal builds, define directly, using _LP64.
40817         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
40818         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
40819         * modules/inttypes (Depends-on): Add multiarch.
40820         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
40821
40822         Add support for universal builds to <stdint.h>.
40823         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
40824         universal builds, define directly, using _LP64.
40825         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
40826         Apple universal builds, don't test for the size and suffix of ptrdiff_t
40827         and size_t.
40828         * modules/stdint (Depends-on): Add multiarch.
40829         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
40830
40831         New module 'multiarch'.
40832         * modules/multiarch: New file.
40833         * m4/multiarch.m4: New file.
40834
40835 2008-12-25  Bruno Haible  <bruno@clisp.org>
40836
40837         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
40838
40839 2008-12-25  Bruno Haible  <bruno@clisp.org>
40840
40841         * modules/btowc (License): Relicense under LGPLv2+.
40842         * modules/mbsinit (License): Likewise.
40843         * modules/mbrtowc (License): Likewise.
40844         * modules/wcrtomb (License): Likewise.
40845         * modules/streq (License): Likewise.
40846         Reported by David Lutterkort <lutter@redhat.com>.
40847
40848 2008-12-23  Bruno Haible  <bruno@clisp.org>
40849
40850         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
40851
40852 2008-12-23  Bruno Haible  <bruno@clisp.org>
40853
40854         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
40855         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
40856         GETADDRINFO_LIB, not in LIBS.
40857         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
40858         * modules/canon-host (Link): Likewise.
40859         * NEWS: Mention the change.
40860         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
40861         GETADDRINFO_LIB.
40862
40863 2008-12-22  Bruno Haible  <bruno@clisp.org>
40864
40865         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
40866         * doc/posix-functions/iswalpha_l.texi: Likewise.
40867         * doc/posix-functions/iswblank_l.texi: Likewise.
40868         * doc/posix-functions/iswcntrl_l.texi: Likewise.
40869         * doc/posix-functions/iswctype_l.texi: Likewise.
40870         * doc/posix-functions/iswdigit_l.texi: Likewise.
40871         * doc/posix-functions/iswgraph_l.texi: Likewise.
40872         * doc/posix-functions/iswlower_l.texi: Likewise.
40873         * doc/posix-functions/iswprint_l.texi: Likewise.
40874         * doc/posix-functions/iswpunct_l.texi: Likewise.
40875         * doc/posix-functions/iswspace_l.texi: Likewise.
40876         * doc/posix-functions/iswupper_l.texi: Likewise.
40877         * doc/posix-functions/iswxdigit_l.texi: Likewise.
40878         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
40879         * doc/posix-functions/open_wmemstream.texi: Likewise.
40880         * doc/posix-functions/swscanf.texi: Likewise.
40881         * doc/posix-functions/towctrans_l.texi: Likewise.
40882         * doc/posix-functions/towlower.texi: Likewise.
40883         * doc/posix-functions/towlower_l.texi: Likewise.
40884         * doc/posix-functions/towupper.texi: Likewise.
40885         * doc/posix-functions/towupper_l.texi: Likewise.
40886         * doc/posix-functions/vfwprintf.texi: Likewise.
40887         * doc/posix-functions/vfwscanf.texi: Likewise.
40888         * doc/posix-functions/vswscanf.texi: Likewise.
40889         * doc/posix-functions/vwprintf.texi: Likewise.
40890         * doc/posix-functions/vwscanf.texi: Likewise.
40891         * doc/posix-functions/wcpcpy.texi: Likewise.
40892         * doc/posix-functions/wcpncpy.texi: Likewise.
40893         * doc/posix-functions/wcscasecmp.texi: Likewise.
40894         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
40895         * doc/posix-functions/wcscoll_l.texi: Likewise.
40896         * doc/posix-functions/wcsdup.texi: Likewise.
40897         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40898         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
40899         * doc/posix-functions/wcsnlen.texi: Likewise.
40900         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40901         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
40902         * doc/posix-functions/wctrans_l.texi: Likewise.
40903         * doc/posix-functions/wctype_l.texi: Likewise.
40904         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
40905         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
40906         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
40907         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
40908         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
40909         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
40910         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
40911         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
40912         * doc/glibc-functions/wcschrnul.texi: Likewise.
40913         * doc/glibc-functions/wcsftime_l.texi: Likewise.
40914         * doc/glibc-functions/wcstod_l.texi: Likewise.
40915         * doc/glibc-functions/wcstof_l.texi: Likewise.
40916         * doc/glibc-functions/wcstol_l.texi: Likewise.
40917         * doc/glibc-functions/wcstold_l.texi: Likewise.
40918         * doc/glibc-functions/wcstoll_l.texi: Likewise.
40919         * doc/glibc-functions/wcstoq.texi: Likewise.
40920         * doc/glibc-functions/wcstoul_l.texi: Likewise.
40921         * doc/glibc-functions/wcstoull_l.texi: Likewise.
40922         * doc/glibc-functions/wcstouq.texi: Likewise.
40923         * doc/glibc-functions/wmempcpy.texi: Likewise.
40924
40925 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
40926             Eric Blake  <ebb9@byu.net>
40927             Paolo Bonzini  <bonzini@gnu.org>
40928             Bruno Haible  <bruno@clisp.org>
40929
40930         Make c-stack work on Haiku.
40931         * lib/c-stack.c (SA_ONSTACK): Define fallback.
40932         (c_stack_action): Use SA_ONSTACK flag.
40933
40934 2008-12-22  Bruno Haible  <bruno@clisp.org>
40935
40936         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
40937
40938 2008-12-22  Bruno Haible  <bruno@clisp.org>
40939
40940         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
40941         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
40942         being overridden.
40943         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
40944         New macros.
40945         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
40946         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
40947         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
40948         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
40949
40950 2008-12-22  Bruno Haible  <bruno@clisp.org>
40951
40952         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
40953         from test code.
40954
40955 2008-12-22  Eric Blake  <ebb9@byu.net>
40956
40957         Avoid gcc warnings on cygwin.
40958         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
40959         Avoid unused variable.
40960         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
40961         Likewise.
40962
40963 2008-12-22  Bruno Haible  <bruno@clisp.org>
40964
40965         Remove HAVE_MBRTOWC conditionals.
40966         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
40967         (mbscasecmp): Assume mbrtowc function.
40968         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
40969         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
40970         * lib/mbschr.c: Include mbuiter.h unconditionally.
40971         (mbschr): Assume mbrtowc function.
40972         * lib/mbscspn.c: Include mbuiter.h unconditionally.
40973         (mbscspn): Assume mbrtowc function.
40974         * lib/mbslen.c: Include mbuiter.h unconditionally.
40975         (mbslen): Assume mbrtowc function.
40976         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
40977         (mbsncasecmp): Assume mbrtowc function.
40978         * lib/mbsnlen.c: Include mbiter.h unconditionally.
40979         (mbsnlen): Assume mbrtowc function.
40980         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
40981         (mbspbrk): Assume mbrtowc function.
40982         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
40983         (mbspcasecmp): Assume mbrtowc function.
40984         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
40985         (mbsrchr): Assume mbrtowc function.
40986         * lib/mbssep.c: Include mbuiter.h unconditionally.
40987         (mbssep): Assume mbrtowc function.
40988         * lib/mbsspn.c: Include mbuiter.h unconditionally.
40989         (mbsspn): Assume mbrtowc function.
40990         * lib/mbsstr.c: Include mbuiter.h unconditionally.
40991         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
40992         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
40993         (mbstok_r): Assume mbrtowc function.
40994         * lib/propername.c: Include mbuiter.h unconditionally.
40995         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
40996         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
40997         (trim2): Assume mbrtowc function.
40998         * lib/mbswidth.c (mbsinit): Remove fallback definition.
40999         (mbsnwidth): Assume mbrtowc function.
41000         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
41001         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
41002         fallback definitions.
41003         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
41004
41005 2008-12-22  Bruno Haible  <bruno@clisp.org>
41006
41007         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
41008
41009 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
41010
41011         * modules/regex: Request emulations for the mb*/wc* functions we need.
41012         * m4/regex.m4: Don't look for those functions here.
41013         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
41014
41015 2008-12-22  Bruno Haible  <bruno@clisp.org>
41016
41017         * modules/fnmatch (Depends-on): Remove duplicated dependency.
41018
41019 2008-12-21  Bruno Haible  <bruno@clisp.org>
41020
41021         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
41022         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
41023         (Include): Remove conditionalization.
41024         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
41025         (Include): Remove conditionalization.
41026         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
41027         (Include): Remove conditionalization.
41028         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
41029         * m4/mbfile.m4 (gl_MBFILE): Likewise.
41030         * NEWS: Mention the change.
41031         Reported by Alan Hourihane <alanh@fairlite.co.uk>
41032         via Sergey Poznyakoff <gray@gnu.org.ua>.
41033
41034 2008-12-21  Bruno Haible  <bruno@clisp.org>
41035
41036         * MODULES.html.sh (Extended multibyte and wide character utilities
41037         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
41038         wcrtomb, wcsrtombs.
41039         (Support for systems lacking POSIX:2008): Add accept, bind, close,
41040         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
41041         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
41042         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
41043
41044 2008-12-21  Bruno Haible  <bruno@clisp.org>
41045
41046         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
41047
41048 2008-12-21  Bruno Haible  <bruno@clisp.org>
41049
41050         * modules/wcsnrtombs-tests: New file.
41051         * tests/test-wcsnrtombs1.sh: New file.
41052         * tests/test-wcsnrtombs2.sh: New file.
41053         * tests/test-wcsnrtombs3.sh: New file.
41054         * tests/test-wcsnrtombs4.sh: New file.
41055         * tests/test-wcsnrtombs.c: New file.
41056
41057         New module 'wcsnrtombs'.
41058         * lib/wchar.in.h (wcsnrtombs): New declaration.
41059         * lib/wcsnrtombs.c: New file.
41060         * lib/wcsrtombs-state.c: New file.
41061         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
41062         (internal_state): Remove variable.
41063         * m4/wcsnrtombs.m4: New file.
41064         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
41065         compilation units.
41066         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
41067         HAVE_WCSNRTOMBS.
41068         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
41069         HAVE_WCSNRTOMBS.
41070         * modules/wcsnrtombs: New file.
41071         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
41072         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
41073
41074 2008-12-21  Bruno Haible  <bruno@clisp.org>
41075
41076         * modules/wcsrtombs-tests: New file.
41077         * tests/test-wcsrtombs1.sh: New file.
41078         * tests/test-wcsrtombs2.sh: New file.
41079         * tests/test-wcsrtombs3.sh: New file.
41080         * tests/test-wcsrtombs4.sh: New file.
41081         * tests/test-wcsrtombs.c: New file.
41082
41083         New module 'wcsrtombs'.
41084         * lib/wchar.in.h (wcsrtombs): New declaration.
41085         * lib/wcsrtombs.c: New file.
41086         * m4/wcsrtombs.m4: New file.
41087         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
41088         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
41089         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
41090         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
41091         * modules/wcsrtombs: New file.
41092         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
41093         bugs.
41094
41095 2008-12-21  Bruno Haible  <bruno@clisp.org>
41096
41097         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
41098         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
41099         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
41100         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
41101         if not correct.
41102         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
41103         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
41104         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41105         m4/locale-zh.m4, m4/codeset.m4.
41106         * doc/posix-functions/wcrtomb.texi: Document the bug.
41107
41108 2008-12-21  Bruno Haible  <bruno@clisp.org>
41109
41110         Work around a btowc() bug on IRIX 6.5.
41111         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
41112         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
41113         REPLACE_WTOBC if not.
41114         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
41115         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
41116         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
41117
41118 2008-12-21  Bruno Haible  <bruno@clisp.org>
41119
41120         * modules/wcrtomb-tests: New file.
41121         * tests/test-wcrtomb.sh: New file.
41122         * tests/test-wcrtomb.c: New file.
41123
41124         New module 'wcrtomb'.
41125         * lib/wchar.in.h (wcrtomb): New declaration.
41126         * lib/wcrtomb.c: New file.
41127         * m4/wcrtomb.m4: New file.
41128         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
41129         HAVE_WCRTOMB.
41130         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
41131         HAVE_WCRTOMB.
41132         * modules/wcrtomb: New file.
41133         * doc/posix-functions/wcrtomb.texi: Mention the new module.
41134
41135 2008-12-21  Bruno Haible  <bruno@clisp.org>
41136
41137         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
41138         * modules/mbsrtowcs (Files): Likewise.
41139         * modules/wctob (Files): Likewise.
41140         * modules/c-strcase-tests (Files): Likewise.
41141         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41142         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41143         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41144         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41145         * modules/vasnprintf-posix-tests (Files): Likewise.
41146
41147 2008-12-21  William Pursell  <bill.pursell@gmail.com>
41148
41149         gitlog-to-changelog: pass all command-line arguments to git-log
41150         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
41151         it is sometimes convenient to filter the commits in various ways.
41152         gitlog-to-changelog only allows --since to specify a start date,
41153         but git-log itself supports many other filtering mechanisms.
41154         At the moment, I want to filter by branch name.  Rather than
41155         adding a --branch option to gitlog-to-changelog, it seems more
41156         flexible to simply pass all options directly to git-log and let
41157         git do the work.  Notice that this effectively makes --since a
41158         redundant option for gitlog-to-changelog, but removing it would
41159         require current usage to change since calls would then require
41160         an additional '--'.
41161
41162 2008-12-21  Bruno Haible  <bruno@clisp.org>
41163
41164         * modules/mbsnrtowcs-tests: New file.
41165         * tests/test-mbsnrtowcs1.sh: New file.
41166         * tests/test-mbsnrtowcs2.sh: New file.
41167         * tests/test-mbsnrtowcs3.sh: New file.
41168         * tests/test-mbsnrtowcs4.sh: New file.
41169         * tests/test-mbsnrtowcs.c: New file.
41170
41171         New module 'mbsnrtowcs'.
41172         * lib/wchar.in.h (mbsnrtowcs): New declaration.
41173         * lib/mbsnrtowcs.c: New file.
41174         * lib/mbsrtowcs-state.c: New file.
41175         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
41176         (internal_state): Remove variable.
41177         * m4/mbsnrtowcs.m4: New file.
41178         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
41179         compilation units.
41180         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
41181         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
41182         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
41183         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
41184         * modules/mbsnrtowcs: New file.
41185         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
41186         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
41187         portability problem.
41188
41189 2008-12-21  Bruno Haible  <bruno@clisp.org>
41190
41191         Work around mbsrtowcs bug.
41192         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
41193         (gl_FUNC_MBSRTOWCS): Invoke it.
41194         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41195         m4/locale-zh.m4.
41196         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
41197
41198 2008-12-21  Bruno Haible  <bruno@clisp.org>
41199
41200         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
41201
41202 2008-12-21  Bruno Haible  <bruno@clisp.org>
41203
41204         Update doc for AIX.
41205         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
41206         16-bit wchar_t type.
41207         * doc/posix-functions/btowc.texi: Likewise.
41208         * doc/posix-functions/fgetwc.texi: Likewise.
41209         * doc/posix-functions/fgetws.texi: Likewise.
41210         * doc/posix-functions/fputwc.texi: Likewise.
41211         * doc/posix-functions/fputws.texi: Likewise.
41212         * doc/posix-functions/fwide.texi: Likewise.
41213         * doc/posix-functions/fwprintf.texi: Likewise.
41214         * doc/posix-functions/fwscanf.texi: Likewise.
41215         * doc/posix-functions/getwchar.texi: Likewise.
41216         * doc/posix-functions/getwc.texi: Likewise.
41217         * doc/posix-functions/iswalnum.texi: Likewise.
41218         * doc/posix-functions/iswalpha.texi: Likewise.
41219         * doc/posix-functions/iswblank.texi: Likewise.
41220         * doc/posix-functions/iswcntrl.texi: Likewise.
41221         * doc/posix-functions/iswctype.texi: Likewise.
41222         * doc/posix-functions/iswdigit.texi: Likewise.
41223         * doc/posix-functions/iswgraph.texi: Likewise.
41224         * doc/posix-functions/iswlower.texi: Likewise.
41225         * doc/posix-functions/iswprint.texi: Likewise.
41226         * doc/posix-functions/iswpunct.texi: Likewise.
41227         * doc/posix-functions/iswspace.texi: Likewise.
41228         * doc/posix-functions/iswupper.texi: Likewise.
41229         * doc/posix-functions/iswxdigit.texi: Likewise.
41230         * doc/posix-functions/mbrtowc.texi: Likewise.
41231         * doc/posix-functions/mbsrtowcs.texi: Likewise.
41232         * doc/posix-functions/mbstowcs.texi: Likewise.
41233         * doc/posix-functions/mbtowc.texi: Likewise.
41234         * doc/posix-functions/putwchar.texi: Likewise.
41235         * doc/posix-functions/putwc.texi: Likewise.
41236         * doc/posix-functions/swprintf.texi: Likewise.
41237         * doc/posix-functions/tolower.texi: Likewise.
41238         * doc/posix-functions/toupper.texi: Likewise.
41239         * doc/posix-functions/towctrans.texi: Likewise.
41240         * doc/posix-functions/ungetwc.texi: Likewise.
41241         * doc/posix-functions/vswprintf.texi: Likewise.
41242         * doc/posix-functions/wcrtomb.texi: Likewise.
41243         * doc/posix-functions/wcscat.texi: Likewise.
41244         * doc/posix-functions/wcschr.texi: Likewise.
41245         * doc/posix-functions/wcscmp.texi: Likewise.
41246         * doc/posix-functions/wcscoll.texi: Likewise.
41247         * doc/posix-functions/wcscpy.texi: Likewise.
41248         * doc/posix-functions/wcscspn.texi: Likewise.
41249         * doc/posix-functions/wcsftime.texi: Likewise.
41250         * doc/posix-functions/wcslen.texi: Likewise.
41251         * doc/posix-functions/wcsncat.texi: Likewise.
41252         * doc/posix-functions/wcsncmp.texi: Likewise.
41253         * doc/posix-functions/wcsncpy.texi: Likewise.
41254         * doc/posix-functions/wcspbrk.texi: Likewise.
41255         * doc/posix-functions/wcsrchr.texi: Likewise.
41256         * doc/posix-functions/wcsrtombs.texi: Likewise.
41257         * doc/posix-functions/wcsspn.texi: Likewise.
41258         * doc/posix-functions/wcsstr.texi: Likewise.
41259         * doc/posix-functions/wcstod.texi: Likewise.
41260         * doc/posix-functions/wcstof.texi: Likewise.
41261         * doc/posix-functions/wcstoimax.texi: Likewise.
41262         * doc/posix-functions/wcstok.texi: Likewise.
41263         * doc/posix-functions/wcstold.texi: Likewise.
41264         * doc/posix-functions/wcstoll.texi: Likewise.
41265         * doc/posix-functions/wcstol.texi: Likewise.
41266         * doc/posix-functions/wcstombs.texi: Likewise.
41267         * doc/posix-functions/wcstoull.texi: Likewise.
41268         * doc/posix-functions/wcstoul.texi: Likewise.
41269         * doc/posix-functions/wcstoumax.texi: Likewise.
41270         * doc/posix-functions/wcswidth.texi: Likewise.
41271         * doc/posix-functions/wcsxfrm.texi: Likewise.
41272         * doc/posix-functions/wctob.texi: Likewise.
41273         * doc/posix-functions/wctomb.texi: Likewise.
41274         * doc/posix-functions/wctrans.texi: Likewise.
41275         * doc/posix-functions/wctype.texi: Likewise.
41276         * doc/posix-functions/wcwidth.texi: Likewise.
41277         * doc/posix-functions/wmemchr.texi: Likewise.
41278         * doc/posix-functions/wmemcmp.texi: Likewise.
41279         * doc/posix-functions/wmemcpy.texi: Likewise.
41280         * doc/posix-functions/wmemmove.texi: Likewise.
41281         * doc/posix-functions/wmemset.texi: Likewise.
41282         * doc/posix-functions/wprintf.texi: Likewise.
41283         * doc/posix-functions/wscanf.texi: Likewise.
41284
41285 2008-12-21  Bruno Haible  <bruno@clisp.org>
41286
41287         Update doc for HP-UX 11.11.
41288         * doc/posix-functions/btowc.texi: Clarify that the function is missing
41289         in HP-UX version 11.00, not in all versions of HP-UX 11.
41290         * doc/posix-functions/fwide.texi: Likewise.
41291         * doc/posix-functions/fwprintf.texi: Likewise.
41292         * doc/posix-functions/fwscanf.texi: Likewise.
41293         * doc/posix-functions/inet_ntop.texi: Likewise.
41294         * doc/posix-functions/inet_pton.texi: Likewise.
41295         * doc/posix-functions/mbrlen.texi: Likewise.
41296         * doc/posix-functions/mbrtowc.texi: Likewise.
41297         * doc/posix-functions/mbsinit.texi: Likewise.
41298         * doc/posix-functions/mbsrtowcs.texi: Likewise.
41299         * doc/posix-functions/swprintf.texi: Likewise.
41300         * doc/posix-functions/swscanf.texi: Likewise.
41301         * doc/posix-functions/towctrans.texi: Likewise.
41302         * doc/posix-functions/vfwprintf.texi: Likewise.
41303         * doc/posix-functions/vswprintf.texi: Likewise.
41304         * doc/posix-functions/vwprintf.texi: Likewise.
41305         * doc/posix-functions/wcrtomb.texi: Likewise.
41306         * doc/posix-functions/wcsrtombs.texi: Likewise.
41307         * doc/posix-functions/wcsstr.texi: Likewise.
41308         * doc/posix-functions/wctob.texi: Likewise.
41309         * doc/posix-functions/wctrans.texi: Likewise.
41310         * doc/posix-functions/wmemchr.texi: Likewise.
41311         * doc/posix-functions/wmemcmp.texi: Likewise.
41312         * doc/posix-functions/wmemcpy.texi: Likewise.
41313         * doc/posix-functions/wmemmove.texi: Likewise.
41314         * doc/posix-functions/wmemset.texi: Likewise.
41315         * doc/posix-functions/wprintf.texi: Likewise.
41316         * doc/posix-functions/wscanf.texi: Likewise.
41317
41318 2008-12-21  Bruno Haible  <bruno@clisp.org>
41319
41320         Work around a portability problem.
41321         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
41322         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
41323
41324 2008-12-20  Bruno Haible  <bruno@clisp.org>
41325
41326         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
41327         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
41328         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
41329         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
41330         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
41331
41332         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
41333         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
41334         set.
41335         (GNULIB_defined_mbstate_t): New macro.
41336         (mbsinit): Redefine if REPLACE_MBSINIT is set.
41337         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
41338         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
41339         reuses the system's mbrtowc function but works around the bugs.
41340         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
41341         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
41342         macros.
41343         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
41344         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
41345         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
41346         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
41347         REPLACE_MBSINIT if mbsinit needs to be overridden.
41348         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
41349         REPLACE_MBSINIT, REPLACE_MBRTOWC.
41350         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
41351         REPLACE_MBSINIT, REPLACE_MBRTOWC.
41352         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41353         m4/locale-zh.m4.
41354         (Depends): Add mbsinit.
41355         * modules/mbsinit (Depends): Add mbrtowc.
41356         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
41357
41358 2008-12-20  Bruno Haible  <bruno@clisp.org>
41359
41360         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
41361         so that there are no conversion errors on AIX.
41362         * tests/test-mbsrtowcs.c (main): LIkewise.
41363
41364 2008-12-20  Bruno Haible  <bruno@clisp.org>
41365
41366         Work around wctob bug on Solaris <= 9.
41367         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
41368         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
41369         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
41370         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
41371         * modules/wctob (Files): Add m4/locale-fr.m4.
41372         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
41373
41374 2008-12-20  Bruno Haible  <bruno@clisp.org>
41375
41376         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
41377         /dev/null.
41378         * tests/test-select-in.sh: Likewise.
41379         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41380
41381 2008-12-20  Bruno Haible  <bruno@clisp.org>
41382
41383         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
41384         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
41385         Cygwin 1.5.x.
41386
41387 2008-12-20  Bruno Haible  <bruno@clisp.org>
41388
41389         Ensure mbstate_t is defined on HP-UX 11.11.
41390         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
41391         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
41392         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
41393         AC_USE_SYSTEM_EXTENSIONS.
41394         * modules/fnmatch (Depends-on): Add extensions.
41395         * modules/mbrlen (Depends-on): Likewise.
41396         * modules/mbrtowc (Depends-on): Likewise.
41397         * modules/mbsinit (Depends-on): Likewise.
41398         * modules/mbsrtowcs (Depends-on): Likewise.
41399         * modules/mbswidth (Depends-on): Likewise.
41400         * modules/quotearg (Depends-on): Likewise.
41401         * modules/strftime (Depends-on): Likewise.
41402
41403 2008-12-20  Bruno Haible  <bruno@clisp.org>
41404
41405         Ensure wctob is declared on IRIX 6.5.
41406         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
41407         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
41408         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
41409         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
41410         of HAVE_WCTOB.
41411         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
41412         HAVE_WCTOB.
41413         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
41414
41415 2008-12-19  Bruno Haible  <bruno@clisp.org>
41416
41417         * modules/mbsrtowcs-tests: New file.
41418         * tests/test-mbsrtowcs1.sh: New file.
41419         * tests/test-mbsrtowcs2.sh: New file.
41420         * tests/test-mbsrtowcs3.sh: New file.
41421         * tests/test-mbsrtowcs4.sh: New file.
41422         * tests/test-mbsrtowcs.c: New file.
41423
41424         New module 'mbsrtowcs'.
41425         * lib/wchar.in.h (mbsrtowcs): New declaration.
41426         * lib/mbsrtowcs.c: New file.
41427         * m4/mbsrtowcs.m4: New file.
41428         * modules/mbsrtowcs: New file.
41429         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
41430         HAVE_MBSRTOWCS.
41431         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
41432         HAVE_MBSRTOWCS.
41433         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
41434
41435 2008-12-19  Bruno Haible  <bruno@clisp.org>
41436
41437         New module 'mbrlen'.
41438         * lib/wchar.in.h (mbrlen): New declaration.
41439         * lib/mbrlen.c: New file.
41440         * m4/mbrlen.m4: New file.
41441         * modules/mbrlen: New file.
41442         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
41443         HAVE_MBRLEN.
41444         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
41445         HAVE_MBRLEN.
41446         * doc/posix-functions/mbrlen.texi: Document the new module.
41447
41448 2008-12-19  Bruno Haible  <bruno@clisp.org>
41449
41450         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
41451         * modules/mbrtowc (Depends-on): Add verify.
41452         Suggested by Paul Eggert.
41453
41454 2008-12-18  Bruno Haible  <bruno@clisp.org>
41455
41456         * modules/mbsinit-tests: New file.
41457         * tests/test-mbsinit.sh: New file.
41458         * tests/test-mbsinit.c: New file.
41459
41460 2008-12-18  Bruno Haible  <bruno@clisp.org>
41461
41462         * modules/mbrtowc-tests: New file.
41463         * tests/test-mbrtowc1.sh: New file.
41464         * tests/test-mbrtowc2.sh: New file.
41465         * tests/test-mbrtowc3.sh: New file.
41466         * tests/test-mbrtowc4.sh: New file.
41467         * tests/test-mbrtowc.c: New file.
41468
41469         New module 'mbrtowc'.
41470         * lib/wchar.in.h (mbstate_t): Override when the system does not have
41471         mbsinit and mbrtowc.
41472         (mbrtowc): New declaration.
41473         * lib/mbrtowc.c: New file.
41474         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
41475         * modules/mbrtowc: New file.
41476         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
41477         HAVE_MBRTOWC.
41478         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
41479         HAVE_MBRTOWC.
41480         * doc/posix-functions/mbrtowc.texi: Document the new module.
41481
41482 2008-12-18  Bruno Haible  <bruno@clisp.org>
41483
41484         New module 'wctob'.
41485         * lib/wchar.in.h (wctob): New declaration.
41486         * lib/wctob.c: New file.
41487         * m4/wctob.m4: New file.
41488         * modules/wctob: New file.
41489         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
41490         HAVE_WCTOB.
41491         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
41492         * doc/posix-functions/wctob.texi: Document the new module.
41493
41494 2008-12-18  Bruno Haible  <bruno@clisp.org>
41495
41496         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
41497         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
41498
41499 2008-12-18  Simon Josefsson  <simon@josefsson.org>
41500
41501         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
41502         G. Christensen" <tgc@jupiterrise.com>.
41503
41504         * lib/flock.c: Need to include errno.h.  Reported by "Tom
41505         G. Christensen" <tgc@jupiterrise.com>.
41506
41507         * lib/flock.c: Need to include string.h.  Reported by "Tom
41508         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
41509         <ebb9@byu.net>.
41510
41511 2008-12-18  Bruno Haible  <bruno@clisp.org>
41512
41513         * m4/locale-ja.m4: New file, from GNU gettext.
41514
41515 2008-12-17  Bruno Haible  <bruno@clisp.org>
41516
41517         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
41518         Suggested by Eric Blake.
41519
41520 2008-12-17  Bruno Haible  <bruno@clisp.org>
41521
41522         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
41523
41524 2008-12-17  Bruno Haible  <bruno@clisp.org>
41525
41526         * lib/mbsinit.c: Include verify.h. Verify an assumption.
41527         * modules/mbsinit (Depends-on): Add verify.
41528         Suggested by Paul Eggert.
41529
41530 2008-12-17  Bruno Haible  <bruno@clisp.org>
41531
41532         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
41533         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
41534         gl_FUNC_MBRTOWC.
41535         * m4/mbiter.m4 (gl_MBITER): LIkewise.
41536         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
41537         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
41538         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
41539         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
41540         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
41541         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
41542         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
41543         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
41544         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
41545         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
41546         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
41547         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
41548         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
41549         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
41550         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41551         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
41552         * modules/trim (configure.ac): Likewise.
41553
41554 2008-12-17  Bruno Haible  <bruno@clisp.org>
41555
41556         * modules/btowc-tests: New file.
41557         * tests/test-btowc1.sh: New file.
41558         * tests/test-btowc2.sh: New file.
41559         * tests/test-btowc.c: New file.
41560
41561         New module 'btowc'.
41562         * lib/wchar.in.h (btowc): New declaration.
41563         * lib/btowc.c: New file.
41564         * m4/btowc.m4: New file.
41565         * modules/btowc: New file.
41566         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
41567         HAVE_BTOWC.
41568         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
41569         * doc/posix-functions/btowc.texi: Document the new module.
41570
41571 2008-12-17  Bruno Haible  <bruno@clisp.org>
41572
41573         New module 'mbsinit'.
41574         * lib/wchar.in.h (mbsinit): New declaration.
41575         * lib/mbsinit.c: New file.
41576         * m4/mbsinit.m4: New file.
41577         * modules/mbsinit: New file.
41578         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
41579         HAVE_MBSINIT.
41580         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
41581         HAVE_MBSINIT.
41582         * doc/posix-functions/mbsinit.texi: Document the new module.
41583
41584 2008-12-16  Bruno Haible  <bruno@clisp.org>
41585
41586         * lib/unistd.in.h: Add comment.
41587         * tests/test-environ.c: Don't include <stdlib.h>.
41588
41589 2008-12-16  Bruno Haible  <bruno@clisp.org>
41590
41591         * lib/parse-duration.h (parse_duration): Document return value
41592         convention.
41593         * lib/parse-duration.c: Include specification header first. Add
41594         comments.
41595         (_): Remove macro.
41596         (parse_year_month_day, parse_hour_minute_second): Move side effects
41597         outside of strchr call.
41598         (parse_non_iso8601): Move side effects outside of isspace call.
41599         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
41600         call.
41601
41602 2008-12-16  Bruno Haible  <bruno@clisp.org>
41603
41604         * tests/test-parse-duration.sh: Produce no output when the test
41605         succeeds.
41606
41607 2008-12-16  Bruno Haible  <bruno@clisp.org>
41608
41609         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
41610         expressions.
41611
41612 2008-12-15  Bruno Haible  <bruno@clisp.org>
41613
41614         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
41615         * doc/glibc-functions/flistxattr.texi: Likewise.
41616         * doc/glibc-functions/fopencookie.texi: Likewise.
41617         * doc/glibc-functions/fremovexattr.texi: Likewise.
41618         * doc/glibc-functions/fsetxattr.texi: Likewise.
41619         * doc/glibc-functions/getxattr.texi: Likewise.
41620         * doc/glibc-functions/lgetxattr.texi: Likewise.
41621         * doc/glibc-functions/listxattr.texi: Likewise.
41622         * doc/glibc-functions/llistxattr.texi: Likewise.
41623         * doc/glibc-functions/lremovexattr.texi: Likewise.
41624         * doc/glibc-functions/lsetxattr.texi: Likewise.
41625         * doc/glibc-functions/removexattr.texi: Likewise.
41626         * doc/glibc-functions/setxattr.texi: Likewise.
41627         * doc/posix-functions/open_memstream.texi: Likewise.
41628
41629 2008-12-15  Eric Blake  <ebb9@byu.net>
41630
41631         Update doc for cygwin 1.7.
41632         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
41633         functions.
41634         * doc/posix-functions/fchmodat.texi: Likewise.
41635         * doc/posix-functions/fchownat.texi: Likewise.
41636         * doc/posix-functions/fdopendir.texi: Likewise.
41637         * doc/posix-functions/fmemopen.texi: Likewise.
41638         * doc/posix-functions/freeaddrinfo.texi: Likewise.
41639         * doc/posix-functions/fstatat.texi: Likewise.
41640         * doc/posix-functions/futimens.texi: Likewise.
41641         * doc/posix-functions/gai_strerror.texi: Likewise.
41642         * doc/posix-functions/getaddrinfo.texi: Likewise.
41643         * doc/posix-functions/getnameinfo.texi: Likewise.
41644         * doc/posix-functions/if_freenameindex.texi: Likewise.
41645         * doc/posix-functions/if_indextoname.texi: Likewise.
41646         * doc/posix-functions/if_nameindex.texi: Likewise.
41647         * doc/posix-functions/if_nametoindex.texi: Likewise.
41648         * doc/posix-functions/insque.texi: Likewise.
41649         * doc/posix-functions/linkat.texi: Likewise.
41650         * doc/posix-functions/llrint.texi: Likewise.
41651         * doc/posix-functions/llrintf.texi: Likewise.
41652         * doc/posix-functions/llrintl.texi: Likewise.
41653         * doc/posix-functions/lockf.texi: Likewise.
41654         * doc/posix-functions/lrintl.texi: Likewise.
41655         * doc/posix-functions/mkdirat.texi: Likewise.
41656         * doc/posix-functions/mkfifoat.texi: Likewise.
41657         * doc/posix-functions/mknodat.texi: Likewise.
41658         * doc/posix-functions/mq_close.texi: Likewise.
41659         * doc/posix-functions/mq_getattr.texi: Likewise.
41660         * doc/posix-functions/mq_notify.texi: Likewise.
41661         * doc/posix-functions/mq_open.texi: Likewise.
41662         * doc/posix-functions/mq_receive.texi: Likewise.
41663         * doc/posix-functions/mq_send.texi: Likewise.
41664         * doc/posix-functions/mq_setattr.texi: Likewise.
41665         * doc/posix-functions/mq_timedreceive.texi: Likewise.
41666         * doc/posix-functions/mq_timedsend.texi: Likewise.
41667         * doc/posix-functions/mq_unlink.texi: Likewise.
41668         * doc/posix-functions/open_memstream.texi: Likewise.
41669         * doc/posix-functions/openat.texi: Likewise.
41670         * doc/posix-functions/posix_fadvise.texi: Likewise.
41671         * doc/posix-functions/posix_fallocate.texi: Likewise.
41672         * doc/posix-functions/posix_madvise.texi: Likewise.
41673         * doc/posix-functions/posix_memalign.texi: Likewise.
41674         * doc/posix-functions/posix_openpt.texi: Likewise.
41675         * doc/posix-functions/readlinkat.texi: Likewise.
41676         * doc/posix-functions/remque.texi: Likewise.
41677         * doc/posix-functions/renameat.texi: Likewise.
41678         * doc/posix-functions/rintl.texi: Likewise.
41679         * doc/posix-functions/sem_unlink.texi: Likewise.
41680         * doc/posix-functions/shm_open.texi: Likewise.
41681         * doc/posix-functions/shm_unlink.texi: Likewise.
41682         * doc/posix-functions/signgam.texi: Likewise.
41683         * doc/posix-functions/sigset.texi: Likewise.
41684         * doc/posix-functions/stpcpy.texi: Likewise.
41685         * doc/posix-functions/stpncpy.texi: Likewise.
41686         * doc/posix-functions/strerror.texi: Likewise.
41687         * doc/posix-functions/strtod.texi: Likewise.
41688         * doc/posix-functions/symlinkat.texi: Likewise.
41689         * doc/posix-functions/unlinkat.texi: Likewise.
41690         * doc/posix-functions/utimensat.texi: Likewise.
41691         * doc/glibc-functions/bindresvport.texi: Likewise.
41692         * doc/glibc-functions/dn_expand.texi: Likewise.
41693         * doc/glibc-functions/exp10.texi: Likewise.
41694         * doc/glibc-functions/exp10f.texi: Likewise.
41695         * doc/glibc-functions/fgetxattr.texi: Likewise.
41696         * doc/glibc-functions/flistxattr.texi: Likewise.
41697         * doc/glibc-functions/fopencookie.texi: Likewise.
41698         * doc/glibc-functions/freeifaddrs.texi: Likewise.
41699         * doc/glibc-functions/fremovexattr.texi: Likewise.
41700         * doc/glibc-functions/fsetxattr.texi: Likewise.
41701         * doc/glibc-functions/getifaddrs.texi: Likewise.
41702         * doc/glibc-functions/getxattr.texi: Likewise.
41703         * doc/glibc-functions/lgetxattr.texi: Likewise.
41704         * doc/glibc-functions/listxattr.texi: Likewise.
41705         * doc/glibc-functions/llistxattr.texi: Likewise.
41706         * doc/glibc-functions/lremovexattr.texi: Likewise.
41707         * doc/glibc-functions/lsetxattr.texi: Likewise.
41708         * doc/glibc-functions/pow10.texi: Likewise.
41709         * doc/glibc-functions/pow10f.texi: Likewise.
41710         * doc/glibc-functions/rcmd_af.texi: Likewise.
41711         * doc/glibc-functions/removexattr.texi: Likewise.
41712         * doc/glibc-functions/res_init.texi: Likewise.
41713         * doc/glibc-functions/res_mkquery.texi: Likewise.
41714         * doc/glibc-functions/res_query.texi: Likewise.
41715         * doc/glibc-functions/res_querydomain.texi: Likewise.
41716         * doc/glibc-functions/res_send.texi: Likewise.
41717         * doc/glibc-functions/rresvport_af.texi: Likewise.
41718         * doc/glibc-functions/setxattr.texi: Likewise.
41719         * doc/glibc-functions/strcasestr.texi: Likewise.
41720
41721 2008-12-15  Bruno Haible  <bruno@clisp.org>
41722
41723         Fix compilation error on OSF/1 4.0.
41724         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
41725         <sys/time.h>, simply delegate to the system header.
41726         Reported by Daniel Richard G. <oss@teragram.com>.
41727
41728 2008-12-15  Bruno Haible  <bruno@clisp.org>
41729
41730         * doc/posix-functions/openat.texi: Mention the 'openat' module.
41731         * doc/posix-functions/fchmodat.texi: Likewise.
41732         * doc/posix-functions/fchownat.texi: Likewise.
41733         * doc/posix-functions/fdopendir.texi: Likewise.
41734         * doc/posix-functions/fstatat.texi: Likewise.
41735         * doc/posix-functions/mkdirat.texi: Likewise.
41736         * doc/posix-functions/unlinkat.texi: Likewise.
41737
41738 2008-12-14  Bruno Haible  <bruno@clisp.org>
41739
41740         Update doc for POSIX:2008.
41741         * doc/posix-functions/faccessat.texi: New file.
41742         * doc/posix-functions/fchmodat.texi: New file.
41743         * doc/posix-functions/fchownat.texi: New file.
41744         * doc/posix-functions/fdopendir.texi: New file.
41745         * doc/posix-functions/fstatat.texi: New file.
41746         * doc/posix-functions/futimens.texi: New file.
41747         * doc/posix-functions/linkat.texi: New file.
41748         * doc/posix-functions/mkdirat.texi: New file.
41749         * doc/posix-functions/mkfifoat.texi: New file.
41750         * doc/posix-functions/mknodat.texi: New file.
41751         * doc/posix-functions/open_wmemstream.texi: New file.
41752         * doc/posix-functions/openat.texi: New file.
41753         * doc/posix-functions/psiginfo.texi: New file.
41754         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
41755         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
41756         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
41757         * doc/posix-functions/readlinkat.texi: New file.
41758         * doc/posix-functions/renameat.texi: New file.
41759         * doc/posix-functions/strerror_l.texi: New file.
41760         * doc/posix-functions/symlinkat.texi: New file.
41761         * doc/posix-functions/unlinkat.texi: New file.
41762         * doc/posix-functions/utimensat.texi: New file.
41763         * doc/gnulib.texi (Function Substitutes): Add these subsections.
41764
41765 2008-12-14  Bruno Haible  <bruno@clisp.org>
41766
41767         Update doc for POSIX:2008.
41768         * doc/posix-functions/alphasort.texi: Renamed from
41769         doc/glibc-functions/alphasort.texi.
41770         * doc/posix-functions/dirfd.texi: Renamed from
41771         doc/glibc-functions/dirfd.texi.
41772         * doc/posix-functions/dprintf.texi: Renamed from
41773         doc/glibc-functions/dprintf.texi.
41774         * doc/posix-functions/duplocale.texi: Renamed from
41775         doc/glibc-functions/duplocale.texi.
41776         * doc/posix-functions/fexecve.texi: Renamed from
41777         doc/glibc-functions/fexecve.texi.
41778         * doc/posix-functions/fmemopen.texi: Renamed from
41779         doc/glibc-functions/fmemopen.texi.
41780         * doc/posix-functions/freelocale.texi: Renamed from
41781         doc/glibc-functions/freelocale.texi.
41782         * doc/posix-functions/getdate_err.texi: Renamed from
41783         doc/glibc-functions/getdate_err.texi.
41784         * doc/posix-functions/isalnum_l.texi: Renamed from
41785         doc/glibc-functions/isalnum_l.texi.
41786         * doc/posix-functions/isalpha_l.texi: Renamed from
41787         doc/glibc-functions/isalpha_l.texi.
41788         * doc/posix-functions/isblank_l.texi: Renamed from
41789         doc/glibc-functions/isblank_l.texi.
41790         * doc/posix-functions/iscntrl_l.texi: Renamed from
41791         doc/glibc-functions/iscntrl_l.texi.
41792         * doc/posix-functions/isdigit_l.texi: Renamed from
41793         doc/glibc-functions/isdigit_l.texi.
41794         * doc/posix-functions/isgraph_l.texi: Renamed from
41795         doc/glibc-functions/isgraph_l.texi.
41796         * doc/posix-functions/islower_l.texi: Renamed from
41797         doc/glibc-functions/islower_l.texi.
41798         * doc/posix-functions/isprint_l.texi: Renamed from
41799         doc/glibc-functions/isprint_l.texi.
41800         * doc/posix-functions/ispunct_l.texi: Renamed from
41801         doc/glibc-functions/ispunct_l.texi.
41802         * doc/posix-functions/isspace_l.texi: Renamed from
41803         doc/glibc-functions/isspace_l.texi.
41804         * doc/posix-functions/isupper_l.texi: Renamed from
41805         doc/glibc-functions/isupper_l.texi.
41806         * doc/posix-functions/iswalnum_l.texi: Renamed from
41807         doc/glibc-functions/iswalnum_l.texi.
41808         * doc/posix-functions/iswalpha_l.texi: Renamed from
41809         doc/glibc-functions/iswalpha_l.texi.
41810         * doc/posix-functions/iswblank_l.texi: Renamed from
41811         doc/glibc-functions/iswblank_l.texi.
41812         * doc/posix-functions/iswcntrl_l.texi: Renamed from
41813         doc/glibc-functions/iswcntrl_l.texi.
41814         * doc/posix-functions/iswctype_l.texi: Renamed from
41815         doc/glibc-functions/iswctype_l.texi.
41816         * doc/posix-functions/iswdigit_l.texi: Renamed from
41817         doc/glibc-functions/iswdigit_l.texi.
41818         * doc/posix-functions/iswgraph_l.texi: Renamed from
41819         doc/glibc-functions/iswgraph_l.texi.
41820         * doc/posix-functions/iswlower_l.texi: Renamed from
41821         doc/glibc-functions/iswlower_l.texi.
41822         * doc/posix-functions/iswprint_l.texi: Renamed from
41823         doc/glibc-functions/iswprint_l.texi.
41824         * doc/posix-functions/iswpunct_l.texi: Renamed from
41825         doc/glibc-functions/iswpunct_l.texi.
41826         * doc/posix-functions/iswspace_l.texi: Renamed from
41827         doc/glibc-functions/iswspace_l.texi.
41828         * doc/posix-functions/iswupper_l.texi: Renamed from
41829         doc/glibc-functions/iswupper_l.texi.
41830         * doc/posix-functions/iswxdigit_l.texi: Renamed from
41831         doc/glibc-functions/iswxdigit_l.texi.
41832         * doc/posix-functions/isxdigit_l.texi: Renamed from
41833         doc/glibc-functions/isxdigit_l.texi.
41834         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
41835         doc/glibc-functions/mbsnrtowcs.texi.
41836         * doc/posix-functions/mkdtemp.texi: Renamed from
41837         doc/glibc-functions/mkdtemp.texi.
41838         * doc/posix-functions/newlocale.texi: Renamed from
41839         doc/glibc-functions/newlocale.texi.
41840         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
41841         doc/glibc-functions/nl_langinfo_l.texi.
41842         * doc/posix-functions/open_memstream.texi: Renamed from
41843         doc/glibc-functions/open_memstream.texi.
41844         * doc/posix-functions/opterr.texi: Renamed from
41845         doc/glibc-functions/opterr.texi.
41846         * doc/posix-functions/optind.texi: Renamed from
41847         doc/glibc-functions/optind.texi.
41848         * doc/posix-functions/optopt.texi: Renamed from
41849         doc/glibc-functions/optopt.texi.
41850         * doc/posix-functions/psignal.texi: Renamed from
41851         doc/glibc-functions/psignal.texi.
41852         * doc/posix-functions/scandir.texi: Renamed from
41853         doc/glibc-functions/scandir.texi.
41854         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
41855         doc/glibc-functions/sched_get_priority_min.texi.
41856         * doc/posix-functions/signgam.texi: Renamed from
41857         doc/glibc-functions/signgam.texi.
41858         * doc/posix-functions/stpcpy.texi: Renamed from
41859         doc/glibc-functions/stpcpy.texi.
41860         * doc/posix-functions/stpncpy.texi: Renamed from
41861         doc/glibc-functions/stpncpy.texi.
41862         * doc/posix-functions/strcasecmp_l.texi: Renamed from
41863         doc/glibc-functions/strcasecmp_l.texi.
41864         * doc/posix-functions/strcoll_l.texi: Renamed from
41865         doc/glibc-functions/strcoll_l.texi.
41866         * doc/posix-functions/strfmon_l.texi: Renamed from
41867         doc/glibc-functions/strfmon_l.texi.
41868         * doc/posix-functions/strftime_l.texi: Renamed from
41869         doc/glibc-functions/strftime_l.texi.
41870         * doc/posix-functions/strncasecmp_l.texi: Renamed from
41871         doc/glibc-functions/strncasecmp_l.texi.
41872         * doc/posix-functions/strndup.texi: Renamed from
41873         doc/glibc-functions/strndup.texi.
41874         * doc/posix-functions/strnlen.texi: Renamed from
41875         doc/glibc-functions/strnlen.texi.
41876         * doc/posix-functions/strsignal.texi: Renamed from
41877         doc/glibc-functions/strsignal.texi.
41878         * doc/posix-functions/strxfrm_l.texi: Renamed from
41879         doc/glibc-functions/strxfrm_l.texi.
41880         * doc/posix-functions/timer_gettime.texi: Renamed from
41881         doc/glibc-functions/timer_gettime.texi.
41882         * doc/posix-functions/tolower_l.texi: Renamed from
41883         doc/glibc-functions/tolower_l.texi.
41884         * doc/posix-functions/toupper_l.texi: Renamed from
41885         doc/glibc-functions/toupper_l.texi.
41886         * doc/posix-functions/towctrans_l.texi: Renamed from
41887         doc/glibc-functions/towctrans_l.texi.
41888         * doc/posix-functions/towlower_l.texi: Renamed from
41889         doc/glibc-functions/towlower_l.texi.
41890         * doc/posix-functions/towupper_l.texi: Renamed from
41891         doc/glibc-functions/towupper_l.texi.
41892         * doc/posix-functions/uselocale.texi: Renamed from
41893         doc/glibc-functions/uselocale.texi.
41894         * doc/posix-functions/vdprintf.texi: Renamed from
41895         doc/glibc-functions/vdprintf.texi.
41896         * doc/posix-functions/wcpcpy.texi:
41897         Renamed from doc/glibc-functions/wcpcpy.texi.
41898         * doc/posix-functions/wcpncpy.texi: Renamed from
41899         doc/glibc-functions/wcpncpy.texi.
41900         * doc/posix-functions/wcscasecmp.texi: Renamed from
41901         doc/glibc-functions/wcscasecmp.texi.
41902         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
41903         doc/glibc-functions/wcscasecmp_l.texi.
41904         * doc/posix-functions/wcscoll_l.texi: Renamed from
41905         doc/glibc-functions/wcscoll_l.texi.
41906         * doc/posix-functions/wcsdup.texi: Renamed from
41907         doc/glibc-functions/wcsdup.texi.
41908         * doc/posix-functions/wcsncasecmp.texi: Renamed from
41909         doc/glibc-functions/wcsncasecmp.texi.
41910         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
41911         doc/glibc-functions/wcsncasecmp_l.texi.
41912         * doc/posix-functions/wcsnlen.texi: Renamed from
41913         doc/glibc-functions/wcsnlen.texi.
41914         * doc/posix-functions/wcsnrtombs.texi: Renamed from
41915         doc/glibc-functions/wcsnrtombs.texi.
41916         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
41917         doc/glibc-functions/wcsxfrm_l.texi.
41918         * doc/posix-functions/wctrans_l.texi: Renamed from
41919         doc/glibc-functions/wctrans_l.texi.
41920         * doc/posix-functions/wctype_l.texi: Renamed from
41921         doc/glibc-functions/wctype_l.texi.
41922         * doc/gnulib.texi (Function Substitutes): Add these subsections.
41923         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
41924         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
41925         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
41926         these subsections.
41927         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
41928         Remove sections.
41929
41930 2008-12-14  Bruno Haible  <bruno@clisp.org>
41931
41932         Update doc for POSIX:2008.
41933         * doc/posix-functions/*.texi: Update URL of POSIX specification.
41934
41935 2008-12-14  Bruno Haible  <bruno@clisp.org>
41936
41937         Update doc for POSIX:2008.
41938         * doc/pastposix-functions/bcmp.texi: Renamed from
41939         doc/posix-functions/bcmp.texi.
41940         * doc/pastposix-functions/bcopy.texi: Renamed from
41941         doc/posix-functions/bcopy.texi.
41942         * doc/pastposix-functions/bsd_signal.texi: Renamed from
41943         doc/posix-functions/bsd_signal.texi.
41944         * doc/pastposix-functions/bzero.texi: Renamed from
41945         doc/posix-functions/bzero.texi.
41946         * doc/pastposix-functions/ecvt.texi: Renamed from
41947         doc/posix-functions/ecvt.texi.
41948         * doc/pastposix-functions/fcvt.texi: Renamed from
41949         doc/posix-functions/fcvt.texi.
41950         * doc/pastposix-functions/ftime.texi: Renamed from
41951         doc/posix-functions/ftime.texi.
41952         * doc/pastposix-functions/gcvt.texi: Renamed from
41953         doc/posix-functions/gcvt.texi.
41954         * doc/pastposix-functions/getcontext.texi: Renamed from
41955         doc/posix-functions/getcontext.texi.
41956         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
41957         doc/posix-functions/gethostbyaddr.texi.
41958         * doc/pastposix-functions/gethostbyname.texi: Renamed from
41959         doc/posix-functions/gethostbyname.texi.
41960         * doc/pastposix-functions/getwd.texi: Renamed from
41961         doc/posix-functions/getwd.texi.
41962         * doc/pastposix-functions/h_errno.texi: Renamed from
41963         doc/posix-functions/h_errno.texi.
41964         * doc/pastposix-functions/index.texi: Renamed from
41965         doc/posix-functions/index.texi.
41966         * doc/pastposix-functions/makecontext.texi: Renamed from
41967         doc/posix-functions/makecontext.texi.
41968         * doc/pastposix-functions/mktemp.texi: Renamed from
41969         doc/posix-functions/mktemp.texi.
41970         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
41971         doc/posix-functions/pthread_attr_getstackaddr.texi.
41972         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
41973         doc/posix-functions/pthread_attr_setstackaddr.texi.
41974         * doc/pastposix-functions/rindex.texi: Renamed from
41975         doc/posix-functions/rindex.texi.
41976         * doc/pastposix-functions/scalb.texi: Renamed from
41977         doc/posix-functions/scalb.texi.
41978         * doc/pastposix-functions/setcontext.texi: Renamed from
41979         doc/posix-functions/setcontext.texi.
41980         * doc/pastposix-functions/swapcontext.texi: Renamed from
41981         doc/posix-functions/swapcontext.texi.
41982         * doc/pastposix-functions/ualarm.texi: Renamed from
41983         doc/posix-functions/ualarm.texi.
41984         * doc/pastposix-functions/usleep.texi: Renamed from
41985         doc/posix-functions/usleep.texi.
41986         * doc/pastposix-functions/vfork.texi: Renamed from
41987         doc/posix-functions/vfork.texi.
41988         * doc/pastposix-functions/wcswcs.texi: Renamed from
41989         doc/posix-functions/wcswcs.texi.
41990         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
41991         (Function Substitutes): Update.
41992
41993 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41994
41995         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
41996         m4/strerror.m4.
41997
41998 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41999             Bruno Haible  <bruno@clisp.org>
42000
42001         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
42002
42003 2008-12-13  Bruno Haible  <bruno@clisp.org>
42004
42005         * modules/strtoull (Depends-on): Remove unistd.
42006
42007 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42008
42009         * modules/strtoull (Depends-on): Add stdlib.
42010
42011 2008-12-11  Simon Josefsson  <simon@josefsson.org>
42012
42013         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
42014
42015 2008-12-10  Jim Meyering  <meyering@redhat.com>
42016
42017         gl_ASSERT: don't say assertions are disabled when they're not
42018         * m4/assert.m4 (gl_ASSERT): Do not make configure report
42019         "checking whether to enable assertions... no", when they are in
42020         fact enabled.  This is solely a bug in the output of configure.
42021         In spite of saying "no", NDEBUG was not defined in that case.
42022         Also, as noted by Eric Blake, leave assertions enabled upon
42023         --enable-assert=INVALID.
42024
42025 2008-12-10  Bruno Haible  <bruno@clisp.org>
42026
42027         Change MODULES.html to refer to POSIX:2008 where possible.
42028         * MODULES.html.sh (POSIX2008_URL): New variable.
42029         (posix_headers): Remove sys/timeb, ucontext.
42030         (posix2001_headers): New variable.
42031         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
42032         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
42033         index, makecontext, mktemp, pthread_attr_getstackaddr,
42034         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
42035         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
42036         (posix2001_functions): New variable.
42037         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
42038         otherwise.
42039
42040 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42041
42042         add missing include to parse-duration.c
42043         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
42044         * modules/parse-duration (Depends-on): Add xalloc.
42045
42046         fix sed script reading maint.mk
42047         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
42048         (syntax-check-rules): Use it.
42049
42050 2008-12-09  Bruno Haible  <bruno@clisp.org>
42051
42052         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
42053         MacOS X 10.4/PowerPC.
42054         Reported by Simon Josefsson.
42055
42056 2008-12-08  Jim Meyering  <meyering@redhat.com>
42057
42058         work around mingw's lack of some S_IF definitions
42059         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
42060         Reported by Simon Josefsson.
42061
42062 2008-12-08  Bruno Haible  <bruno@clisp.org>
42063
42064         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
42065         applied to variables. Needed on MacOS X 10.4/PowerPC.
42066         Reported by Simon Josefsson.
42067
42068 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
42069         and Eric Blake  <ebb9@byu.net>
42070
42071         assert: honor --enable-assert
42072         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
42073         order to honor --enable-assert, rather than treating it as a
42074         synonym for --disable-assert.
42075
42076 2008-12-08  Jim Meyering  <meyering@redhat.com>
42077
42078         * lib/posixtm.c: Remove now-useless declaration of mktime.
42079
42080         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
42081
42082 2008-12-07  Bruno Haible  <bruno@clisp.org>
42083
42084         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
42085         test_once): Mark functions as static.
42086         * tests/test-tls.c (test_tls): Likewise.
42087
42088 2008-12-07  Bruno Haible  <bruno@clisp.org>
42089
42090         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
42091         iconv_register_autodetect.
42092
42093 2008-12-07  Jim Meyering  <meyering@redhat.com>
42094
42095         posixtm.c: avoid a warning
42096         * lib/posixtm.c (posixtime): Don't initialize tm0.
42097         It's no longer needed to placate gcc4's -Wuninitialized,
42098         and the attempt to placate would elicit a new warning.
42099
42100         unicodeio.c: mark unused parameters
42101         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
42102         (fallback_failure_callback): Likewise.
42103
42104 2008-12-07  Bruno Haible  <bruno@clisp.org>
42105
42106         * gnulib-tool (func_create_testdir): When building the tests
42107         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
42108         Reported by Simon Josefsson.
42109
42110 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42111
42112         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
42113
42114 2008-12-06  Bruno Haible  <bruno@clisp.org>
42115
42116         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
42117         Suggested by Eric Blake.
42118
42119 2008-12-06  Bruno Haible  <bruno@clisp.org>
42120
42121         Fix a c-stack test failure on MacOS X.
42122         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
42123         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
42124         handler for SIGBUS as well.
42125         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
42126         install a signal handler for SIGBUS as well.
42127         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
42128
42129 2008-12-06  Bruno Haible  <bruno@clisp.org>
42130
42131         Advocacy documentation.
42132         * doc/gnulib-intro.texi (Benefits): New section.
42133         * doc/gnulib.texi: Update.
42134
42135 2008-12-06  Bruno Haible  <bruno@clisp.org>
42136
42137         Document the 'manywarnings' module.
42138         * doc/manywarnings.texi: New file.
42139         * doc/gnulib.texi: Include it.
42140
42141 2008-12-05  Eric Blake  <ebb9@byu.net>
42142
42143         tests: silence some gcc warnings
42144         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
42145         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
42146         type mismatches.
42147
42148 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42149             Bruno Haible  <bruno@clisp.org>
42150
42151         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
42152
42153 2008-11-29  Jim Meyering  <meyering@redhat.com>
42154
42155         unicodeio.c: mark unused parameters
42156         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
42157         (fallback_failure_callback): Likewise.
42158
42159         fts: fix a thinko
42160         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
42161         (set_stat_type): Return S_IF*-valued "type" directly.
42162         Prompted by James Youngman's spotting a related bug.
42163         Confirmed by further testing through find.
42164
42165         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
42166         * lib/fts.c (D_TYPE): Define.
42167         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
42168         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
42169         (s_ifmt_shift_bits): New function.
42170         (set_stat_type): New function.
42171         (fts_build): When not calling fts_stat, call set_stat_type
42172         to propagate dirent.d_type info to fts_read caller.
42173         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
42174         fts_statp->st_mode type information may be valid.
42175
42176 2008-11-28  Simon Josefsson  <simon@josefsson.org>
42177
42178         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
42179         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
42180         <sds@gnu.org>.
42181
42182 2008-11-20  Bruno Haible  <bruno@clisp.org>
42183
42184         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
42185         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
42186         INCLUDE_NEXT.
42187         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
42188         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
42189         * modules/math (Makefile.am): Substitute
42190         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
42191         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42192
42193 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
42194             Bruno Haible  <bruno@clisp.org>
42195
42196         * lib/stdint.in.h: Define all type macros so that their expansion is
42197         a single typedef'ed token. Fixes a compilation failure in Boost which
42198         does "using ::int8_t;".
42199
42200 2008-11-18  Simon Josefsson  <simon@josefsson.org>
42201
42202         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
42203         gl_MANYWARN_ALL_GCC.
42204         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
42205         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
42206         * modules/manywarnings: New file.
42207         * MODULES.html.sh: Mention manywarnings module.
42208
42209 2008-11-18  Bruno Haible  <bruno@clisp.org>
42210
42211         * doc/gnulib-tool.texi (Unit tests): New section.
42212
42213 2008-11-18  Simon Josefsson  <simon@josefsson.org>
42214
42215         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
42216         paths like 'lib/po/foo.po'.
42217
42218 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42219
42220         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
42221         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
42222
42223 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42224
42225         * m4/warnings.m4: Use CPPFLAGS to really check whether the
42226         parameter works.
42227
42228 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42229
42230         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
42231
42232 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42233
42234         * modules/parse-duration-tests: New file.
42235         * tests/test-parse-duration.sh: New file.
42236         * tests/test-parse-duration.c: New file.
42237
42238         New module 'parse-duration'.
42239         * lib/parse-duration.h: New file.
42240         * lib/parse-duration.c: New file.
42241         * modules/parse-duration: New file.
42242
42243 2008-11-17  Bruno Haible  <bruno@clisp.org>
42244
42245         * tests/test-select-out.sh: Comment out the first pipe test.
42246         Reported by Simon Josefsson.
42247
42248 2008-11-17  Bruno Haible  <bruno@clisp.org>
42249
42250         * modules/getaddrinfo (Depends-on): Add servent, hostent.
42251         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
42252         gl_HOSTENT.
42253
42254 2008-11-17  Bruno Haible  <bruno@clisp.org>
42255
42256         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
42257         -lnetwork and -lnet. Needed for Haiku and BeOS.
42258
42259 2008-11-16  Bruno Haible  <bruno@clisp.org>
42260
42261         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
42262
42263 2008-11-16  Bruno Haible  <bruno@clisp.org>
42264
42265         Avoid test failure on Haiku.
42266         * tests/test-fsync.c: Include <errno.h>.
42267         (main): Don't require that fsync (0) fails.
42268
42269 2008-11-15  Bruno Haible  <bruno@clisp.org>
42270
42271         New module 'hostent'.
42272         * modules/hostent: New file.
42273         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
42274
42275 2008-11-15  Bruno Haible  <bruno@clisp.org>
42276
42277         New module 'servent'.
42278         * modules/servent: New file.
42279         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
42280
42281 2008-11-15  Bruno Haible  <bruno@clisp.org>
42282
42283         Avoid generating same test program with two different rules.
42284         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
42285         test-frexp to test-frexp-nolibm.
42286         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
42287         test-frexpl to test-frexpl-nolibm.
42288
42289 2008-11-15  Bruno Haible  <bruno@clisp.org>
42290
42291         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
42292         $(FREXPL_LIBM).
42293
42294 2008-11-15  Bruno Haible  <bruno@clisp.org>
42295
42296         * lib/netdb.in.h: Activate the definitions also when the system's
42297         <netdb.h> has 'struct addrinfo'.
42298         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
42299         EAI_OVERFLOW or AI_NUMERICSERV.
42300         * doc/posix-headers/netdb.texi: Document the problem.
42301
42302 2008-11-15  Bruno Haible  <bruno@clisp.org>
42303
42304         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
42305
42306         Make the 'sched' module work on platforms where <sched.h> exists but
42307         is incomplete (such as Haiku).
42308         * lib/sched.in.h; Include the system's <sched.h> if it exists.
42309         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
42310         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
42311         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
42312         HAVE_STRUCT_SCHED_PARAM.
42313         * modules/sched (Depends-on): Add include_next.
42314         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
42315         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
42316         * doc/posix-headers/sched.texi: Document the issue.
42317
42318 2008-11-13  Jim Meyering  <meyering@redhat.com>
42319
42320         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
42321         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
42322         test would fail due to the difference in the Report bugs to ...
42323         line.  The expected address is empty, "<>", while the actual
42324         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
42325
42326 2008-11-12  Bruno Haible  <bruno@clisp.org>
42327
42328         lstat: don't compile lstat.c on systems lacking lstat
42329         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
42330         which don't have lstat; this is handled by lib/sys_stat.in.h already.
42331         Reported by Daniel P. Berrange via Jim Meyering.
42332
42333 2008-11-12  Jim Meyering  <meyering@redhat.com>
42334
42335         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
42336
42337 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42338
42339         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
42340         instead.
42341
42342 2008-11-12  Bruno Haible  <bruno@clisp.org>
42343
42344         * lib/unicodeio.c: Include unistr.h.
42345         (utf8_wctomb): Remove function.
42346         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
42347
42348 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42349
42350         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
42351         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
42352         <bruno@clisp.org>.
42353         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
42354
42355 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42356
42357         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
42358         * doc/gnulib.texi: Add section for warnings.
42359
42360 2008-11-11  Bruno Haible  <bruno@clisp.org>
42361
42362         * lib/sockets.h: Add a comment.
42363
42364 2008-11-11  Karl Berry  <karl@gnu.org>
42365
42366         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
42367
42368 2008-11-11  Eric Blake  <ebb9@byu.net>
42369
42370         fdl.texi: avoid git symlinks
42371         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
42372
42373 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42374
42375         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
42376
42377 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42378
42379         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
42380         (gl_WARN_ADD): Substitute $2 if literal.
42381
42382 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42383
42384         * m4/warning.m4: Remove.
42385
42386 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42387
42388         * m4/warnings.m4: Almost complete rewrite. :-)
42389
42390 2008-11-10  Simon Josefsson  <simon@josefsson.org>
42391
42392         * modules/warnings: New module.
42393         * m4/warnings.m4: New file.
42394         * MODULES.html.sh: Mention warnings module.
42395         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
42396         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42397
42398 2008-11-10  Eric Blake  <ebb9@byu.net>
42399
42400         fdl.texi: make a symlink to the latest version
42401         * doc/standards.texi: Revert today's earlier change.
42402         * doc/fdl-1.2.texi: Rename from old fdl.texi...
42403         * doc/fdl.texi: ...and replace this with a symlink to the newer
42404         fdl-1.3.texi.
42405
42406 2008-11-10  Bruno Haible  <bruno@clisp.org>
42407
42408         * tests/test-select-fd.c (main): Accept the result file name as fourth
42409         argument.
42410         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
42411         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
42412
42413 2008-11-10  Bruno Haible  <bruno@clisp.org>
42414
42415         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
42416         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
42417         as autoconf-substituted macros.
42418         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
42419         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
42420         gl_NETDB_H_DEFAULTS. Set these variables.
42421         * modules/netdb (Makefile.am): Substitute these variables.
42422
42423 2008-11-10  Eric Blake  <ebb9@byu.net>
42424
42425         standards.texi: include correct file for FDL 1.3
42426         * doc/standards.texi (GNU Free Documentation License): Change
42427         include file to pull in FDL 1.3, not 1.2.
42428
42429         fdl.texi: revert accidental change to license
42430         * doc/fdl.texi: This is FDL 1.2, not 1.3.
42431
42432 2008-11-10  Bruno Haible  <bruno@clisp.org>
42433
42434         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
42435         cross-compiling guesses also when the native compile gives no result.
42436
42437 2008-11-10  Bruno Haible  <bruno@clisp.org>
42438
42439         * lib/spawni.c (__spawni): Force variable into the stack.
42440
42441 2008-11-10  Bruno Haible  <bruno@clisp.org>
42442
42443         Add support for Haiku.
42444         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
42445         glibc and BeOS, but also on Haiku.
42446         * lib/fpurge.c (fpurge): Likewise.
42447         * lib/freadable.c (freadable): Likewise.
42448         * lib/freadahead.c (freadahead): Likewise.
42449         * lib/freading.c (freading): Likewise.
42450         * lib/freadptr.c (freadptr): Likewise.
42451         * lib/freadseek.c (freadptrinc): Likewise.
42452         * lib/fseeko.c (rpl_fseeko): Likewise.
42453         * lib/fseterr.c (fseterr): Likewise.
42454         * lib/fwritable.c (fwritable): Likewise.
42455         * lib/fwriting.c (fwriting): Likewise.
42456         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
42457
42458 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
42459
42460         * lib/config.charset: Treat Haiku like BeOS.
42461
42462 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
42463
42464         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
42465         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
42466
42467 2008-11-08  Bruno Haible  <bruno@clisp.org>
42468
42469         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
42470         AC_CACHE_CHECK.
42471
42472 2008-11-08  Bruno Haible  <bruno@clisp.org>
42473
42474         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
42475
42476 2008-11-08  Bruno Haible  <bruno@clisp.org>
42477
42478         * tests/test-select-fd.c: New file.
42479         * tests/test-select-in.sh: New file.
42480         * tests/test-select-out.sh: New file.
42481         * tests/test-select-stdin.c: New file.
42482         * modules/select-tests (Files): Add the new files.
42483         (Depends-on): Add gettimeofday.
42484         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
42485         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
42486         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
42487
42488 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
42489             Bruno Haible  <bruno@clisp.org>
42490
42491         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
42492
42493 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
42494
42495         * build-aux/pmccabe2html: Added support for C++ source files.
42496
42497 2008-11-05  Ben Pfaff  <blp@gnu.org>
42498
42499         Fix lib/close.c build on Windows.
42500         * modules/close (Files): Add lib/w32sock.h.
42501
42502 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
42503
42504         Accept Bison's NEWS format.
42505         * build-aux/announce-gen (print_news_deltas): Tweak
42506         $re_prefix.
42507
42508 2008-11-04  Bruno Haible  <bruno@clisp.org>
42509
42510         * modules/random_r (Maintainer): Add glibc.
42511
42512 2008-11-04  Simon Josefsson  <simon@josefsson.org>
42513
42514         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
42515         by karl@freefriends.org (Karl Berry).
42516         * doc/alloca.texi: Likewise.
42517         * doc/c-ctype.texi: Likewise.
42518         * doc/c-strcase.texi: Likewise.
42519         * doc/c-strcaseeq.texi: Likewise.
42520         * doc/c-strcasestr.texi: Likewise.
42521         * doc/c-strstr.texi: Likewise.
42522         * doc/c-strtod.texi: Likewise.
42523         * doc/c-strtold.texi: Likewise.
42524         * doc/ctime.texi: Likewise.
42525         * doc/error.texi: Likewise.
42526         * doc/fdl.texi: Likewise.
42527         * doc/gcd.texi: Likewise.
42528         * doc/getdate.texi: Likewise.
42529         * doc/gnulib-intro.texi: Likewise.
42530         * doc/gnulib-tool.texi: Likewise.
42531         * doc/gnulib.texi: Likewise.
42532         * doc/inet_ntoa.texi: Likewise.
42533         * doc/maintain.texi: Likewise.
42534         * doc/make-stds.texi: Likewise.
42535         * doc/quote.texi: Likewise.
42536         * doc/regexprops-generic.texi: Likewise.
42537         * doc/standards.texi: Likewise.
42538         * doc/verify.texi: Likewise.
42539         * doc/visibility.texi: Likewise.
42540         * doc/gnulib.texi (GNU Free Documentation License): Include
42541         fdl-1.3.texi instead of fdl.texi.
42542
42543 2008-11-04  Simon Josefsson  <simon@josefsson.org>
42544
42545         * doc/fdl-1.3.texi: New file, from
42546         <http://www.gnu.org/licenses/fdl-1.3.texi>.
42547         * modules/fdl-1.3: Add.
42548         * MODULES.html.sh: Add fdl-1.3.
42549
42550 2008-11-03  Bruno Haible  <bruno@clisp.org>
42551
42552         Make determination of absolute name of header file work with AIX xlc.
42553         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
42554         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
42555         preprocessing.
42556         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42557         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
42558
42559 2008-11-03  Simon Josefsson  <simon@josefsson.org>
42560
42561         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
42562         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
42563         <ludo@gnu.org>.
42564
42565 2008-11-02  Bruno Haible  <bruno@clisp.org>
42566
42567         Mark 'strpbrk' obsolete.
42568         * modules/strpbrk (Status, Notice): New sections.
42569         * modules/strtok_r (Depends-on): Add strpbrk.
42570
42571 2008-11-02  Bruno Haible  <bruno@clisp.org>
42572
42573         Mark 'strdup' obsolete.
42574         * modules/strdup (Status, Notice): New sections.
42575         * modules/findprog (Depends-on): Add strdup.
42576         * modules/getaddrinfo (Depends-on): Likewise.
42577         * modules/localename (Depends-on): Likewise.
42578         * modules/relocatable-lib (Depends-on): Likewise.
42579         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
42580         * modules/relocatable-prog (Depends-on): Likewise.
42581         * modules/trim (Depends-on): Likewise.
42582         * modules/unictype/gen-ctype (Depends-on): Likewise.
42583         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
42584
42585 2008-11-02  Bruno Haible  <bruno@clisp.org>
42586
42587         Mark 'strcspn' obsolete.
42588         * modules/strcspn (Status, Notice): New sections.
42589
42590 2008-11-02  Bruno Haible  <bruno@clisp.org>
42591
42592         Mark 'rmdir' obsolete.
42593         * modules/rmdir (Status, Notice): New sections.
42594         * modules/clean-temp (Depends-on): Add rmdir.
42595         * modules/openat (Depends-on): Likewise.
42596
42597 2008-11-02  Bruno Haible  <bruno@clisp.org>
42598
42599         Mark 'raise' obsolete.
42600         * modules/raise (Status, Notice): New sections.
42601         (Include): Specify <signal.h>.
42602         * modules/stdio (Depends-on): Add raise.
42603         * modules/write (Depends-on): Likewise.
42604
42605 2008-11-02  Bruno Haible  <bruno@clisp.org>
42606
42607         Mark 'memset' obsolete.
42608         * modules/memset (Status, Notice): New sections.
42609
42610 2008-11-02  Bruno Haible  <bruno@clisp.org>
42611
42612         Mark 'memmove' obsolete.
42613         * modules/memmove (Status, Notice): New sections.
42614         * modules/argp (Depends-on): Add memmove.
42615         * modules/argz (Depends-on): Likewise.
42616         * modules/canonicalize (Depends-on): Likewise.
42617         * modules/canonicalize-lgpl (Depends-on): Likewise.
42618         * modules/fts (Depends-on): Likewise.
42619         * modules/getcwd (Depends-on): Likewise.
42620         * modules/human (Depends-on): Likewise.
42621         * modules/regex (Depends-on): Likewise.
42622         * modules/striconveh (Depends-on): Likewise.
42623         * modules/trim (Depends-on): Likewise.
42624         * modules/unistr/u8-move (Depends-on): Likewise.
42625         * modules/unistr/u16-move (Depends-on): Likewise.
42626         * modules/unistr/u32-move (Depends-on): Likewise.
42627
42628 2008-11-02  Bruno Haible  <bruno@clisp.org>
42629
42630         Mark 'memcpy' obsolete.
42631         * modules/memcpy (Status, Notice): New sections.
42632
42633 2008-11-02  Bruno Haible  <bruno@clisp.org>
42634
42635         Mark 'memcmp' obsolete.
42636         * modules/memcmp (Status, Notice): New sections.
42637         * modules/argmatch (Depends-on): Add memchr.
42638         * modules/backupfile (Depends-on): Likewise.
42639         * modules/c-strcasestr (Depends-on): Likewise.
42640         * modules/crypto/des (Depends-on): Likewise.
42641         * modules/csharpcomp (Depends-on): Likewise.
42642         * modules/fnmatch (Depends-on): Likewise.
42643         * modules/git-merge-changelog (Depends-on): Likewise.
42644         * modules/isnand (Depends-on): Likewise.
42645         * modules/isnand-nolibm (Depends-on): Likewise.
42646         * modules/isnanf (Depends-on): Likewise.
42647         * modules/isnanf-nolibm (Depends-on): Likewise.
42648         * modules/isnanl (Depends-on): Likewise.
42649         * modules/isnanl-nolibm (Depends-on): Likewise.
42650         * modules/mbchar (Depends-on): Likewise.
42651         * modules/memcoll (Depends-on): Likewise.
42652         * modules/quotearg (Depends-on): Likewise.
42653         * modules/regex (Depends-on): Likewise.
42654         * modules/relocatable-prog (Depends-on): Likewise.
42655         * modules/same (Depends-on): Likewise.
42656         * modules/signbit (Depends-on): Likewise.
42657         * modules/strcasestr-simple (Depends-on): Likewise.
42658         * modules/unictype/gen-ctype (Depends-on): Likewise.
42659         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
42660         * modules/uniname/uniname (Depends-on): Likewise.
42661         * modules/unistr/u8-cmp (Depends-on): Likewise.
42662
42663 2008-11-02  Bruno Haible  <bruno@clisp.org>
42664
42665         Mark 'memchr' obsolete.
42666         * modules/memchr (Status, Notice): New sections.
42667         * modules/argp (Depends-on): Add memchr.
42668         * modules/base64 (Depends-on): Likewise.
42669         * modules/c-strcasestr (Depends-on): Likewise.
42670         * modules/chdir-long (Depends-on): Likewise.
42671         * modules/fnmatch (Depends-on): Likewise.
42672         * modules/getsubopt (Depends-on): Likewise.
42673         * modules/git-merge-changelog (Depends-on): Likewise.
42674         * modules/glob (Depends-on): Likewise.
42675         * modules/strcasestr-simple (Depends-on): Likewise.
42676         * modules/strnlen (Depends-on): Likewise.
42677
42678 2008-11-02  Bruno Haible  <bruno@clisp.org>
42679
42680         Mark 'atexit' obsolete.
42681         * modules/atexit (Status, Notice): New sections.
42682         * modules/chdir-long (Depends-on): Add atexit.
42683         * modules/wait-process (Depends-on): Likewise.
42684
42685 2008-11-02  Bruno Haible  <bruno@clisp.org>
42686
42687         * gnulib-tool: New option --with-obsolete.
42688         (func_usage): Document it.
42689         (func_modules_transitive_closure): Drop obsolete dependencies if
42690         incobsolete is not true.
42691         (func_import): Read and save the incobsolete variable to the cache.
42692
42693 2008-11-02  Bruno Haible  <bruno@clisp.org>
42694
42695         * modules/TEMPLATE-EXTENDED: New field 'Status'.
42696         * gnulib-tool: New option --extract-status.
42697         (func_usage): Document it.
42698         (sed_extract_prog): Recognize it.
42699         (func_get_status): New function.
42700
42701 2008-10-30  Simon Josefsson  <simon@josefsson.org>
42702
42703         * modules/sockets (License): Change from LGPL to LGPLv2+.
42704
42705 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42706
42707         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
42708
42709 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42710
42711         * MODULES.html.sh (Support for systems lacking POSIX:2001):
42712         Mention times and sys_times.
42713         * modules/sys_times, modules/sys_times-tests: New modules.
42714         * modules/times, modules/times-tests: Likewise
42715         * m4/sys_times_h.m4: New file.
42716         * lib/sys_times.in.h: Likewise
42717         * lib/times.c: Likewise.
42718         * tests/test-sys_times.c: Likewise.
42719         * tests/test-times.c: Likewise.
42720         * doc/posix-headers/sys_times.texi: Update.
42721         * doc/posix-functions/times.texi: Update.
42722
42723 2008-10-28  Jim Meyering  <meyering@redhat.com>
42724
42725         * modules/tempname (Depends-on): Add lstat.
42726
42727         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
42728
42729 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42730
42731         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
42732         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
42733         using idiom used elsewhere in gnulib.
42734
42735 2008-10-27  Jim Meyering  <meyering@redhat.com>
42736
42737         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
42738
42739 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42740
42741         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
42742         TESTS_ENVIRONMENT, for shell scripts that needs to call built
42743         programs.
42744         * tests/test-argp-2.sh: Use $EXEEXT when needed.
42745
42746 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42747
42748         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
42749
42750 2008-10-27  Bruno Haible  <bruno@clisp.org>
42751
42752         * tests/test-lstat.c: Include <stdio.h>.
42753
42754 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42755
42756         * modules/lstat-tests: New module.
42757         * tests/test-lstat.c: New file.
42758
42759 2008-10-26  Jim Meyering  <meyering@redhat.com>
42760
42761         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
42762
42763 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42764             Bruno Haible  <bruno@clisp.org>
42765
42766         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
42767         * modules/configmake (Include): Add a note that the include must come
42768         after all system headers.
42769         * lib/javaversion.c: Include configmake.h after all other includes.
42770
42771 2008-10-26  Bruno Haible  <bruno@clisp.org>
42772
42773         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
42774         HAVE_STRUCT_RANDOM_DATA to 1.
42775         (gl_STDLIB_H): Simplify.
42776
42777 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42778
42779         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
42780         substitute HAVE_STRUCT_RANDOM_DATA.
42781         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
42782         random_data.
42783         * modules/stdlib (Makefile.am): Substitute
42784         HAVE_STRUCT_RANDOM_DATA.
42785
42786 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42787
42788         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
42789         * doc/gnulib-intro.texi (Copyright): Likewise.
42790
42791 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42792
42793         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
42794         findings.
42795
42796 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
42797             Bruno Haible  <bruno@clisp.org>
42798
42799         * lib/unistd.in.h: Include <winsock2.h>.
42800         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
42801         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
42802         Provide dummy declarations.
42803         (gethostname): Override.
42804         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
42805         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
42806         gl_PREREQ_SYS_H_WINSOCK2.
42807         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
42808         * doc/posix-functions/gethostname.texi: More details.
42809
42810 2008-10-25  Bruno Haible  <bruno@clisp.org>
42811
42812         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42813         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
42814         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
42815
42816         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
42817         here ...
42818         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
42819         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
42820         gl_UNISTD_H_DEFAULTS.
42821
42822 2008-10-25  Eric Blake  <ebb9@byu.net>
42823
42824         signbit: avoid spurious compiler failure
42825         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
42826         declarations inside function.
42827
42828 2008-10-24  Simon Josefsson  <simon@josefsson.org>
42829             Bruno Haible  <bruno@clisp.org>
42830
42831         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
42832         * modules/random_r (Depends-on): Add stdint.
42833
42834 2008-10-24  Bruno Haible  <bruno@clisp.org>
42835
42836         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
42837         Eggert.
42838         * modules/strerror (License): Likewise.
42839
42840 2008-10-24  Jim Meyering  <meyering@redhat.com>
42841
42842         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
42843         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
42844
42845 2008-10-24  Eric Blake  <ebb9@byu.net>
42846
42847         getgroups: fix compilation when getgroups is available
42848         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
42849         but with <config.h> override of getgroups disabled.
42850
42851 2008-10-24  Simon Josefsson  <simon@josefsson.org>
42852
42853         * doc/gnulib.texi (Header files): Add note about C++ problems.
42854         Explained by Bruno Haible <bruno@clisp.org>.
42855
42856 2008-10-23  Bruno Haible  <bruno@clisp.org>
42857
42858         Define a dummy SA_NODEFER macro on Interix.
42859         * lib/signal.in.h (SA_NODEFER): Define fallback.
42860         Reported by Aleksey Cheusov <cheusov@tut.by> via
42861         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
42862
42863 2008-10-23  Bruno Haible  <bruno@clisp.org>
42864
42865         * modules/freadahead (License): Change to LGPLv2+.
42866         Suggested by Simon Josefsson.
42867
42868 2008-10-23  Jim Meyering  <meyering@redhat.com>
42869
42870         random_r: new module
42871         * modules/random_r: New file.
42872         * m4/random_r.m4: New file.
42873         * lib/random_r.c: New file, from glibc.
42874         * modules/random_r-tests: New file.
42875         * tests/test-random_r.c: New file.
42876         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
42877          Declare.
42878         (RAND_MAX): Define.
42879         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
42880         * modules/stdlib: Substitute them, too.
42881         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
42882         * doc/glibc-functions/initstate_r.texi: Mention the new module.
42883         * doc/glibc-functions/random_r.texi: Likewise.
42884         * doc/glibc-functions/setstate_r.texi: Likewise.
42885         * doc/glibc-functions/srandom_r.texi: Likewise.
42886         * config/srclist.txt: Mention it.
42887
42888 2008-10-23  David Lutterkort  <lutter@redhat.com>
42889
42890         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
42891         link requirement
42892
42893 2008-10-23  Jim Meyering  <meyering@redhat.com>
42894
42895         selinux-h: mark parameters of stub functions as intentionally unused
42896         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
42897         * lib/se-context.in.h: Likewise.
42898
42899 2008-10-22  Simon Josefsson  <simon@josefsson.org>
42900
42901         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
42902
42903 2008-10-22  Simon Josefsson  <simon@josefsson.org>
42904
42905         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
42906
42907 2008-10-22  Eric Blake  <ebb9@byu.net>
42908
42909         glthread/thread: avoid compiler warning
42910         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
42911         Add unreachable abort to silence compiler.
42912
42913 2008-10-22  Eric Blake  <ebb9@byu.net>
42914
42915         netdb: also supply struct addrinfo for cygwin 1.5.x
42916         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
42917         older cygwin.
42918         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
42919         cygwin.
42920         * doc/posix-headers/netdb.texi (netdb.h): Document this.
42921
42922 2008-10-22  Bruno Haible  <bruno@clisp.org>
42923
42924         * users.txt: Update entry about pspp.
42925
42926 2008-10-21  Bruno Haible  <bruno@clisp.org>
42927
42928         Simplification.
42929         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
42930         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
42931
42932         Simplification.
42933         * lib/ioctl.c (ioctl): Don't undefine.
42934         * lib/socket.c (socket): Don't undefine.
42935
42936         Remove unused module indicator macros.
42937         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
42938         GNULIB_$1 as a C macro.
42939
42940         * doc/posix-functions/close.texi: Undo last change.
42941         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
42942         Windows platforms.
42943
42944 2008-10-21  Bruno Haible  <bruno@clisp.org>
42945
42946         Add gethostname() declaration to <unistd.h>.
42947         * lib/unistd.in.h (gethostname): New declaration.
42948         * lib/gethostname.c: Include <unistd.h>.
42949         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
42950         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
42951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
42952         and HAVE_GETHOSTNAME.
42953         * modules/gethostname (Depends-on): Add unistd.
42954         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42955         (Include): Specify <unistd.h>.
42956         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
42957         HAVE_GETHOSTNAME.
42958         * tests/test-gethostname.c: Include <unistd.h> first.
42959
42960 2008-10-21  Bruno Haible  <bruno@clisp.org>
42961
42962         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
42963         * modules/select-tests (Depends-on): Likewise.
42964         Reported by Simon Josefsson.
42965
42966 2008-10-21  Simon Josefsson  <simon@josefsson.org>
42967
42968         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
42969         * lib/accept.c: New file, based on winsock.c.
42970         * lib/bind.c: New file, based on winsock.c.
42971         * lib/connect.c: New file, based on winsock.c.
42972         * lib/getpeername.c: New file, based on winsock.c.
42973         * lib/getsockname.c: New file, based on winsock.c.
42974         * lib/getsockopt.c: New file, based on winsock.c.
42975         * lib/ioctl.c: New file, based on winsock.c.
42976         * lib/listen.c: New file, based on winsock.c.
42977         * lib/recv.c: New file, based on winsock.c.
42978         * lib/recvfrom.c: New file, based on winsock.c.
42979         * lib/send.c: New file, based on winsock.c.
42980         * lib/sendto.c: New file, based on winsock.c.
42981         * lib/setsockopt.c: New file, based on winsock.c.
42982         * lib/shutdown.c: New file, based on winsock.c.
42983         * lib/socket.c: New file, based on winsock.c.
42984         * lib/w32sock.h: New file, based on winsock.c.
42985         * lib/winsock.c: Remove file.
42986         * modules/accept: Likewise.
42987         * modules/bind: Likewise.
42988         * modules/connect: Likewise.
42989         * modules/getpeername: Likewise.
42990         * modules/getsockname: Likewise.
42991         * modules/getsockopt: Likewise.
42992         * modules/ioctl: Likewise.
42993         * modules/listen: Likewise.
42994         * modules/recv: Likewise.
42995         * modules/recvfrom: Likewise.
42996         * modules/send: Likewise.
42997         * modules/sendto: Likewise.
42998         * modules/setsockopt: Likewise.
42999         * modules/shutdown: Likewise.
43000         * modules/socket: Use socket.c instead of winsock.c.
43001         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
43002         * doc/posix-functions/accept.texi: Doc fix.
43003         * doc/posix-functions/bind.texi: Doc fix.
43004         * doc/posix-functions/close.texi: Doc fix.
43005         * doc/posix-functions/connect.texi: Doc fix.
43006         * doc/posix-functions/getpeername.texi: Doc fix.
43007         * doc/posix-functions/getsockname.texi: Doc fix.
43008         * doc/posix-functions/getsockopt.texi: Doc fix.
43009         * doc/posix-functions/ioctl.texi: Doc fix.
43010         * doc/posix-functions/listen.texi: Doc fix.
43011         * doc/posix-functions/recv.texi: Doc fix.
43012         * doc/posix-functions/recvfrom.texi: Doc fix.
43013         * doc/posix-functions/send.texi: Doc fix.
43014         * doc/posix-functions/sendto.texi: Doc fix.
43015         * doc/posix-functions/setsockopt.texi: Doc fix.
43016         * doc/posix-functions/shutdown.texi: Doc fix.
43017         * doc/posix-functions/socket.texi: Doc fix.
43018
43019 2008-10-20  Bruno Haible  <bruno@clisp.org>
43020
43021         Take into account the role of SIGABRT_COMPAT on Windows 2008.
43022         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
43023         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
43024         as an alias for SIGABRT.
43025         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
43026         (sigaction): Map it to SIGABRT.
43027         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
43028
43029 2008-10-20  Bruno Haible  <bruno@clisp.org>
43030
43031         * lib/fts.c: Don't include lstat.h.
43032         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
43033
43034         Move the lstat() declaration to <sys/stat.h>.
43035         * lib/lstat.h: Remove file.
43036         * lib/sys_stat.in.h: Add special invocation convention.
43037         (lstat): New declaration.
43038         * lib/lstat.c (orig_lstat): New function.
43039         (rpl_lstat): Use orig_lstat instead of lstat.
43040         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
43041         AC_C_INLINE. Set REPLACE_LSTAT.
43042         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
43043         and REPLACE_LSTAT.
43044         * modules/lstat (Files): Remove lib/lstat.h.
43045         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
43046         (Include): Specify <sys/stat.h> instead of lstat.h.
43047         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
43048         REPLACE_LSTAT.
43049         * NEWS: Mention the change.
43050
43051 2008-10-20  Bruno Haible  <bruno@clisp.org>
43052
43053         * modules/posix_spawn-tests: New file.
43054         * tests/test-posix_spawn3.c: New file.
43055
43056 2008-10-20  Bruno Haible  <bruno@clisp.org>
43057
43058         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
43059         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43060         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
43061         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43062         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
43063
43064 2008-10-20  Bruno Haible  <bruno@clisp.org>
43065
43066         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
43067         of posix_spawn on AIX 5.3.
43068
43069 2008-10-20  Bruno Haible  <bruno@clisp.org>
43070
43071         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
43072
43073 2008-10-20  Bruno Haible  <bruno@clisp.org>
43074
43075         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
43076         of AC_LANG_PROGRAM.
43077
43078 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43079
43080         * lib/netdb.in.h: Don't define GNU specific constants until they
43081         are supported or needed.  Reported by Bruno Haible
43082         <bruno@clisp.org>.
43083
43084 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43085
43086         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
43087
43088 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43089
43090         * lib/getaddrinfo.h: Remove file.
43091         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
43092         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
43093         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
43094         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
43095         * modules/netdb: Substitute GNULIB_GETADDRINFO.
43096         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
43097         * tests/test-getaddrinfo.c: Likewise.
43098         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
43099         * NEWS: Mention change.
43100
43101 2008-10-19  Bruno Haible  <bruno@clisp.org>
43102
43103         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
43104
43105 2008-10-19  Bruno Haible  <bruno@clisp.org>
43106
43107         * lib/wait-process.c: Include simply <sys/wait.h>.
43108         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
43109         WIFSTOPPED): Remove fallback definitions.
43110         * modules/wait-process (Depends-on): Add sys_wait.
43111
43112         New module 'sys_wait'.
43113         * modules/sys_wait: New file.
43114         * lib/sys_wait.in.h: New file, partially copied from
43115         lib/wait-process.c.
43116         * m4/sys_wait_h.m4: New file.
43117         * doc/posix-headers/sys_wait.texi: Mention the new module.
43118
43119 2008-10-19  Bruno Haible  <bruno@clisp.org>
43120
43121         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
43122
43123 2008-10-19  Bruno Haible  <bruno@clisp.org>
43124
43125         Assume that waitpid() fills an 'int' status, not a 'union wait'.
43126         * lib/wait-process.c (WAIT_T): Remove type.
43127         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
43128         (wait_subprocess): Update.
43129
43130 2008-10-19  Bruno Haible  <bruno@clisp.org>
43131
43132         New module 'atoll'.
43133         * modules/atoll: New file.
43134         * lib/stdlib.in.h (atoll): New declaration.
43135         * lib/atoll.c: New file, from glibc with modifications.
43136         * m4/atoll.m4: New file.
43137         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
43138         HAVE_ATOLL.
43139         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
43140         * doc/posix-functions/atoll.texi: Mention the new module.
43141
43142 2008-10-19  Bruno Haible  <bruno@clisp.org>
43143
43144         Add strtoull() declaration to <stdlib.h>.
43145         * lib/stdlib.in.h (strtoull): New declaration.
43146         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
43147         Set HAVE_STRTOULL.
43148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
43149         HAVE_STRTOULL.
43150         * modules/strtoull (Depends-on): Add stdlib.
43151         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43152         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
43153         HAVE_STRTOULL.
43154
43155 2008-10-19  Bruno Haible  <bruno@clisp.org>
43156
43157         Add strtoll() declaration to <stdlib.h>.
43158         * lib/stdlib.in.h (strtoll): New declaration.
43159         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
43160         Set HAVE_STRTOLL.
43161         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
43162         HAVE_STRTOLL.
43163         * modules/strtoll (Depends-on): Add stdlib.
43164         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43165         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
43166
43167 2008-10-19  Bruno Haible  <bruno@clisp.org>
43168
43169         * modules/bcopy (Depends-on): Add strings.
43170         (Include): Specify <strings.h>.
43171
43172 2008-10-19  Bruno Haible  <bruno@clisp.org>
43173
43174         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
43175
43176 2008-10-19  Bruno Haible  <bruno@clisp.org>
43177
43178         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
43179         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
43180         mingw.
43181
43182 2008-10-19  Bruno Haible  <bruno@clisp.org>
43183
43184         * lib/atanl.c: Don't include isnanl.h.
43185         * lib/cosl.c: Likewise.
43186         * lib/ldexpl.c: Likewise.
43187         * lib/logl.c: Likewise.
43188         * lib/sinl.c: Likewise.
43189         * lib/sqrtl.c: Likewise.
43190         * lib/tanl.c: Likewise.
43191
43192         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
43193         * lib/isnanf.h: Remove file.
43194         * lib/isnand.h: Remove file.
43195         * lib/isnanl.h: Remove file.
43196         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
43197         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
43198         macros.
43199         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
43200         HAVE_ISNANF, don't define it as a C macro.
43201         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
43202         HAVE_ISNAND, don't define it as a C macro.
43203         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
43204         HAVE_ISNANL, don't define it as a C macro.
43205         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
43206         HAVE_ISNAN[FDL].
43207         * modules/isnanf (Files): Remove lib/isnanf.h.
43208         (Depends-on): Add math.
43209         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43210         (Include): Specify <math.h> instead of isnanf.h.
43211         * modules/isnand (Files): Remove lib/isnand.h.
43212         (Depends-on): Add math.
43213         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43214         (Include): Specify <math.h> instead of isnand.h.
43215         * modules/isnanl (Files): Remove lib/isnanl.h.
43216         (Depends-on): Add math.
43217         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43218         (Include): Specify <math.h> instead of isnanl.h.
43219         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
43220         HAVE_ISNAN[FDL].
43221         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
43222         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
43223         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
43224         * NEWS: Mention the change.
43225
43226 2008-10-18  Bruno Haible  <bruno@clisp.org>
43227
43228         Add getusershell(), setusershell(), endusershell() declarations to
43229         <unistd.h>.
43230         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
43231         declarations.
43232         * lib/getusershell.c: Include unistd.h.
43233         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
43234         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
43235         HAVE_GETUSERSHELL.
43236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
43237         and HAVE_GETUSERSHELL.
43238         * modules/getusershell (Depends-on): Add unistd, extensions.
43239         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43240         (Include): Specify <unistd.h>.
43241         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
43242         HAVE_GETUSERSHELL.
43243
43244 2008-10-18  Bruno Haible  <bruno@clisp.org>
43245
43246         Add a getloadavg() declaration to <stdlib.h>.
43247         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
43248         getloadavg declaration.
43249         (getloadavg): New declaration.
43250         * lib/getloadavg.c: Include <stdlib.h> first.
43251         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
43252         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
43253         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
43254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
43255         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
43256         * modules/getloadavg (Depends-on): Add stdlib, extensions.
43257         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43258         (Include): Specify <stdlib.h>.
43259         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
43260         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
43261
43262 2008-10-18  Bruno Haible  <bruno@clisp.org>
43263
43264         * lib/dirchownmod.c: Don't include lchmod.h.
43265
43266         Move the lchmod() declaration to <sys/stat.h>.
43267         * lib/lchmod.h: Remove file.
43268         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
43269         (lchmod): New declaration, moved here from lib/lchown.h.
43270         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
43271         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
43272         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
43273         and HAVE_LCHMOD.
43274         * modules/lchmod (Files): Remove lib/lchmod.h.
43275         (Depends-on): Add sys_stat, extensions.
43276         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
43277         (Include): Specify <sys/stat.h> instead of lchmod.h.
43278         * modules/sys_stat (Depends-on): Add link-warning.
43279         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
43280         definition of GL_LINK_WARNING.
43281         * NEWS: Mention the change.
43282
43283 2008-10-18  Bruno Haible  <bruno@clisp.org>
43284
43285         * lib/fchdir.c: Don't include dirfd.h.
43286         * lib/fts.c: Likewise.
43287         * lib/getcwd.c: Likewise.
43288         * lib/glob.c: Likewise.
43289
43290         Move the dirfd() declaration to <dirent.h>.
43291         * lib/dirfd.h: Remove file.
43292         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
43293         (dirfd): New declaration.
43294         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
43295         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
43296         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
43297         HAVE_DECL_DIRFD.
43298         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
43299         HAVE_DECL_DIRFD.
43300         * modules/dirfd (Files): Remove lib/dirfd.h.
43301         (Depends-on): Add dirent, extensions.
43302         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
43303         (Include): Specify <dirent.h> instead of dirfd.h.
43304         * modules/dirent (Depends-on): Add link-warning.
43305         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
43306         definition of GL_LINK_WARNING.
43307         * NEWS: Mention the change.
43308
43309 2008-10-18  Bruno Haible  <bruno@clisp.org>
43310
43311         Move the euidaccess() declaration to <unistd.h>.
43312         * lib/euidaccess.h: Remove file.
43313         * lib/unistd.in.h (euidaccess): New declaration.
43314         * lib/euidaccess.c: Don't include euidaccess.h.
43315         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
43316         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
43317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
43318         and HAVE_EUIDACCESS.
43319         * modules/euidaccess (Files): Remove lib/euidaccess.h.
43320         (Depends-on): Add unistd.
43321         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43322         (Include): Specify <unistd.h> instead of euidaccess.h.
43323         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
43324         HAVE_EUIDACCESS.
43325         * NEWS: Mention the change.
43326
43327 2008-10-18  Bruno Haible  <bruno@clisp.org>
43328
43329         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
43330
43331         Move the getdomainname() declaration to <unistd.h>.
43332         * lib/getdomainname.h: Remove file.
43333         * lib/unistd.in.h (getdomainname): New declaration.
43334         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
43335         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
43336         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
43337         HAVE_GETDOMAINNAME.
43338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43339         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
43340         * modules/getdomainname (Files): Remove lib/getdomainname.h.
43341         (Depends-on): Add unistd, extensions.
43342         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43343         (Includes): Specify <unistd.h> instead of getdomainname.h.
43344         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
43345         HAVE_GETDOMAINNAME.
43346         * NEWS: Mention the change.
43347
43348 2008-10-18  Bruno Haible  <bruno@clisp.org>
43349
43350         * modules/dirent: New file.
43351         * m4/dirent_h.m4: New file.
43352         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
43353         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
43354         * modules/fchdir (Files): Remove lib/dirent.in.h.
43355         (Depends-on): Add dirent.
43356         (Makefile.am): Move rules to modules/dirent.
43357         * doc/posix-headers/dirent.texi: Mention the new module.
43358
43359 2008-10-18  Bruno Haible  <bruno@clisp.org>
43360
43361         Avoid -Wunused-parameter warnings in public gnulib header files.
43362         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
43363         macro.
43364         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
43365
43366 2008-10-18  Bruno Haible  <bruno@clisp.org>
43367
43368         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
43369         * doc/glibc-functions/error.texi: Mention the module 'error'.
43370         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
43371         * doc/glibc-functions/getdomainname.texi: Mention the module
43372         'getdomainname'.
43373         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
43374         * doc/glibc-functions/getpagesize.texi: Mention the module
43375         'getpagesize'.
43376         * doc/glibc-functions/getusershell.texi: Mention the module
43377         'getusershell'.
43378         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
43379         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
43380         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
43381         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
43382         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
43383         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
43384         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
43385         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
43386         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
43387         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
43388         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
43389         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
43390         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
43391         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
43392
43393 2008-10-17  Bruno Haible  <bruno@clisp.org>
43394
43395         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
43396         HP-UX and IRIX, use -0.0L.
43397         * tests/test-ceill.c (minus_zero): Likewise.
43398         * tests/test-floorl.c (minus_zero): Likewise.
43399         * tests/test-frexpl.c (minus_zero): Likewise.
43400         * tests/test-isnan.c (minus_zerol): Likewise.
43401         * tests/test-isnanl.h (minus_zero): Likewise.
43402         * tests/test-ldexpl.c (minus_zero): Likewise.
43403         * tests/test-roundl.c (minus_zero): Likewise.
43404         * tests/test-signbit.c (minus_zerol): Likewise.
43405         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43406         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43407         * tests/test-truncl.c (minus_zero): Likewise.
43408         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43409         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43410         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
43411         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43412
43413 2008-10-17  Bruno Haible  <bruno@clisp.org>
43414
43415         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
43416         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
43417         that it gets activated only for gcc >= 3.0.
43418         * lib/dirent.in.h: Likewise.
43419         * lib/errno.in.h: Likewise.
43420         * lib/fcntl.in.h: Likewise.
43421         * lib/float.in.h: Likewise.
43422         * lib/iconv.in.h: Likewise.
43423         * lib/inttypes.in.h: Likewise.
43424         * lib/locale.in.h: Likewise.
43425         * lib/math.in.h: Likewise.
43426         * lib/netdb.in.h: Likewise.
43427         * lib/netinet_in.in.h: Likewise.
43428         * lib/search.in.h: Likewise.
43429         * lib/signal.in.h: Likewise.
43430         * lib/spawn.in.h: Likewise.
43431         * lib/stdarg.in.h: Likewise.
43432         * lib/stdint.in.h: Likewise.
43433         * lib/stdio.in.h: Likewise.
43434         * lib/stdlib.in.h: Likewise.
43435         * lib/string.in.h: Likewise.
43436         * lib/strings.in.h: Likewise.
43437         * lib/sys_file.in.h: Likewise.
43438         * lib/sys_ioctl.in.h: Likewise.
43439         * lib/sys_select.in.h: Likewise.
43440         * lib/sys_socket.in.h: Likewise.
43441         * lib/sys_stat.in.h: Likewise.
43442         * lib/sys_time.in.h: Likewise.
43443         * lib/sysexits.in.h: Likewise.
43444         * lib/time.in.h: Likewise.
43445         * lib/unistd.in.h: Likewise.
43446         * lib/wchar.in.h: Likewise.
43447         * lib/wctype.in.h: Likewise.
43448         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43449
43450 2008-10-17  Jim Meyering  <meyering@redhat.com>
43451
43452         ignore-value: don't depend on inline module
43453         * modules/ignore-value (Depends-on): Remove 'inline'.
43454         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
43455         Suggestion from Bruno Haible.
43456
43457 2008-10-17  Bruno Haible  <bruno@clisp.org>
43458
43459         New implementation of condition variables for Win32.
43460         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
43461         (gl_linked_waitqueue_t): New type.
43462         (gl_cond_t): Use it.
43463         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
43464         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
43465         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
43466         (glthread_cond_init_func, glthread_cond_wait_func,
43467         glthread_cond_timedwait_func, glthread_cond_signal_func,
43468         glthread_cond_broadcast_func, glthread_cond_destroy_func):
43469         Reimplemented on the basis of gl_linked_waitqueue_t.
43470         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
43471         gl_waitqueue_t.
43472         (gl_rwlock_t): Update.
43473         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
43474
43475 2008-10-17  Simon Josefsson  <simon@josefsson.org>
43476
43477         * modules/recvfrom (Depends-on): Add dependency on getpeername.
43478         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43479
43480 2008-10-17  Jim Meyering  <meyering@redhat.com>
43481
43482         ignore-value: new module
43483         * modules/ignore-value: New file.
43484         * lib/ignore-value.h: New file.
43485         * MODULES.html.sh (Compiler warning management): New section,
43486         just for this module.  More to come.
43487
43488 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43489
43490         open-safer.c: avoid 'signed and unsigned in conditional...' warning
43491         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
43492         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
43493
43494 2008-10-16  Jim Meyering  <meyering@redhat.com>
43495
43496         openat-die.c: avoid 'no previous prototype' warning
43497         * lib/openat-die.c: Include "openat.h".
43498         Reported by Reuben Thomas <rrt@sc3d.org>.
43499
43500 2008-10-16  Simon Josefsson  <simon@josefsson.org>
43501
43502         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
43503         * lib/netdb.in.h: Fix typo.
43504         Reported by Bruno Haible  <bruno@clisp.org>
43505
43506         * lib/netdb.in.h: Include sys/socket.h for platforms without
43507         netdb.h, to get structures like hostent on MinGW.
43508         * modules/netdb (Depends-on): Add sys_socket.
43509
43510 2008-10-15  Simon Josefsson  <simon@josefsson.org>
43511
43512         * modules/netdb, modules/netdb-tests: New file.
43513         * m4/netdb_h.m4: New file.
43514         * lib/netdb.in.h: Add, currently just an empty file pending
43515         definitions.
43516         * tests/test-netdb.c: New file.
43517         * doc/posix-headers/netdb.texi: Mention that we replace it if
43518         needed.
43519         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43520         netdb.
43521
43522 2008-10-15  Simon Josefsson  <simon@josefsson.org>
43523
43524         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
43525         with code.
43526
43527 2008-10-13  Bruno Haible  <bruno@clisp.org>
43528
43529         * lib/glthread/cond.c (glthread_cond_wait_func,
43530         glthread_cond_timedwait_func): Add a comment.
43531
43532 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43533
43534         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
43535         * tests/test-select.c: Likewise,
43536
43537 2008-10-13  Bruno Haible  <bruno@clisp.org>
43538
43539         * lib/glthread/cond.c (glthread_cond_wait_func,
43540         glthread_cond_timedwait_func): Fix variable name.
43541         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43542
43543 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
43544
43545         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
43546         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
43547         struct sockaddr.sa_len.
43548         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
43549
43550 2008-10-13  Simon Josefsson  <simon@josefsson.org>
43551
43552         * build-aux/pmccabe2html: Add css and css_url parameters.
43553
43554 2008-10-12  Bruno Haible  <bruno@clisp.org>
43555
43556         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
43557         calling aclx_get.
43558         Reported by Rainer Tammer <tammer@tammer.net>.
43559
43560 2008-10-12  Bruno Haible  <bruno@clisp.org>
43561
43562         Use msvcrt aware primitives for creation/termination of Win32 threads.
43563         * lib/glthread/thread.c: Include <process.h>.
43564         (glthread_create_func): Use _beginthreadex instead of CreateThread.
43565         (wrapper_func): Update signature.
43566         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
43567
43568 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43569             Bruno Haible  <bruno@clisp.org>
43570
43571         Provide a Win32 implementation of the 'cond' module.
43572         * lib/glthread/cond.h [USE_WIN32]: New implementation.
43573         * lib/glthread/cond.c (glthread_cond_init_func,
43574         glthread_cond_wait_func, glthread_cond_timedwait_func,
43575         glthread_cond_signal_func, glthread_cond_broadcast_func,
43576         glthread_cond_destroy_func) [USE_WIN32]: New functions.
43577         * modules/cond (Dependencies): Add gettimeofday.
43578
43579 2008-10-11  Bruno Haible  <bruno@clisp.org>
43580
43581         Make sleep work on older versions of mingw.
43582         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
43583         only whether it exists.
43584         * doc/posix-functions/sleep.texi: Mention the problem with older
43585         versions of mingw.
43586
43587 2008-10-11  Bruno Haible  <bruno@clisp.org>
43588
43589         New module 'shutdown'.
43590         * modules/shutdown: New file.
43591         * lib/sys_socket.in.h (shutdown): New declaration.
43592         * lib/winsock.c (shutdown): New function.
43593         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43594         GNULIB_SHUTDOWN.
43595         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
43596         * doc/posix-functions/shutdown.texi: Document the new module.
43597
43598 2008-10-11  Jim Meyering  <meyering@redhat.com>
43599
43600         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
43601
43602 2008-10-11  Bruno Haible  <bruno@clisp.org>
43603
43604         New module 'fclose'.
43605         * modules/fclose: New file.
43606         * lib/stdio.in.h (fclose): New declaration.
43607         * lib/fclose.c: New file.
43608         * m4/fclose.m4: New file.
43609         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
43610         REPLACE_FCLOSE.
43611         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
43612         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
43613         REPLACE_FCLOSE.
43614         * modules/close (Depends-on): fclose.
43615         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
43616
43617 2008-10-11  Bruno Haible  <bruno@clisp.org>
43618
43619         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
43620         set errno and don't call _close.
43621
43622 2008-10-10  Bruno Haible  <bruno@clisp.org>
43623
43624         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
43625         ACL, not afterwards. Fixes test failure on Cygwin.
43626
43627 2008-10-09  Ben Pfaff  <blp@gnu.org>
43628
43629         * build-aux/announce-gen: Fix gnulib version related part of usage
43630         message.  Die with a useful error message if no tarballs are
43631         found.
43632
43633 2008-10-10  Jim Meyering  <meyering@redhat.com>
43634
43635         bootstrap: use git's --depth=N option only if it's supported
43636         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
43637         recognize the --depth option.  Reported by Pádraig Brady.
43638
43639 2008-10-09  Bruno Haible  <bruno@clisp.org>
43640
43641         New module 'ioctl'.
43642         * modules/ioctl: New file.
43643         * lib/sys_socket.in.h (ioctl): Remove declaration.
43644         * lib/winsock.c: Include <sys/ioctl.h>.
43645         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
43646         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
43647         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
43648         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
43649         * doc/posix-functions/ioctl.texi: Mention the new module.
43650
43651 2008-10-09  Bruno Haible  <bruno@clisp.org>
43652
43653         New module 'sys_ioctl'.
43654         * lib/sys_ioctl.in.h: New file.
43655         * m4/sys_ioctl_h.m4: New file.
43656         * modules/sys_ioctl: New file.
43657         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
43658
43659 2008-10-09  Bruno Haible  <bruno@clisp.org>
43660
43661         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
43662         * lib/winsock.c: Include <stdarg.h>.
43663         (rpl_ioctl): Change to second argument 'int' and then varargs.
43664
43665 2008-10-09  Bruno Haible  <bruno@clisp.org>
43666
43667         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
43668         when the sys_socket module is present and the system has <winsock2.h>.
43669
43670 2008-10-09  Bruno Haible  <bruno@clisp.org>
43671
43672         * doc/posix-functions/close.texi: Mention module 'close' instead of
43673         module 'sys_socket'.
43674
43675 2008-10-09  Bruno Haible  <bruno@clisp.org>
43676
43677         * doc/glibc-headers/sys_ioctl.texi: New file.
43678         * doc/gnulib.texi: Include it.
43679
43680 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43681             Bruno Haible  <bruno@clisp.org>
43682
43683         Combine the two replacements of 'close'.
43684         * lib/sys_socket.in.h (close): Define to a reminder to include
43685         <unistd.h>.
43686         (_gl_close_fd_maybe_socket): New declaration.
43687         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
43688         * lib/winsock.c (close): Remove undefinition.
43689         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
43690         needed for the gnulib module 'close'.
43691         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
43692         define to an error symbol or to a warning, if suitable.
43693         * lib/close.c: Include <sys/socket.h>.
43694         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
43695         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
43696         UNISTD_H_HAVE_WINSOCK2_H.
43697         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
43698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43699         UNISTD_H_HAVE_WINSOCK2_H.
43700         * modules/sys_socket (Files): Add m4/unistd_h.m4.
43701         (configure.ac): Set a module indicator.
43702         (Makefile.am): Substitute GNULIB_CLOSE.
43703         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
43704         * modules/poll-tests (Depends-on): Add close.
43705         * modules/select-tests (Depends-on): Likewise.
43706
43707 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43708             Bruno Haible  <bruno@clisp.org>
43709
43710         New module 'close'.
43711         * modules/close: New file.
43712         * lib/unistd.in.h (close): Move declaration out of the
43713         FCHDIR_REPLACEMENT scope.
43714         (_gl_unregister_fd): New declaration.
43715         * lib/close.c: New file.
43716         * lib/fchdir.c (rpl_close): Remove function.
43717         * m4/close.m4: New file.
43718         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
43719         close.
43720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
43721         REPLACE_CLOSE.
43722         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
43723         REPLACE_CLOSE.
43724         * modules/fchdir (Depends-on): Add close.
43725
43726 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43727             Bruno Haible  <bruno@clisp.org>
43728
43729         * lib/fcntl.in.h (open): Simplify conditionals.
43730         (_gl_register_fd): New declaration.
43731         * lib/fchdir.c (rpl_open): Remove function.
43732         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
43733         also.
43734         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
43735         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
43736         open.
43737
43738 2008-10-09  Jim Meyering  <meyering@redhat.com>
43739
43740         GNUmakefile: use the more name-space-friendly "_version"
43741         * top/GNUmakefile (_dummy): Update.
43742         (_version): Rename from "version".
43743
43744 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43745             Bruno Haible  <bruno@clisp.org>
43746
43747         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
43748         rpl_close.
43749         (_gl_register_fd): New function, extracted from rpl_open.
43750         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
43751         (rpl_open, rpl_opendir): Use _gl_register_fd.
43752
43753 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43754
43755         Fix organization of 'open' replacement.
43756         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
43757         (gl_FUNC_OPEN): Use it.
43758         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
43759
43760 2008-10-08  Bruno Haible  <bruno@clisp.org>
43761
43762         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
43763
43764 2008-10-08  Simon Josefsson  <simon@josefsson.org>
43765
43766         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
43767         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
43768         listen).
43769
43770 2008-10-08  Eric Blake  <ebb9@byu.net>
43771
43772         GNUmakefile: add 'make version' target
43773         * top/GNUmakefile (_curr-ver): Split version update rules...
43774         (version): ...into a target.
43775
43776 2008-10-07  Bruno Haible  <bruno@clisp.org>
43777
43778         Use a more portable replacement expression for -0.0L.
43779         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
43780         instead of -0.0L. Fix m4 quotation.
43781
43782         * tests/test-signbit.c: Include <float.h>.
43783         (minus_zero): New variable.
43784         (test_signbitl): Use minus_zero instead of -zero.
43785         * modules/signbit-tests (Depends-on): Add float.
43786
43787         * tests/test-ceill.c: Include <float.h>.
43788         (zero): Remove variable.
43789         (minus_zero): New variable.
43790         (main): Use minus_zero instead of -zero.
43791         * modules/ceill-tests (Depends-on): Add float.
43792
43793         * tests/test-floorl.c: Include <float.h>.
43794         (zero): Remove variable.
43795         (minus_zero): New variable.
43796         (main): Use minus_zero instead of -zero.
43797         * modules/floorl-tests (Depends-on): Add float.
43798
43799         * tests/test-roundl.c: Include <float.h>.
43800         (zero): Remove variable.
43801         (minus_zero): New variable.
43802         (main): Use minus_zero instead of -zero.
43803         * modules/roundl-tests (Depends-on): Add float.
43804
43805         * tests/test-truncl.c: Include <float.h>.
43806         (zero): Remove variable.
43807         (minus_zero): New variable.
43808         (main): Use minus_zero instead of -zero.
43809         * modules/truncl-tests (Depends-on): Add float.
43810
43811         * tests/test-frexpl.c (zero): Remove variable.
43812         (minus_zero): New variable.
43813         (main): Use minus_zero instead of -zero.
43814         * modules/frexpl-tests (Depends-on): Add float.
43815
43816         * tests/test-isnan.c (zerol): Remove variable.
43817         (minus_zerol): New variable.
43818         (test_long_double): Use minus_zerol instead of -zerol.
43819         * modules/isnan-tests (Depends-on): Add float.
43820
43821         * tests/test-isnanl.h (zero): Remove variable.
43822         (minus_zero): New variable.
43823         (main): Use minus_zero instead of -zero.
43824         * modules/isnanl-nolibm-tests (Depends-on): Add float.
43825         * modules/isnanl-tests (Depends-on): Add float.
43826
43827         * tests/test-ldexpl.c (zero): Remove variable.
43828         (minus_zero): New variable.
43829         (main): Use minus_zero instead of -zero.
43830         * modules/ldexpl-tests (Depends-on): Add float.
43831
43832         * tests/test-snprintf-posix.h (zerol): Remove variable.
43833         (minus_zerol): New variable.
43834         (test_function): Use minus_zerol instead of -zerol.
43835         * modules/snprintf-posix-tests (Depends-on): Add float.
43836         * modules/vsnprintf-posix-tests (Depends-on): Add float.
43837
43838         * tests/test-sprintf-posix.h (zerol): Remove variable.
43839         (minus_zerol): New variable.
43840         (test_function): Use minus_zerol instead of -zerol.
43841         * modules/sprintf-posix-tests (Depends-on): Add float.
43842         * modules/vsprintf-posix-tests (Depends-on): Add float.
43843
43844         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
43845         (minus_zerol): New variable.
43846         (test_function): Use minus_zerol instead of -zerol.
43847         * modules/vasnprintf-posix-tests (Depends-on): Add float.
43848
43849         * tests/test-vasprintf-posix.c (zerol): Remove variable.
43850         (minus_zerol): New variable.
43851         (test_function): Use minus_zerol instead of -zerol.
43852         * modules/vasprintf-posix-tests (Depends-on): Add float.
43853
43854 2008-10-07  Simon Josefsson  <simon@josefsson.org>
43855
43856         * MODULES.html.sh (Support for building documentation): Mention
43857         pmccabe2html.  Sort entries.
43858
43859         Add pmccabe2html module, from gnupdf.
43860         * build-aux/pmccabe.css: New file.
43861         * build-aux/pmccabe2html: New file.
43862         * m4/pmccabe2html.m4: New file.
43863         * modules/pmccabe2html: New file.
43864
43865 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
43866
43867         flock: new module
43868         * MODULES.html.sh: Add to list of modules.
43869         * lib/flock.c: flock implementation for Windows and Unix systems
43870         which have fcntl.
43871         * doc/glibc-functions/flock.texi: Update documentation.
43872         * lib/sys_file.in.h: <sys/file.h> header file.
43873         * m4/flock.m4: M4 macros.
43874         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
43875         * modules/flock: flock module.
43876         * modules/flock-tests: flock tests module.
43877         * modules/sys_file: sys/file.h module.
43878         * tests/test-flock.c: test suite for flock.
43879
43880 2008-10-06  Jim Meyering  <meyering@redhat.com>
43881
43882         bootstrap: check for LT_INIT more portably still ;-)
43883         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
43884         Spotted by Bruno Haible.
43885
43886 2008-10-06  Eric Blake  <ebb9@byu.net>
43887
43888         test-signbit: avoid tripping Irix cc bug on -0.0L
43889         * tests/test-signbit.c (minus_zerol): Delete, and replace with
43890         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
43891         entire testsuite consistent and avoids an Irix 6.2 bug.
43892
43893 2008-10-05  Bruno Haible  <bruno@clisp.org>
43894             Jim Meyering  <jim@meyering.net>
43895
43896         Add an option for ignoring EPIPE during close_stdout.
43897         * lib/closeout.h: Include <stdbool.h>.
43898         (close_stdout_set_ignore_EPIPE): New declaration.
43899         * lib/closeout.c: Include <stdbool.h>.
43900         (ignore_EPIPE): New variable.
43901         (close_stdout_set_ignore_EPIPE): New function.
43902         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
43903         * lib/close-stream.c (close_stream): Mention the possible EPIPE
43904         failure.
43905         * modules/closeout (Depends-on): Add stdbool.
43906
43907 2008-10-05  Bruno Haible  <bruno@clisp.org>
43908
43909         * modules/accept: New file.
43910         * modules/bind: New file.
43911         * modules/connect: New file.
43912         * modules/getpeername: New file.
43913         * modules/getsockname: New file.
43914         * modules/getsockopt: New file.
43915         * modules/listen: New file.
43916         * modules/recv: New file.
43917         * modules/recvfrom: New file.
43918         * modules/send: New file.
43919         * modules/sendto: New file.
43920         * modules/setsockopt: New file.
43921         * modules/socket: New file.
43922         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
43923         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
43924         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
43925         the particular module is requested. Add a link warning when the
43926         particular module is not requested.
43927         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
43928         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
43929         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
43930         the particular module is requested.
43931         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
43932         gl_SYS_SOCKET_H_DEFAULTS): New macros.
43933         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
43934         * modules/sys_socket (Depends-on): Add link-warning.
43935         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
43936         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
43937         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
43938         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
43939         GL_LINK_WARNING.
43940         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
43941         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
43942         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
43943         * doc/posix-functions/getpeername.texi: Mention the new module
43944         'getpeername'.
43945         * doc/posix-functions/getsockname.texi: Mention the new module
43946         'getsockname'.
43947         * doc/posix-functions/getsockopt.texi: Mention the new module
43948         'getsockopt'.
43949         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
43950         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
43951         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
43952         * doc/posix-functions/send.texi: Mention the new module 'send'.
43953         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
43954         * doc/posix-functions/setsockopt.texi: Mention the new module
43955         'setsockopt'.
43956         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
43957         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
43958         listen, connect, accept.
43959         * modules/select-tests (Depends-on): Likewise.
43960
43961 2008-10-05  Bruno Haible  <bruno@clisp.org>
43962
43963         * lib/winsock.c (strerror): Remove unused #undef.
43964         (rpl_close): Remove unused local variable.
43965
43966         * modules/sys_socket (Depends-on); Add errno.
43967
43968 2008-10-05  Bruno Haible  <bruno@clisp.org>
43969
43970         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
43971         (select): Add a link warning when the 'select' module is not used.
43972         * modules/sys_select (Depends-on): Add link-warning.
43973         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
43974         Suggested by Paolo Bonzini.
43975
43976 2008-10-05  Jim Meyering  <meyering@redhat.com>
43977
43978         bootstrap: check for LT_INIT more portably
43979         * build-aux/bootstrap: Avoid using grep -E, since it's not
43980         portable enough.  Suggestion from Bruno Haible.
43981
43982 2008-10-05  Bruno Haible  <bruno@clisp.org>
43983
43984         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
43985         as being fixed by gnulib.
43986
43987 2008-10-05  Bruno Haible  <bruno@clisp.org>
43988
43989         * modules/select-tests: New file, mostly copied from
43990         modules/sys_select-tests.
43991         * tests/test-select.c: New file, mostly copied from
43992         tests/test-sys_select.c.
43993         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
43994         * modules/sys_select-tests (Depends-on): Remove all dependencies.
43995         (Makefile.am): Remove test_sys_select_LDADD.
43996
43997         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
43998         to an undefined symbol, for an error message.
43999         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
44000         (gl_SYS_SELECT_H_DEFAULTS): New macro.
44001         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
44002         winsock-select.c here.
44003         * modules/sys_select (Files): Remove lib/winsock-select.c.
44004         (Depends-on): Remove alloca.
44005         (Makefile.am): Substitute GNULIB_SELECT.
44006         * modules/select: New file.
44007         * doc/posix-functions/select.texi: Update.
44008
44009 2008-10-05  Bruno Haible  <bruno@clisp.org>
44010
44011         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
44012         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
44013         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
44014         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
44015         getdtablesize.
44016         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
44017         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
44018
44019 2008-10-05  Bruno Haible  <bruno@clisp.org>
44020
44021         * modules/getdtablesize-tests: New file.
44022         * tests/test-getdtablesize.c: New file.
44023
44024         New module 'getdtablesize'.
44025         * lib/unistd.in.h (getdtablesize): New declaration.
44026         * lib/getdtablesize.c: New file.
44027         * m4/getdtablesize.m4: New file.
44028         * modules/getdtablesize: New file.
44029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44030         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
44031         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
44032         HAVE_GETDTABLESIZE.
44033         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
44034
44035 2008-10-05  Bruno Haible  <bruno@clisp.org>
44036
44037         * modules/sched (Makefile.am): Fix typo.
44038         Reported by Simon Josefsson.
44039
44040 2008-10-05  Jim Meyering  <meyering@redhat.com>
44041
44042         bootstrap: check for LT_INIT, too
44043         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
44044         are deprecated.  Suggestion from Ralf Wildenhues.
44045
44046 2008-10-05  Bruno Haible  <bruno@clisp.org>
44047
44048         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
44049         overriding them by ours.
44050         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
44051
44052 2008-10-05  Jim Meyering  <meyering@redhat.com>
44053
44054         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
44055         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
44056         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
44057
44058 2008-10-04  Bruno Haible  <bruno@clisp.org>
44059
44060         * modules/dup2 (License): Change to LGPLv2+.
44061         * modules/sleep (License): Likewise.
44062         * modules/perror (License): Likewise.
44063         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
44064         Blake.
44065         * modules/signal (License): Likewise.
44066         * modules/sigprocmask (License): Likewise.
44067         * modules/raise (License): Change to LGPLv2+, with approval by Jim
44068         Meyering.
44069
44070 2008-10-04  Bruno Haible  <bruno@clisp.org>
44071
44072         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
44073         Reported by Rainer Tammer <tammer@tammer.net>.
44074
44075 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
44076             Bruno Haible  <bruno@clisp.org>
44077
44078         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
44079         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
44080         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
44081
44082 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
44083
44084         filevercmp: new module
44085         * lib/filevercmp.h: New function filevercmp comparing version strings.
44086         * lib/filevercmp.c: Implementation of filevercmp function.
44087         * modules/filevercmp: Module metadata.
44088         * tests/test-filevercmp.c: Unit test for new module.
44089         * modules/filevercmp-tests: Unit test metadata.
44090         * MODULES.html.sh: Add filevercmp module.
44091
44092 2008-10-03  Bruno Haible  <bruno@clisp.org>
44093
44094         * lib/c-ctype.h: Add comment.
44095         Reported by Jim Meyering.
44096
44097 2008-10-02  Bruno Haible  <bruno@clisp.org>
44098
44099         * modules/posix_spawn-internal (Depends-on): Add 'open'.
44100
44101 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44102
44103         * build-aux/bootstrap: Allow renaming bootstrap, and change the
44104         name of bootstrap.conf accordingly.
44105
44106 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44107
44108         * build-aux/bootstrap: Install git-merge-changelog configuration
44109         items into .gitconfig if needed.
44110
44111 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44112
44113         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
44114         git repository, and initialize/update it accordingly.
44115
44116 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
44117
44118         * modules/fsync-tests: New file.
44119         * tests/test-fsync.c: New file.
44120
44121         New module 'fsync'.
44122         * lib/fsync.c: New file.
44123         * m4/fsync.m4: New file.
44124         * modules/fsync: New file.
44125         * lib/unistd.in.h (fsync): New declaration.
44126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
44127         GNULIB_FSYNC and HAVE_FSYNC.
44128         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
44129         * MODULES.html.sh (posix_functions): Add fsync.
44130         * doc/posix-functions/fsync.texi: Mention the new module.
44131
44132 2008-10-02  Jim Meyering  <meyering@redhat.com>
44133
44134         fts.c: sync with similar code from coreutils' remove.c
44135         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
44136         Guard also with "#if defined __linux__", since for now at least,
44137         this code is Linux-kernel-specific.
44138
44139 2008-10-02  Jim Meyering  <meyering@redhat.com>
44140
44141         fts: bug fixes
44142         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
44143         Include <sys/vfs.h>, not <sys/statfs.h>.
44144
44145         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
44146         Include <sys/vfs.h>, not <sys/statfs.h>.
44147
44148 2008-10-01  Bruno Haible  <bruno@clisp.org>
44149
44150         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
44151         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
44152         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
44153         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
44154         * doc/posix-functions/posix_spawnp.texi: Likewise.
44155         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
44156         whether posix_spawn actually works.
44157         * m4/pipe.m4 (gl_PIPE): Likewise.
44158         * modules/execute (Files): Add m4/posix_spawn.m4.
44159         * modules/pipe (Files): Add m4/posix_spawn.m4.
44160         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
44161
44162 2008-10-01  Jim Meyering  <meyering@redhat.com>
44163
44164         remove trailing spaces
44165         * NEWS: Likewise.
44166         * lib/poll.c (poll): Likewise.
44167         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
44168         * lib/winsock.c (rpl_close): Likewise.
44169         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
44170         * modules/yield: Likewise.
44171         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
44172         * tests/test-sys_select.c (connect_to_socket): Likewise.
44173
44174         fts.c: adjust a new interface to be more generally useful
44175         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
44176         (fts_build): Adjust caller.
44177
44178 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44179
44180         * modules/cond-tests: New file.
44181         * tests/test-cond.c: New file.
44182
44183 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44184             Bruno Haible  <bruno@clisp.org>
44185
44186         * modules/cond (Dependencies): Add errno, time.
44187         * lib/glthread/cond.h: Include <time.h>.
44188         (gl_cond_define, gl_cond_define_initialized): Use the same definition
44189         across platforms.
44190
44191 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44192             Bruno Haible  <bruno@clisp.org>
44193
44194         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
44195
44196 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44197             Bruno Haible  <bruno@clisp.org>
44198
44199         * modules/tls-tests (Depends-on): Add thread, yield.
44200         (configure.ac): Remove all checks.
44201         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
44202         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
44203         gl_thread_self): Remove definitions. Include glthread/thread.h and
44204         glthread/yield.h instead.
44205         (test_tls): Pass an additional NULL argument to gl_thread_join.
44206
44207 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44208             Bruno Haible  <bruno@clisp.org>
44209
44210         * modules/lock-tests (Depends-on): Add thread, yield.
44211         (configure.ac): Remove all checks.
44212         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
44213         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
44214         gl_thread_self): Remove definitions. Include glthread/thread.h and
44215         glthread/yield.h instead.
44216         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
44217         additional NULL argument to gl_thread_join.
44218
44219 2008-09-30  Bruno Haible  <bruno@clisp.org>
44220
44221         Fix the Win32 implementation of the 'thread' module.
44222         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
44223         pointer type.
44224         (gl_thread_self): Invoke gl_thread_self_func.
44225         (gl_thread_self_func): New declaration.
44226         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
44227         (do_init_self_key, init_self_key): New functions.
44228         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
44229         Remove some fields.
44230         (running_threads, running_lock): Remove variables.
44231         (get_current_thread_handle): New function.
44232         (gl_thread_self_func, wrapper_func, glthread_create_func,
44233         glthread_join_func, gl_thread_exit_func): Largely rewritten and
44234         simplified.
44235
44236 2008-09-30  Bruno Haible  <bruno@clisp.org>
44237
44238         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
44239         files.
44240
44241 2008-09-30  Jim Meyering  <meyering@redhat.com>
44242
44243         fts.m4: correct the test for statfs.f_type
44244         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
44245         when checking for statfs.f_type.
44246
44247 2008-09-15  Simon Josefsson  <simon@josefsson.org>
44248
44249         tests: avoid some compiler warnings
44250         * tests/test-memchr.c (main): Pass NULL indirectly.
44251         * tests/test-getdate.c (main): Remove unused variable 'ret'.
44252
44253 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
44254
44255         getdate.y: disallow countable dayshifts like "4 yesterday ago"
44256         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
44257         exactly specified dayshifts.
44258         (dayshift): New rule.
44259         (rel): Add dayshift.
44260         (relative_time_table) [tomorrow, yesterday, today, now]:
44261         Use tDAY_SHIFT in place of tDAY_UNIT.
44262         * tests/test-getdate.c: Add tests for now-disallowed countable
44263         dayshifts, e.g., "4 yesterday ago".
44264
44265 2008-09-29  Bruno Haible  <bruno@clisp.org>
44266
44267         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
44268         * tests/test-posix_spawn1.in.sh: Renamed from
44269         tests/test-posix_spawn.in.sh.
44270         * tests/test-posix_spawn2.c: New file.
44271         * tests/test-posix_spawn2.in.sh: New file.
44272         * modules/posix_spawnp-tests (Files): Update.
44273         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
44274
44275 2008-09-29  Bruno Haible  <bruno@clisp.org>
44276
44277         Propagate effects of putenv/setenv/unsetenv to child processes.
44278         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
44279         * lib/pipe.c (create_pipe): Likewise.
44280
44281 2008-09-29  Bruno Haible  <bruno@clisp.org>
44282
44283         Enable use of shell scripts as executables in mingw.
44284         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
44285         run the program as a shell script.
44286         * lib/pipe.c (create_pipe): Likewise.
44287         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
44288         resulting array.
44289
44290 2008-09-29  Eric Blake  <ebb9@byu.net>
44291
44292         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
44293
44294 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
44295
44296         * doc/posix-functions/accept.texi: Update mingw problems.
44297         * doc/posix-functions/bind.texi: Update mingw problems.
44298         * doc/posix-functions/close.texi: Update mingw problems.
44299         * doc/posix-functions/connect.texi: Update mingw problems.
44300         * doc/posix-functions/getpeername.texi: Update mingw problems.
44301         * doc/posix-functions/getsockname.texi: Update mingw problems.
44302         * doc/posix-functions/getsockopt.texi: Update mingw problems.
44303         * doc/posix-functions/ioctl.texi: Update mingw problems.
44304         * doc/posix-functions/listen.texi: Update mingw problems.
44305         * doc/posix-functions/recv.texi: Update mingw problems.
44306         * doc/posix-functions/recvfrom.texi: Update mingw problems.
44307         * doc/posix-functions/select.texi: Update mingw problems.
44308         * doc/posix-functions/send.texi: Update mingw problems.
44309         * doc/posix-functions/sendto.texi: Update mingw problems.
44310         * doc/posix-functions/setsockopt.texi: Update mingw problems.
44311         * doc/posix-functions/socket.texi: Update mingw problems.
44312
44313 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
44314             Bruno Haible  <bruno@clisp.org>
44315
44316         * lib/sys_select.in.h: Include sys/time.h.
44317         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
44318         * modules/sys_select: Depend on sys_time.
44319         * tests/test-sys_select.c: Test that sys/select.h defines struct
44320         timeval fully.
44321
44322 2008-09-29  Bruno Haible  <bruno@clisp.org>
44323
44324         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
44325         * lib/sys_select.in.h: Likewise.
44326
44327 2008-09-29  Bruno Haible  <bruno@clisp.org>
44328
44329         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
44330
44331 2008-09-29  Bruno Haible  <bruno@clisp.org>
44332
44333         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
44334         Set LIBSOCKET instead of augmenting LIBS.
44335         * modules/sockets (Link): New section.
44336         * modules/sockets-tests (test_sockets_LDADD): New variable.
44337         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
44338         * modules/poll-tests (test_poll_LDADD): New variable.
44339         * NEWS: Document the change.
44340
44341 2008-09-29  Bruno Haible  <bruno@clisp.org>
44342
44343         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
44344         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
44345         ARPA_INET_H directly.
44346         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44347
44348 2008-09-28  Bruno Haible  <bruno@clisp.org>
44349
44350         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
44351         from gl_HEADER_SYS_SOCKET.
44352         (gl_HEADER_SYS_SOCKET): Invoke it.
44353         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44354
44355 2008-09-28  Bruno Haible  <bruno@clisp.org>
44356
44357         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
44358         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
44359         Needed on OSF/1 4.0.
44360
44361 2008-09-28  Bruno Haible  <bruno@clisp.org>
44362
44363         Override open more carefully.
44364         * lib/open.c (orig_open): New function.
44365         (rpl_open): Use orig_open instead of open.
44366         * lib/fcntl.in.h: Add special invocation convention.
44367         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
44368         (gl_FUNC_OPEN): Invoke it.
44369
44370         Override freopen more carefully.
44371         * lib/freopen.c (orig_freopen): New function.
44372         (rpl_freopen): Use orig_freopen instead of freopen.
44373         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
44374         (gl_FUNC_FREOPEN): Invoke it.
44375
44376         Override fopen more carefully.
44377         * lib/fopen.c (orig_fopen): New function.
44378         (rpl_fopen): Use orig_fopen instead of fopen.
44379         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
44380         (gl_FUNC_FOPEN): Invoke it.
44381         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
44382
44383 2008-09-28  Bruno Haible  <bruno@clisp.org>
44384
44385         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
44386         SIGPIPE.
44387
44388 2008-09-28  Bruno Haible  <bruno@clisp.org>
44389
44390         * tests/test-sigaction.c (handler, main): Disable the check whether
44391         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
44392         glibc systems with LinuxThreads.
44393
44394 2008-09-28  Bruno Haible  <bruno@clisp.org>
44395
44396         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
44397
44398         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
44399         with AIX xlc.
44400         * lib/fcntl.in.h (open): Likewise.
44401         Reported by Rainer Tammer <tammer@tammer.net>.
44402
44403 2008-09-28  Bruno Haible  <bruno@clisp.org>
44404
44405         * modules/posix_spawnp-tests: New file.
44406         * tests/test-posix_spawn.c: New file.
44407         * tests/test-posix_spawn.in.sh: New file.
44408
44409         New module 'posix_spawnp'.
44410         * modules/posix_spawnp: New file.
44411         * lib/spawnp.c: New file, from GNU libc with modifications.
44412         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
44413
44414         New module 'posix_spawn'.
44415         * modules/posix_spawn: New file.
44416         * lib/spawn.c: New file, from GNU libc with modifications.
44417         * doc/posix-functions/posix_spawn.texi: Mention the new module.
44418
44419         New module 'posix_spawnattr_destroy'.
44420         * modules/posix_spawnattr_destroy: New file.
44421         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
44422         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
44423         module.
44424
44425         New module 'posix_spawnattr_setsigmask'.
44426         * modules/posix_spawnattr_setsigmask: New file.
44427         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
44428         modifications.
44429         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
44430         new module.
44431
44432         New module 'posix_spawnattr_getsigmask'.
44433         * modules/posix_spawnattr_getsigmask: New file.
44434         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
44435         modifications.
44436         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
44437         new module.
44438
44439         New module 'posix_spawnattr_setsigdefault'.
44440         * modules/posix_spawnattr_setsigdefault: New file.
44441         * lib/spawnattr_setdefault.c: New file, from GNU libc with
44442         modifications.
44443         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
44444         new module.
44445
44446         New module 'posix_spawnattr_getsigdefault'.
44447         * modules/posix_spawnattr_getsigdefault: New file.
44448         * lib/spawnattr_getdefault.c: New file, from GNU libc with
44449         modifications.
44450         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
44451         new module.
44452
44453         New module 'posix_spawnattr_setschedpolicy'.
44454         * modules/posix_spawnattr_setschedpolicy: New file.
44455         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
44456         modifications.
44457         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
44458         new module.
44459
44460         New module 'posix_spawnattr_getschedpolicy'.
44461         * modules/posix_spawnattr_getschedpolicy: New file.
44462         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
44463         modifications.
44464         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
44465         new module.
44466
44467         New module 'posix_spawnattr_setschedparam'.
44468         * modules/posix_spawnattr_setschedparam: New file.
44469         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
44470         modifications.
44471         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
44472         new module.
44473
44474         New module 'posix_spawnattr_getschedparam'.
44475         * modules/posix_spawnattr_getschedparam: New file.
44476         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
44477         modifications.
44478         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
44479         new module.
44480
44481         New module 'posix_spawnattr_setpgroup'.
44482         * modules/posix_spawnattr_setpgroup: New file.
44483         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
44484         modifications.
44485         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
44486         module.
44487
44488         New module 'posix_spawnattr_getpgroup'.
44489         * modules/posix_spawnattr_getpgroup: New file.
44490         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
44491         modifications.
44492         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
44493         module.
44494
44495         New module 'posix_spawnattr_setflags'.
44496         * modules/posix_spawnattr_setflags: New file.
44497         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
44498         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
44499         module.
44500
44501         New module 'posix_spawnattr_getflags'.
44502         * modules/posix_spawnattr_getflags: New file.
44503         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
44504         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
44505         module.
44506
44507         New module 'posix_spawnattr_init'.
44508         * modules/posix_spawnattr_init: New file.
44509         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
44510         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
44511         module.
44512
44513         New module 'posix_spawn_file_actions_destroy'.
44514         * modules/posix_spawn_file_actions_destroy: New file.
44515         * lib/spawn_faction_destroy.c: New file, from GNU libc with
44516         modifications.
44517         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
44518         the new module.
44519
44520         New module 'posix_spawn_file_actions_addopen'.
44521         * modules/posix_spawn_file_actions_addopen: New file.
44522         * lib/spawn_faction_addopen.c: New file, from GNU libc with
44523         modifications.
44524         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
44525         the new module.
44526
44527         New module 'posix_spawn_file_actions_adddup2'.
44528         * modules/posix_spawn_file_actions_adddup2: New file.
44529         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
44530         modifications.
44531         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
44532         the new module.
44533
44534         New module 'posix_spawn_file_actions_addclose'.
44535         * modules/posix_spawn_file_actions_addclose: New file.
44536         * lib/spawn_faction_addclose.c: New file, from GNU libc with
44537         modifications.
44538         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
44539         the new module.
44540
44541         New module 'posix_spawn_file_actions_init'.
44542         * modules/posix_spawn_file_actions_init: New file.
44543         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
44544         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
44545         new module.
44546
44547         New module 'posix_spawn-internal'.
44548         * modules/posix_spawn-internal: New file.
44549         * lib/spawn_int.h: New file, from GNU libc with modifications.
44550         * lib/spawni.c: New file, from GNU libc with modifications.
44551         * m4/posix_spawn.m4: New file.
44552
44553         New module 'spawn'.
44554         * modules/spawn: New file.
44555         * lib/spawn.in.h: New file, from GNU libc with modifications.
44556         * m4/spawn_h.m4: New file.
44557         * doc/posix-headers/spawn.texi: Mention the new module.
44558
44559 2008-09-28  Bruno Haible  <bruno@clisp.org>
44560
44561         * modules/sched-tests: New file.
44562         * tests/test-sched.c: New file.
44563
44564         New module 'sched'.
44565         * modules/sched: New file.
44566         * lib/sched.in.h: New file.
44567         * m4/sched_h.m4: New file.
44568         * doc/posix-headers/sched.texi: Mention the new module.
44569
44570 2008-09-27  Eric Blake  <ebb9@byu.net>
44571
44572         Fix previous patch, and tweak references to $0.
44573         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
44574         (func_version, func_gnulib_dir): Don't call this program
44575         gnulib-tool.
44576         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
44577         with using $0 in function.
44578         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
44579         (func_fatal_error): Reuse the name the user invoked us with.
44580
44581 2008-09-27  Bruno Haible  <bruno@clisp.org>
44582
44583         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
44584         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
44585         (gl_ICONV_H): Not here.
44586         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
44587         instead of assigning ICONV_H directly.
44588
44589         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
44590         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
44591         WCHAR_H directly.
44592
44593 2008-09-27  Bruno Haible  <bruno@clisp.org>
44594
44595         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
44596         * modules/arpa_inet (Depends-on): Add link-warning.
44597         (Makefile.am): Insert the definition of GL_LINK-WARNING.
44598         * modules/unistd (Makefile.am): Likewise.
44599
44600 2008-09-26  Bruno Haible  <bruno@clisp.org>
44601
44602         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
44603         variables.
44604         (func_version): Essentially copied from gnulib-tool.
44605         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
44606         func_readlink): Copied from gnulib-tool.
44607
44608 2008-09-26  Bruno Haible  <bruno@clisp.org>
44609
44610         * gnulib-tool (func_version): Change directory to $gnulib_dir before
44611         invoking git-version-gen.
44612
44613 2008-09-26  Bruno Haible  <bruno@clisp.org>
44614
44615         * posix-modules: Update to directory names changed on 2008-01-19.
44616         Remove commas in output before splitting into words. No more need to
44617         avoid 'ftruncate' since 2007-02-19.
44618
44619 2008-09-26  Bruno Haible  <bruno@clisp.org>
44620
44621         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
44622
44623 2008-09-26  Bruno Haible  <bruno@clisp.org>
44624
44625         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
44626         * modules/fwriteerror (Depends-on): Add errno.
44627
44628 2008-09-26  Bruno Haible  <bruno@clisp.org>
44629
44630         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
44631         * tests/test-vc-list-files-cvs.sh: Likewise.
44632
44633 2008-09-26  Bruno Haible  <bruno@clisp.org>
44634
44635         * doc/posix-headers/sys_resource.texi: Reorder items.
44636
44637 2008-09-26  Jim Meyering  <meyering@redhat.com>
44638
44639         fts: tweak inode comparison function
44640         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
44641         inode numbers, as documented.
44642
44643         fts: sort dirent entries on inode number before traversing
44644         This avoids a quadratic, seek-related performance penalty when
44645         operating on a directory containing many entries (measurable at 10k;
44646         3.5 hours at 2 million entries with a cold cache) on certain types
44647         of file systems, including ext3 and ext4, but not tmpfs.
44648         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
44649         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
44650         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
44651         (fs_handles_readdir_ordered_dirents_efficiently): New function.
44652         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
44653         (fts_build): Set the stat.st_ino member from D_INO.
44654         If it is likely to be useful, sort dirent entries on inode number.
44655
44656         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
44657         and the struct statfs.f_type member.
44658         * modules/fts (Depends-on): Add d-ino.
44659
44660 2008-09-26  Bruno Haible  <bruno@clisp.org>
44661
44662         * modules/sigpipe-die (Depends-on): Add sigpipe.
44663
44664         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
44665         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
44666         and GNULIB_STDIO_H_SIGPIPE are set.
44667         * lib/stdio-write.c: New file.
44668         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
44669         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
44670         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
44671         REPLACE_STDIO_WRITE_FUNCS.
44672         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
44673         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
44674         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
44675         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
44676         * modules/stdio (Files): Add lib/stdio-write.c.
44677         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
44678         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
44679         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
44680         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
44681         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
44682         REPLACE_FPRINTF_POSIX.
44683         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
44684         REPLACE_PRINTF_POSIX.
44685         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
44686         REPLACE_VFPRINTF_POSIX.
44687         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
44688         REPLACE_VPRINTF_POSIX.
44689         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
44690         SIGPIPE issue.
44691         * doc/posix-functions/fputc.texi: Likewise.
44692         * doc/posix-functions/fputs.texi: Likewise.
44693         * doc/posix-functions/fwrite.texi: Likewise.
44694         * doc/posix-functions/printf.texi: Likewise.
44695         * doc/posix-functions/putc.texi: Likewise.
44696         * doc/posix-functions/putchar.texi: Likewise.
44697         * doc/posix-functions/puts.texi: Likewise.
44698         * doc/posix-functions/vfprintf.texi: Likewise.
44699         * doc/posix-functions/vprintf.texi: Likewise.
44700
44701         * modules/safe-write (Depends-on): Add write.
44702
44703         * modules/sigpipe-tests: New file.
44704         * tests/test-sigpipe.c: New file.
44705         * tests/test-sigpipe.sh: New file.
44706
44707         * modules/write: New file.
44708         * lib/unistd.in.h: Include <sys/types.h>.
44709         (write): New declaration.
44710         * lib/write.c: New file.
44711         * m4/write.m4: New file.
44712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44713         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
44714         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
44715         GNULIB_WRITE, REPLACE_WRITE.
44716         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
44717         and the SIGPIPE issue.
44718
44719         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
44720         (raise): New declaration.
44721         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
44722         (ext_signal): New function.
44723         (rpl_raise): New function.
44724         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
44725         GNULIB_SIGNAL_H_SIGPIPE.
44726         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
44727         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
44728
44729         * modules/sigpipe: New file.
44730         * m4/sigpipe.m4: New file.
44731
44732 2008-09-25  Derek Price  <derek@ximbiot.com>
44733             Bruno Haible  <bruno@clisp.org>
44734
44735         * gnulib-tool (func_import): Report all license incompatibilities, not
44736         just the first one.
44737
44738 2008-09-25  Bruno Haible  <bruno@clisp.org>
44739
44740         * gnulib-tool (func_import): When computing the edits, consider not
44741         only the Makefile.ams that exist but also those that will be generated.
44742
44743 2008-09-25  Simon Josefsson  <simon@josefsson.org>
44744
44745         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
44746         fixes gnulib-tool --test warning about duplicate dependency.
44747
44748 2008-09-25  Bruno Haible  <bruno@clisp.org>
44749
44750         * gnulib-tool: Don't ask the user to perform edits in the generated
44751         Makefile.ams.
44752         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
44753         apply to the Makefile.am being generated.
44754         (func_emit_tests_Makefile_am): Execute edits that apply to the
44755         Makefile.am being generated.
44756         (func_import): Setup list of Makefile.am edits before emitting the
44757         Makefile.ams, not at the end.
44758         (func_create_testdir): Update.
44759         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44760
44761 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44762
44763         * gnulib-tool (func_import): Store the --tests-base option in the
44764         comment in gnulib-cache.m4.
44765
44766 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
44767
44768         * NEWS: Document increased portability that sys_select now provides.
44769
44770         * lib/sys_select.in.h: Install select wrapper.
44771         * lib/sys_socket.in.h: Use more descriptive name when there is no
44772         select wrapper.
44773         * lib/winsock-select.c: New.
44774         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
44775         Require gl_HEADER_SYS_SOCKET.
44776         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
44777         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
44778         * tests/test-sys_select.c: Add functional tests.
44779
44780 2008-09-24  Eric Blake  <ebb9@byu.net>
44781
44782         open, fopen: close fd leak in last patch
44783         * lib/open.c (rpl_open): Close fd before returning error.
44784         * lib/fopen.c (rpl_fopen): Close fd before returning error.
44785         * doc/posix-functions/open.texi (open): Document that Irix also
44786         has the bug.
44787         * doc/posix-functions/fopen.texi (fopen): Likewise.
44788         Reported by Paolo Bonzini.
44789
44790 2008-09-24  Bruno Haible  <bruno@clisp.org>
44791
44792         Ensure that a filename ending in a slash cannot be used to access a
44793         non-directory.
44794         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
44795         to check whether it's really a directory.
44796         * lib/fopen.c: Include fcntl.h, unistd.h.
44797         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
44798         and fdopen().
44799         * modules/fopen (Depends-on): Add unistd.
44800         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
44801         * tests/test-fopen.c (main): Likewise.
44802         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
44803         * doc/posix-functions/fopen.texi: Likewise.
44804         Reported by Eric Blake.
44805
44806 2008-09-23  Eric Blake  <ebb9@byu.net>
44807
44808         c-stack: avoid compiler optimizations when provoking overflow
44809         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
44810         recursion harder to optimize, to ensure a stack overflow occurs.
44811         * tests/test-c-stack.c (recurse): Likewise.
44812         Borrowed from libsigsegv.
44813
44814         c-stack: work around Irix sigaltstack bug
44815         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
44816         whether sigaltstack uses wrong end of stack_t (copied in part from
44817         libsigsegv).
44818         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
44819         Irix bug, without requiring an over-allocation.
44820         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
44821         bug.
44822
44823         fopen: document mingw bug on directories
44824         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
44825         not allowing a stream visiting a directory, even though reading
44826         from such a stream is not portable.
44827
44828 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44829
44830         * lib/poll.c: Rewrite.
44831         * modules/poll: Depend on alloca.
44832
44833 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44834
44835         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
44836         instead define prototypes for a full set of wrappers.  Ensure
44837         that Cygwin does not use the compatibility code, which is only
44838         for MinGW.
44839         * lib/winsock.c: New.
44840         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
44841         * modules/sys_socket: Add lib/winsock.c.
44842
44843         * modules/poll-tests: Add errno and perror.
44844         * tests/test-poll.c: Use ioctl, not ioctlsocket.
44845
44846 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44847
44848         * tests/test-poll.c: Downgrade minimum needed Winsock version.
44849
44850 2008-09-23  Bruno Haible  <bruno@clisp.org>
44851
44852         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
44853         * doc/glibc-functions/*: Likewise.
44854
44855 2008-09-23  Simon Josefsson  <simon@josefsson.org>
44856
44857         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
44858         success.
44859
44860 2008-09-22  Eric Blake  <ebb9@byu.net>
44861             Bruno Haible  <bruno@clisp.org>
44862
44863         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
44864         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
44865         supply %A but mishandle pseudo-NaN.
44866         Reported by Simon Josefsson.
44867
44868 2008-09-21  Bruno Haible  <bruno@clisp.org>
44869
44870         * tests/test-lock.c (main): Tweak skip message.
44871         * tests/test-tls.c (main): Likewise.
44872
44873 2008-09-21  Bruno Haible  <bruno@clisp.org>
44874
44875         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
44876         whether 'struct sigaction' has sa_sigaction here...
44877         (gl_PREREQ_SIG_HANDLER_H): ... not here.
44878         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
44879
44880 2008-09-21  Bruno Haible  <bruno@clisp.org>
44881
44882         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
44883         section.
44884         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
44885         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
44886         the new section.
44887         (Support for obsolete systems lacking POSIX:2001): New section.
44888         (String handling <string.h>): Move strdup to the new section.
44889         Suggested by Simon Josefsson and Paolo Bonzini.
44890
44891 2008-09-21  Bruno Haible  <bruno@clisp.org>
44892
44893         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
44894         exponents in %e and %g results on 'long double'. Needed for mingw's
44895         improved *printf functions.
44896         * tests/test-vasprintf-posix.c (test_function): Likewise.
44897         * tests/test-snprintf-posix.h (test_function): Likewise.
44898         * tests/test-sprintf-posix.h (test_function): Likewise.
44899         Reported by Eric Blake.
44900
44901 2008-09-21  Bruno Haible  <bruno@clisp.org>
44902
44903         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
44904         * tests/test-sprintf-posix.h (test_function): Likewise.
44905
44906 2008-09-21  Bruno Haible  <bruno@clisp.org>
44907
44908         * modules/getpass (Depends-on): Add strdup-posix.
44909
44910         New module 'strdup-posix'.
44911         * modules/strdup-posix: New file.
44912         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
44913         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
44914         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44915         REPLACE_STRDUP.
44916         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
44917         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
44918         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44919         strdup-posix.
44920
44921         * modules/strdup (Depends-on): Remove malloc-posix.
44922
44923 2008-09-20  Bruno Haible  <bruno@clisp.org>
44924
44925         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
44926         Wildenhues.
44927
44928 2008-09-20  Bruno Haible  <bruno@clisp.org>
44929
44930         Ensure that wint_t gets defined on IRIX 5.3.
44931         * lib/wchar.in.h (wint_t): Define if not defined by the system.
44932         * lib/wctype.in.h (wint_t): Likewise.
44933         (__wctype_wint_t): Remove type.
44934         (isw*): Use wint_t instead of __wctype_wint_t.
44935         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
44936         * modules/wchar (Files): Add m4/wint_t.m4.
44937         (Makefile.am): Substitute HAVE_WINT_T.
44938         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
44939         * tests/test-wctype.c: Check that wint_t is defined.
44940         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
44941         * doc/posix-headers/wctype.texi: Likewise.
44942         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44943
44944 2008-09-18  Bruno Haible  <bruno@clisp.org>
44945
44946         * gnulib-tool (func_exit): Update comment.
44947
44948 2008-09-18  Simon Josefsson  <simon@josefsson.org>
44949
44950         * modules/getaddrinfo (Depends-on): Remove strdup, this module
44951         assumes strdup exists and does not depend on strdup to return
44952         ENOMEM on out of memory conditions.
44953
44954 2008-09-18  Bruno Haible  <bruno@clisp.org>
44955
44956         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
44957         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
44958         digits for the exponent.
44959
44960 2008-09-18  Jim Meyering  <meyering@redhat.com>
44961             Bruno Haible  <bruno@clisp.org>
44962
44963         * lib/vasnprintf.c (decimal_point_char): Define also if
44964         NEED_PRINTF_INFINITE_LONG_DOUBLE.
44965
44966 2008-09-16  Bruno Haible  <bruno@clisp.org>
44967         and Eric Blake  <ebb9@byu.net>
44968
44969         vasnprintf: support Irix 5.3
44970         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
44971         that mishandle long double infinity.
44972         Reported by Tom G. Christensen.
44973
44974 2008-09-16  Bruno Haible  <bruno@clisp.org>
44975
44976         * doc/glibc-functions/scandir.texi: Mention the function is missing on
44977         Solaris 9.
44978         * doc/glibc-functions/alphasort.texi: Likewise.
44979         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
44980
44981 2008-09-16  Jim Meyering  <meyering@redhat.com>
44982
44983         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
44984         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
44985         a umask modification leak out of a subshell.  Otherwise, the
44986         opensolaris /bin/sh would be accepted and thus cause unwarranted
44987         failures in the coreutils test suite.
44988
44989 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
44990
44991         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
44992         to succeed.
44993
44994 2008-09-16  Jim Meyering  <meyering@redhat.com>
44995
44996         avoid spurious test failure when library is built without ACL support
44997         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
44998         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
44999         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
45000         * tests/test-copy-acl.sh: Likewise.
45001
45002 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45003
45004         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
45005         based on character occurrence counts.
45006
45007 2008-09-15  Eric Blake  <ebb9@byu.net>
45008
45009         tests: avoid some compiler warnings
45010         * tests/test-memchr.c (main): Pass NULL indirectly.
45011         * tests/test-closein.c (main): Avoid unused variable.
45012
45013 2008-09-15  Bruno Haible  <bruno@clisp.org>
45014
45015         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
45016         are missing on OpenBSD 4.0 individually.
45017         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45018
45019 2008-09-15  Bruno Haible  <bruno@clisp.org>
45020
45021         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
45022         * doc/posix-functions/strerror.texi: Mention also Cygwin.
45023         * doc/posix-functions/perror.texi: Likewise.
45024         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
45025         is missing.
45026         Reported by Eric Blake.
45027
45028         * lib/errno.in.h: Use replacement values >= 2000.
45029         Reported by Eric Blake.
45030
45031 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45032
45033         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
45034         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
45035         limit.
45036         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
45037         compareseq was aborted.
45038
45039 2008-09-14  Bruno Haible  <bruno@clisp.org>
45040
45041         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
45042         yvec_edit_count.
45043         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
45044         (fstrcmp_bounded): Simplify result computation accordingly.
45045
45046 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45047
45048         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
45049         (fstrcmp): Define in terms of fstrcmp_bounded.
45050         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
45051         lower_bound argument.
45052         Return quickly if the result is certainly < lower_bound.
45053         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
45054
45055 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45056
45057         * lib/diffseq.h (EARLY_ABORT): New macro.
45058         (compareseq): Change return type to bool. Return true when EARLY_ABORT
45059         evaluates to true.
45060
45061 2008-09-14  Bruno Haible  <bruno@clisp.org>
45062
45063         * modules/perror-tests: New file.
45064         * tests/test-perror.sh: New file.
45065         * tests/test-perror.c: New file.
45066
45067         New module 'perror'.
45068         * lib/stdio.in.h (perror): New declaration.
45069         * lib/perror.c: New file.
45070         * m4/perror.m4: New file.
45071         * modules/perror: New file.
45072         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
45073         * doc/posix-functions/perror.texi: Mention the perror module.
45074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
45075         REPLACE_PERROR.
45076         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
45077         REPLACE_PERROR.
45078
45079 2008-09-14  Bruno Haible  <bruno@clisp.org>
45080
45081         * modules/stdio (Makefile.am): Reorder to match the order in
45082         lib/stdio.in.h.
45083         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45084
45085 2008-09-13  Bruno Haible  <bruno@clisp.org>
45086
45087         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
45088
45089 2008-09-13  Bruno Haible  <bruno@clisp.org>
45090
45091         Extend strerror to cover the added errno values.
45092         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
45093         (rpl_strerror): Provide error messages for the added errno values and
45094         for the WSA* values.
45095         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
45096         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
45097         strerror.
45098         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
45099         * modules/strerror (Depends-on): Add errno.
45100         * doc/posix-functions/strerror.texi: Document the change.
45101         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
45102         and EOVERFLOW.
45103
45104 2008-09-13  Bruno Haible  <bruno@clisp.org>
45105
45106         * modules/EOVERFLOW: Remove file.
45107         * m4/eoverflow.m4: Remove file.
45108         * modules/EOVERFLOW-tests: Remove file.
45109         * tests/test-EOVERFLOW.c: Remove file.
45110         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
45111         * modules/ftell (Depends-on): Likewise.
45112         * modules/getdelim (Depends-on): Likewise.
45113         * modules/getugroups (Depends-on): Likewise.
45114         * modules/poll (Depends-on): Likewise.
45115         * modules/snprintf (Depends-on): Likewise.
45116         * modules/sprintf-posix (Depends-on): Likewise.
45117         * modules/vasnprintf (Depends-on): Likewise.
45118         * modules/vasprintf (Depends-on): Likewise.
45119         * modules/vfprintf-posix (Depends-on): Likewise.
45120         * modules/vsnprintf (Depends-on): Likewise.
45121         * modules/vsprintf-posix (Depends-on): Likewise.
45122         * modules/xvasprintf (Depends-on): Likewise.
45123         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45124         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
45125         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
45126         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
45127         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45128         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
45129         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
45130         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
45131         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45132         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
45133         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
45134         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
45135         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45136         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
45137         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
45138         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
45139         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45140         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
45141         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
45142         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
45143         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45144         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
45145         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
45146         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
45147         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
45148         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45149         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
45150         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
45151         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
45152         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
45153         * MODULES.html.sh: Remove EOVERFLOW.
45154         * NEWS: Mention the change.
45155
45156 2008-09-13  Bruno Haible  <bruno@clisp.org>
45157
45158         * modules/errno-tests: New file.
45159         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
45160
45161         * lib/errno.in.h: New file.
45162         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
45163         * modules/errno: New file.
45164         * doc/posix-headers/errno.texi: Update documentation.
45165         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
45166
45167 2008-09-13  Bruno Haible  <bruno@clisp.org>
45168
45169         * tests/test-poll.c: Use #if for native Windows, rather than testing
45170         __MSVCRT__.
45171
45172 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45173             Bruno Haible  <bruno@clisp.org>
45174
45175         * lib/glob.c: Don't include <pwd.h> on native Windows.
45176         (WINDOWS32): New macro.
45177         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
45178
45179 2008-09-13  Bruno Haible  <bruno@clisp.org>
45180
45181         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
45182         (ETIMEDOUT): Remove macro.
45183         (glthread_cond_timedwait_multithreaded): New declaration.
45184         (glthread_cond_timedwait): Use it.
45185         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
45186         (glthread_cond_timedwait_multithreaded): New function.
45187
45188 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45189
45190         * modules/poll-tests: Do not check for io.h.
45191         * tests/test-poll.c: Check for __MSVCRT__ instead.
45192
45193 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45194
45195         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
45196         * modules/poll-tests: Add inet_pton, stdbool, sockets.
45197         * tests/test-poll.c: Use them.  Use _pipe on Windows.
45198
45199 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45200
45201         * modules/poll-tests: New.
45202         * tests/test-poll.c: New.
45203
45204 2008-09-12  Eric Blake  <ebb9@byu.net>
45205
45206         frexp: test for NetBSD failure on -0.0
45207         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
45208         not all, bugs from NetBSD 3.0 have been fixed.
45209         * doc/posix-functions/frexp.texi (frexp): Document bug.
45210         Reported by Thomas Klausner.
45211
45212         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
45213         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
45214         literal -0.0.
45215         Reported by Jonathan C. Patschke <jp@centtech.com>.
45216
45217 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45218
45219         * lib/glthread/cond.h: Use dummy implementation also if
45220         USE_WIN32_THREADS.
45221
45222 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45223
45224         * modules/fnmatch-posix (License): Change to LGPLv2+.
45225         * modules/fnmatch-gnu (License): Likewise.
45226
45227 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45228
45229         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
45230
45231 2008-09-11  Jim Meyering  <meyering@redhat.com>
45232
45233         * users.txt: Add gtk-vnc.
45234
45235 2008-09-08  Simon Josefsson  <simon@josefsson.org>
45236
45237         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
45238         rotate amounts.
45239
45240         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
45241         required for 16-bit and 8-bit rotates.
45242         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
45243         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
45244         UINT8_MAX instead of hard-coded constants.
45245         Suggested by Paul Eggert.
45246
45247 2008-09-07  Bruno Haible  <bruno@clisp.org>
45248
45249         * tests/test-striconveh.c (main): Check behaviour when converting from
45250         UTF-7.
45251
45252         Make striconveh work better with stateful encodings.
45253         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
45254         that iconv does not increment the inptr when returning -1/EINVAL.
45255
45256 2008-09-07  Bruno Haible  <bruno@clisp.org>
45257
45258         * build-aux/config.rpath: Update according to libtool-2.2.6.
45259         * build-aux/config.libpath: Likewise.
45260
45261 2008-09-06  Bruno Haible  <bruno@clisp.org>
45262
45263         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
45264         * lib/freadptr.c (freadptr): Likewise.
45265         * lib/freadseek.c (freadptrinc): Likewise.
45266         Reported by Simon Josefsson.
45267
45268 2008-09-06  Bruno Haible  <bruno@clisp.org>
45269
45270         * modules/freadptr (License): Change to LGPLv2+.
45271         * modules/freadseek (License): Likewise.
45272         Suggested by Eric Blake.
45273
45274         * modules/memchr2 (License): Change to LGPLv2+.
45275         Approved by Eric Blake.
45276
45277 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45278             Bruno Haible  <bruno@clisp.org>
45279
45280         Make gnulib-tool work with native 'sed' on AIX.
45281         * gnulib-tool (sed_noop): New variable.
45282         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
45283         func_add_or_update, func_create_testdir): Use it to initialize sed
45284         script variables.
45285         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45286
45287 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
45288             Bruno Haible  <bruno@clisp.org>
45289
45290         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
45291         also works after #include directives.
45292
45293 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
45294
45295         getdate.y: reject an out-of-range timezone value
45296         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
45297         the range [-24...+24].  When specified with only one or two digits,
45298         * tests/test-getdate.c: Tests for the fix.
45299         * doc/getdate.texi: Document this change.
45300
45301 2008-09-03  Bruno Haible  <bruno@clisp.org>
45302
45303         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
45304
45305 2008-09-02  Simon Josefsson  <simon@josefsson.org>
45306
45307         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
45308         <bruce.korb@gmail.com> with ideas from Ben Pfaff
45309         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
45310         Blake <ebb9@byu.net>.
45311
45312         * tests/test-bitrotate.c: Add more test vectors.
45313
45314 2008-09-02  Eric Blake  <ebb9@byu.net>
45315
45316         vasnprintf-posix: handle large precision via %.*d
45317         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
45318         when handling it ourselves.
45319         * tests/test-vasnprintf-posix.c (test_function): Add test.
45320         * tests/test-snprintf-posix.h (test_function): Likewise.
45321         * tests/test-sprintf-posix.h (test_function): Likewise.
45322         * tests/test-vasprintf-posix.c (test_function): Likewise.
45323         Reported by Alain Guibert.
45324
45325 2008-09-01  Eric Blake  <ebb9@byu.net>
45326
45327         c-stack: make configure-time check more robust
45328         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
45329         successful sigaction call.
45330         Reported by Tom G. Christensen.
45331
45332 2008-09-01  Bruno Haible  <bruno@clisp.org>
45333
45334         New module 'findprog-lgpl'.
45335         * modules/findprog-lgpl: New file.
45336         * lib/findprog-lgpl.c: New file.
45337         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
45338         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
45339         to decide whether to use strdup or xstrdup, concatenated_filename or
45340         xconcatenated_filename.
45341
45342 2008-09-01  Bruno Haible  <bruno@clisp.org>
45343
45344         Split module 'concat-filename' into 'concat-filename' (LGPL) and
45345         'xconcat-filename' (GPL).
45346         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
45347         (License): Change to LGPLv2+.
45348         * modules/xconcat-filename: New file.
45349         * lib/concat-filename.h (concatenated_filename): Change specification.
45350         (xconcatenated_filename): New declaration.
45351         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
45352         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
45353         memory situations.
45354         * lib/xconcat-filename.c: New file.
45355         * NEWS: Mention the change.
45356         * lib/findprog.c: Include concat-filename.h, not filename.h.
45357         (find_in_path): Use xconcatenated_filename instead of
45358         concatenated_filename.
45359         * lib/javacomp.c: Include concat-filename.h, not filename.h.
45360         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
45361         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
45362         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
45363         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
45364         instead of concatenated_filename.
45365         * lib/javaexec.c: Include concat-filename.h, not filename.h.
45366         (execute_java_class): Use xconcatenated_filename instead of
45367         concatenated_filename.
45368         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
45369         * modules/javacomp (Depends-on): Likewise.
45370         * modules/javaexec (Depends-on): Likewise.
45371
45372 2008-09-01  Bruno Haible  <bruno@clisp.org>
45373
45374         Split module 'filename' into 'filename' and 'concat-filename'.
45375         * modules/filename: Keep only lib/filename.h.
45376         (License): Change to LGPLv2+.
45377         * modules/concat-filename: New file, extracted from modules/filename.
45378         * lib/filename.h (concatenated_filename): Remove declaration.
45379         * lib/concat-filename.h: New file, extracted from lib/filename.h.
45380         * lib/concat-filename.c: Include concat-filename.h.
45381         * NEWS: Mention the change.
45382
45383 2008-09-01  Simon Josefsson  <simon@josefsson.org>
45384
45385         * lib/bitrotate.h (rotl8, rotr8): Add.
45386
45387         * modules/bitrotate (configure.ac): Need
45388         AC_REQUIRE([AC_C_INLINE]).
45389         (Description): Mention stdint.h.  Reported by Bruno Haible
45390         <bruno@clisp.org>.
45391
45392         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
45393         Paolo Bonzini <bonzini@gnu.org>.
45394
45395 2008-08-31  Bruno Haible  <bruno@clisp.org>
45396
45397         Assume Solaris specific bi-arch conventions on Solaris systems.
45398         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
45399         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
45400         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
45401         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
45402         like acl_libdirstem.
45403         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
45404         acl_libdirstem.
45405         * NEWS: Mention the change.
45406         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
45407
45408 2008-08-31  Jim Meyering  <meyering@redhat.com>
45409
45410         * lib/strftime.h: Add comments describing the two added arguments.
45411
45412         remove duplicate #include directives
45413         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
45414         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
45415
45416 2008-08-31  Bruno Haible  <bruno@clisp.org>
45417
45418         New module 'sigpipe-die'.
45419         * modules/sigpipe-die: New file.
45420         * lib/sigpipe-die.h: New file.
45421         * lib/sigpipe-die.c: New file.
45422         * MODULES.html.sh (Signal handling): Add sigpipe-die.
45423
45424 2008-08-31  Bruno Haible  <bruno@clisp.org>
45425
45426         Don't override previously installed signal handlers.
45427         * lib/fatal-signal.c (saved_sigactions): New variable.
45428         (uninstall_handlers): Reset the signal to the saved handler, not
45429         to SIG_DFL (except when ignored).
45430         (install_handlers): Save the previous handlers.
45431
45432 2008-08-30  Bruno Haible  <bruno@clisp.org>
45433
45434         * gnulib-tool (func_reset_sigpipe): New function.
45435         (func_get_automake_snippet, func_modules_transitive_closure,
45436         func_import): Invoke it before a join command that reads from stdin,
45437         to avoid "echo: write error: Broken pipe" error messages on stderr.
45438         Reported by Sam Steingold <sds@gnu.org>.
45439
45440 2008-08-30  Bruno Haible  <bruno@clisp.org>
45441
45442         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
45443         Code copied from m4/open.m4.
45444         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
45445         access and the filename ends in a slash. Code copied from lib/open.c.
45446         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
45447         * tests/test-fopen.c (main): Check against bug with trailing slash.
45448
45449 2008-08-29  Bruno Haible  <bruno@clisp.org>
45450
45451         Avoid some "gcc -pedantic" warnings.
45452         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
45453         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
45454         * lib/dirent.in.h: Likewise.
45455         * lib/fcntl.in.h: Likewise.
45456         * lib/float.in.h: Likewise.
45457         * lib/iconv.in.h: Likewise.
45458         * lib/inttypes.in.h: Likewise.
45459         * lib/locale.in.h: Likewise.
45460         * lib/math.in.h: Likewise.
45461         * lib/netinet_in.in.h: Likewise.
45462         * lib/search.in.h: Likewise.
45463         * lib/signal.in.h: Likewise.
45464         * lib/stdarg.in.h: Likewise.
45465         * lib/stdint.in.h: Likewise.
45466         * lib/stdio.in.h: Likewise.
45467         * lib/stdlib.in.h: Likewise.
45468         * lib/string.in.h: Likewise.
45469         * lib/strings.in.h: Likewise.
45470         * lib/sys_select.in.h: Likewise.
45471         * lib/sys_socket.in.h: Likewise.
45472         * lib/sys_stat.in.h: Likewise.
45473         * lib/sys_time.in.h: Likewise.
45474         * lib/sysexits.in.h: Likewise.
45475         * lib/time.in.h: Likewise.
45476         * lib/unistd.in.h: Likewise.
45477         * lib/wchar.in.h: Likewise.
45478         * lib/wctype.in.h: Likewise.
45479         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
45480         * modules/fchdir (Makefile.am): Likewise.
45481         * modules/fcntl (Makefile.am): Likewise.
45482         * modules/float (Makefile.am): Likewise.
45483         * modules/iconv_open (Makefile.am): Likewise.
45484         * modules/inttypes (Makefile.am): Likewise.
45485         * modules/locale (Makefile.am): Likewise.
45486         * modules/math (Makefile.am): Likewise.
45487         * modules/netinet_in (Makefile.am): Likewise.
45488         * modules/search (Makefile.am): Likewise.
45489         * modules/signal (Makefile.am): Likewise.
45490         * modules/stdarg (Makefile.am): Likewise.
45491         * modules/stdint (Makefile.am): Likewise.
45492         * modules/stdio (Makefile.am): Likewise.
45493         * modules/stdlib (Makefile.am): Likewise.
45494         * modules/string (Makefile.am): Likewise.
45495         * modules/strings (Makefile.am): Likewise.
45496         * modules/sys_select (Makefile.am): Likewise.
45497         * modules/sys_socket (Makefile.am): Likewise.
45498         * modules/sys_stat (Makefile.am): Likewise.
45499         * modules/sys_time (Makefile.am): Likewise.
45500         * modules/sysexits (Makefile.am): Likewise.
45501         * modules/time (Makefile.am): Likewise.
45502         * modules/unistd (Makefile.am): Likewise.
45503         * modules/wchar (Makefile.am): Likewise.
45504         * modules/wctype (Makefile.am): Likewise.
45505         Reported by Reuben Thomas <rrt@sc3d.org>.
45506
45507 2008-08-29  Bruno Haible  <bruno@clisp.org>
45508
45509         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
45510         any more.
45511
45512 2008-08-29  Simon Josefsson  <simon@josefsson.org>
45513
45514         * MODULES.html.sh (Misc): Add bitrotate.
45515
45516         * modules/bitrotate: New file.
45517
45518         * lib/bitrotate.h: New file.
45519
45520         * modules/bitrotate-tests: New file.
45521
45522         * tests/test-bitrotate.c: New file.
45523
45524         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
45525         on the bitrotate module.
45526
45527         * lib/arctwo.c: Use new bitrotate module.
45528
45529 2008-08-29  Jim Meyering  <meyering@redhat.com>
45530
45531         bootstrap: merge changes from coreutils
45532         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
45533         of copied files.  Remove a kludge, now that this is fixed.
45534         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
45535         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
45536         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
45537
45538 2008-08-29  Bruno Haible  <bruno@clisp.org>
45539
45540         * MODULES.html.sh: Remove --cvs-urls option.
45541
45542 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
45543
45544         maint.mk: adjust to file name change
45545         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
45546
45547 2008-08-28  Jim Meyering  <meyering@redhat.com>
45548
45549         * modules/getndelim2 (License): Relicense to LGPLv2+.
45550         Approved by Richard Stallman for the version of 1995, and by
45551         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
45552
45553 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
45554
45555         * lib/getdelim.c (flockfile, funlockfile): Make all of them
45556         dummy if one is not available.  Do not touch them if
45557         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
45558         (getc_maybe_unlocked): New.
45559         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
45560
45561 2008-08-26  Eric Blake  <ebb9@byu.net>
45562
45563         doc/INSTALL: resync from autoconf
45564         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
45565         (INSTALL_PRELUDE): Delete; this is done more efficiently by
45566         moving...
45567         * install.texi [!autoconf]: ...here.  Resync from autoconf.
45568         * INSTALL: Regenerate.
45569         * INSTALL.ISO: New file.
45570         * INSTALL.UTF-8: Likewise.
45571
45572 2008-08-26  Jim Meyering  <meyering@redhat.com>
45573
45574         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
45575         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
45576         these definitions conditional, so that they may be overridden, too.
45577
45578 2008-08-26  Bruno Haible  <bruno@clisp.org>
45579
45580         Generate INSTALL file variants with prettier quotes.
45581         * doc/Makefile (INSTALL_PRELUDE): New macro.
45582         (INSTALL): Use it.
45583         (INSTALL.ISO, INSTALL.UTF-8): New rules.
45584
45585 2008-08-26  Bruno Haible  <bruno@clisp.org>
45586
45587         Run makeinfo in an English locale.
45588         * doc/Makefile (MAKEINFO): New variable.
45589
45590 2008-08-26  Bruno Haible  <bruno@clisp.org>
45591
45592         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
45593         Suggested by Eric Blake.
45594
45595 2008-08-25  Bruno Haible  <bruno@clisp.org>
45596
45597         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
45598
45599 2008-08-25  Eric Blake  <ebb9@byu.net>
45600
45601         c-stack: test that stack overflow can be caught
45602         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
45603         that platform allows handling stack overflow; at least OS/2 EMX
45604         has sigaltstack, but crashes before transferring control to
45605         handler on stack overflow.
45606         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
45607         check for HAVE_STACK_OVERFLOW_HANDLING.
45608         Reported by Elbert Pol.
45609
45610 2008-08-25  Bruno Haible  <bruno@clisp.org>
45611
45612         * doc/posix-functions/strftime.texi: Fix description of strftime
45613         module.
45614
45615 2008-08-24  Bruno Haible  <bruno@clisp.org>
45616
45617         * tests/uniwidth/test-uc_width2.c: New file.
45618         * tests/uniwidth/test-uc_width2.sh: New file.
45619         * modules/uniwidth/width-tests (Files): Add the new files.
45620         (TESTS): Add uniwidth/test-uc_width2.sh.
45621         (TESTS_ENVIRONMENT): New variable.
45622         (check_PROGRAMS): Add test-uc_width2.
45623         (test_uc_width2_SOURCES): New variable.
45624
45625         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
45626         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
45627         not 0x00AB.
45628         Reported by Alexander V. Lukyanov <lav@netis.ru>.
45629
45630 2008-08-22  Eric Blake  <ebb9@byu.net>
45631
45632         test-lock, test-tls: mention why a test is skipped
45633         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
45634         skipped.
45635         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
45636
45637         count-one-bits: relax license
45638         * modules/count-one-bits (License): Relicense to LGPLv2+.
45639         Suggested by Ludovic Courtès, approved by Ben Pfaff.
45640
45641 2008-08-22  Andreas Schwab  <schwab@suse.de>
45642
45643         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
45644         Remove spurious space in assignment.
45645
45646 2008-08-21  Simon Josefsson  <simon@josefsson.org>
45647
45648         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
45649         Paul Eggert <eggert@CS.UCLA.EDU>.
45650
45651 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
45652
45653         * modules/gettext: Add m4/threadlib.m4.
45654
45655 2008-08-19  Eric Blake  <ebb9@byu.net>
45656
45657         test-c-stack: fix compilation failure on FreeBSD 5.0
45658         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
45659         headers before <sys/resource.h>.
45660         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
45661         the bug.
45662         Reported by Nelson H. F. Beebe.
45663
45664         strverscmp: migrate from "strverscmp.h" to <string.h>
45665         * modules/string (Makefile.am): Add new hooks.
45666         * modules/strverscmp (Files): Remove strverscmp.h.
45667         (Depends-on): Add string.
45668         (configure.ac): Add indicator.
45669         (Include): Mention new header.
45670         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
45671         defaults.
45672         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
45673         results.
45674         * lib/strverscmp.h: Delete.
45675         * lib/string.in.h (strverscmp): Provide declaration, when needed.
45676         * tests/test-strverscmp.c (includes): Adjust client.
45677         * lib/check-version.c (includes): Likewise.
45678         * NEWS: Document the change.
45679
45680         strverscmp: add unit test
45681         * modules/strverscmp-tests: New file.
45682         * tests/test-strverscmp.c: Likewise.
45683
45684 2008-08-19  Simon Josefsson  <simon@josefsson.org>
45685
45686         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
45687         regarding Windows crypto stuff, from Mono.
45688
45689 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
45690
45691         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
45692         if present, for intel RND.  Return error on failures.
45693
45694 2008-08-18  Ben Pfaff  <blp@gnu.org>
45695
45696         gitlog-to-changelog: give better diagnostic for failed pipe-open
45697         * build-aux/gitlog-to-changelog: Improve error message: suggest
45698         that the version of Git may be too old.
45699
45700 2008-08-18  Simon Josefsson  <simon@josefsson.org>
45701
45702         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
45703         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
45704
45705 2008-08-18  Bruno Haible  <bruno@clisp.org>
45706
45707         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
45708         pthread_in_use().
45709
45710 2008-08-18  Bruno Haible  <bruno@clisp.org>
45711
45712         * lib/glthread/threadlib.c: Include <pthread.h>.
45713
45714 2008-08-18  Bruno Haible  <bruno@clisp.org>
45715
45716         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
45717         glthread_recursive_lock_* macros.
45718         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
45719         Fix syntax error.
45720
45721 2008-08-18  Bruno Haible  <bruno@clisp.org>
45722
45723         * lib/glthread/thread.c: Avoid forcing a context switch right after
45724         thread creation.
45725
45726 2008-08-17  Bruno Haible  <bruno@clisp.org>
45727
45728         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
45729         * lib/glthread/thread.h: Provide Win32 specific implementation.
45730         * modules/thread (Files): Add lib/glthread/thread.c.
45731         (Depends-on): Add lock.
45732         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
45733
45734 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45735
45736         New module 'yield'.
45737         * modules/yield: New file.
45738         * lib/glthread/yield.h: New file.
45739         * m4/yield.m4: New file.
45740         * MODULES.html.sh (Multithreading): Add yield.
45741
45742 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45743
45744         New module 'thread'.
45745         * modules/thread: New file.
45746         * lib/glthread/thread.h: New file.
45747         * m4/thread.m4: New file.
45748         * MODULES.html.sh (Multithreading): Add thread.
45749
45750 2008-08-17  Bruno Haible  <bruno@clisp.org>
45751
45752         * lib/glthread/lock.h: Include <stdlib.h> always.
45753         * lib/glthread/tls.h: Likewise.
45754         * lib/glthread/cond.h: Likewise.
45755
45756 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45757
45758         New module 'cond'.
45759         * modules/cond: New file.
45760         * lib/glthread/cond.h: New file.
45761         * lib/glthread/cond.c: New file.
45762         * m4/cond.m4: New file.
45763         * MODULES.html.sh (Multithreading): Add cond.
45764
45765 2008-08-16  Eric Blake  <ebb9@byu.net>
45766
45767         c-stack: fix regression on Irix 5.3 from 2008-06-21
45768         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
45769         sa_sigaction...
45770         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
45771         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
45772         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
45773         * modules/signal (Makefile.am): Use the value.
45774         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
45775         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
45776         * doc/posix-headers/signal.texi (signal.h): Document this
45777         portability issue.
45778         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
45779         Reported by Tom G. Christensen.
45780
45781 2008-08-17  Bruno Haible  <bruno@clisp.org>
45782
45783         New module 'threadlib'.
45784         * modules/threadlib: New file.
45785         * lib/glthread/threadlib.c: New file, extracted from
45786         lib/glthread/lock.c.
45787         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
45788         functions.
45789         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
45790         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
45791         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
45792         macros.
45793         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
45794         (gl_DISABLE_THREADS): Remove macro.
45795         * modules/lock (Files): Remove build-aux/config.rpath.
45796         (Depends-on): Remove havelib. Add threadlib.
45797         (configure.ac-early): Remove section.
45798         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
45799         * modules/tls (Depends-on): Remove lock. Add threadlib.
45800         (Link): New section, copied from threadlib.
45801         * MODULES.html.sh (Multithreading): Add threadlib.
45802
45803 2008-08-14  Bruno Haible  <bruno@clisp.org>
45804
45805         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
45806         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
45807         glthread_rwlock_unlock, glthread_rwlock_destroy,
45808         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
45809         glthread_recursive_lock_destroy): Define as macros always.
45810         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
45811         glthread_lock_lock.
45812         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
45813         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
45814         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
45815         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
45816         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
45817         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
45818         (glthread_recursive_lock_lock_func): Renamed from
45819         glthread_recursive_lock_lock.
45820         (glthread_recursive_lock_unlock_func): Renamed from
45821         glthread_recursive_lock_unlock.
45822         (glthread_recursive_lock_destroy_func): Renamed from
45823         glthread_recursive_lock_destroy.
45824
45825 2008-08-14  Bruno Haible  <bruno@clisp.org>
45826
45827         * lib/glthread/lock.h: Renamed from lib/lock.h.
45828         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
45829         * lib/glthread/tls.h: Renamed from lib/tls.h.
45830         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
45831         * lib/fstrcmp.c: Update includes.
45832         * lib/strsignal.c: Update includes.
45833         * modules/lock (Files, Makefile.am): Update.
45834         (Include): Change to "glthread/lock.h".
45835         * modules/tls (Files, Makefile.am): Update.
45836         (Include): Change to "glthread/tls.h".
45837         * tests/test-lock.c: Update includes.
45838         * tests/test-tls.c: Update includes.
45839         * NEWS: Mention the renamed header files.
45840
45841 2008-08-11  Jim Meyering  <meyering@redhat.com>
45842
45843         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
45844
45845 2008-08-11  Eric Blake  <ebb9@byu.net>
45846
45847         test-c-stack: avoid C99-ism
45848         * tests/test-c-stack.c (main): Fix whitespace, move declaration
45849         before statement.
45850         Reported by Alain Guibert.
45851
45852 2008-08-10  Jim Meyering  <meyering@redhat.com>
45853
45854         ensure that return value of uinttostr et al are not ignored
45855         * lib/inttostr.h (__GNUC_PREREQ): Define.
45856         (__attribute_warn_unused_result__): Define.
45857         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
45858
45859 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
45860
45861         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
45862         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
45863
45864 2008-08-07  Jim Meyering  <meyering@redhat.com>
45865
45866         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
45867
45868         * modules/mkstemp (License): Relicense under LGPLv2+.
45869         * modules/tempname (License): Likewise.
45870
45871 2008-08-06  Bruno Haible  <bruno@clisp.org>
45872
45873         * lib/poll.c (poll): Further micro-optimization.
45874
45875 2008-08-06  Jim Meyering  <meyering@redhat.com>
45876
45877         inet_pton.c: use locale-independent tolower
45878         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
45879         (inet_pton6): Use c_tolower rather than tolower.
45880         * modules/inet_pton (Depends-on): Add c-ctype.
45881
45882 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
45883
45884         * lib/poll.c (poll): Avoid division when timeout is 0, cache
45885         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
45886
45887 2008-08-06  Jim Meyering  <meyering@redhat.com>
45888
45889         * modules/inet_pton (License): Relicense under LGPLv2+.
45890
45891 2008-08-03  Bruno Haible  <bruno@clisp.org>
45892
45893         Additional non-aborting API for lock and tls.
45894         * lib/lock.h: Include <errno.h>.
45895         (glthread_lock_init): New macro/function.
45896         (gl_lock_init): Define as wrapper around glthread_lock_init.
45897         (glthread_lock_lock): New macro/function.
45898         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
45899         (glthread_lock_unlock): New macro/function.
45900         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
45901         (glthread_lock_destroy): New macro/function.
45902         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
45903         (glthread_rwlock_init): New macro/function.
45904         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
45905         (glthread_rwlock_rdlock): New macro/function.
45906         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
45907         (glthread_rwlock_wrlock): New macro/function.
45908         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
45909         (glthread_rwlock_unlock): New macro/function.
45910         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
45911         (glthread_rwlock_destroy): New macro/function.
45912         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
45913         (glthread_recursive_lock_init): New macro/function.
45914         (gl_recursive_lock_init): Define as wrapper around
45915         glthread_recursive_lock_init.
45916         (glthread_recursive_lock_lock): New macro/function.
45917         (gl_recursive_lock_lock): Define as wrapper around
45918         glthread_recursive_lock_lock.
45919         (glthread_recursive_lock_unlock): New macro/function.
45920         (gl_recursive_lock_unlock): Define as wrapper around
45921         glthread_recursive_lock_unlock.
45922         (glthread_recursive_lock_destroy): New macro/function.
45923         (gl_recursive_lock_destroy): Define as wrapper around
45924         glthread_recursive_lock_destroy.
45925         (glthread_once): New macro/function.
45926         (gl_once): Define as wrapper around glthread_once.
45927         Update function declarations.
45928         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
45929         glthread_rwlock_init. Return error code.
45930         (glthread_rwlock_rdlock_multithreaded): Renamed from
45931         glthread_rwlock_rdlock. Return error code.
45932         (glthread_rwlock_wrlock_multithreaded): Renamed from
45933         glthread_rwlock_wrlock. Return error code.
45934         (glthread_rwlock_unlock_multithreaded): Renamed from
45935         glthread_rwlock_unlock. Return error code.
45936         (glthread_rwlock_destroy_multithreaded): Renamed from
45937         glthread_rwlock_destroy. Return error code.
45938         (glthread_recursive_lock_init_multithreaded): Renamed from
45939         glthread_recursive_lock_init. Return error code.
45940         (glthread_recursive_lock_lock_multithreaded): Renamed from
45941         glthread_recursive_lock_lock. Return error code.
45942         (glthread_recursive_lock_unlock_multithreaded): Renamed from
45943         glthread_recursive_lock_unlock. Return error code.
45944         (glthread_recursive_lock_destroy_multithreaded): Renamed from
45945         glthread_recursive_lock_destroy. Return error code.
45946         (glthread_once_call): Make static.
45947         (glthread_once_multithreaded): Renamed from glthread_once.
45948         * lib/tls.h: Include <errno.h>.
45949         (glthread_tls_key_init): New macro/function.
45950         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
45951         (glthread_tls_set): New macro/function.
45952         (gl_tls_set): Define as wrapper around glthread_tls_set.
45953         (glthread_tls_key_destroy): New macro/function.
45954         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
45955         Update function declarations.
45956         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
45957         glthread_tls_get.
45958         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45959
45960 2008-08-04  Eric Blake  <ebb9@byu.net>
45961
45962         gnumakefile: use space, not TAB, outside of targets
45963         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
45964
45965 2008-08-02  Jim Meyering  <meyering@redhat.com>
45966
45967         getdate.y: avoid locale-dependent date parsing failure
45968         In Turkish locales, getdate would fail to recognize keywords
45969         containing a lowercase "i".  The solution is not to rely on
45970         locale-sensitive case-conversion.
45971         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
45972         (lookup_word): Use c_toupper in place of toupper.
45973         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
45974         Reported by Vefa Bicakci <bicave@superonline.com> in
45975         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
45976         * modules/getdate (Depends-on): Add c-ctype.
45977
45978 2008-08-02  Bruno Haible  <bruno@clisp.org>
45979
45980         * gnulib-tool (func_import): When updating or creating a .gitignore
45981         file, prepend each added line with a slash, and ignore leading slashes
45982         from the existing lines.
45983         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45984
45985 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45986
45987         Portability fix for GNU make 3.79.1.
45988         * top/GNUmakefile: Avoid 'else COND', which older GNU make
45989         versions do not understand.
45990
45991 2008-08-01  Bruno Haible  <bruno@clisp.org>
45992
45993         Work around bug of HP-UX 10.20 cc with -0.0 literal.
45994         * tests/test-isnanf.h (zero): New variable.
45995         (main): Avoid literal -0.0f.
45996         * tests/test-isnand.h (zero): New variable.
45997         (main): Avoid literal -0.0.
45998         * tests/test-isnanl.h (zero): New variable.
45999         (main): Avoid literal -0.0L.
46000         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
46001         (test_float, test_double, test_long_double): Avoid literals -0.0f,
46002         -0.0, -0.0L.
46003         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
46004         (test_signbitd): Avoid literal -0.0.
46005         (test_signbitl): Avoid literal -0.0L.
46006         * tests/test-ceilf1.c (zero): New variable.
46007         (main): Avoid literal -0.0f.
46008         * tests/test-ceill.c (zero): New variable.
46009         (main): Avoid literal -0.0L.
46010         * tests/test-floorf1.c (zero): New variable.
46011         (main): Avoid literal -0.0f.
46012         * tests/test-floorl.c (zero): New variable.
46013         (main): Avoid literal -0.0L.
46014         * tests/test-roundf1.c (zero): New variable.
46015         (main): Avoid literal -0.0f.
46016         * tests/test-round1.c (zero): New variable.
46017         (main): Avoid literal -0.0.
46018         * tests/test-roundl.c (zero): New variable.
46019         (main): Avoid literal -0.0L.
46020         * tests/test-truncf1.c (zero): New variable.
46021         (main): Avoid literal -0.0f.
46022         * tests/test-trunc1.c (zero): New variable.
46023         (main): Avoid literal -0.0.
46024         * tests/test-truncl.c (zero): New variable.
46025         (main): Avoid literal -0.0L.
46026         * tests/test-frexp.c (zero): New variable.
46027         (main): Avoid literal -0.0.
46028         * tests/test-frexpl.c (zero): New variable.
46029         (main): Avoid literal -0.0L.
46030         * tests/test-ldexpl.c (zero): New variable.
46031         (main): Avoid literal -0.0L.
46032         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46033         (zerod, zerol): New variables.
46034         (test_function): Avoid literals -0.0, -0.0L.
46035         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46036         (zerod, zerol): New variables.
46037         (test_function): Avoid literals -0.0, -0.0L.
46038         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46039         (zerod, zerol): New variables.
46040         (test_function): Avoid literals -0.0, -0.0L.
46041         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46042         (zerod, zerol): New variables.
46043         (test_function): Avoid literals -0.0, -0.0L.
46044         * tests/test-strtod.c (zero): New variable.
46045         (main): Avoid literal -0.0.
46046         Reported by Jonathan C. Patschke <jp@centtech.com>.
46047
46048 2008-07-31  Jim Meyering  <meyering@redhat.com>
46049
46050         sha256.h: correct definition of SHA224_DIGEST_SIZE
46051         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
46052         Reported by Paulie Pena IV <paulie4@gmail.com>.
46053         Define as 224 / 8, rather than as a literal.
46054         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
46055         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
46056         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
46057
46058 2008-07-31  Bruno Haible  <bruno@clisp.org>
46059
46060         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
46061         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
46062         Reported by Jonathan Patschke <jp@centtech.com>.
46063
46064 2008-07-31  Bruno Haible  <bruno@clisp.org>
46065
46066         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
46067         Reported by Paolo Bonzini <bonzini@gnu.org>.
46068
46069 2008-07-30  Eric Blake  <ebb9@byu.net>
46070
46071         test-strtod: allow compilation without -lm
46072         * tests/test-strtod.c (main): Avoid link dependence on fabs.
46073         Reported by Dennis Clarke <blastwave@gmail.com>.
46074
46075 2008-07-28  Jim Meyering  <meyering@redhat.com>
46076
46077         bootstrap: work also when there are no .po files in po/
46078         * build-aux/bootstrap (update_po_files): Complete the change
46079         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
46080
46081 2008-07-27  Jim Meyering  <meyering@redhat.com>
46082
46083         * users.txt: Add zile.
46084
46085 2008-07-26  Ben Pfaff  <blp@gnu.org>
46086
46087         Add missing dependencies on new m4/exponent[fdl].m4 files.
46088         * modules/isnanf-nolibm: Add m4/exponentf.m4.
46089         * modules/isnand-nolibm: Add m4/exponentd.m4.
46090         * modules/isnanl-nolibm: Add m4/exponentl.m4.
46091         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
46092         m4/isnan[fdl].m4, because the macros actually used moved.
46093         Reported by Jim Meyering.
46094
46095 2008-07-14  Ben Pfaff  <blp@gnu.org>
46096
46097         Add isinf module.
46098         * lib/isinf.c: New file.
46099         * lib/math.in.h: Define isinf macro if we have decided to replace
46100         it.
46101         * m4/isinf.m4: New file.
46102         * m4/math_h.m4: Initialize and substitute variables for isinf
46103         module.
46104         * modules/isinf: New file.
46105         * modules/isinf-tests: New file.
46106         * modules/math: Add substitutions for new module.
46107         * tests/test-isinf.c: New file.
46108         * doc/posix-functions/isinf.texi: Mention new module.
46109         * MODULES.html.sh: Mention new module.
46110
46111 2008-07-14  Ben Pfaff  <blp@gnu.org>
46112
46113         Factor out some macros for use by additional modules.
46114         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
46115         exponentf.m4.
46116         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
46117         exponentd.m4.
46118         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
46119         file exponentl.m4.
46120         * m4/exponentf.m4: New file.
46121         * m4/exponentd.m4: New file.
46122         * m4/exponentl.m4: New file.
46123         * modules/isnanf: Use new file m4/exponentf.m4.
46124         * modules/isnand: Use new file m4/exponentd.m4.
46125         * modules/isnanl: Use new file m4/exponentl.m4.
46126
46127 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
46128
46129         mktime.c: normalize tp->tm_isdst value to -1/0/1.
46130         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
46131         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
46132         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
46133
46134         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
46135         readlink on platforms without PATH_MAX.
46136
46137 2008-07-21  Eric Blake  <ebb9@byu.net>
46138
46139         Warn, not fail, on stale version.
46140         * top/GNUmakefile (_curr-ver): Tone down previous patch.
46141
46142         Don't allow installation with stale devel version number.
46143         * top/GNUmakefile (_is-install-target): New macro.
46144         (_curr-ver): Forbid installation with stale version number.
46145
46146 2008-07-20  Bruno Haible  <bruno@clisp.org>
46147
46148         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
46149         TESTS_ENVIRONMENT.
46150         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
46151
46152 2008-07-20  Bruno Haible  <bruno@clisp.org>
46153
46154         * lib/c-stack.h (c_stack_action): Add documentation.
46155         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
46156
46157 2008-07-20  Bruno Haible  <bruno@clisp.org>
46158
46159         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
46160         * modules/readlink (License): Likewise.
46161
46162 2008-07-17  Eric Blake  <ebb9@byu.net>
46163
46164         * modules/c-stack (Link): Fix typo.
46165
46166         Make c-stack use libsigsegv, when available.
46167         * modules/c-stack (Depends-on): Add libsigsegv.
46168         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
46169         needed.
46170         * lib/c-stack.c (SIGSTKSZ): Define fallback.
46171         (segv_handler, overflow_handler, c_stack_action)
46172         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
46173         implementation when libsigsegv is available, but only when using
46174         the library is necessary.
46175         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
46176         comment, explaining why XSI check fails on Linux.
46177         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
46178         * tests/test-c-stack2.sh: Tweak skip message.
46179         * NEWS: Document new link-time requirements.
46180
46181 2008-07-16  Eric Blake  <ebb9@byu.net>
46182
46183         c-stack: Expose false positives when not using libsigsegv.
46184         * modules/c-stack-tests (Files): Expand test.
46185         * tests/test-c-stack.c (main): Add means to conditionally trigger
46186         non-overflow SIGSEGV.
46187         * tests/test-c-stack2.sh: New file.
46188
46189 2008-07-14  Bruno Haible  <bruno@clisp.org>
46190
46191         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
46192         Reported by Eric Blake.
46193
46194 2008-07-14  Sam Steingold  <sds@gnu.org>
46195             Bruno Haible  <bruno@clisp.org>
46196
46197         New module libsigsegv.
46198         * modules/libsigsegv: New file.
46199         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
46200         modifications.
46201         * MODULES.html.sh (Signal handling): New section.
46202
46203 2008-07-14  Bruno Haible  <bruno@clisp.org>
46204
46205         * modules/unictype/ctype-* (Description): Add the word "function".
46206         Improves the resulting doc in MODULES.html.
46207
46208 2008-07-12  Ben Pfaff  <blp@gnu.org>
46209
46210         Add longlong module.
46211         * modules/longlong: New file.
46212
46213 2008-07-12  Bruno Haible  <bruno@clisp.org>
46214
46215         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
46216         to empty.
46217
46218 2008-07-10  Ben Pfaff  <blp@gnu.org>
46219
46220         Add isnan module.
46221         * doc/posix-functions/isnan.texi: Mention new module.
46222         * lib/math.in.h: Define isnan macro if we have decided to replace
46223         it.
46224         * m4/isnan.m4: New file.
46225         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
46226         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
46227         also.
46228         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
46229         redundancy.
46230         * m4/math_h.m4: Initialize and substitute variables for isnan
46231         module.
46232         * modules/isnan: New file.
46233         * modules/isnan-tests: New file.
46234         * modules/math: Add substitutions for new module.
46235         * tests/test-isnan.c: New file.
46236         * MODULES.html.sh: Mention new module.
46237
46238 2008-07-10  Ben Pfaff  <blp@gnu.org>
46239
46240         Add isnanf module.
46241         * lib/isnanf.m4: New file.
46242         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
46243         (gl_HAVE_ISNANF_IN_LIBM): New macro.
46244         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
46245         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
46246         * modules/isnanf: New file.
46247         * modules/isnanf-tests: New file.
46248         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
46249         files.
46250         * tests/test-isnanf-nolibm.c: factored most of its contents into
46251         new file tests/test-isnanf.h.
46252         * tests/test-isnanf.h: New file.
46253         * tests/test-isnanf.c: New file.
46254         * MODULES.html.sh: Mention new module.
46255         * doc/glibc-functions/isnanf.texi: Mention new module.
46256
46257 2008-07-10  Ben Pfaff  <blp@gnu.org>
46258
46259         Add isnand module.
46260         * lib/isnand.h: New file.
46261         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
46262         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
46263         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
46264         functionality also.
46265         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
46266         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
46267         (gl_HAVE_ISNAND_IN_LIBM): New macro.
46268         * modules/isnand: New file.
46269         * modules/isnand-tests: New file.
46270         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
46271         files.
46272         * tests/test-isnand-nolibm.c: factored most of its contents into
46273         new file tests/test-isnand.h.
46274         * tests/test-isnand.h: New file.
46275         * tests/test-isnand.c: New file.
46276         * MODULES.html.sh: Mention new module.
46277
46278 2008-07-10  Ben Pfaff  <blp@gnu.org>
46279
46280         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
46281         * lib/isnand.h: Rename lib/isnand-nolibm.h.
46282         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
46283         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
46284         * modules/isnanf-nolibm: Update references to renamed files.
46285         * modules/isnand-nolibm: Likewise.
46286         * modules/isnanf-nolibm-tests: Likewise.
46287         * modules/isnand-nolibm-tests: Likewise.
46288         * lib/frexp.c: Likewise.
46289         * lib/isfinite.c: Likewise.
46290         * lib/signbitd.c: Likewise.
46291         * lib/signbitf.c: Likewise.
46292         * lib/vasnprintf.c: Likewise.
46293         * tests/test-ceilf1.c: Likewise.
46294         * tests/test-ceilf2.c: Likewise.
46295         * tests/test-floorf1.c: Likewise.
46296         * tests/test-floorf2.c: Likewise.
46297         * tests/test-frexp.c: Likewise.
46298         * tests/test-round1.c: Likewise.
46299         * tests/test-round2.c: Likewise.
46300         * tests/test-roundf1.c: Likewise.
46301         * tests/test-strtod.c: Likewise.
46302         * tests/test-trunc1.c: Likewise.
46303         * tests/test-trunc2.c: Likewise.
46304         * tests/test-truncf1.c: Likewise.
46305         * tests/test-truncf2.c: Likewise.
46306         * NEWS: Mention the renamed header files.
46307
46308 2008-07-11  Jim Meyering  <meyering@redhat.com>
46309
46310         vc-list-files: make the last-resort awk code more portable
46311         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
46312         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
46313         does not support it.
46314
46315 2008-07-10  Eric Blake  <ebb9@byu.net>
46316
46317         Work with tar's bootstrap.
46318         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
46319         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
46320         an m4 comment.
46321
46322 2008-07-09  Jim Meyering  <meyering@redhat.com>
46323
46324         posix-shell.m4: fix typo that made this test malfunction
46325         * m4/posix-shell.m4: Remove capitalization in variable name.
46326
46327 2008-07-08  Bruno Haible  <bruno@clisp.org>
46328
46329         * m4/onceonly.m4: Update comments.
46330         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46331
46332 2008-07-04  Jim Meyering  <meyering@redhat.com>
46333
46334         * users.txt: Add vc-dwim.
46335         (bison, coreutils): Use the gitweb URL.
46336
46337 2008-07-03  Jim Meyering  <meyering@redhat.com>
46338
46339         * users.txt: Add libffcall.  From Sam Steingold.
46340
46341 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
46342
46343         getdate.y: do not ignore TZ with relative day, month or year offset
46344         * lib/getdate.y (get_date): Move the tz-handling block to follow the
46345         relative-date-handling, since otherwise, the latter would clobber the
46346         sole output (an updated Start value) of the tz-handling block.
46347         * tests/test-getdate.c: Tests for the fix
46348
46349 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46350
46351         Recognize 'foo_LIBRARIES += libgnu.a'.
46352         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
46353         makefile snippet has already specified an installation location,
46354         also using '+='.
46355
46356 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
46357
46358         getdate.y: factor out common actions
46359         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
46360         Use them in place of open-coded actions.
46361
46362 2008-07-01  Simon Josefsson  <simon@josefsson.org>
46363
46364         Add self-test for getdate module.
46365         * modules/getdate-tests: New file.
46366         * tests/test-getdate.c: New file.
46367
46368 2008-06-29  Bruno Haible  <bruno@clisp.org>
46369
46370         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
46371         .gitignore.
46372         Reported by Sylvain Beucler <beuc@beuc.net>.
46373
46374 2008-06-29  Bruno Haible  <bruno@clisp.org>
46375
46376         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
46377         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
46378
46379 2008-06-29  Bruno Haible  <bruno@clisp.org>
46380
46381         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
46382         EXTRA_DIST.
46383         Reported by Sylvain Beucler <beuc@beuc.net>.
46384
46385 2008-06-26  Jim Meyering  <meyering@redhat.com>
46386
46387         make several modules depend on the "open" module
46388         This provides slightly increased consistency when opening-for-write
46389         the name of a non-directory spelled with a trailing slash.
46390         * modules/chdir-safer: Likewise.
46391         * modules/chown: Likewise.
46392         * modules/clean-temp: Likewise.
46393         * modules/copy-file: Likewise.
46394         * modules/fchdir: Likewise.
46395         * modules/fcntl-safer: Likewise.
46396         * modules/pipe: Likewise.
46397         * modules/utime: Likewise.
46398         Prompted by Eric Blake and Bruno Haible.
46399
46400 2008-06-24  Andreas Schwab  <schwab@suse.de>
46401
46402         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
46403         literals can be used as initializers for global variables.
46404
46405 2008-06-23  Eric Blake  <ebb9@byu.net>
46406
46407         Make gnulib-cache.m4 easier to diff.
46408         * gnulib-tool (func_import): Allow newlines when reading cached
46409         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
46410
46411 2008-06-23  Bruno Haible  <bruno@clisp.org>
46412
46413         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
46414         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
46415         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
46416         m4/signalblocking.m4.
46417         (gl_PREREQ_SIGACTION): Don't invoke it.
46418         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
46419         gl_PREREQ_SIG_HANDLER_H.
46420         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
46421         Don't check for sigaction here.
46422
46423 2008-06-23  Bruno Haible  <bruno@clisp.org>
46424
46425         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
46426         (install_handlers): Don't set the SA_RESETHAND flag.
46427
46428 2008-06-23  Bruno Haible  <bruno@clisp.org>
46429
46430         * m4/sigaction.m4: Comment fixes.
46431         * lib/signal.in.h: Likewise.
46432
46433 2008-06-23  Eric Blake  <ebb9@byu.net>
46434
46435         Fix typo.
46436         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
46437
46438         Avoid SA_ namespace.
46439         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
46440         Reported by Ralf Wildenhues.
46441
46442         Avoid test failure due to SA_RESTORER.
46443         * tests/test-sigaction.c (SA_MASK): New macro.
46444         (main): Avoid failing due to extension flags being set.
46445         Reported by Jim Meyering.
46446
46447         Revert use of sig-handler.h in sigprocmask.c.
46448         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
46449         it requires the existence of struct sigaction.
46450         * lib/sigprocmask.c (handler_t): Restore typedef.
46451         (rpl_signal, old_handlers): Use local type.
46452
46453 2008-06-22  Bruno Haible  <bruno@clisp.org>
46454
46455         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
46456         conditionally.
46457         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46458
46459 2008-06-22  Bruno Haible  <bruno@clisp.org>
46460
46461         * doc/posix-functions/siginterrupt.texi: Move note.
46462
46463         * lib/signal.in.h (SA_RESTART): New macro.
46464         * lib/sigaction.c: Update comment.
46465
46466         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
46467
46468         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
46469         (gl_PREREQ_SIGPROCMASK): Invoke it.
46470         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
46471
46472         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
46473
46474         * lib/sigprocmask.c: Update a comment.
46475
46476 2008-06-21  Eric Blake  <ebb9@byu.net>
46477
46478         Use sigaction module rather than signal().
46479         * modules/c-stack (Depends-on): Add sigaction.
46480         * modules/fatal-signal (Depends-on): Likewise.
46481         * modules/nanosleep (Depends-on): Likewise.
46482         * modules/sigprocmask (Files): Add sig-handler.h.
46483         * modules/sigaction (Files): Likewise.
46484         * lib/sig-handler.h (get_handler): New file, suggested by Paul
46485         Eggert.
46486         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
46487         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
46488         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
46489         (init_fatal_signals): Likewise.
46490         * lib/nanosleep.c (rpl_nanosleep): Likewise.
46491         (siginterrupt): Delete fallback.
46492         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
46493         instead.
46494         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
46495         siginterrupt.
46496
46497         New module sigaction, for mingw.
46498         * modules/sigaction: New module...
46499         * modules/sigaction-tests: ...and its test.
46500         * m4/sigaction.m4: New file.
46501         * lib/sigaction.c: Likewise.
46502         * tests/test-sigaction.c: Likewise.
46503         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
46504         * modules/signal (Makefile.am): Likewise.
46505         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
46506         needed.
46507         * doc/posix-headers/signal.texi (signal.h): Mention provided
46508         types.
46509         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
46510         that sigaction is preferable.
46511         * doc/posix-functions/sigaction.texi (sigaction): Mention new
46512         module.
46513         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46514         sigaction.
46515
46516         Improve robustness of sigprocmask by overriding signal.
46517         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
46518         is in use.
46519         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
46520         (SIGKILL, SIGSTOP): Provide fallbacks.
46521         (rpl_signal): Implement.
46522         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
46523         signal can be called inside handlers.
46524
46525         Fix nanosleep module on mingw.
46526         * modules/nanosleep (Depends-on): Add sys_select.
46527         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
46528
46529         Fix licensing of sigprocmask.
46530         * modules/raise (License): Relicense as LGPL.
46531
46532 2008-06-21  Bruno Haible  <bruno@clisp.org>
46533
46534         * lib/propername.c (proper_name_utf8): Don't use the transliterated
46535         result if it contains question marks.
46536         Reported by Michael Geng <linux@michaelgeng.de>.
46537
46538 2008-06-19  Bruno Haible  <bruno@clisp.org>
46539
46540         Fix CVS-ism.
46541         * doc/gnulib.texi: Include updated-stamp.texi.
46542         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
46543         (updated-stamp.texi): New rule.
46544         (gnulib.info): Depend on it.
46545         * doc/.gitignore: Add updated-stamp.texi.
46546         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
46547
46548 2008-06-19  Bruno Haible  <bruno@clisp.org>
46549
46550         * doc/Makefile (gnulib.info): Update and simplify dependencies.
46551         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46552
46553 2008-06-19  Eric Blake  <ebb9@byu.net>
46554
46555         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
46556         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
46557         Reported by Stepan Kasal.
46558
46559 2008-06-18  Bruno Haible  <bruno@clisp.org>
46560
46561         * lib/fatal-signal.c (init_fatal_signals): Add comment.
46562         Reported by Eric Blake.
46563
46564 2008-06-18  Eric Blake  <ebb9@byu.net>
46565
46566         Work around cygwin 1.5.25 strsignal bug.
46567         * tests/test-strsignal.c: Allow for const char *.
46568         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
46569
46570 2008-06-18  Simon Josefsson  <simon@josefsson.org>
46571
46572         * users.txt: Update URL to article and add author/date
46573         information.
46574
46575 2008-06-17  Bruno Haible  <bruno@clisp.org>
46576
46577         New macro gl_DISABLE_THREADS.
46578         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
46579         if the user did not pass --enable-threads or --disable-threads option.
46580         (gl_DISABLE_THREADS): New macro.
46581         Reported by Eric Blake <ebb9@byu.net>.
46582
46583 2008-06-17  Bruno Haible  <bruno@clisp.org>
46584
46585         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
46586         when the macro ignores it.
46587         Based on a patch by Eric Blake <ebb9@byu.net>.
46588
46589 2008-06-17  Bruno Haible  <bruno@clisp.org>
46590
46591         * modules/tls (License): Change to LGPLv2+.
46592         Reported by Eric Blake.
46593
46594 2008-06-17  Eric Blake  <ebb9@byu.net>
46595
46596         Simplify c-stack prerequisites.
46597         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
46598         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
46599         no longer requires <ucontext.h> to exist.  Optimize setrlimit
46600         check.
46601         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
46602         <sys/resource.h>.
46603
46604         Move c-stack test into testsuite.
46605         * modules/c-stack-tests: New file.
46606         * lib/c-stack.c [DEBUG]: Move test program...
46607         * tests/test-c-stack.c: ...into this new file.  Skip rather than
46608         fail test if sigaltstack is lacking.
46609         * tests/test-c-stack.sh: New driver file.
46610
46611 2008-06-16  Eric Blake  <ebb9@byu.net>
46612
46613         Use raise module consistently.
46614         * modules/fatal-signal (Depends-on): Add raise.
46615         * modules/sigprocmask (Depends-on): Likewise.
46616         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
46617         * lib/sigprocmask.c (sigprocmask): Likewise.
46618         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
46619         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
46620
46621         Fix compliance bug in sigpending.
46622         * lib/sigprocmask.c (sigpending): Return pending array via
46623         parameter, not return value.
46624
46625 2008-06-14  Eric Blake  <ebb9@byu.net>
46626
46627         Improve obstack-printf test code.
46628         * tests/test-obstack-printf.c (test_function): Fix comment, and
46629         simplify usage of obstack_* in macros.  Add a test for coverage.
46630         Reported by Bruno Haible.
46631
46632 2008-06-14  Bruno Haible  <bruno@clisp.org>
46633
46634         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
46635         array size as a constant, not as a const variable.
46636         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
46637         AC_USE_SYSTEM_EXTENSIONS.
46638         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46639         Test whether the obstack_printf function actually exists.
46640         * modules/obstack-printf (Depends-on): Add extensions.
46641         (Include): Remove obstack.h.
46642         * modules/obstack-printf-posix (Depends-on): Add extensions.
46643         (Include): Remove obstack.h.
46644
46645 2008-06-13  Eric Blake  <ebb9@byu.net>
46646
46647         Add obstack-printf and obstack-printf-posix modules.
46648         * modules/obstack-printf: New file.
46649         * modules/obstack-printf-posix: Likewise.
46650         * MODULES.html.sh (Misc): Mention them.
46651         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
46652         Likewise.
46653         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
46654         Likewise.
46655         * modules/stdio (Makefile.am): Accomodate new modules.
46656         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46657         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
46658         Declare.
46659         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
46660         functions.
46661         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
46662         (gl_REPLACE_OBSTACK_PRINTF): New macros
46663         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
46664         * tests/test-obstack-printf.c: New file.
46665         * modules/obstack-printf-tests: Likewise.
46666         * modules/obstack-printf-posix-tests: Likewise.
46667
46668 2008-06-11  Bruno Haible  <bruno@clisp.org>
46669
46670         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
46671         * lib/open.c: Include errno.h.
46672         (open): Fail when attempting to write to a file that has a trailing
46673         slash.
46674         * tests/test-open.c (main): Test against trailing slash bug.
46675         * doc/posix-functions/open.texi: Mention the trailing slash bug.
46676
46677 2008-06-10  Bruno Haible  <bruno@clisp.org>
46678
46679         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
46680         for $? to work inside the trap command, with various /bin/sh-s.
46681         * tests/test-vc-list-files-cvs.sh: Likewise.
46682
46683 2008-06-10  Bruno Haible  <bruno@clisp.org>
46684
46685         * lib/acl-internal.h: Don't include gettext.h here.
46686         * lib/set-mode-acl.c: Include gettext.h here.
46687         * lib/copy-acl.c: Likewise.
46688
46689 2008-06-10  Bruno Haible  <bruno@clisp.org>
46690
46691         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
46692         * lib/wait-process.c (wait_subprocess): Likewise.
46693         * lib/execute.h (execute): Add termsigp argument.
46694         * lib/execute.c (execute): Likewise.
46695         * lib/csharpcomp.c (compile_csharp_using_pnet,
46696         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
46697         * lib/csharpexec.c (execute_csharp_using_pnet,
46698         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
46699         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
46700         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
46701         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
46702         is_jikes_present): Update.
46703         * lib/javaexec.c (execute_java_class): Update.
46704         * lib/javaversion.c (execute_and_read_line): Update.
46705         * NEWS: Document the changes.
46706         Reported by Eric Blake.
46707
46708 2008-06-10  Eric Blake  <ebb9@byu.net>
46709
46710         Add missing include.
46711         * tests/test-strstr.c (includes): Add <signal.h>.
46712         * tests/test-strcasestr.c (includes): Likewise.
46713         * tests/test-memmem.c (includes): Likewise.
46714
46715 2008-06-10  Bruno Haible  <bruno@clisp.org>
46716
46717         * lib/wait-process.c (wait_subprocess): Add an assertion.
46718
46719 2008-06-10  Bruno Haible  <bruno@clisp.org>
46720
46721         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
46722
46723 2008-06-10  Bruno Haible  <bruno@clisp.org>
46724
46725         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
46726         using alarm().
46727         * tests/test-strcasestr.c (main): Likewise.
46728         * tests/test-strstr.c (main): Likewise.
46729
46730 2008-06-09  Bruno Haible  <bruno@clisp.org>
46731
46732         Work around the Solaris 10 ACE ACLs ABI change.
46733         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
46734         declare if ACL_NO_TRIVIAL is present.
46735         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
46736         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
46737         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
46738         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
46739         define if ACL_NO_TRIVIAL is present.
46740         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
46741         and use the current ABI.
46742         (file_has_acl): Use same #if condition as elsewhere.
46743         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
46744         in use, and use the current ABI.
46745         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
46746         Reported by Jim Meyering.
46747
46748 2008-06-09  Eric Blake  <ebb9@byu.net>
46749
46750         Work around environments that (stupidly) ignore SIGALRM.
46751         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
46752         before using alarm().
46753         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46754         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46755         Reported by Ian Beckwith <ianb@erislabs.net>.
46756
46757         Produce autobuild blurb earlier in log.
46758         * modules/autobuild (configure.ac-early): Move AB_INIT here.
46759
46760 2008-06-09  Jim Meyering  <meyering@redhat.com>
46761         and OndÅ™ej Vašík  <ovasik@redhat.com>
46762
46763         utimens.c: correct kernel bug work-around
46764         OndÅ™ej Vašík found that the invalid return value of 280 indicates
46765         failure, not success, and the kernel bug we're trying to work
46766         around affects not just the utimensat call, but also the fallback
46767         futimens call.
46768         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
46769         not success.
46770         [HAVE_FUTIMENS]: Use the same work-around, here.
46771
46772 2008-06-09  Jim Meyering  <meyering@redhat.com>
46773
46774         add more guards around definition of ACE_-related code
46775         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
46776         ALLOW and ACE_OWNER are also defined.
46777
46778 2008-06-08  Bruno Haible  <bruno@clisp.org>
46779
46780         * lib/acl-internal.h: Add me as co-author.
46781         * lib/file-has-acl.c: Likewise.
46782         * lib/set-mode-acl.c: Likewise.
46783         * lib/copy-acl.c: Likewise.
46784
46785 2008-06-08  Bruno Haible  <bruno@clisp.org>
46786
46787         Add support for AIX ACLs.
46788         * lib/acl-internal.h (acl_nontrivial): New declaration.
46789         * lib/file-has-acl.c (acl_nontrivial): New function.
46790         (file_has_acl): Add implementation using AIX 4 ACL API.
46791         * lib/set-mode-acl.c (qset_acl): Likewise.
46792         * lib/copy-acl.c (qcopy_acl): Likewise.
46793
46794 2008-06-08  Bruno Haible  <bruno@clisp.org>
46795
46796         Add support for HP-UX ACLs.
46797         * lib/acl-internal.h (acl_nontrivial): New declaration.
46798         * lib/file-has-acl.c (acl_nontrivial): New function.
46799         (file_has_acl): Add implementation using HP-UX 11 ACL API.
46800         * lib/set-mode-acl.c (qset_acl): Likewise.
46801         * lib/copy-acl.c (qcopy_acl): Likewise.
46802
46803 2008-06-08  Bruno Haible  <bruno@clisp.org>
46804
46805         Add support for Cygwin ACLs.
46806         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
46807         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
46808         the chmod_or_fchmod call.
46809         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
46810
46811 2008-06-08  Bruno Haible  <bruno@clisp.org>
46812
46813         Fix bug with setuid modes in Solaris 10+ code.
46814         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
46815         succeeded, when the mode contains some special bits.
46816
46817 2008-06-08  Bruno Haible  <bruno@clisp.org>
46818
46819         Add support for Solaris 7..10 ACLs.
46820         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
46821         declarations.
46822         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
46823         functions.
46824         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
46825         * lib/set-mode-acl.c (qset_acl): Likewise.
46826         * lib/copy-acl.c (qcopy_acl): Likewise.
46827
46828 2008-06-08  Bruno Haible  <bruno@clisp.org>
46829
46830         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
46831         declaration.
46832         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
46833         (acl_access_nontrivial): Remove MacOS X case.
46834         (file_has_acl): Use acl_extended_nontrivial.
46835         * lib/copy-acl.c (qcopy_acl): Likewise.
46836
46837 2008-06-08  Bruno Haible  <bruno@clisp.org>
46838
46839         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
46840
46841 2008-06-08  Jim Meyering  <meyering@redhat.com>
46842
46843         * modules/acl (Maintainer): Add Bruno Haible.
46844
46845 2008-06-07  Bruno Haible  <bruno@clisp.org>
46846
46847         Improve support for Tru64 ACLs.
46848         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
46849         ACL on OSF/1.
46850
46851 2008-06-07  Bruno Haible  <bruno@clisp.org>
46852
46853         Add support for MacOS X ACLs.
46854         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
46855         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
46856         * lib/set-mode-acl.c (qset_acl): Likewise.
46857         * lib/copy-acl.c (qcopy_acl): Likewise.
46858
46859 2008-06-07  Bruno Haible  <bruno@clisp.org>
46860
46861         Fix memory leak introduced on 2008-05-22.
46862         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
46863         use.
46864
46865 2008-06-07  Bruno Haible  <bruno@clisp.org>
46866
46867         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
46868         to construct an empty ACL.
46869
46870 2008-06-07  Bruno Haible  <bruno@clisp.org>
46871
46872         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
46873         precisely.
46874         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
46875
46876 2008-06-07  Bruno Haible  <bruno@clisp.org>
46877
46878         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
46879         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
46880
46881 2008-06-07  Bruno Haible  <bruno@clisp.org>
46882
46883         * doc/posix-functions/_setjmp.texi: Explain the use of this function
46884         regardless of POSIX.
46885         * doc/posix-functions/_longjmp.texi: Likewise.
46886         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
46887         SystemV platform in this case.
46888
46889 2008-06-06  Eric Blake  <ebb9@byu.net>
46890
46891         Document abort() bugs.
46892         * doc/posix-functions/abort.texi (abort): Mention anomalies.
46893
46894         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
46895         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
46896         sigsetjmp.
46897         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
46898         siglongjmp, but only as a macro.
46899         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
46900         is obsolete.
46901         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
46902
46903         Tweak documentation to cover cygwin argz bugs.
46904         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
46905         argz bug fix; no code change needed since no cygwin releases
46906         occurred between the last fix and the bug being tested.
46907         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
46908         module and recently fixed cygwin bugs.
46909         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
46910         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
46911         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
46912         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
46913         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
46914         Likewise.
46915         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
46916         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
46917         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
46918         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
46919         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
46920         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
46921         Likewise.
46922
46923         Avoid gcc warning on cygwin.
46924         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
46925         !ACL_NO_TRIVIAL]: Avoid unused variable.
46926
46927 2008-06-05  Eric Blake  <ebb9@byu.net>
46928
46929         Be tolerant of UNKNOWN version in gnulib-tool test dir.
46930         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
46931         git-version-gen fails to come up with a version.
46932         Reported by Simon Josefsson.
46933
46934 2008-06-05  Jim Meyering  <meyering@redhat.com>
46935             Paul Eggert  <eggert@cs.ucla.edu>
46936
46937         utimens.c: work around a probable Linux kernel bug
46938         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
46939         appears to be a kernel bug that causes utimensat to return 280
46940         instead of 0, indicating success.
46941
46942 2008-06-04  Bruno Haible  <bruno@clisp.org>
46943
46944         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
46945         2008-06-01 commit.
46946
46947 2008-06-04  Bruno Haible  <bruno@clisp.org>
46948
46949         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
46950         * lib/file-has-acl.c (acl_access_nontrivial): New function.
46951         (file_has_acl): Use it. Save errno afterwards.
46952         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
46953
46954 2008-06-03  Bruno Haible  <bruno@clisp.org>
46955
46956         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
46957         draft code. Simplify #ifs.
46958         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
46959         Put Solaris code after POSIX-draft code. Fix comments regarding
46960         Solaris 10, HP-UX. Mention Cygwin.
46961         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
46962
46963 2008-06-03  Eric Blake  <ebb9@byu.net>
46964
46965         Provide fallback for older kernels.
46966         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
46967         Provide runtime fallback if kernel lacks support.
46968         Reported by Mike Frysinger.
46969
46970 2008-06-02  Bruno Haible  <bruno@clisp.org>
46971
46972         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
46973         it exists.
46974
46975 2008-06-02  Bruno Haible  <bruno@clisp.org>
46976
46977         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
46978         * lib/copy-acl.c (qcopy_acl): Update comment.
46979
46980 2008-06-02  Bruno Haible  <bruno@clisp.org>
46981
46982         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
46983         like ACL APIs.
46984
46985 2008-06-02  Bruno Haible  <bruno@clisp.org>
46986
46987         * tests/test-file-has-acl.sh: Use different code for Cygwin.
46988         * tests/test-set-mode-acl.sh: Likewise.
46989         * tests/test-copy-acl.sh: Likewise.
46990         * tests/test-copy-file.sh: Likewise.
46991
46992 2008-06-02  Bruno Haible  <bruno@clisp.org>
46993
46994         * tests/test-file-has-acl.sh: Remove unused code.
46995
46996 2008-06-01  Bruno Haible  <bruno@clisp.org>
46997
46998         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
46999         (copy_acl): Just a wrapper around qcopy_acl that emits the error
47000         messages.
47001         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
47002
47003 2008-06-01  Bruno Haible  <bruno@clisp.org>
47004
47005         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
47006         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
47007         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
47008         APIs.
47009         * modules/acl-tests (configure.ac): Remove tests now contained in
47010         m4/acl.m4.
47011
47012 2008-06-02  Jim Meyering  <meyering@redhat.com>
47013
47014         announce-gen: use a better key-server host name
47015         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
47016         it may be more consistently reliable.  Suggested by Werner Koch
47017         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
47018
47019 2008-06-01  Bruno Haible  <bruno@clisp.org>
47020
47021         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
47022         Reported by Voroskoi Andras <voroskoi@gmail.com>.
47023
47024 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
47025
47026         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
47027
47028 2008-06-01  Bruno Haible  <bruno@clisp.org>
47029
47030         New ACL tests.
47031         * tests/test-file-has-acl.sh: New file.
47032         * tests/test-file-has-acl.c: New file.
47033         * tests/test-set-mode-acl.sh: New file.
47034         * tests/test-set-mode-acl.c: New file.
47035         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
47036         * tests/test-copy-acl.c: New file.
47037         * modules/acl-tests: New file, based on modules/copy-file-tests.
47038         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
47039         (Depends-on): Add acl-tests.
47040         (configure.ac): Remove checks.
47041         (Makefile.am): Don't create test-sameacls program here any more.
47042
47043 2008-06-01  Bruno Haible  <bruno@clisp.org>
47044
47045         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
47046         * tests/test-sameacls.c: Include progname.h.
47047         (main): Invoke set_program_name. Portability fixes for MacOS X,
47048         Solaris, HP-UX.
47049
47050 2008-06-01  Bruno Haible  <bruno@clisp.org>
47051
47052         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
47053         function.
47054         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
47055
47056 2008-06-01  Bruno Haible  <bruno@clisp.org>
47057
47058         * modules/rpmatch (Depends-on): Add strdup.
47059
47060 2008-06-01  Bruno Haible  <bruno@clisp.org>
47061
47062         * lib/pipe.c: Include unistd-safer.h.
47063         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
47064         * modules/pipe (Depends-on): Add unistd-safer.
47065
47066 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47067
47068         * modules/autobuild (configure.ac): Call AB_INIT.
47069
47070 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47071
47072         * tests/test-getaddrinfo.c: Don't print debug messages by default.
47073         Suggested by Bruno Haible <bruno@clisp.org>.
47074
47075 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47076
47077         * tests/test-base64.c: Cast size_t to unsigned long when invoking
47078         printf.  Use %lu instead of %d.  Reported by Bruno Haible
47079         <bruno@clisp.org>.
47080
47081 2008-05-29  Eric Blake  <ebb9@byu.net>
47082
47083         Prefer new POSIX 200x interfaces over futimesat.
47084         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
47085         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
47086         when available.
47087         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
47088
47089 2008-05-28  Bruno Haible  <bruno@clisp.org>
47090
47091         * modules/stpcpy (License): Change to LGPLv2+.
47092         Requested by David Lutterkort <dlutter@redhat.com>.
47093
47094 2008-05-27  Bruno Haible  <bruno@clisp.org>
47095
47096         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
47097         current mingw.
47098         Reported by Jose E. Marchesi <jemarch@gnu.org>.
47099
47100 2008-05-27  Bruno Haible  <bruno@clisp.org>
47101
47102         * modules/iconv_open (Link): New section, from module 'iconv'.
47103         * modules/striconv (Link): Likewise.
47104         * modules/striconveh (Link): Likewise.
47105         * modules/xstriconv (Link): Likewise.
47106         * modules/unicodeio (Link): Likewise.
47107         * modules/propername (Link): Likewise.
47108         Reported by Jim Meyering.
47109
47110 2008-05-26  Jim Meyering  <meyering@redhat.com>
47111
47112         sha256: do not artificially restrict buffer length to be < 2^32
47113         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
47114         uint32_t to size_t.
47115         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
47116         to match.
47117
47118         avoid unaligned access errors, e.g., on sparc
47119         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
47120         direct access through a possibly-unaligned uint64* pointer.
47121         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
47122         direct access through a possibly-unaligned uint32* pointer.
47123         Prompted by this patch from Tom "spot" Callaway:
47124         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
47125
47126         sha512.c: fix typo in comment
47127         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
47128
47129 2008-05-25  Bruno Haible  <bruno@clisp.org>
47130
47131         * lib/set-mode-acl.c: Renamed from lib/acl.c.
47132         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
47133         (Makefile.am): Update lib_SOURCES.
47134
47135 2008-05-25  Bruno Haible  <bruno@clisp.org>
47136
47137         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
47138
47139 2008-05-25  Jim Meyering  <meyering@redhat.com>
47140
47141         useless-if-before-free: freed expr may have white-space differences
47142         * build-aux/useless-if-before-free: Recognize cases in which the
47143         freed expression differs from the tested one in embedded white
47144         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
47145         $1 was used, so we can't make any regexp shy.  Improved tests now
47146         detect this.
47147
47148         useless-if-before-free: accept white space in the expression.
47149         * build-aux/useless-if-before-free: For now, any white space
47150         in the expression must be identical in the free argument.
47151
47152         useless-if-before-free: efficiency tweak
47153         * build-aux/useless-if-before-free: Make the expression-matching
47154         regexp "shy".
47155         Make the *outer* regexp shy, not the expr-matching one.
47156
47157         update code-in-comment to accept cast of free arg
47158         * build-aux/useless-if-before-free: Update regexp.
47159
47160 2008-05-25  Bruno Haible  <bruno@clisp.org>
47161
47162         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
47163         * modules/copy-file-tests (Files, Makefile.am): Update.
47164         * tests/test-copy-file.c (func_test_copy): Update.
47165
47166 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
47167
47168         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
47169
47170 2008-05-23  Bruno Haible  <bruno@clisp.org>
47171
47172         Improve support for ACLs on OSF/1.
47173         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
47174         Remove fallback for unknown flavors of ACLs.
47175
47176 2008-05-22  Bruno Haible  <bruno@clisp.org>
47177
47178         Add support for ACLs on OSF/1.
47179         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
47180         replacements.
47181         (acl_free_text): New macro fallback.
47182         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
47183         acl_free.
47184         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
47185         acl_free_text function. Require AC_C_INLINE.
47186
47187 2008-05-22  Bruno Haible  <bruno@clisp.org>
47188
47189         Make copy_acl work on MacOS X 10.5.
47190         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
47191         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
47192         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
47193         If MODE_INSIDE_ACL, don't assume that every system has the same text
47194         representation for ACLs as FreeBSD.
47195         * lib/copy-acl.c (copy_acl): Add support for platforms with
47196         !MODE_INSIDE_ACL.
47197         * lib/file-has-acl.c (file_has_acl): Likewise.
47198         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
47199         FreeBSD, MacOS X, or IRIX, respectively.
47200
47201 2008-05-22  Bruno Haible  <bruno@clisp.org>
47202
47203         * lib/acl.h: Don't include <sys/acl.h>.
47204         (GETACLCNT): Move fallback to lib/acl-internal.h.
47205         * lib/acl-internal.h: Include <sys/acl.h> here.
47206         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
47207
47208 2008-05-22  Bruno Haible  <bruno@clisp.org>
47209
47210         Split off copy_acl function to separate file.
47211         * lib/copy-acl.c: New file, extracted from lib/acl.c.
47212         * lib/acl.c (copy_acl): Moved function to separate file.
47213         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
47214         * modules/acl (Files): Add lib/copy-acl.c.
47215         (Makefiles.am): Augment lib_SOURCES.
47216
47217 2008-05-22  Bruno Haible  <bruno@clisp.org>
47218
47219         * modules/copy-file-tests: New file.
47220         * tests/test-copy-file.sh: New file.
47221         * tests/test-copy-file.c: New file.
47222         * tests/test-copy-file-sameacls.c: New file.
47223
47224 2008-05-22  Eric Blake  <ebb9@byu.net>
47225
47226         Avoid gcc warning.
47227         * tests/test-memcmp.c (main): Pass NULL indirectly.
47228
47229 2008-05-21  Bruno Haible  <bruno@clisp.org>
47230
47231         Add reference doc about ACLs.
47232         * doc/acl-resources.txt: New file.
47233         * doc/acl-cygwin.txt: New file.
47234
47235 2008-05-21  Bruno Haible  <bruno@clisp.org>
47236
47237         Avoid one more warning from gcc.
47238         * lib/vasnprintf.c (IF_LINT): Update comments.
47239         (VASNPRINTF): Use it also for the 'prefix' array initializer.
47240
47241 2008-05-21  Jim Meyering  <meyering@redhat.com>
47242
47243         avoid a warning from gcc
47244         * lib/vasnprintf.c (IF_LINT): Define.
47245         (scale10_round_decimal_long_double):
47246         Use it to avoid a "may be used uninitialized" warning.
47247         (scale10_round_decimal_double): Likewise.
47248
47249 2008-05-21  Simon Josefsson  <simon@josefsson.org>
47250
47251         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
47252         declared.
47253
47254 2008-05-20  Bruno Haible  <bruno@clisp.org>
47255
47256         * tests/test-memcmp.c (main): Test also the sign of the result. Test
47257         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
47258
47259 2008-05-20  Simon Josefsson  <simon@josefsson.org>
47260
47261         * modules/memcmp-tests: New file.
47262         * tests/test-memcmp.c: New file.
47263
47264 2008-05-19  Bruno Haible  <bruno@clisp.org>
47265
47266         * modules/propername (Notice, configure.ac): Put quoted "..." into
47267         --keyword option.
47268         * lib/propername.h: Update comments accordingly.
47269         Reported by Eric Blake.
47270
47271 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
47272
47273         * modules/getpass-gnu (Depends-on): Add fseeko.
47274
47275 2008-05-19  Simon Josefsson  <simon@josefsson.org>
47276
47277         * modules/base64-tests: New file.
47278
47279 2008-05-19  Bo Borgerson <gigabo@gmail.com>
47280
47281         * lib/base64.c (base64_decode_ctx): If a decode context structure
47282         was passed in use it to ignore newlines.  If a context structure
47283         was _not_ passed in, continue to treat newlines as garbage (this
47284         is the historical behavior).  Formerly base64_decode.
47285         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
47286         takes a decode context structure.
47287         * lib/base64.h (base64_decode): Macro for four-argument calls.
47288         (base64_decode_alloc): Likewise.
47289         * lib/base64.c (base64_decode_ctx): If a decode context structure
47290         was passed in use it to ignore newlines.  If a context structure
47291         was _not_ passed in, continue to treat newlines as garbage (this
47292         is the historical behavior).  Formerly base64_decode.
47293         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
47294         takes a decode context structure.
47295         * lib/base64.h (base64_decode): Macro for four-argument calls.
47296         (base64_decode_alloc): Likewise.
47297
47298 2008-05-19  Jim Meyering  <meyering@redhat.com>
47299
47300         avoid a warning from gcc
47301         * lib/trim.c (IF_LINT): Define.
47302         (trim2): Use it to avoid a "may be used uninitialized" warning.
47303
47304         Fix doc typo.
47305         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
47306
47307 2008-05-19  Bruno Haible  <bruno@clisp.org>
47308
47309         * doc/glibc-functions/getpass.texi: Document limits of other
47310         implementations.
47311
47312 2008-05-19  Simon Josefsson  <simon@josefsson.org>
47313             Bruno Haible <bruno@clisp.org>
47314
47315         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
47316
47317 2008-05-18  Bruno Haible  <bruno@clisp.org>
47318
47319         * modules/propername: New file, from GNU gettext.
47320         * lib/propername.h: New file, from GNU gettext.
47321         * lib/propername.c: New file, from GNU gettext.
47322         * MODULES.html.sh (Internationalization functions): Add propername.
47323
47324 2008-05-16  Jim Meyering  <meyering@redhat.com>
47325             Bruno Haible  <bruno@clisp.org>
47326
47327         Avoid some warnings from "gcc -Wshadow".
47328         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
47329
47330 2008-05-15  Eric Blake  <ebb9@byu.net>
47331
47332         Extend previous patch to cygwin 1.7.0.
47333         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
47334         fast implementation in cygwin >= 1.7.0.
47335         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47336         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47337
47338 2008-05-15  Bruno Haible  <bruno@clisp.org>
47339
47340         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
47341         implementation in glibc >= 2.9.
47342         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47343         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47344
47345 2008-05-15  Bruno Haible  <bruno@clisp.org>
47346
47347         * MODULES.html.sh (Internationalization functions): Remove linebreak.
47348         (Unicode string functions): Add unilbrk/*.
47349         Reported by Karl Berry.
47350
47351 2008-05-15  Eric Blake  <ebb9@byu.net>
47352
47353         Fix violation of <stdbool.h> replacement in regex.
47354         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
47355         * lib/regexec.c (re_search_internal): Likewise.
47356         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
47357
47358 2008-05-15  Jim Meyering  <meyering@redhat.com>
47359
47360         avoid distracting test output when git or cvs is not found
47361         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
47362         * tests/test-vc-list-files-git.sh: Likewise.
47363
47364 2008-05-15  Eric Blake  <ebb9@byu.net>
47365
47366         Glibc finally accepted the memmem speedup code, bugzilla #5514.
47367         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
47368         glibc version.
47369         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47370         * doc/posix-functions/strstr.texi (strstr): Likewise.
47371         * lib/str-two-way.h (MAX): Sychronize with glibc.
47372
47373 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
47374
47375         * lib/regcomp.c (optimize_utf8): Add a note on why we test
47376         opr.ctx_type.
47377         (calc_first): Initialize constraint field.
47378         (duplicate_node_closure): Use it instead of special casing ANCHORS.
47379         Fix grammar.
47380         (duplicate_node): Merge constraint field for all node types.
47381         (calc_eclosure_iter): Look at constraint field for all node types.
47382         * lib/regex_internal.c (create_cd_newstate): Don't look at
47383         opr.ctx_type.
47384
47385 2008-05-14  Bruno Haible  <bruno@clisp.org>
47386
47387         Help GCC to do better code generation.
47388         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
47389         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
47390         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
47391         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
47392         Declare with attribute 'malloc' if supported.
47393
47394 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
47395
47396         use "echo STR|wc -c" rather than unportable "expr length STR"
47397         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
47398         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
47399
47400 2008-05-14  Jim Meyering  <meyering@redhat.com>
47401
47402         use dd ibs=$n count=1 ... rather than less-portable head -c$n
47403         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
47404         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
47405         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
47406         via Collin Lasse.
47407
47408 2008-05-14  Eric Blake  <ebb9@byu.net>
47409
47410         Avoid quadratic growth in gl_LIBSOURCES.
47411         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
47412         Suggested by Bruno Haible.
47413
47414         Test xmemdup0.
47415         * modules/xmemdup0-tests: New file.
47416         * tests/test-xmemdup0.c: Likewise.
47417
47418 2008-05-13  Eric Blake  <ebb9@byu.net>
47419
47420         Split xmemdup0 into its own module.
47421         * modules/xmemdup0: New file.
47422         * lib/xmemdup0.h: Likewise.
47423         * lib/xmemdup0.c: Likewise.
47424         * MODULES.html.sh (Memory management functions): Add xmemdup0.
47425         * lib/xalloc.h (xmemdup0): Remove.
47426         * lib/xmalloc.c (xmemdup0): Likewise.
47427
47428 2008-05-13  Eric Blake  <ebb9@byu.net>
47429             Bruno Haible  <bruno@clisp.org>
47430
47431         Reduce number of forks required during autoconf.
47432         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
47433         and gl_LIBSOURCES_DIR.
47434         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
47435         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
47436         m4_syscmd per file.
47437         <m4_foreach_w>: Move...
47438         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
47439
47440 2008-05-13  Eric Blake  <ebb9@byu.net>
47441
47442         * gnulib-tool: Fix various comment typos.
47443
47444 2008-05-12  Bruno Haible  <bruno@clisp.org>
47445
47446         Tailor the linebreaking algorithm.
47447         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
47448
47449 2008-05-12  Bruno Haible  <bruno@clisp.org>
47450
47451         Update to Unicode 5.0.0.
47452         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
47453         LBP_JV, LBP_JT. Redistribute values.
47454         (unilbrk_table): Change size.
47455         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
47456         Unicode TR#14 rev. 22.
47457         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
47458         LBP_JV, LBP_JT. Redistribute values.
47459         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
47460         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
47461         Update.
47462         * lib/unilbrk/lbrkprop1.h: Regenerated.
47463         * lib/unilbrk/lbrkprop2.h: Regenerated.
47464         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
47465         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
47466         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
47467         Likewise.
47468         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
47469         Likewise.
47470         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
47471         result.
47472         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
47473         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
47474         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
47475         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
47476         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
47477         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
47478
47479 2008-05-11  Bruno Haible  <bruno@clisp.org>
47480
47481         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
47482
47483 2008-05-11  Bruno Haible  <bruno@clisp.org>
47484
47485         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
47486         * modules/unilbrk/gen-lbrk: New file.
47487
47488 2008-05-11  Bruno Haible  <bruno@clisp.org>
47489
47490         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
47491         * m4/sha512.m4 (gl_SHA512): Likewise.
47492
47493 2008-05-11  Jim Meyering  <meyering@redhat.com>
47494
47495         New modules: crypto/sha256, crypto/sha512 (from coreutils)
47496         * modules/crypto/sha256: New file.
47497         * modules/crypto/sha512: Likewise.
47498         * lib/sha256.c: Likewise.
47499         * lib/sha256.h: Likewise.
47500         * lib/sha512.c: Likewise.
47501         * lib/sha512.h: Likewise.
47502         * lib/u64.h: Likewise.
47503         * m4/sha256.m4: Likewise.
47504         * m4/sha512.m4: Likewise.
47505         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
47506
47507 2008-05-10  Bruno Haible  <bruno@clisp.org>
47508
47509         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
47510         (Input/Output <stdio.h>): Add xprintf.
47511         (Signal handling <signal.h>): Add strsignal.
47512         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
47513         (Core language properties): Add func.
47514         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
47515         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
47516         strings.
47517         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
47518         (Input/output): New section.
47519         (File system functions): Add openat-die, stat-macros.
47520         (Networking functions): Add sockets.
47521         (Unicode string functions): Add unictype/*.
47522         (Support for building libraries and executables): Add gperf.
47523         (Support for building documentation): Add agpl-3.0.
47524         (Misc): Add nocrash.
47525
47526 2008-05-10  Bruno Haible  <bruno@clisp.org>
47527
47528         * modules/unictype/gen-ctype: New file.
47529
47530 2008-05-10  Jim Meyering  <meyering@redhat.com>
47531
47532         Make chdir-safer.c more efficient on a system with no symlinks.
47533         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
47534         also if ELOOP is zero.  Suggested by Bruno Haible.
47535
47536         Make chdir-safer.c slightly safer.
47537         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
47538         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
47539
47540         Avoid compile failure on systems without ELOOP (like mingw).
47541         * lib/chdir-safer.c (ELOOP): Define if not already defined.
47542         Reported by Bruno Haible.
47543
47544 2008-05-10  Bruno Haible  <bruno@clisp.org>
47545
47546         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
47547         (is_utf8_encoding): Use a case-insensitive comparison.
47548         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
47549         streq.
47550
47551 2008-05-10  Bruno Haible  <bruno@clisp.org>
47552
47553         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
47554         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
47555         * lib/unilbrk/ulc-common.h (iconv_string_length,
47556         iconv_string_keeping_offsets): Remove declarations.
47557         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
47558         Don't include <iconv.h>, streq.h, xsize.h.
47559         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
47560         conversion.
47561         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
47562         <iconv.h>, streq.h, xsize.h.
47563         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
47564         conversion.
47565         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
47566         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
47567         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
47568         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
47569
47570 2008-05-10  Bruno Haible  <bruno@clisp.org>
47571
47572         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
47573         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
47574
47575         * modules/unilbrk/u32-width-linebreaks-tests: New file.
47576         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
47577
47578         * modules/unilbrk/u16-width-linebreaks-tests: New file.
47579         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
47580
47581         * modules/unilbrk/u8-width-linebreaks-tests: New file.
47582         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
47583
47584         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
47585         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
47586
47587         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
47588         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
47589
47590         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
47591         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
47592
47593         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
47594         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
47595
47596 2008-05-10  Bruno Haible  <bruno@clisp.org>
47597
47598         Split up 'linebreak' module.
47599         * lib/unilbrk.h: New file, based on lib/linebreak.h.
47600         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
47601         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
47602         modifications.
47603         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
47604         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
47605         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
47606         lib/linebreak.c.
47607         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
47608         lib/linebreak.c.
47609         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
47610         lib/linebreak.c.
47611         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
47612         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
47613         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
47614         lib/linebreak.c.
47615         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
47616         lib/linebreak.c.
47617         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
47618         lib/linebreak.c.
47619         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
47620         lib/linebreak.c.
47621         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
47622         lib/linebreak.c.
47623         * modules/unilbrk/base: New file.
47624         * modules/unilbrk/tables: New file.
47625         * modules/unilbrk/u8-possible-linebreaks: New file.
47626         * modules/unilbrk/u16-possible-linebreaks: New file.
47627         * modules/unilbrk/u32-possible-linebreaks: New file.
47628         * modules/unilbrk/ulc-common: New file.
47629         * modules/unilbrk/ulc-possible-linebreaks: New file.
47630         * modules/unilbrk/u8-width-linebreaks: New file.
47631         * modules/unilbrk/u16-width-linebreaks: New file.
47632         * modules/unilbrk/u32-width-linebreaks: New file.
47633         * modules/unilbrk/ulc-width-linebreaks: New file.
47634         * lib/linebreak.h: Remove file.
47635         * lib/linebreak.c: Remove file.
47636         * m4/linebreak.m4: Remove file.
47637         * modules/linebreak: Remove file.
47638         * NEWS: Mention the changes.
47639
47640 2008-05-09  Eric Blake  <ebb9@byu.net>
47641
47642         Add xmemdup0.
47643         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
47644         implementation.
47645         * lib/xmalloc.c (xmemdup0): New C implementation.
47646
47647 2008-05-08  Bruno Haible  <bruno@clisp.org>
47648
47649         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
47650
47651 2008-05-07  Eric Blake  <ebb9@byu.net>
47652
47653         Support cross-compilation of <wctype.h>.
47654         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
47655         AC_CACHE_CHECK.
47656
47657 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
47658
47659         * build-aux/vc-list-files: Add support for bzr.
47660
47661 2008-05-03  Jim Meyering  <meyering@redhat.com>
47662
47663         avoid failed assertion with tight malloc
47664         * tests/test-getndelim2.c: Correct an off-by-one assertion.
47665
47666 2008-05-03  Simon Josefsson  <simon@josefsson.org>
47667
47668         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
47669         are needed from arpa/inet.h.
47670         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
47671         Reported by Bruno Haible.
47672
47673 2008-05-02  Jim Meyering  <meyering@redhat.com>
47674
47675         avoid compilation error on FreeBSD 6
47676         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
47677
47678 2008-05-01  Jim Meyering  <meyering@redhat.com>
47679
47680         useless-if-before-free: correct --help's exit status description
47681         * build-aux/useless-if-before-free (usage): Like grep, exit 0
47682         for one or more matches, etc.  Reported by Bruno Haible.
47683
47684         vc-list-files: make the stand-alone gnulib test work
47685         * modules/vc-list-files-tests (configure.ac):
47686         Define and AC_SUBST abs_aux_dir.
47687         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
47688         $(abs_top_srcdir) to each script and having each of them
47689         duplicate the work of setting PATH, set PATH here, using
47690         the new variable, abs_aux_dir instead.
47691         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
47692         * tests/test-vc-list-files-git.sh: Likewise.
47693         Reported by Bruno Haible.
47694
47695 2008-05-01  Bruno Haible  <bruno@clisp.org>
47696
47697         * lib/getndelim2.c (getndelim2): Fix newsize computation during
47698         reallocation. Rename 'done' to 'found_delimiter'.
47699
47700 2008-05-01  Jim Meyering  <meyering@redhat.com>
47701
47702         vc-list-files: accommodate /bin/sh like the one from Solaris 10
47703         * build-aux/vc-list-files: Use `...`, not $(...).
47704
47705 2008-04-30  Jim Meyering  <meyering@redhat.com>
47706
47707         add tests for vc-list-files
47708         * modules/vc-list-files-tests: New module.
47709         * tests/test-vc-list-files-cvs.sh: New file.
47710         * tests/test-vc-list-files-git.sh: New file.
47711
47712         avoid a warning from gcc
47713         * lib/getndelim2.c (IF_LINT): Define.
47714         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
47715
47716         vc-list-files: work properly with build-aux/cvsu, too
47717         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
47718         to all cvs-based clauses.
47719
47720         vc-list-files: work properly in the CVS+awk case, too
47721         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
47722
47723         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
47724         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
47725         take more than one file argument, so .  Add quotes, just in case $dir
47726         ever contains a shell meta-character.  Prompted by Soren Hansen in
47727         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
47728
47729 2008-04-29  Eric Blake  <ebb9@byu.net>
47730
47731         Optimize getndelim2 to use block operations when possible.
47732         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
47733         freadseek, and memchr2.
47734         * lib/getndelim2.c (getndelim2): Use them for block reads.
47735
47736 2008-04-29  Bruno Haible  <bruno@clisp.org>
47737
47738         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
47739         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47740         * modules/inet_ntop (Depends-on): Add extensions.
47741         * modules/inet_pton (Depends-on): Likewise.
47742         Reported by Simon Josefsson.
47743
47744 2008-04-29  Jim Meyering  <meyering@redhat.com>
47745
47746         When the is more than one match in a block, match all of them.
47747         * build-aux/useless-if-before-free: Iterate through each block
47748         until there are no more matches.
47749
47750         Fix broken useless-if-before-free script.
47751         * build-aux/useless-if-before-free: Fix typo: missing "?" after
47752         the expression to match cast of argument to free-like function.
47753
47754 2008-04-29  Eric Blake  <ebb9@byu.net>
47755
47756         Use new header.
47757         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
47758
47759 2008-04-29  Jim Meyering  <meyering@redhat.com>
47760
47761         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
47762         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
47763         by gnulib to exist and to declare e.g., inet_ntop.
47764         Don't include "inet_ntop.h", now removed.
47765
47766         * m4/arpa_inet_h.m4: Remove trailing blanks.
47767
47768 2008-04-29  Eric Blake  <ebb9@byu.net>
47769
47770         Silence valgrind on safe reads beyond potential array bounds.
47771         * lib/rawmemchr.valgrind: New file.
47772         * lib/strchrnul.valgrind: Likewise.
47773         * modules/rawmemchr (Files): Distribute new file.
47774         * modules/strchrnul (Files): Likewise.
47775         Suggested by Bruno Haible.
47776
47777 2008-04-29  Bruno Haible  <bruno@clisp.org>
47778
47779         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
47780         (inet_ntop, inet_pton): Change portability warning's wording.
47781         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
47782         Invoke gl_CHECK_NEXT_HEADERS.
47783         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
47784         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
47785         set ARPA_INET_H.
47786         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47787         * modules/arpa_inet (Description): No longer only for systems that
47788         lack it.
47789         (Depends-on): Add include_next.
47790         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
47791         HAVE_ARPA_INET_H.
47792
47793 2008-04-29  Jim Meyering  <meyering@redhat.com>
47794
47795         * modules/mkdir (License): Re-license as LGPLv2+.
47796
47797 2008-04-29  Bruno Haible  <bruno@clisp.org>
47798
47799         * modules/rawmemchr (Maintainer): Set to Eric.
47800         * modules/strchrnul (Maintainer): Likewise.
47801
47802 2008-04-29  Simon Josefsson  <simon@josefsson.org>
47803
47804         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
47805         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
47806
47807         * modules/arpa_inet (arpa/inet.h): Use them.
47808
47809 2008-04-28  Eric Blake  <ebb9@byu.net>
47810
47811         Test getndelim2.
47812         * modules/getndelim2-tests: New file.
47813         * tests/test-getndelim2.c: Likewise.
47814         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
47815         stream.
47816         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
47817
47818         * MODULES.html.sh: Document new module.
47819
47820 2008-04-20  Bruno Haible  <bruno@clisp.org>
47821
47822         * lib/c-stack.c (die): Use raise.
47823         * modules/c-stack (Depends-on): Add raise.
47824
47825 2008-04-28  Bruno Haible  <bruno@clisp.org>
47826
47827         Expect rpmatch to be declared.
47828         * lib/yesno.c (rpmatch): Remove declaration.
47829
47830         Declare rpmatch.
47831         * lib/stdlib.in.h (rpmatch): New declaration.
47832         * lib/rpmatch.c: Include <stdlib.h> first.
47833         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
47834         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
47835         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
47836         HAVE_RPMATCH.
47837         * modules/rpmatch (Depends-on): Add stdlib, extensions.
47838         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47839         (Include): Set to <stdlib.h>.
47840         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
47841         HAVE_RPMATCH.
47842         * NEWS: Document the change.
47843
47844 2008-04-28  Bruno Haible  <bruno@clisp.org>
47845
47846         Change rpmatch to use nl_langinfo when appropriate.
47847         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
47848         (N_): New macro.
47849         (localized_pattern): New function/macro.
47850         (try): Remove match, nomatch arguments. Copy the pattern into safe
47851         memory before caching it.
47852         (rpmatch): Use localized_pattern. Add translator comments.
47853         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
47854         Suggested by Eric Blake.
47855         * modules/rpmatch (Depends-on): Add stdbool.
47856
47857 2008-04-28  Eric Blake  <ebb9@byu.net>
47858
47859         Add rawmemchr module, matching glibc.
47860         * modules/string (Makefile.am): New indicator.
47861         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
47862         * lib/string.in.h (rawmemchr): Declare when appropriate.
47863         * modules/rawmemchr: New file.
47864         * m4/rawmemchr.m4: Likewise.
47865         * lib/rawmemchr.c: Likewise.
47866         * modules/rawmemchr-tests: Likewise.
47867         * tests/test-rawmemchr.c: Likewise.
47868         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
47869         module.
47870         * modules/strchrnul (Depends-on): Add rawmemchr.
47871         * lib/strchrnul.c (strchrnul): Optimize a corner case.
47872
47873         Whitespace cleanup.
47874         * tests/test-strchrnul.c: Reindent.
47875         * lib/strchrnul.c: Likewise.
47876
47877         Optimize and test strchrnul.
47878         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
47879         * modules/strchrnul-tests: New file.
47880         * tests/test-strchrnul.c: Likewise.
47881
47882         Remove intprops dependency.
47883         * modules/memchr (Depends-on): Remove intprops.
47884         * modules/memrchr (Depends-on): Likewise.
47885         * modules/memchr2 (Depends-on): Likewise.
47886         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
47887         * lib/memrchr.c (__memrchr): Likewise.
47888         * lib/memrchr2.c (memchr2): Likewise.
47889         Reported by Simon Josefsson.
47890
47891 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47892
47893         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
47894         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47895
47896 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47897
47898         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
47899
47900         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
47901
47902         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
47903
47904         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
47905         declarations.
47906         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
47907
47908         * m4/inet_pton.m4: Don't check for header files.
47909
47910         * m4/inet_ntop.m4: Don't check for header files.
47911
47912 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47913
47914         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
47915         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
47916         trigger for cygwin).
47917         Reported by Bruno Haible  <bruno@clisp.org>.
47918
47919 2008-04-28  Bruno Haible  <bruno@clisp.org>
47920
47921         * doc/posix-functions/strdup.texi: Mention mingw problem.
47922
47923 2008-04-27  Bruno Haible  <bruno@clisp.org>
47924
47925         * modules/stat-time-tests (Depends-on): Add sleep.
47926         * tests/test-stat-time.c (force_unlink): New function.
47927         (cleanup): Use it.
47928         (test_mtime): Remove the ctime related tests.
47929         (test_ctime): New function, containing the ctime related tests.
47930         (main): Call test_ctime, except on native Windows platforms.
47931
47932 2008-04-27  Bruno Haible  <bruno@clisp.org>
47933
47934         * lib/rpmatch.c (rpmatch): Add some comments.
47935         Reported by James Youngman <jay@gnu.org>.
47936
47937 2008-04-27  Bruno Haible  <bruno@clisp.org>
47938
47939         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
47940         quiet NaNs.
47941
47942 2008-04-27  Bruno Haible  <bruno@clisp.org>
47943
47944         Make test-yesno.sh work on mingw.
47945         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
47946         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
47947         (main): Set stdin to binary mode.
47948         * modules/yesno-tests (Depends-on): Add binary-io.
47949
47950 2008-04-27  Bruno Haible  <bruno@clisp.org>
47951
47952         Fix 'isfinite' on x86, x86_64, ia64 platforms.
47953         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
47954         argument that lie outside the IEEE 854 domain.
47955         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
47956         (gl_ISFINITE): Use it.
47957         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
47958
47959 2008-04-27  Bruno Haible  <bruno@clisp.org>
47960
47961         Allow local renaming in config.h.
47962         * lib/memrchr.c (memrchr): Don't undefine outside libc.
47963
47964 2008-04-27  Bruno Haible  <bruno@clisp.org>
47965
47966         * lib/memchr.c (__memchr): Change type of 'i'.
47967         * lib/memchr2.c (memchr2): Likewise.
47968
47969 2008-04-26  Eric Blake  <ebb9@byu.net>
47970         and Bruno Haible  <bruno@clisp.org>
47971
47972         Optimize and test memrchr.
47973         * modules/memrchr (Depends-on): Add intprops.
47974         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
47975         * modules/memrchr-tests: New file.
47976         * tests/test-memrchr.c: New file.
47977
47978 2008-04-26  Bruno Haible  <bruno@clisp.org>
47979
47980         Add tentative support for DragonFly BSD.
47981         * lib/stdio-impl.h: Add macros for DragonFly BSD.
47982         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
47983         fp.
47984         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
47985         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
47986         * lib/fpurge.c (fpurge): Likewise.
47987         * lib/freadable.c (freaadable): Likewise.
47988         * lib/freadahead.c (freadahead): Likewise.
47989         * lib/freading.c (freading): Likewise.
47990         * lib/freadptr.c (freadptr): Likewise.
47991         * lib/freadseek.c (freadptrinc): Likewise.
47992         * lib/fseeko.c (fseeko): Likewise.
47993         * lib/fseterr.c (fseterr): Likewise.
47994         * lib/fwritable.c (fwritable): Likewise.
47995         * lib/fwriting.c (fwriting): Likewise.
47996
47997 2008-04-26  Bruno Haible  <bruno@clisp.org>
47998
47999         * lib/stdio-impl.h: New file.
48000         * lib/fbufmode.c: Include stdio-impl.h.
48001         (fbufmode): Use fp_, remove redundant #defines.
48002         * lib/fflush.c: Include stdio-impl.h.
48003         (clear_ungetc_buffer): Remove redundant #defines.
48004         * lib/fpurge.c: Include stdio-impl.h.
48005         (fpurge): Remove redundant #defines.
48006         * lib/freadable.c: Include stdio-impl.h.
48007         (freadable): Remove redundant #defines.
48008         * lib/freadahead.c: Include stdio-impl.h.
48009         (freadahead): Remove redundant #defines.
48010         * lib/freading.c: Include stdio-impl.h.
48011         (freading): Remove redundant #defines.
48012         * lib/freadptr.c: Include stdio-impl.h.
48013         (freadptr): Remove redundant #defines.
48014         * lib/freadseek.c: Include stdio-impl.h.
48015         (freadptrinc): Remove redundant #defines.
48016         * lib/fseeko.c: Include stdio-impl.h.
48017         (rpl_fseeko): Remove redundant #defines.
48018         * lib/fseterr.c: Include stdio-impl.h.
48019         (fseterr): Remove redundant #defines.
48020         * lib/fwritable.c: Include stdio-impl.h.
48021         (fwritable: Remove redundant #defines.
48022         * lib/fwriting.c: Include stdio-impl.h.
48023         (fwriting): Remove redundant #defines.
48024         * modules/fbufmode (Files): Add lib/stdio-impl.h.
48025         * modules/fflush (Files): Likewise.
48026         * modules/fpurge (Files): Likewise.
48027         * modules/freadable (Files): Likewise.
48028         * modules/freadahead (Files): Likewise.
48029         * modules/freading (Files): Likewise.
48030         * modules/freadptr (Files): Likewise.
48031         * modules/freadseek (Files): Likewise.
48032         * modules/fseeko (Files): Likewise.
48033         * modules/fseterr (Files): Likewise.
48034         * modules/fwritable (Files): Likewise.
48035         * modules/fwriting (Files): Likewise.
48036
48037 2008-04-26  Bruno Haible  <bruno@clisp.org>
48038
48039         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48040         restore_seek_optimization, update_fpos_cache): New functions, extracted
48041         from rpl_fflush.
48042         (rpl_fflush): Use them.
48043         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
48044         (gl_REPLACE_FFLUSH): Use it.
48045
48046 2008-04-26  Bruno Haible  <bruno@clisp.org>
48047
48048         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
48049         on Solaris.
48050         * tests/test-xstrtoimax.sh: Likewise.
48051         * tests/test-xstrtoumax.sh: Likewise.
48052         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48053
48054 2008-04-26  Bruno Haible  <bruno@clisp.org>
48055
48056         * modules/memchr-tests: New file.
48057         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
48058
48059 2008-04-26  Eric Blake  <ebb9@byu.net>
48060             Bruno Haible  <bruno@clisp.org>
48061
48062         * lib/memchr.c: Include intprops.h.
48063         (__memchr): Optimize parallel detection of matching bytes. Rename local
48064         variables. Add explanatory comments.
48065
48066 2008-04-26  Bruno Haible  <bruno@clisp.org>
48067
48068         Fix module 'memchr', broken since 2000-10-28.
48069         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
48070
48071 2008-04-26  Bruno Haible  <bruno@clisp.org>
48072
48073         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
48074         comments.
48075
48076 2008-04-25  Eric Blake  <ebb9@byu.net>
48077
48078         Use native fstatat on cygwin 1.7.0.
48079         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
48080         first.
48081
48082 2008-04-23  Eric Blake  <ebb9@byu.net>
48083
48084         Improve memchr2 performance.
48085         * lib/memchr2.c (memchr2): Further optimize parallel detection of
48086         NUL bytes.
48087         * modules/memchr2 (Depends-on): Use intprops.h.
48088
48089 2008-04-23  Simon Josefsson  <simon@josefsson.org>
48090
48091         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
48092         an inline function instead of a CPP macro.  Patch by Ben Pfaff
48093         <blp@cs.stanford.edu>.
48094
48095 2008-04-23  Simon Josefsson  <simon@josefsson.org>
48096
48097         * lib/arpa_inet.in.h: New file.
48098
48099         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
48100         (Makefile.am): Sed in substitute header file.
48101
48102         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
48103         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
48104
48105         * modules/inet_ntop (configure.ac): Use
48106         gl_ARPA_INET_MODULE_INDICATOR.
48107
48108         * modules/inet_pton (configure.ac): Use
48109         gl_ARPA_INET_MODULE_INDICATOR.
48110
48111 2008-04-22  Jim Meyering  <meyering@redhat.com>
48112
48113         * modules/verify (License): Re-license as LGPLv2+.
48114
48115 2008-04-22  Simon Josefsson  <simon@josefsson.org>
48116
48117         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
48118         parameter to void* as per POSIX standard (MinGW uses char*).
48119
48120 2008-04-21  Bruno Haible  <bruno@clisp.org>
48121
48122         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
48123         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
48124         Define to replacements if REPLACE_ISWCNTRL is 1.
48125         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
48126         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
48127         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
48128         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
48129         what it fixes.
48130         * doc/posix-functions/iswalpha.texi: Likewise.
48131         * doc/posix-functions/iswblank.texi: Likewise.
48132         * doc/posix-functions/iswcntrl.texi: Likewise.
48133         * doc/posix-functions/iswdigit.texi: Likewise.
48134         * doc/posix-functions/iswgraph.texi: Likewise.
48135         * doc/posix-functions/iswlower.texi: Likewise.
48136         * doc/posix-functions/iswprint.texi: Likewise.
48137         * doc/posix-functions/iswpunct.texi: Likewise.
48138         * doc/posix-functions/iswspace.texi: Likewise.
48139         * doc/posix-functions/iswupper.texi: Likewise.
48140         * doc/posix-functions/iswxdigit.texi: Likewise.
48141         Reported by Alain Guibert.
48142
48143 2008-04-21  Bruno Haible  <bruno@clisp.org>
48144
48145         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
48146         Patch by Alain Guibert.
48147
48148 2008-04-21  Bruno Haible  <bruno@clisp.org>
48149
48150         Fix test failures on mingw.
48151         * tests/test-xstrtol.c (print_no_progname): New function.
48152         (main): Install it in error_print_progname hook.
48153         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
48154         * tests/test-xstrtoimax.sh: Likewise.
48155         * tests/test-xstrtoumax.sh: Likewise.
48156
48157 2008-04-21  Bruno Haible  <bruno@clisp.org>
48158
48159         Fix test failure on mingw.
48160         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
48161
48162 2008-04-21  Bruno Haible  <bruno@clisp.org>
48163
48164         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
48165         Actually assign a value.
48166
48167 2008-04-20  Bruno Haible  <bruno@clisp.org>
48168
48169         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
48170         take 2.
48171         * lib/canonicalize.c (canonicalize_file_name): Elide if the
48172         'canonicalize-lgpl' module is also used.
48173         * lib/canonicalize-lgpl.c: Undo last change.
48174         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
48175
48176 2008-04-20  Bruno Haible  <bruno@clisp.org>
48177
48178         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
48179         config.h. Provide _mkdir based fallback for mingw.
48180         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
48181         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
48182         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
48183         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
48184         rather than defining mkdir in config.h.
48185         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
48186         (gl_SYS_STAT_H_DEFAULTS): New macro.
48187         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
48188         HAVE_IO_H any more.
48189         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
48190         HAVE_DECL_MKDIR and HAVE_IO_H.
48191
48192 2008-04-20  Bruno Haible  <bruno@clisp.org>
48193
48194         * lib/isapipe.c: Port to native Windows platforms.
48195
48196 2008-04-20  Bruno Haible  <bruno@clisp.org>
48197
48198         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
48199
48200 2008-04-21  Eric Blake  <ebb9@byu.net>
48201
48202         Work around preprocessors that don't handle UINTMAX_MAX.
48203         * lib/memchr2.c (memchr2): Avoid embedded #if.
48204         Reported by Alain Guibert, fix suggested by Bruno Haible.
48205
48206 2008-04-21  Simon Josefsson  <simon@josefsson.org>
48207
48208         * doc/posix-functions/strftime.texi (strftime): Explain better
48209         Windows incompatibility.  Suggested by Micah Cowan
48210         <micah@cowan.name>.
48211
48212 2008-04-20  Bruno Haible  <bruno@clisp.org>
48213
48214         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
48215         unistr/u8-mblen.
48216
48217 2008-04-20  Bruno Haible  <bruno@clisp.org>
48218
48219         Fix test failure on platforms with non-GNU iconv.
48220         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
48221         (U_TO_U8): Use it, rather than u16_to_u8.
48222         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
48223         units at the end of the input string.
48224         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
48225
48226 2008-04-20  Bruno Haible  <bruno@clisp.org>
48227
48228         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
48229         when the resulting length is 0.
48230         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
48231
48232 2008-04-20  Bruno Haible  <bruno@clisp.org>
48233
48234         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
48235         works.
48236         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
48237
48238 2008-04-20  Bruno Haible  <bruno@clisp.org>
48239
48240         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
48241         * modules/tsearch-tests (configure.ac): Test for initstate function.
48242
48243 2008-04-20  Bruno Haible  <bruno@clisp.org>
48244
48245         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
48246         for nlink_t if missing.
48247         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
48248
48249 2008-04-19  Bruno Haible  <bruno@clisp.org>
48250
48251         Work around snprintf bug on Linux libc5.
48252         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
48253         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48254         gl_SNPRINTF_SIZE1.
48255         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48256         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
48257         that test failed.
48258         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
48259         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
48260         * modules/snprintf (Files): Add m4/printf.m4.
48261         * modules/vsnprintf (Files): Likewise.
48262         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
48263         * doc/posix-functions/vsnprintf.texi: Likewise.
48264
48265 2008-04-19  Bruno Haible  <bruno@clisp.org>
48266
48267         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
48268         from 0.0058 to less than 10^-7.
48269
48270 2008-04-19  Bruno Haible  <bruno@clisp.org>
48271
48272         Fix rounding when a precision is given.
48273         * lib/vasnprintf.c (is_borderline): New function.
48274         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
48275         9...9x.
48276         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
48277         %e, %g.
48278         * tests/test-vasprintf-posix.c (test_function): Likewise.
48279         * tests/test-snprintf-posix.h (test_function): Likewise.
48280         * tests/test-sprintf-posix.h (test_function): Likewise.
48281         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
48282         * tests/test-printf-posix.h (test_function): Likewise.
48283         * tests/test-printf-posix.output: Update.
48284         Reported by John Darrington <john@darrington.wattle.id.au> via
48285         Ben Pfaff <blp@cs.stanford.edu>.
48286
48287 2008-04-18  Simon Josefsson  <simon@josefsson.org>
48288
48289         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
48290         Suggested by Bruno Haible <bruno@clisp.org>.
48291
48292 2008-04-17  Bruno Haible  <bruno@clisp.org>
48293
48294         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
48295         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
48296         implementation.
48297         Patch by Bruce Merry <bmerry@gmail.com>.
48298
48299 2008-04-17  Simon Josefsson  <simon@josefsson.org>
48300
48301         * doc/posix-functions/strftime.texi (strftime): Mention that %e
48302         doesn't work under Windows.
48303
48304 2008-04-16  Bruno Haible  <bruno@clisp.org>
48305
48306         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
48307         New macros.
48308         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
48309         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
48310         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
48311         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
48312         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
48313         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
48314         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
48315         macros.
48316         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
48317         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
48318         Northern Sotho, Uighur.
48319
48320 2008-04-16  Bruno Haible  <bruno@clisp.org>
48321
48322         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
48323         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
48324         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
48325         Reported by Daniel Bergström <daniel@octocode.com>.
48326
48327 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
48328             Bruno Haible  <bruno@clisp.org>
48329
48330         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
48331         function.
48332         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
48333         New functions, mostly extracted from gl_locale_name_default.
48334         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
48335
48336 2008-04-16  Eric Blake  <ebb9@byu.net>
48337
48338         Adjust strtod detection to catch glibc 2.7 bug.
48339         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
48340         Reported by John Gatewood Ham.
48341
48342 2008-04-16  Bruno Haible  <bruno@clisp.org>
48343
48344         Add tentative support for Linux libc5.
48345         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
48346         * lib/fpurge.c (fpurge): Likewise.
48347         * lib/freadable.c (freadable): Likewise.
48348         * lib/freadahead.c (freadahead): Likewise.
48349         * lib/freading.c (freading): Likewise.
48350         * lib/freadptr.c (freadptr): Likewise.
48351         * lib/freadseek.c (freadptrinc): Likewise.
48352         * lib/fseeko.c (rpl_fseeko): Likewise.
48353         * lib/fseterr.c (fseterr): Likewise.
48354         * lib/fwritable.c (fwritable): Likewise.
48355         * lib/fwriting.c (fwriting): Likewise.
48356         Reported by Alain Guibert <alguibert+bts@free.fr>.
48357
48358 2008-04-15  Bruno Haible  <bruno@clisp.org>
48359
48360         * modules/mathl (configure.ac): Define module indicator.
48361
48362 2008-04-15  Bruno Haible  <bruno@clisp.org>
48363
48364         * lib/logl.c (logl): Remove unused variables.
48365
48366 2008-04-15  Bruno Haible  <bruno@clisp.org>
48367
48368         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
48369         fails.
48370
48371 2008-04-15  Bruno Haible  <bruno@clisp.org>
48372
48373         * lib/trim.c (trim2): Fix argument of isspace() macro.
48374
48375 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
48376
48377         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
48378         to 0.
48379         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
48380
48381 2008-04-14  Bruno Haible  <bruno@clisp.org>
48382
48383         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
48384         AC_LANG_PROGRAM argument.
48385         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
48386         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
48387         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
48388         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
48389         * m4/math_h.m4 (gl_MATH_H): Likewise.
48390         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
48391         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48392         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
48393         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
48394         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
48395         * m4/regex.m4 (gl_REGEX): Likewise.
48396         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
48397         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
48398         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48399         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
48400         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48401         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48402         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48403         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
48404
48405 2008-04-14  Jim Meyering  <meyering@redhat.com>
48406
48407         test-strtod: fix typos: s/abs/fabs/
48408         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
48409
48410 2008-04-13  Bruno Haible  <bruno@clisp.org>
48411
48412         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
48413         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
48414         module is also used and while not building the reloc-wrapper.
48415
48416 2008-04-13  Bruno Haible  <bruno@clisp.org>
48417
48418         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
48419
48420 2008-04-13  Bruno Haible  <bruno@clisp.org>
48421
48422         Fix AIX compilation failure introduced on 2008-04-02.
48423         * tests/test-frexp.c (exp): Undefine before redefining.
48424         * tests/test-frexpl.c (exp): Likewise.
48425
48426 2008-04-13  Bruno Haible  <bruno@clisp.org>
48427
48428         Work around a HP-UX stdio bug.
48429         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
48430         * tests/test-ftello.c (main): Likewise.
48431         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
48432         * doc/posix-functions/ftello.texi: Likewise.
48433
48434 2008-04-13  Bruno Haible  <bruno@clisp.org>
48435
48436         Make test-signbit pass on HP-UX/hppa.
48437         * tests/test-signbit.c (minus_zerol): New variable.
48438         (test_signbitl): Use it.
48439
48440 2008-04-13  Bruno Haible  <bruno@clisp.org>
48441
48442         Make truncl work on OSF/1 4.0.
48443         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
48444         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
48445         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
48446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
48447         HAVE_DECL_TRUNCL.
48448         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
48449         HAVE_DECL_TRUNCL.
48450         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
48451
48452 2008-04-13  Bruno Haible  <bruno@clisp.org>
48453
48454         * lib/unictype.h: Remove trailing comma from enumeration definitions.
48455
48456 2008-04-13  Bruno Haible  <bruno@clisp.org>
48457
48458         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
48459         expression, so as to avoid HP-UX 11 cc compiler bug.
48460
48461 2008-04-13  Bruno Haible  <bruno@clisp.org>
48462
48463         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
48464
48465 2008-04-13  Bruno Haible  <bruno@clisp.org>
48466
48467         * lib/git-merge-changelog.c: Remove empty declaration outside of
48468         functions.
48469
48470 2008-04-13  Bruno Haible  <bruno@clisp.org>
48471
48472         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
48473
48474 2008-04-13  Bruno Haible  <bruno@clisp.org>
48475
48476         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
48477         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
48478         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
48479         also if it exists but lacks definitions of the SHUT_* macros.
48480         * modules/sys_socket (Description): Update.
48481         Reported by Elbert Pol <e.pol@chello.nl>.
48482
48483 2008-04-13  Bruno Haible  <bruno@clisp.org>
48484
48485         * lib/localcharset.c (OS2): Don't redefine if already defined.
48486         Reported by Elbert Pol <e.pol@chello.nl>.
48487
48488 2008-04-13  Bruno Haible  <bruno@clisp.org>
48489
48490         * lib/binary-io.h [__EMX__]: Include <io.h>.
48491         Reported by Elbert Pol <e.pol@chello.nl>.
48492
48493 2008-04-12  Bruno Haible  <bruno@clisp.org>
48494
48495         * lib/fpucw.h: Enable the definitions also for x86_64.
48496         Needed for NetBSD/x86_64.
48497         Reported by Thomas Klausner <tk@giga.or.at>.
48498
48499 2008-04-12  Bruno Haible  <bruno@clisp.org>
48500
48501         * tests/test-strtod.c: Include isnand.h.
48502         (main): Use isnand instead of isnan.
48503         Reported by Jim Meyering.
48504
48505 2008-04-12  Bruno Haible  <bruno@clisp.org>
48506
48507         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
48508         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
48509
48510 2008-04-12  Jim Meyering  <meyering@redhat.com>
48511
48512         * m4/math_h.m4 (gl_MATH_H): Fix typos.
48513
48514 2008-04-12  Bruno Haible  <bruno@clisp.org>
48515
48516         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
48517         Reported by Elbert Pol <e.pol@chello.nl>.
48518
48519 2008-04-12  Eric Blake  <ebb9@byu.net>
48520
48521         Work around Solaris 10 math.h bug.
48522         * m4/math_h.m4 (gl_MATH_H): Check for bug.
48523         (gl_MATH_H_DEFAULTS): Set up default.
48524         * modules/math (Makefile.am): Replace new indicators.
48525         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
48526         * tests/test-math.c (main): Test this.
48527         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
48528         * doc/posix-headers/math.texi (math.h): Mention bug.
48529         Reported by Nelson H. F. Beebe and Jim Meyering.
48530
48531 2008-04-11  Bruno Haible  <bruno@clisp.org>
48532
48533         Adapt to future versions of Apple GCC.
48534         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
48535         Reported by Peter O'Gorman <peter@pogma.com>.
48536
48537 2008-04-11  Bruno Haible  <bruno@clisp.org>
48538
48539         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
48540
48541 2008-04-11  Bruno Haible  <bruno@clisp.org>
48542
48543         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
48544
48545         * modules/getaddrinfo-tests (Makefile.am): Define
48546         test_getaddrinfo_LDADD.
48547
48548 2008-04-11  Bruno Haible  <bruno@clisp.org>
48549
48550         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
48551         (init): Fix syntax error.
48552         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
48553         is declared.
48554
48555 2008-04-11  Bruno Haible  <bruno@clisp.org>
48556
48557         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
48558         * modules/glob (Depends-on): Add stdbool.
48559
48560 2008-04-11  Bruno Haible  <bruno@clisp.org>
48561
48562         * lib/trim.c: Include <string.h>.
48563
48564 2008-04-11  Eric Blake  <ebb9@byu.net>
48565
48566         Avoid compile failure on OS/2.
48567         * lib/regex_internal.h (internal_function): Disable optimization
48568         on OS/2 (__EMX__), where it caused compiler error.
48569         Reported by Elbert Pol.
48570
48571 2008-04-11  Bruno Haible  <bruno@clisp.org>
48572
48573         Flush the standard error stream before aborting. Needed on mingw.
48574         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
48575         * tests/test-array_list.c (ASSERT): Likewise.
48576         * tests/test-array_oset.c (ASSERT): Likewise.
48577         * tests/test-avltree_list.c (ASSERT): Likewise.
48578         * tests/test-avltree_oset.c (ASSERT): Likewise.
48579         * tests/test-avltreehash_list.c (ASSERT): Likewise.
48580         * tests/test-binary-io.c (ASSERT): Likewise.
48581         * tests/test-byteswap.c (ASSERT): Likewise.
48582         * tests/test-c-ctype.c (ASSERT): Likewise.
48583         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
48584         * tests/test-c-strcasestr.c (ASSERT): Likewise.
48585         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
48586         * tests/test-c-strstr.c (ASSERT): Likewise.
48587         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
48588         * tests/test-canonicalize.c (ASSERT): Likewise.
48589         * tests/test-carray_list.c (ASSERT): Likewise.
48590         * tests/test-ceilf1.c (ASSERT): Likewise.
48591         * tests/test-ceilf2.c (ASSERT): Likewise.
48592         * tests/test-ceill.c (ASSERT): Likewise.
48593         * tests/test-count-one-bits.c (ASSERT): Likewise.
48594         * tests/test-fbufmode.c (ASSERT): Likewise.
48595         * tests/test-fflush2.c (ASSERT): Likewise.
48596         * tests/test-floorf1.c (ASSERT): Likewise.
48597         * tests/test-floorf2.c (ASSERT): Likewise.
48598         * tests/test-floorl.c (ASSERT): Likewise.
48599         * tests/test-fopen.c (ASSERT): Likewise.
48600         * tests/test-fpending.c (ASSERT): Likewise.
48601         * tests/test-fprintf-posix.c (ASSERT): Likewise.
48602         * tests/test-fpurge.c (ASSERT): Likewise.
48603         * tests/test-freadable.c (ASSERT): Likewise.
48604         * tests/test-freadahead.c (ASSERT): Likewise.
48605         * tests/test-freading.c (ASSERT): Likewise.
48606         * tests/test-freadptr.c (ASSERT): Likewise.
48607         * tests/test-freadptr2.c (ASSERT): Likewise.
48608         * tests/test-freadseek.c (ASSERT): Likewise.
48609         * tests/test-freopen.c (ASSERT): Likewise.
48610         * tests/test-frexp.c (ASSERT): Likewise.
48611         * tests/test-frexpl.c (ASSERT): Likewise.
48612         * tests/test-fseek.c (ASSERT): Likewise.
48613         * tests/test-fseeko.c (ASSERT): Likewise.
48614         * tests/test-fstrcmp.c (ASSERT): Likewise.
48615         * tests/test-ftell.c (ASSERT): Likewise.
48616         * tests/test-ftello.c (ASSERT): Likewise.
48617         * tests/test-func.c (ASSERT): Likewise.
48618         * tests/test-fwritable.c (ASSERT): Likewise.
48619         * tests/test-fwriting.c (ASSERT): Likewise.
48620         * tests/test-getdelim.c (ASSERT): Likewise.
48621         * tests/test-getline.c (ASSERT): Likewise.
48622         * tests/test-i-ring.c (ASSERT): Likewise.
48623         * tests/test-iconv-utf.c (ASSERT): Likewise.
48624         * tests/test-iconv.c (ASSERT): Likewise.
48625         * tests/test-isfinite.c (ASSERT): Likewise.
48626         * tests/test-isnand.c (ASSERT): Likewise.
48627         * tests/test-isnanf.c (ASSERT): Likewise.
48628         * tests/test-isnanl.h (ASSERT): Likewise.
48629         * tests/test-ldexpl.c (ASSERT): Likewise.
48630         * tests/test-linked_list.c (ASSERT): Likewise.
48631         * tests/test-linkedhash_list.c (ASSERT): Likewise.
48632         * tests/test-localename.c (ASSERT): Likewise.
48633         * tests/test-lseek.c (ASSERT): Likewise.
48634         * tests/test-mbscasecmp.c (ASSERT): Likewise.
48635         * tests/test-mbscasestr1.c (ASSERT): Likewise.
48636         * tests/test-mbscasestr2.c (ASSERT): Likewise.
48637         * tests/test-mbscasestr3.c (ASSERT): Likewise.
48638         * tests/test-mbscasestr4.c (ASSERT): Likewise.
48639         * tests/test-mbschr.c (ASSERT): Likewise.
48640         * tests/test-mbscspn.c (ASSERT): Likewise.
48641         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
48642         * tests/test-mbspbrk.c (ASSERT): Likewise.
48643         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
48644         * tests/test-mbsrchr.c (ASSERT): Likewise.
48645         * tests/test-mbsspn.c (ASSERT): Likewise.
48646         * tests/test-mbsstr1.c (ASSERT): Likewise.
48647         * tests/test-mbsstr2.c (ASSERT): Likewise.
48648         * tests/test-mbsstr3.c (ASSERT): Likewise.
48649         * tests/test-memchr2.c (ASSERT): Likewise.
48650         * tests/test-memmem.c (ASSERT): Likewise.
48651         * tests/test-open.c (ASSERT): Likewise.
48652         * tests/test-printf-frexp.c (ASSERT): Likewise.
48653         * tests/test-printf-frexpl.c (ASSERT): Likewise.
48654         * tests/test-printf-posix.c (ASSERT): Likewise.
48655         * tests/test-quotearg.c (ASSERT): Likewise.
48656         * tests/test-rbtree_list.c (ASSERT): Likewise.
48657         * tests/test-rbtree_oset.c (ASSERT): Likewise.
48658         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
48659         * tests/test-round1.c (ASSERT): Likewise.
48660         * tests/test-roundf1.c (ASSERT): Likewise.
48661         * tests/test-roundl.c (ASSERT): Likewise.
48662         * tests/test-signbit.c (ASSERT): Likewise.
48663         * tests/test-sleep.c (ASSERT): Likewise.
48664         * tests/test-snprintf-posix.c (ASSERT): Likewise.
48665         * tests/test-snprintf.c (ASSERT): Likewise.
48666         * tests/test-sprintf-posix.c (ASSERT): Likewise.
48667         * tests/test-stat-time.c (ASSERT): Likewise.
48668         * tests/test-strcasestr.c (ASSERT): Likewise.
48669         * tests/test-strerror.c (ASSERT): Likewise.
48670         * tests/test-striconv.c (ASSERT): Likewise.
48671         * tests/test-striconveh.c (ASSERT): Likewise.
48672         * tests/test-striconveha.c (ASSERT): Likewise.
48673         * tests/test-strsignal.c (ASSERT): Likewise.
48674         * tests/test-strstr.c (ASSERT): Likewise.
48675         * tests/test-strtod.c (ASSERT): Likewise.
48676         * tests/test-trunc1.c (ASSERT): Likewise.
48677         * tests/test-trunc2.c (ASSERT): Likewise.
48678         * tests/test-truncf1.c (ASSERT): Likewise.
48679         * tests/test-truncf2.c (ASSERT): Likewise.
48680         * tests/test-truncl.c (ASSERT): Likewise.
48681         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
48682         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
48683         * tests/test-vasnprintf.c (ASSERT): Likewise.
48684         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
48685         * tests/test-vasprintf.c (ASSERT): Likewise.
48686         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
48687         * tests/test-vprintf-posix.c (ASSERT): Likewise.
48688         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
48689         * tests/test-vsnprintf.c (ASSERT): Likewise.
48690         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
48691         * tests/test-wcwidth.c (ASSERT): Likewise.
48692         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
48693         * tests/test-xprintf-posix.c (ASSERT): Likewise.
48694         * tests/test-xvasprintf.c (ASSERT): Likewise.
48695         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
48696         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
48697         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
48698         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
48699         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
48700         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
48701         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
48702         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
48703         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
48704         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
48705         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
48706         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
48707         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
48708         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
48709         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
48710         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
48711         * tests/unictype/test-block_list.c (ASSERT): Likewise.
48712         * tests/unictype/test-block_of.c (ASSERT): Likewise.
48713         * tests/unictype/test-block_test.c (ASSERT): Likewise.
48714         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
48715         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
48716         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
48717         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
48718         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
48719         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
48720         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
48721         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
48722         * tests/unictype/test-combining.c (ASSERT): Likewise.
48723         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
48724         * tests/unictype/test-digit.c (ASSERT): Likewise.
48725         * tests/unictype/test-mirror.c (ASSERT): Likewise.
48726         * tests/unictype/test-numeric.c (ASSERT): Likewise.
48727         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
48728         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
48729         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
48730         * tests/unictype/test-scripts.c (ASSERT): Likewise.
48731         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
48732         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
48733         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
48734         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
48735         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
48736         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
48737         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
48738         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
48739         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
48740         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
48741         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
48742         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
48743         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
48744         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
48745         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
48746         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
48747         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
48748         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
48749         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
48750         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
48751         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
48752         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
48753         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
48754         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
48755         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
48756         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
48757         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
48758         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
48759         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
48760         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
48761         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
48762         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
48763         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
48764         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
48765         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
48766         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
48767         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
48768         Reported by Eric Blake.
48769
48770 2008-04-11  Bruno Haible  <bruno@clisp.org>
48771
48772         * lib/wchar.in.h: Tweak comment.
48773
48774 2008-04-11  Bruno Haible  <bruno@clisp.org>
48775
48776         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
48777         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
48778         gl_COMMON.
48779         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
48780
48781 2008-04-11  Bruno Haible  <bruno@clisp.org>
48782
48783         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
48784
48785 2008-04-11  Simon Josefsson  <simon@josefsson.org>
48786
48787         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
48788         of attempting to use non-existing /dev/*random.  Based on patch
48789         from Adam Strzelecki <ono@java.pl> in
48790         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
48791
48792 2008-04-08  Bruno Haible  <bruno@clisp.org>
48793
48794         Add tentative support for emx+gcc.
48795         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
48796         * lib/fpurge.c (fpurge): Likewise.
48797         * lib/freadable.c (freadable): Likewise.
48798         * lib/freadahead.c (freadahead): Likewise.
48799         * lib/freading.c (freading): Likewise.
48800         * lib/freadptr.c (freadptr): Likewise.
48801         * lib/freadseek.c (freadptrinc): Likewise.
48802         * lib/fseeko.c (rpl_fseeko): Likewise.
48803         * lib/fseterr.c (fseterr): Likewise.
48804         * lib/fwritable.c (fwritable): Likewise.
48805         * lib/fwriting.c (fwriting): Likewise.
48806         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
48807
48808 2008-04-09  Eric Blake  <ebb9@byu.net>
48809
48810         Avoid some autoconf warnings.
48811         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
48812         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
48813         * m4/afs.m4 (gl_AFS): Likewise.
48814         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
48815         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
48816         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48817         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
48818         (gl_INTEGER_TYPE_SUFFIX): Likewise.
48819         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
48820         (AC_CHECK_DECLS_ONCE): Likewise.
48821         Rename file...
48822         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
48823         gnulib-tool requires autoconf 2.59 or better.
48824         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
48825
48826 2008-04-08  Eric Blake  <ebb9@byu.net>
48827
48828         Use 'git describe --match' if present (added in git 1.5.5).
48829         * build-aux/git-version-gen: Limit result to tags that match 'v*'
48830         if possible.
48831
48832 2008-04-08  Bruno Haible  <bruno@clisp.org>
48833
48834         Add tentative support for OpenServer.
48835         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
48836         _ptr, _cnt.
48837         * lib/fpurge.c (fpurge): Likewise.
48838         * lib/freadable.c (freadable): Likewise.
48839         * lib/freadahead.c (freadahead): Likewise.
48840         * lib/freading.c (freading): Likewise.
48841         * lib/freadptr.c (freadptr): Likewise.
48842         * lib/freadseek.c (freadptrinc): Likewise.
48843         * lib/fseeko.c (rpl_fseeko): Likewise.
48844         * lib/fseterr.c (fseterr): Likewise.
48845         * lib/fwritable.c (fwritable): Likewise.
48846         * lib/fwriting.c (fwriting): Likewise.
48847         Reported by Roger Cornelius <rac@tenzing.org> and
48848         Brian K. White <brian@aljex.com>.
48849
48850 2008-04-06  Jim Meyering  <meyering@redhat.com>
48851
48852         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
48853
48854 2008-04-06  Bruno Haible  <bruno@clisp.org>
48855
48856         Avoid possible error with non-ASCII bytes in UTF-8 locales.
48857         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
48858         * tests/test-printf-posix.sh: Likewise.
48859         * tests/test-vfprintf-posix.sh: Likewise.
48860         * tests/test-vprintf-posix.sh: Likewise.
48861         * tests/test-xprintf-posix.sh: Likewise.
48862
48863 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48864
48865         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
48866         hide error from 'ls', needed on OS/2.
48867         Report by Elbert Pol <elbert.pol@gmail.com>.
48868
48869 2008-04-04  Eric Blake  <ebb9@byu.net>
48870
48871         Make test-fseeko.c failures meaningful.
48872         * tests/test-fseeko.c: Print line number on failure.
48873         * tests/test-fseek.c: Likewise.
48874         Reported by Nelson H. F. Beebe.
48875
48876         Improve strtod bug detection check.
48877         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
48878         required for Solaris 10.
48879         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
48880
48881 2008-04-04  Bruno Haible  <bruno@clisp.org>
48882
48883         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
48884         by m4/setenv.m4.
48885
48886 2008-04-03  Eric Blake  <ebb9@byu.net>
48887
48888         Ensure sane .version contents.
48889         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
48890         version string.
48891         * build-aux/git-version-gen: Improve documentation.
48892
48893         Make GNU make output nicer.
48894         * top/GNUmakefile [!_have-Makefile]: Add dependency on
48895         MAKECMDGOALS to enforce message for all command line targets.  Set
48896         srcdir for use in maint.mk.
48897
48898         Another maintainer tweak.
48899         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
48900         a target that regenerates version.
48901
48902 2008-04-03  Jim Meyering  <meyering@redhat.com>
48903
48904         vc-list-files: don't cause coreutils "make po-check" failure
48905         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
48906
48907 2008-04-03  Eric Blake  <ebb9@byu.net>
48908
48909         Allow VPATH usage of vc-list-files.
48910         * build-aux/vc-list-files (scriptversion): Add timestamp.
48911         (options): Add --help, --version, -C.
48912         (CVS): Support installed cvsu.
48913
48914 2008-04-02  Bruno Haible  <bruno@clisp.org>
48915
48916         Avoid some "statement with no effect" warnings from gcc.
48917         * tests/test-wctype.c (main): Explicitly ignore unused values.
48918         Reported by Jim Meyering.
48919
48920 2008-04-02  Jim Meyering  <meyering@redhat.com>
48921
48922         Avoid some warnings from "gcc -Wshadow".
48923         * tests/test-frexp.c (exp): Define to a different identifier.
48924         * tests/test-frexpl.c (exp): Likewise.
48925
48926 2008-04-03  Jim Meyering  <meyering@redhat.com>
48927
48928         bootstrap: remove dangling *.[ch] symlinks from lib
48929         * build-aux/bootstrap [dangling symlink removal]: Move find's
48930         -depth option to precede all others, to avoid a warning.
48931         Remove *.[ch] files too, and from "$source_base" (usually lib/).
48932
48933 2008-04-02  Bruno Haible  <bruno@clisp.org>
48934
48935         Avoid some warnings from "gcc -Wshadow".
48936         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
48937         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
48938         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
48939         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
48940         Reported by Jim Meyering.
48941
48942 2008-04-01  Bruno Haible  <bruno@clisp.org>
48943
48944         Fix test to work on IRIX 6.5 with cc.
48945         * tests/test-math.c (numeric_equal): New function.
48946         (main): Use it.
48947
48948 2008-04-01  Bruno Haible  <bruno@clisp.org>
48949
48950         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
48951
48952 2008-04-01  Bruno Haible  <bruno@clisp.org>
48953
48954         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
48955         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48956         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
48957         (Depends-on): Remove math.
48958
48959         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
48960         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48961         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
48962         (Depends-on): Remove math.
48963
48964         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
48965         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48966         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
48967         (Depends-on): Remove math.
48968         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
48969         (Depends-on): Remove math.
48970
48971         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
48972         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48973         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
48974         (Depends-on): Remove math.
48975         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
48976         (Depends-on): Remove math.
48977
48978         * tests/test-round1.c: Include nan.h.
48979         (main): Use NaNd instead of NAN.
48980         * modules/round-tests (Files): Add tests/nan.h.
48981
48982         * tests/test-trunc1.c: Include nan.h.
48983         (main): Use NaNd instead of NAN.
48984         * modules/trunc-tests (Files): Add tests/nan.h.
48985
48986         * tests/test-roundf1.c: Include nan.h.
48987         (main): Use NaNf instead of NAN.
48988         * modules/roundf-tests (Files): Add tests/nan.h.
48989
48990         * tests/test-truncf1.c: Include nan.h.
48991         (main): Use NaNf instead of NAN.
48992         * modules/truncf-tests (Files): Add tests/nan.h.
48993
48994         * tests/test-ceilf1.c: Include nan.h.
48995         (main): Use NaNf instead of NAN.
48996         * modules/ceilf-tests (Files): Add tests/nan.h.
48997
48998         * tests/test-floorf1.c: Include nan.h.
48999         (main): Use NaNf instead of NAN.
49000         * modules/floorf-tests (Files): Add tests/nan.h.
49001
49002         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
49003         (main): Use NaNf instead of NAN.
49004         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
49005
49006         * tests/test-isnand.c: Include nan.h instead of <math.h>.
49007         (main): Use NaNd instead of NAN.
49008         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
49009
49010         * tests/test-frexp.c: Include nan.h.
49011         (main): Use NaNd instead of NAN.
49012         * modules/frexp-tests (Files): Add tests/nan.h.
49013
49014         * lib/isnan.c: Don't include <math.h>.
49015         (FUNC): Don't use NAN macro.
49016         * modules/isnand-nolibm (Depends-on): Remove math.
49017         * modules/isnanf-nolibm (Depends-on): Remove math.
49018         * modules/isnanl (Depends-on): Remove math.
49019         * modules/isnanl-nolibm (Depends-on): Remove math.
49020
49021         * tests/nan.h: New file.
49022
49023 2008-04-01  Eric Blake  <ebb9@byu.net>
49024
49025         Fix typos.
49026         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
49027         values to be the right type.
49028
49029         For now, cater to gnulib strtod inaccuracies.
49030         * tests/test-strtod.c (main): Allow 1-ulp error on expected
49031         fractional results.  While not as nice from a QoI perspective, it
49032         is a quicker patch than correctly implementing decimal to binary
49033         rounding.
49034
49035 2008-03-31  Eric Blake  <ebb9@byu.net>
49036
49037         Guarantee a definition of NAN.
49038         * lib/math.in.h (NAN): Define if missing.
49039         * tests/test-math.c (main): Test it.
49040         * doc/posix-headers/math.texi (math.h): Document this.
49041         * lib/isnan.c (rpl_isnand): Use it.
49042         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
49043         * tests/test-floorf1.c (NaN): Likewise.
49044         * tests/test-frexp.c (NaN): Likewise.
49045         * tests/test-isnand.c (NaN): Likewise.
49046         * tests/test-isnanf.c (NaN): Likewise.
49047         * tests/test-round1.c (NaN): Likewise.
49048         * tests/test-roundf1.c (NaN): Likewise.
49049         * tests/test-snprintf-posix.h (NaN): Likewise.
49050         * tests/test-sprintf-posix.h (NaN): Likewise.
49051         * tests/test-trunc1.c (NaN): Likewise.
49052         * tests/test-truncf1.c (NaN): Likewise.
49053         * tests/test-vasnprintf-posix.c (NaN): Likewise.
49054         * tests/test-vasprintf-posix.c (NaN): Likewise.
49055         * modules/isnand-nolibm (Depends-on): Add math.
49056         * modules/isnanf-nolibm (Depends-on): Likewise.
49057         * modules/isnanl (Depends-on): Likewise.
49058         * modules/isnanl-nolibm (Depends-on): Likewise.
49059         * modules/snprintf-posix-tests (Depends-on): Likewise.
49060         * modules/sprintf-posix-tests (Depends-on): Likewise.
49061         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
49062         * modules/vsprintf-posix-tests (Depends-on): Likewise.
49063         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
49064         * modules/vasprintf-posix-tests (Depends-on): Likewise.
49065
49066 2008-03-31  Bruno Haible  <bruno@clisp.org>
49067
49068         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
49069         * doc/posix-functions/strtod.texi: Likewise.
49070
49071 2008-03-31  Bruno Haible  <bruno@clisp.org>
49072
49073         * tests/test-strtod.c (main): Don't use C99 syntax.
49074
49075 2008-03-31  Bruno Haible  <bruno@clisp.org>
49076
49077         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
49078         Reported by Eric Blake.
49079
49080 2008-03-31  Jim Meyering  <meyering@redhat.com>
49081
49082         Don't compare actual signbit return values.
49083         * tests/test-strtod.c (main): Rather, compare only their
49084         zero/non-zero nature.
49085
49086 2008-03-31  Eric Blake  <ebb9@byu.net>
49087
49088         More strtod documentation.
49089         * doc/posix-functions/strtod.texi (strtod): Interpret more test
49090         failures as distinct bugs.
49091
49092 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49093
49094         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
49095         Problem reported by Erik Benada in
49096         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
49097
49098 2008-03-30  Bruno Haible  <bruno@clisp.org>
49099
49100         * tests/test-strtod.c: Add comments about which assertion fails on which
49101         platform.
49102         * doc/posix-functions/strtod.texi: Add info about many more platforms.
49103
49104 2008-03-30  Eric Blake  <ebb9@byu.net>
49105
49106         Test signbit behavior on zeros.
49107         * tests/test-signbit.c (test_signbitf): Add tests for zero.
49108         (test_signbitd, test_signbitl): Likewise.
49109
49110         More strtod touchups.
49111         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
49112         sign of negative underflow, for now.  Use .5, not .1.
49113         * doc/posix-functions/strtod.texi (strtod): Mention these
49114         limitations.
49115         Reported by Jim Meyering.
49116
49117 2008-03-30  Bruno Haible  <bruno@clisp.org>
49118
49119         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
49120         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
49121
49122 2008-03-30  Bruno Haible  <bruno@clisp.org>
49123
49124         Avoid failure when attempting to return empty iconv results on some
49125         platforms.
49126         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
49127         allocation, don't report ENOMEM when the resulting string is empty.
49128
49129 2008-03-30  Bruno Haible  <bruno@clisp.org>
49130
49131         Fix buffer overrun.
49132         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
49133         Don't consider the width for tmp_length. Check count against tmp_length
49134         before doing the padding. Ensure enough allocation during padding.
49135
49136 2008-03-30  Eric Blake  <ebb9@byu.net>
49137
49138         strtod touchups.
49139         * lib/strtod.c (strtod): Avoid compiler warnings.
49140         Reported by Jim Meyering.
49141
49142 2008-03-30  Bruno Haible  <bruno@clisp.org>
49143
49144         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
49145         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
49146         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
49147         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
49148         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
49149         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
49150         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
49151         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
49152
49153         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
49154         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
49155         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
49156         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
49157         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
49158         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
49159         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
49160         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
49161
49162         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
49163         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
49164         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
49165         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
49166         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
49167         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
49168         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
49169         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
49170
49171         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
49172         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
49173
49174         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
49175         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
49176
49177         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
49178         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
49179
49180         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
49181         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
49182         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
49183
49184         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
49185         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
49186         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
49187
49188         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
49189         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
49190         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
49191
49192         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
49193         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
49194         * modules/vasprintf (Depends-on): Add EOVERFLOW.
49195
49196         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
49197         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
49198         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
49199         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
49200         (Depends-on): Add EOVERFLOW.
49201         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
49202         (Depends-on): Add EOVERFLOW.
49203         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
49204         (Depends-on): Add EOVERFLOW.
49205         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
49206         (Depends-on): Add EOVERFLOW.
49207         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
49208         (Depends-on): Add EOVERFLOW.
49209         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
49210         (Depends-on): Add EOVERFLOW.
49211         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
49212         (Depends-on): Add EOVERFLOW.
49213         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
49214         (Depends-on): Add EOVERFLOW.
49215
49216         * lib/sprintf.c (EOVERFLOW): Remove fallback.
49217         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
49218         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
49219
49220         * lib/snprintf.c (EOVERFLOW): Remove fallback.
49221         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
49222         * modules/snprintf (Depends-on): Add EOVERFLOW.
49223
49224         * lib/poll.c (EOVERFLOW): Remove fallback.
49225         * modules/poll (Depends-on): Add EOVERFLOW.
49226
49227         * lib/getugroups.c (EOVERFLOW): Remove fallback.
49228         * modules/getugroups (Depends-on): Add EOVERFLOW.
49229
49230         * lib/getdelim.c (EOVERFLOW): Remove fallback.
49231         * modules/getdelim (Depends-on): Add EOVERFLOW.
49232
49233         * lib/ftell.c (EOVERFLOW): Remove fallback.
49234         * modules/ftell (Depends-on): Add EOVERFLOW.
49235
49236         * lib/fprintf.c (EOVERFLOW): Remove fallback.
49237         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
49238         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
49239
49240         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
49241
49242         * modules/EOVERFLOW-tests: New file.
49243         * tests/test-EOVERFLOW.c: New file.
49244
49245         * modules/EOVERFLOW: New file.
49246         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
49247
49248 2008-03-30  Bruno Haible  <bruno@clisp.org>
49249
49250         Fix bug introduced on 2007-06-10.
49251         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
49252         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
49253
49254 2008-03-30  Bruno Haible  <bruno@clisp.org>
49255
49256         Improve freadseek's efficiency after ungetc.
49257         * lib/freadseek.c: Include freadahead.h.
49258         (freadptrinc): New function, extracted from freadseek.
49259         (freadseek): Use it in a loop. Use freadahead to determine the number
49260         of loop iterations.
49261         * modules/freadseek (Depends-on): Add freadahead.
49262         (configure.ac): Require AC_C_INLINE.
49263
49264 2008-03-30  Bruno Haible  <bruno@clisp.org>
49265
49266         * lib/freadseek.c (freadseek): Don't ignore the return value of
49267         freadptr.
49268
49269 2008-03-29  Eric Blake  <ebb9@byu.net>
49270
49271         Add hex float support.
49272         * modules/strtod (Depends-on): Add c-ctype.
49273         (Link): Mention POW_LIB.
49274         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
49275         whitespace between 'e' and exponent.
49276         * tests/test-strtod.c (main): Enable hex float tests.
49277         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
49278         now provides.
49279
49280         Document various strtod bugs, with some fixes.
49281         * doc/posix-functions/strtod.texi (strtod): Document bugs with
49282         "-0x", "inf", "nan", and hex constants.
49283         * doc/posix-functions/atof.texi (atof): Likewise.
49284         * modules/stdlib (Makefile.am): Support strtod.
49285         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
49286         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
49287         detect additional strtod bugs.
49288         * lib/stdlib.in.h (rpl_strtod): Add declarations.
49289         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
49290         bool where appropriate.  Parse 'inf' and 'nan'.
49291         * tests/test-strtod.c: New file.
49292         * modules/strtod (Depends-on): Add stdbool, stdlib.
49293         (configure.ac): Turn on module indicator.
49294         * modules/strtod-tests: New module.
49295
49296 2008-03-29  Eric Blake  <ebb9@byu.net>
49297
49298         Fix ftell on mingw.
49299         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
49300         * modules/ftell-tests (Depends-on): Add binary-io.
49301         * modules/ftello-tests (Depends-on): Likewise.
49302         * tests/test-ftell.c (main): Enhance test to cover behavior after
49303         ungetc.  Enforce binary mode.
49304         * tests/test-ftello.c (main): Likewise.
49305
49306         Pass test-freadseek on cygwin.
49307         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
49308         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
49309         ungetc buffer.
49310
49311         * tests/test-fflush2.c (main): Fix typo.
49312
49313 2008-03-29  Bruno Haible  <bruno@clisp.org>
49314
49315         * tests/test-fflush2.c (main): Temporarily disable the contents of
49316         this test.
49317         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
49318         Reported by Eric Blake.
49319
49320 2008-03-28  Simon Josefsson  <simon@josefsson.org>
49321
49322         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
49323         (GC_SHA224_DIGEST_SIZE): Add.
49324
49325         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
49326         (gc_hash_digest_length): Likewise.
49327         (gc_hash_buffer): Likewise.
49328
49329 2008-03-25  Bruno Haible  <bruno@clisp.org>
49330
49331         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
49332         detail which gettext release to use.
49333         Reported by Simon Josefsson.
49334
49335 2008-03-26  Jim Meyering  <meyering@redhat.com>
49336
49337         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
49338         * modules/gnumakefile (clean-GNUmakefile): Also, use
49339         test ... && ... || : syntax rather than if-then ... fi.
49340
49341         gnumakefile: Don't double-quote-expand $(VPATH) value.
49342         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
49343
49344 2008-03-24  Eric Blake  <ebb9@byu.net>
49345
49346         Alter GNUmakefile to install into top directory.
49347         * modules/maintainer-makefile: Split, and add dependency...
49348         * modules/gnumakefile: to this new module.
49349         * build-aux/GNUmakefile: Move...
49350         * top/GNUmakefile: ...here.
49351         * build-aux/maint.mk: Move...
49352         * top/maint.mk: ...here.
49353         * MODULES.html.sh (Support for maintaining...): Document new
49354         module.
49355
49356 2008-03-23  Bruno Haible  <bruno@clisp.org>
49357
49358         * gnulib-tool: New options --vc-files, --no-vc-files.
49359         (func_usage): Document them.
49360         (vc_files): New variable.
49361         (func_import): Consider vc_files.
49362         (func_create_testdir): Set vc_files to empty.
49363         Suggested by Jim Meyering and Karl Berry.
49364
49365 2008-03-23  Bruno Haible  <bruno@clisp.org>
49366
49367         Fix regex compilation error on HP-UX 11.
49368         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
49369         * modules/regex (Files): Add m4/mbstate_t.m4.
49370         Reported by Ton Voon <ton.voon@altinity.com>.
49371
49372 2008-03-23  Bruno Haible  <bruno@clisp.org>
49373
49374         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
49375
49376 2008-03-23  Eric Blake  <ebb9@byu.net>
49377             Bruno Haible  <bruno@clisp.org>
49378
49379         Install files from top/ in the destination directory.
49380         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
49381         augmentation also for the files from top/.
49382         (func_import, func_create_testdir): Rewrite file names:
49383         top/filename -> filename.
49384
49385 2008-03-23  Bruno Haible  <bruno@clisp.org>
49386
49387         Tweak "gnulib --version" output.
49388         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
49389
49390 2008-03-23  Bruno Haible  <bruno@clisp.org>
49391
49392         Tweak "gnulib --version" output.
49393         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
49394         rather than contents of ChangeLog, when possible.
49395
49396 2008-03-21  Eric Blake  <ebb9@byu.net>
49397
49398         More --version tweaks.
49399         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
49400         date of last ChangeLog entry.
49401
49402 2008-03-21  Jim Meyering  <meyering@redhat.com>
49403
49404         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
49405
49406 2008-03-20  Eric Blake  <ebb9@byu.net>
49407
49408         VPATH fix.
49409         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
49410
49411 2008-03-20  Simon Josefsson  <simon@josefsson.org>
49412
49413         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
49414         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
49415
49416 2008-03-20  Eric Blake  <ebb9@byu.net>
49417
49418         Sync GNUmakefile with coreutils.
49419         * build-aux/GNUmakefile (have-Makefile): Rename...
49420         (_have-Makefile): ...to this, for namespace consideration.
49421         (GNUmakefile.cfg): Include, if present.
49422         (_autoreconf): Define a default.
49423         (_is-dist-target): New rule for rebuilds to pick up intra-release
49424         version.
49425         (maint-cfg.mk): Rename...
49426         (cfg.mk): ...to this.
49427
49428 2008-03-18  Jim Meyering  <meyering@redhat.com>
49429
49430         New script and module: mktempd
49431         * MODULES.html.sh (maint+release support): Add mktempd.
49432         * build-aux/mktempd: New file.
49433         * modules/mktempd: New file.
49434
49435 2008-03-15  Jim Meyering  <meyering@redhat.com>
49436
49437         Undo last change.
49438         * lib/sha1.c, lib/md5.c: 63 != ~63.
49439         Reported by Andreas Schwab.
49440
49441         sha1.c, md5.c: Hoist a redundant expression.
49442         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
49443         "ctx->buflen" only once, before calling *_process_block.
49444         * lib/md5.c (md5_process_bytes): Likewise.
49445
49446 2008-03-14  Eric Blake  <ebb9@byu.net>
49447
49448         Bump copyright year in files generated by gnulib-tool.
49449         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
49450         gnulib-tool, rather than hard-coding it.
49451
49452         Fix 'gnulib-tool --version' output to work with git.
49453         * gnulib-tool (func_gnulib_dir): New function, extracted from...
49454         (startup): ...here.
49455         (func_version): Use it to invoke git-version-gen, rather than
49456         relying on CVS keyword expansion.  Modernize wording.
49457         (cvsdatestamp, last_checkin_date, version): Kill unused
49458         variables.
49459
49460 2008-03-12  Jim Meyering  <meyering@redhat.com>
49461
49462         Recognize optional cast of the argument to free.
49463         * build-aux/useless-if-before-free: Update regexps.
49464
49465         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
49466
49467 2008-03-11  Bruno Haible  <bruno@clisp.org>
49468
49469         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
49470         by a single package.
49471         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
49472         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
49473         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
49474         Reported by Sam Steingold <sds@gnu.org>.
49475
49476 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49477
49478         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
49479         repositories.
49480
49481 2008-03-11  Bruno Haible  <bruno@clisp.org>
49482
49483         Avoid conflicts between local macro definitions.
49484         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
49485         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
49486
49487 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
49488             Bruno Haible  <bruno@clisp.org>
49489
49490         Make va_copy work with some version of xlc on AIX 5.1.
49491         * lib/stdarg.in.h: New file.
49492         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
49493         On AIX, use a <stdarg.h> file substitute.
49494         * modules/stdarg (Files): Add lib/stdarg.in.h.
49495         (Depends-on): Add include_next.
49496         (Makefile.am): Build a stdarg.h substitute if requested.
49497         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
49498
49499 2008-03-10  Bruno Haible  <bruno@clisp.org>
49500
49501         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
49502         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49503         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
49504
49505 2008-03-10  Bruno Haible  <bruno@clisp.org>
49506
49507         * modules/stdlib (Depends-on): Add include_next, remove
49508         absolute-header.
49509
49510 2008-03-09  Bruno Haible  <bruno@clisp.org>
49511
49512         * lib/freadahead.h (freadahead): Document more precisely.
49513         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
49514         the sum of both buffer sizes.
49515         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
49516         * NEWS: Document the change.
49517
49518 2008-03-09  Bruno Haible  <bruno@clisp.org>
49519
49520         Extend freadptr to return also the buffer size.
49521         * lib/freadptr.h (freadptr): Add sizep argument.
49522         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
49523         (freadptr): Add sizep argument. Determine buffer size like freadahead
49524         does.
49525         * tests/test-freadptr.c: Don't include freadahead.h.
49526         (main): Adapt for new calling convention of freadptr.
49527         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
49528         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
49529         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
49530         tests/test-freadptr2.sh.
49531         (Depends): Remove freadahead.
49532         (TESTS): Add test-freadptr2.sh.
49533         (check_PROGRAMS): Add test-freadptr2.
49534
49535 2008-03-09  Bruno Haible  <bruno@clisp.org>
49536
49537         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
49538         Report and solution by Simon Josefsson.
49539
49540 2008-03-06  Bruno Haible  <bruno@clisp.org>
49541
49542         Make fflush after ungetc work on BSD platforms.
49543         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
49544         * tests/test-fflush2.c: New file.
49545         * tests/test-fflush2.sh: New file.
49546         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
49547         tests/test-fflush2.c.
49548         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
49549         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
49550
49551 2008-03-06  Eric Blake  <ebb9@byu.net>
49552
49553         Likewise for ftello.
49554         * modules/ftello (Dependencies): Add extensions.
49555         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
49556
49557 2008-03-06  Bruno Haible  <bruno@clisp.org>
49558
49559         * modules/fseeko (Dependencies): Add extensions.
49560         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
49561         Needed on glibc systems.
49562
49563 2008-03-06  Bruno Haible  <bruno@clisp.org>
49564
49565         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
49566         email address.
49567         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49568
49569 2008-03-06  Bruno Haible  <bruno@clisp.org>
49570
49571         * users.txt: Add libgnupdf.
49572
49573 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
49574
49575         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
49576         (Header File Substitutes, Function Substitutes,
49577         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
49578         (Build robot for gnulib): Fix typo.
49579
49580 2008-03-06  Bruno Haible  <bruno@clisp.org>
49581
49582         * doc/gnulib-tool.texi (VCS Issues): Small updates.
49583         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49584
49585 2008-03-06  Bruno Haible  <bruno@clisp.org>
49586
49587         * doc/func.texi: New file, extracted from doc/gnulib.texi.
49588         * doc/gnulib.texi: Include it.
49589
49590 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49591
49592         * modules/func (License): Change license to unlimited; there was
49593         no LGPL parts in the module anyway.
49594
49595 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49596
49597         * modules/__func__: Renamed to modules/func.
49598         * modules/__func__-tests: Renamed to modules/func-tests.
49599         * tests/test-__func__.c: Renamed to tests/test-func.c.
49600         * m4/__func__.m4: Renamed to m4/func.m4.
49601         * doc/gnulib.texi (__func__): Section renamed to func.
49602         Suggested by Eric Blake <ebb9@byu.net>.
49603
49604 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49605
49606         * doc/gnulib.texi (__func__): Use C99 terminology when talking
49607         about __func__.  Make example self-contained.  Suggested by Eric
49608         Blake <ebb9@byu.net>.
49609
49610         * tests/test-__func__.c (main): Avoid extraneous () around __func.
49611         Suggested by Eric Blake <ebb9@byu.net>.
49612
49613 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49614
49615         * modules/__func__: New file.
49616         * modules/__func__-tests: New file.
49617         * tests/test-__func__.c: New file.
49618         * m4/__func__.m4: New file.
49619         * doc/gnulib.texi (__func__): Document __func__ module.
49620
49621 2008-03-05  Simon Josefsson  <simon@josefsson.org>
49622
49623         * modules/byteswap (License): Re-license as LGPLv2+.
49624
49625 2008-03-05  Simon Josefsson  <simon@josefsson.org>
49626
49627         * doc/Makefile: Add pdf target.
49628
49629 2008-03-05  Simon Josefsson  <simon@josefsson.org>
49630
49631         * modules/inline (License): Use 'unlimited', since there are only
49632         *.m4 files in this module.
49633
49634 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
49635             Bruno Haible  <bruno@clisp.org>
49636
49637         Add support for HP C 7.1 on OpenVMS 8.3.
49638         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
49639
49640 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
49641
49642         Update VMS specifics.
49643         * lib/getopt.c [VMS]: Remove include of unixlib.h.
49644
49645 2008-03-02  Jim Meyering  <meyering@redhat.com>
49646
49647         Remove the last dependency on the "free" module.
49648         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
49649         Reported by Bob Proulx.
49650
49651         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
49652
49653         Remove useless "if" tests before free.  Deprecate "free" module.
49654         * doc/posix-functions/free.texi: Mention that this
49655         module is no longer useful.
49656         * modules/free (Notice): Say this module is obsolete.
49657         * modules/readutmp (Depends-on): Remove free.
49658         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
49659         * lib/putenv.c (putenv): Likewise.
49660         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
49661         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
49662         * tests/test-c-strcasestr.c (main): Likewise.
49663         * tests/test-c-strstr.c (main): Likewise.
49664         * tests/test-mbscasestr1.c (main): Likewise.
49665         * tests/test-mbscasestr2.c (main): Likewise.
49666         * tests/test-mbsstr1.c (main): Likewise.
49667         * tests/test-mbsstr2.c (main): Likewise.
49668         * tests/test-memmem.c (main): Likewise.
49669         * tests/test-strcasestr.c (main): Likewise.
49670         * tests/test-striconv.c (main): Likewise.
49671         * tests/test-striconveh.c (main): Likewise.
49672         * tests/test-striconveha.c (main): Likewise.
49673         * tests/test-strstr.c (main): Likewise.
49674
49675         * build-aux/git-version-gen: Adjust a comment and the Usage string.
49676
49677         bootstrap: sync from coreutils again
49678         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
49679
49680 2008-03-01  Jim Meyering  <meyering@redhat.com>
49681
49682         bootstrap: sync from coreutils
49683         * build-aux/bootstrap (update_po_files): Copy a .po file into place
49684         also when the target doesn't exist.
49685
49686 2008-03-01  Eric Blake  <ebb9@byu.net>
49687
49688         Fix bugs in last patch.
49689         * lib/memchr2.c (memchr2): Fix typo.
49690         * tests/test-memchr2.c: Test previous bug, and don't use GNU
49691         extension.
49692         Reported by Bruce Korb.
49693
49694         New module 'memchr2'.
49695         * modules/memchr2: New file.
49696         * modules/memchr2-tests: Likewise.
49697         * lib/memchr2.h: Likewise.
49698         * lib/memchr2.c: Likewise, based on memchr.c.
49699         * tests/test-memchr2.c: New test.
49700         * MODULES.html.sh (String handling): Add memchr2.
49701
49702 2008-02-29  Bruno Haible  <bruno@clisp.org>
49703
49704         * modules/freadseek-tests: New file.
49705         * tests/test-freadseek.sh: New file.
49706         * tests/test-freadseek.c: New file.
49707
49708         New module 'freadseek'.
49709         * modules/freadseek: New file.
49710         * lib/freadseek.h: New file.
49711         * lib/freadseek.c: New file.
49712         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
49713
49714 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
49715
49716         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
49717         wydawca.
49718
49719         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
49720         program_invocation_name and program_invocation_short_name are
49721         present.
49722
49723 2008-02-28  Bruno Haible  <bruno@clisp.org>
49724
49725         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
49726         * tests/test-freadptr.sh: Also test non-seekable stdin.
49727
49728 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
49729
49730         * build-aux/bootstrap (source_base, m4_base)
49731         (doc_base, tests_base): New variables.
49732         (gnulib_tool_options): Do not hardcode base directories, use
49733         the above variables instead.
49734
49735 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
49736
49737         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
49738
49739 2008-02-28  Bruno Haible  <bruno@clisp.org>
49740
49741         * modules/freadptr-tests: New file.
49742         * tests/test-freadptr.sh: New file.
49743         * tests/test-freadptr.c: New file.
49744
49745         New module 'freadptr'.
49746         * modules/freadptr: New file.
49747         * lib/freadptr.h: New file.
49748         * lib/freadptr.c: New file.
49749         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
49750
49751 2008-02-26  Karl Berry  <karl@freefriends.org>
49752
49753         Sync from Libtool:
49754         * libltdl/argz.c (argz_add, argz_count): New functions.
49755         * libltdl/argz.in.h: Declare them.
49756         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
49757
49758 2008-02-22  Bruno Haible  <bruno@clisp.org>
49759
49760         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
49761         is a pointer type.  Needed for HP-UX 10.
49762         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
49763         * doc/posix-functions/gmtime_r.texi: Likewise.
49764         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
49765
49766 2008-02-24  Bruno Haible  <bruno@clisp.org>
49767
49768         * modules/environ-tests: New file.
49769         * tests/test-environ.c: New file.
49770
49771         New module 'environ'.
49772         * modules/environ: New file.
49773         * lib/unistd.in.h (environ): New declaration.
49774         * m4/environ.m4: New file.
49775         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
49776         after use.
49777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
49778         HAVE_DECL_ENVIRON.
49779         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
49780         HAVE_DECL_ENVIRON.
49781         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
49782         wrong claim that 'environ' is missing on some systems.
49783         * modules/execute (Depends-on): Add environ.
49784         * lib/execute.c (environ): Remove fallback declaration.
49785         * modules/pipe (Depends-on): Add environ.
49786         * lib/pipe.c (environ): Remove fallback declaration.
49787         * modules/setenv (Depends-on): Add environ.
49788         * lib/setenv.c (environ): Remove fallback declaration.
49789         * modules/unsetenv (Depends-on): Add environ.
49790         * lib/unsetenv.c (environ): Remove fallback declaration.
49791         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
49792         m4/environ.m4.
49793         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
49794         (gl_PREREQ_UNSETENV): Likewise.
49795
49796 2008-02-24  Bruno Haible  <bruno@clisp.org>
49797
49798         * doc/posix-functions/environ.texi: Document the MacOS X problem.
49799
49800 2008-02-20  Bob Proulx  <bob@proulx.com>
49801
49802         Enable use of older two part flavor 'git describe'.
49803         * build-aux/git-version-gen: If using the older two part flavor of
49804         git version then recreate the third part now present in the
49805         newer three part flavor of git describe.
49806
49807 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
49808
49809         * lib/fts.c (fts_build): Typo correction to comment.
49810
49811 2008-02-17  Bruno Haible  <bruno@clisp.org>
49812
49813         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
49814         generating no-op conflicts.
49815
49816 2008-02-17  Bruno Haible  <bruno@clisp.org>
49817
49818         Speed up by 10%.
49819         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
49820         result_entries, rather than an index-based loop.
49821
49822 2008-02-17  Bruno Haible  <bruno@clisp.org>
49823
49824         Speed up by 25%.
49825         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
49826         'hashcode_cached'.
49827         (entry_create): New function.
49828         (entry_hashcode): Use the cached hashcode if possible.
49829         (read_changelog_file, try_split_merged_entry): Use entry_create.
49830
49831 2008-02-17  Bruno Haible  <bruno@clisp.org>
49832
49833         Speed up from O(n^2) to O(n) for long ChangeLog files.
49834         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
49835         (read_changelog_file): Change implementation of entries_reversed list
49836         to rbtreehash.
49837         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
49838
49839 2008-02-17  Bruno Haible  <bruno@clisp.org>
49840
49841         New option --split-merged-entry.
49842         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
49843         (find_paragraph_end, try_split_merged_entry): New functions.
49844         (long_options): Add option --split-merged-entry.
49845         (usage): Document option --split-merged-entry.
49846         (main): Implement option --split-merged-entry.
49847         Reported by Eric Blake.
49848
49849 2008-02-17  Bruno Haible  <bruno@clisp.org>
49850
49851         * lib/git-merge-changelog.c: Include c-strstr.h.
49852         (main): Support the "git pull --rebase" situation.
49853         * modules/git-merge-changelog (Depends-on): Add c-strstr.
49854         Reported by Eric Blake.
49855
49856 2008-02-16  Eric Blake  <ebb9@byu.net>
49857
49858         Avoid doubling \ in common case of "c-maybe" quoting style.
49859         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
49860         eliding outer quotes.
49861         * lib/quotearg.h: Document this.
49862         * tests/test-quotearg.c (result_strings, inputs, results_g)
49863         (flag_results, locale_results): Test it by adding a new string to
49864         each test group.
49865         (compare_strings): Test new string.
49866
49867 2008-02-13  Eric Blake  <ebb9@byu.net>
49868
49869         Avoid trigraph quoting in default output.
49870         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
49871         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
49872         unless explicitly requested.
49873         * tests/test-quotearg.c (flag_results, main): Add additional tests.
49874
49875 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
49876
49877         Don't rely on signed integer overflowing to negative value.
49878         * lib/getugroups.c (getugroups): Include <limits.h>.
49879         Instead, compare against INT_MAX, and increment only if the test passes.
49880
49881 2008-02-13  Jim Meyering  <meyering@redhat.com>
49882         and Eric Blake  <ebb9@byu.net>
49883
49884         Avoid shadowing warning and compile errors on Linux.
49885         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
49886         forwarding macros on Linux.
49887         (dcgettext): Define a stub, for Linux.
49888         (results_g, main): Avoid warnings.
49889
49890 2008-02-12  Eric Blake  <ebb9@byu.net>
49891
49892         Silence warning in last patch.
49893         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
49894
49895         Quotearg part 4: add tests, fix c-maybe colon quoting.
49896         * lib/quotearg.h: Improve documentation.
49897         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
49898         escapes when adding outer quotes.  When quoting trigraphs, use
49899         valid C notation.  When quoting NUL, omit extra characters if next
49900         character is not digit.  Alter prototype.
49901         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
49902         callers.
49903         * modules/quotearg-tests: New module.
49904         * tests/test-quotearg.c: New test.
49905
49906 2008-02-07  Eric Blake  <ebb9@byu.net>
49907
49908         Quotearg part 3: add flag to control outer quote elision.
49909         * lib/quotearg.h (c_maybe_quoting_style): New style.
49910         (enum quoting_flags): Better documentation of flags.
49911         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
49912         c-maybe style.
49913         (quotearg_buffer_restyled): Handle new flag to elide outer
49914         quotes.
49915
49916         Quotearg part 2: add flag that can control NUL elision.
49917         * lib/quotearg.h (set_quoting_flags): New prototype.
49918         * lib/quotearg.c (struct quoting_options): Add flag field.
49919         (set_quoting_flags): New function.
49920         (quotearg_buffer_restyled): Add flags parameter.
49921         (quotearg_alloc_mem): Set the flag if length cannot be returned.
49922         (quotearg_n_options): Set the flag, since length cannot be
49923         returned.
49924         (quoting_options_from_style): Default flags correctly.
49925
49926         Quotearg part 1: more wrappers, restore quotearg_char state.
49927         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
49928         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
49929         (quotearg_colon_mem): New wrappers.
49930         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
49931         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
49932         functions.
49933         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
49934         (quotearg_colon_mem): New functions.
49935
49936 2008-02-11  Bruno Haible  <bruno@clisp.org>
49937
49938         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
49939         library in the current directory: it does not work with parallel make.
49940         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49941
49942 2008-02-11  Bruno Haible  <bruno@clisp.org>
49943
49944         * .gitattributes: New file.
49945
49946 2008-02-11  Jim Meyering  <meyering@redhat.com>
49947
49948         useless-if-before-free: Fix reversed exit values.
49949         * build-aux/useless-if-before-free: Use correct values
49950         for EXIT_MATCH and EXIT_NO_MATCH.
49951
49952         * build-aux/useless-if-before-free: Close stdout carefully.
49953
49954 2008-02-10  Bruno Haible  <bruno@clisp.org>
49955
49956         New module 'git-merge-changelog'.
49957         * modules/git-merge-changelog: New file.
49958         * lib/git-merge-changelog.c: New file.
49959
49960 2008-02-10  Jim Meyering  <meyering@redhat.com>
49961
49962         useless-if-before-free: New option: --list (-l).
49963
49964         useless-if-before-free: Don't exit immediately upon open failure.
49965         * build-aux/useless-if-before-free: Exit 2 for errors.
49966         Upon failure to open a file, don't exit immediately.
49967         Rather, just warn and continue with any remaining files.
49968
49969 2008-02-10  Bruno Haible  <bruno@clisp.org>
49970
49971         New abstract list operation 'node_set_value'.
49972         * lib/gl_list.h (gl_list_node_set_value): New function.
49973         (struct gl_list_implementation): New field node_set_value.
49974         * lib/gl_list.c (gl_list_node_set_value): New function.
49975         * lib/gl_array_list.c (gl_array_node_set_value): New function.
49976         (gl_array_list_implementation): Update.
49977         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
49978         (gl_carray_list_implementation): Update.
49979         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
49980         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49981         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49982         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
49983         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49984         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49985         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49986         Update.
49987         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
49988         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
49989         (gl_sublist_list_implementation): Update.
49990
49991 2008-02-10  Bruno Haible  <bruno@clisp.org>
49992
49993         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
49994         Needed when ELEMENT is #defined to 'some_type *'.
49995
49996 2008-02-10  Jim Meyering  <meyering@redhat.com>
49997
49998         New script and module: useless-if-before-free
49999         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
50000         * build-aux/useless-if-before-free: New file.
50001         * modules/useless-if-before-free: New file.
50002
50003         * build-aux/gitlog-to-changelog: Use committer date, not author date.
50004
50005         xstrtol_error: Fix typo.
50006         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
50007         s/exit_failure/exit_status/.
50008
50009 2008-02-09  Jim Meyering  <meyering@redhat.com>
50010
50011         New script and module: gitlog-to-changelog
50012         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
50013         * modules/gitlog-to-changelog: New file.
50014         * build-aux/gitlog-to-changelog: New file.
50015
50016 2008-02-08  Jim Meyering  <meyering@redhat.com>
50017
50018         Avoid two "parameter unused" warnings.
50019         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
50020         Mark "st" as used.
50021
50022         Use "git COMMAND", not "git-COMMAND".
50023         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
50024         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
50025         * build-aux/git-version-gen: Use "git status", not "git-status".
50026
50027 2008-02-07  Bruno Haible  <bruno@clisp.org>
50028
50029         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
50030         Avoids a crash on Windows Vista.
50031         Reported by Adam Strzelecki <ono@java.pl> via
50032         Simon Josefsson <simon@josefsson.org>.
50033
50034 2008-02-06  Bruno Haible  <bruno@clisp.org>
50035
50036         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
50037         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
50038         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
50039         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
50040         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50041         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50042         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
50043         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
50044         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50045         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50046         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50047         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50048         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50049         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50050         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50051         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
50052         left-adjust flag.
50053         * tests/test-snprintf-posix.h (test_function): Likewise.
50054         * tests/test-sprintf-posix.h (test_function): Likewise.
50055         * tests/test-vasprintf-posix.c (test_function): Likewise.
50056         * doc/posix-functions/fprintf.texi: Update.
50057         * doc/posix-functions/printf.texi: Update.
50058         * doc/posix-functions/snprintf.texi: Update.
50059         * doc/posix-functions/sprintf.texi: Update.
50060         * doc/posix-functions/vfprintf.texi: Update.
50061         * doc/posix-functions/vprintf.texi: Update.
50062         * doc/posix-functions/vsnprintf.texi: Update.
50063         * doc/posix-functions/vsprintf.texi: Update.
50064         Reported by Peter Fales <psfales@alcatel-lucent.com>.
50065
50066 2008-02-06  Bruno Haible  <bruno@clisp.org>
50067
50068         Fix bug introduced on 2008-01-26.
50069         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
50070
50071 2008-02-06  Bruno Haible  <bruno@clisp.org>
50072
50073         Fix bug introduced on 2007-06-10.
50074         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
50075         !NEED_PRINTF_FLAG_ZERO.
50076
50077 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
50078
50079         getloadavg: use libperfstat on AIX5
50080         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
50081
50082 2008-02-03  Bruno Haible  <bruno@clisp.org>
50083
50084         * lib/diffseq.h: Add comments about required #includes.
50085         Reported by Michael Biggs <gnulib@doubleplum.net>.
50086
50087 2008-02-01  Bruno Haible  <bruno@clisp.org>
50088
50089         * users.txt: Add gnuit.
50090
50091 2008-01-31  Bruno Haible  <bruno@clisp.org>
50092
50093         * lib/md4.c (set_uint32): Mark as inline.
50094         * lib/md5.c (set_uint32): Likewise.
50095         * lib/sha1.c (set_uint32): Likewise.
50096         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
50097         * m4/md5.m4 (gl_MD5): Likewise.
50098         * m4/sha1.m4 (gl_SHA1): Likewise.
50099
50100 2008-01-31  Jim Meyering  <meyering@redhat.com>
50101
50102         Use "sizeof VAR", rather than a literal "4".
50103         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
50104         * lib/md4.c (md4_read_ctx): Likewise.
50105         * lib/sha1.c (sha1_read_ctx): Likewise.
50106
50107 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50108
50109         * tests/test-sha1.c: New file, based on test-md5.c.
50110
50111         * modules/crypto/sha1-tests: New file.
50112
50113 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50114
50115         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
50116
50117 2008-01-31  Jim Meyering  <meyering@redhat.com>
50118
50119         Prefer "sizeof v" over the equivalent "4".
50120         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
50121         * lib/md5.c (set_uint32): Likewise.
50122         * lib/sha1.c (set_uint32): Likewise.
50123
50124 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50125
50126         * lib/sha1.c (set_uint32): Mark function as static.
50127
50128 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50129
50130         md2: clarify comments to say that alignment is not required.
50131         * lib/md2.h: Remove warning about alignment in comment.
50132         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
50133         never been required.
50134
50135 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50136
50137         md4: adapt alignment constraint fix from sha1.
50138         * lib/md4.c (set_uint32): New function, from sha1.c
50139         (md4_read_ctx): Use it.
50140         (md4_finish_ctx): Doc fix.
50141         * lib/md4.h: Doc fix.
50142
50143 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50144
50145         md5: adapt alignment constraint fix from sha1.
50146         * lib/md5.c (set_uint32): New function, from sha1.c
50147         (md5_read_ctx): Use it.
50148         (md5_finish_ctx): Doc fix.
50149         * lib/md5.h: Doc fix.
50150
50151 2008-01-30  Peter Palfrader  <weasel@debian.org>
50152
50153         sha1: remove the result buffer alignment constraint
50154         * lib/sha1.c (set_uint32): New function.
50155         (sha1_read_ctx): Rewrite to remove the result buffer alignment
50156         constraint.
50157         (sha1_finish_ctx): Remove comment warning about alignment constraint.
50158         * lib/sha1.h: Likewise.
50159
50160 2008-01-30  Andreas Schwab  <schwab@suse.de>
50161             Bruno Haible  <bruno@clisp.org>
50162
50163         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
50164         correct definition of LDBL_MIN_EXP.
50165
50166 2008-01-30  Karl Berry  <karl@gnu.org>
50167
50168         * config/srclist-update: try to preserve x bit on updates.
50169         * config/srclistvars.sh: update for karl.
50170
50171 2008-01-29  Jim Meyering  <meyering@redhat.com>
50172
50173         vasnprintf.c: Avoid warning about unused label
50174         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
50175         "overflow" label definition and associated code with the
50176         same cpp condition that guards the sole use of that label.
50177
50178 2008-01-26  Bruno Haible  <bruno@clisp.org>
50179
50180         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
50181         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
50182         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
50183         * lib/isnanl-nolibm.h (isnanl): Likewise.
50184         Reported by Paul Eggert <eggert@cs.ucla.edu>.
50185
50186 2008-01-26  Bruno Haible  <bruno@clisp.org>
50187
50188         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
50189         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
50190
50191 2008-01-26  Bruno Haible  <bruno@clisp.org>
50192
50193         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
50194         GCC >= 4.0 built-in.
50195         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
50196
50197 2008-01-26  Bruno Haible  <bruno@clisp.org>
50198
50199         Rename isnan, applicable to 'double' only, to isnand.
50200         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
50201         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
50202         (configure.ac): Update.
50203         (Include): Replace "isnan.h" with "isnand.h".
50204         * m4/isnand.m4: Renamed from m4/isnan.m4.
50205         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
50206         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
50207         instead of isnan.c.
50208         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
50209         instead of HAVE_ISNAN_IN_LIBC.
50210         (isnand): Renamed from isnan.
50211         * lib/isnand.c: New file.
50212         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
50213         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
50214         (Makefile.am): Update.
50215         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
50216         Include isnand.h instead of isnan.h.
50217         (main): Test isnand instead of isnan.
50218         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
50219         isnan-nolibm.
50220         * modules/frexp (Depends-on): Likewise.
50221         * modules/frexp-tests (Depends-on): Likewise.
50222         * modules/frexp-nolibm (Depends-on): Likewise.
50223         * modules/frexp-nolibm-tests (Depends-on): Likewise.
50224         * modules/isfinite (Depends-on): Likewise.
50225         * modules/round-tests (Depends-on): Likewise.
50226         * modules/signbit (Depends-on): Likewise.
50227         * modules/signbit-tests (Depends-on): Likewise.
50228         * modules/snprintf-posix (Depends-on): Likewise.
50229         * modules/sprintf-posix (Depends-on): Likewise.
50230         * modules/trunc-tests (Depends-on): Likewise.
50231         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50232         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50233         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50234         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50235         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50236         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50237         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50238         * modules/vasnprintf-posix (Depends-on): Likewise.
50239         * modules/vasprintf-posix (Depends-on): Likewise.
50240         * modules/vfprintf-posix (Depends-on): Likewise.
50241         * modules/vsnprintf-posix (Depends-on): Likewise.
50242         * modules/vsprintf-posix (Depends-on): Likewise.
50243         * lib/frexp.c: Include isnand.h instead of isnan.h.
50244         (ISNAN): Set to isnand instead of isnan.
50245         * lib/isfinite.c: Include isnand.h instead of isnan.h.
50246         (gl_isfinited): Use isnand instead of isnan.
50247         * lib/signbitd.c: Include isnand.h instead of isnan.h.
50248         (gl_signbitd): Use isnand instead of isnan.
50249         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
50250         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
50251         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
50252         (main): Use isnand instead of isnan.
50253         * tests/test-round1.c: Include isnand.h.
50254         (main): Use isnand instead of isnan.
50255         * tests/test-round2.c: Include isnand.h instead of isnan.h.
50256         (ISNAN): Set to isnand instead of isnan.
50257         * tests/test-trunc1.c: Include isnand.h.
50258         (main): Use isnand instead of isnan.
50259         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
50260         (equal): Use isnand instead of isnan.
50261         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
50262         isnand-nolibm.
50263         * NEWS: Mention the change.
50264
50265 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
50266             Bruno Haible  <bruno@clisp.org>
50267
50268         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
50269         the GCC builtins for signbits are present and set
50270         REPLACE_SIGNBIT_USING_GCC if so.
50271         * lib/math.in.h (signbit): Define using GCC builtins if
50272         REPLACE_SIGNBIT_USING_GCC is set.
50273         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
50274         REPLACE_SIGNBIT_USING_GCC.
50275         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
50276
50277 2008-01-25  Jim Meyering  <meyering@redhat.com>
50278
50279         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
50280         * lib/poll.c: Include <config.h>, not "config.h".
50281         * tests/test-getaddrinfo.c: Likewise.
50282
50283 2008-01-25  Simon Josefsson  <simon@josefsson.org>
50284
50285         * modules/sockets-tests: New file.
50286
50287 2008-01-24  Simon Josefsson  <simon@josefsson.org>
50288
50289         * modules/sockets: New module, can be used to call WSA_Startup and
50290         WSA_Cleanup when needed.
50291
50292         * lib/sockets.h, lib/sockets.c: New files.
50293
50294         * m4/sockets.m4: New file.
50295
50296         * tests/test-sockets.c: New file.
50297
50298 2008-01-19  Bruno Haible  <bruno@clisp.org>
50299
50300         * doc/posix-headers: Renamed from doc/headers.
50301         * doc/posix-functions: Renamed from doc/functions.
50302         * doc/gnulib.texi: Update.
50303
50304 2008-01-19  Bruno Haible  <bruno@clisp.org>
50305
50306         * doc/glibc-functions/strcasestr.texi: Include contents of
50307         doc/functions/strcasestr.texi, fixing the list of platforms.
50308         * doc/functions/strcasestr.texi: Remove file.
50309
50310 2008-01-19  Bruno Haible  <bruno@clisp.org>
50311
50312         * doc/glibc-functions/memmem.texi: Include contents of
50313         doc/functions/memmem.texi.
50314         * doc/functions/memmem.texi: Remove file.
50315
50316 2008-01-18  Bruno Haible  <bruno@clisp.org>
50317
50318         * doc/glibc-functions/*.texi: New files.
50319         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
50320         to use the new files.
50321
50322 2008-01-17  Bruno Haible  <bruno@clisp.org>
50323
50324         * tests/test-gethostname.c (main): Fix printf statement.
50325
50326 2008-01-17  Simon Josefsson  <simon@josefsson.org>
50327
50328         * modules/gethostname-tests: New file.
50329
50330         * tests/test-gethostname.c: New file.
50331
50332 2008-01-17  Simon Josefsson  <simon@josefsson.org>
50333
50334         * lib/gethostname.c: Include string.h unconditionally, strncpy is
50335         used by the UNAME case.  Reported by Bruno Haible
50336         <bruno@clisp.org>.
50337
50338 2008-01-17  Eric Blake  <ebb9@byu.net>
50339
50340         Convert c-strcasestr to be more efficient.
50341         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
50342         (Depends-on): Add c-strcase, remove malloca, strnlen.
50343         * tests/test-c-strcasestr.c (main): Enhance test.
50344         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
50345
50346 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
50347
50348         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
50349         Use it in creating po/Makevars.
50350
50351 2008-01-15  Simon Josefsson  <simon@josefsson.org>
50352
50353         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
50354         Applications that requires it should initialize libgcrypt
50355         manually.
50356
50357 2008-01-16  Simon Josefsson  <simon@josefsson.org>
50358
50359         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
50360
50361 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
50362
50363         Fix problem with getdate on mingw32 reported by Simon Josefsson
50364         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
50365         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
50366         tzname", when deciding whether to declare tzname.
50367         * lib/strftime.c (tzname): Likewise.
50368
50369 2008-01-15  Bruno Haible  <bruno@clisp.org>
50370
50371         Work around a MacOS X 10.5 bug in frexpl().
50372         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
50373         * doc/functions/frexpl.texi: Document the bug.
50374         Reported by Elias Pipping <pipping@gentoo.org>.
50375
50376 2008-01-14  Eric Blake  <ebb9@byu.net>
50377
50378         Touch up previous patch.
50379         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
50380         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
50381
50382         Convert strcasestr module to use Two-Way algorithm.
50383         * modules/strcasestr-simple: New module, based on the old
50384         strcasestr, but with Two-Way rather than KMP.
50385         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
50386         * lib/string.in.h (rpl_strcasestr): Declare.
50387         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
50388         performance.
50389         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
50390         * modules/string (Makefile.am): Support strcasestr.
50391         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
50392         * modules/strcasestr-tests (Depends-on): Check for alarm.
50393         * tests/test-strcasestr.c: Augment test.
50394         * lib/str-two-way.h: Clean up stray macro.
50395         * NEWS: Document new module.
50396         * MODULES.html.sh (string handling): Likewise.
50397         * doc/functions/strcasestr.texi: New file.
50398         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
50399         here, since it is not a POSIX function.
50400
50401 2008-01-14  Colin Watson  <cjwatson@debian.org>
50402             Bruno Haible  <bruno@clisp.org>
50403
50404         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
50405         works fine; if not, set REPLACE_STRSIGNAL.
50406         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
50407         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50408         REPLACE_STRSIGNAL.
50409         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
50410         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
50411         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
50412
50413 2008-01-14  Bruno Haible  <bruno@clisp.org>
50414
50415         * modules/strsignal (Include): Change to <string.h>.
50416
50417 2008-01-14  Colin Watson  <cjwatson@debian.org>
50418
50419         * modules/argp (Notice): Add a notice recommending to change
50420         XGETTEXT_OPTIONS.
50421         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
50422
50423 2008-01-13  Colin Watson  <cjwatson@debian.org>
50424
50425         * modules/strsignal-tests: New file.
50426         * tests/test-strsignal.c: New file.
50427
50428         * lib/strsignal.c: New file, from glibc with modifications.
50429         * lib/siglist.h: New file, from glibc with modifications.
50430         * lib/string.in.h (strsignal): New declaration.
50431         * m4/strsignal.m4: New file.
50432         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50433         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
50434         * modules/strsignal: New file.
50435         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
50436         HAVE_DECL_STRSIGNAL.
50437
50438 2008-01-13  Bruno Haible  <bruno@clisp.org>
50439
50440         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
50441         locale encoding is not ASCII. Needed for OpenBSD 4.0.
50442         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
50443         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50444
50445 2008-01-13  Bruno Haible  <bruno@clisp.org>
50446
50447         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
50448         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
50449         * lib/argp.h (__attribute__): Likewise.
50450         * lib/c-stack.c (__attribute__): Likewise.
50451         * lib/error.h (__attribute__): Likewise.
50452         * lib/fts.c (__attribute__): Likewise.
50453         * lib/openat.h (__attribute__): Likewise.
50454         * lib/stdio.in.h (__attribute__): Likewise.
50455         * lib/string.in.h (__attribute__): Likewise.
50456         * lib/utimens.c (__attribute__): Likewise.
50457         * lib/vasnprintf.h (__attribute__): Likewise.
50458         * lib/xalloc.h (__attribute__): Likewise.
50459         * lib/xprintf.h (__attribute__): Likewise.
50460         * lib/xstrtol.h (__attribute__): Likewise.
50461         * lib/xvasprintf.h (__attribute__): Likewise.
50462
50463 2008-01-12  Bruno Haible  <bruno@clisp.org>
50464
50465         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
50466         * doc/glibc-headers/a.out.texi: New file.
50467         * doc/glibc-headers/aliases.texi: New file.
50468         * doc/glibc-headers/alloca.texi: New file.
50469         * doc/glibc-headers/ar.texi: New file.
50470         * doc/glibc-headers/argp.texi: New file.
50471         * doc/glibc-headers/argz.texi: New file.
50472         * doc/glibc-headers/byteswap.texi: New file.
50473         * doc/glibc-headers/crypt.texi: New file.
50474         * doc/glibc-headers/endian.texi: New file.
50475         * doc/glibc-headers/envz.texi: New file.
50476         * doc/glibc-headers/err.texi: New file.
50477         * doc/glibc-headers/error.texi: New file.
50478         * doc/glibc-headers/execinfo.texi: New file.
50479         * doc/glibc-headers/fpu_control.texi: New file.
50480         * doc/glibc-headers/fstab.texi: New file.
50481         * doc/glibc-headers/fts.texi: New file.
50482         * doc/glibc-headers/getopt.texi: New file.
50483         * doc/glibc-headers/ieee754.texi: New file.
50484         * doc/glibc-headers/ifaddrs.texi: New file.
50485         * doc/glibc-headers/libintl.texi: New file.
50486         * doc/glibc-headers/mcheck.texi: New file.
50487         * doc/glibc-headers/mntent.texi: New file.
50488         * doc/glibc-headers/obstack.texi: New file.
50489         * doc/glibc-headers/paths.texi: New file.
50490         * doc/glibc-headers/printf.texi: New file.
50491         * doc/glibc-headers/pty.texi: New file.
50492         * doc/glibc-headers/resolv.texi: New file.
50493         * doc/glibc-headers/shadow.texi: New file.
50494         * doc/glibc-headers/sysexits.texi: New file.
50495         * doc/glibc-headers/ttyent.texi: New file.
50496
50497 2008-01-12  Jim Meyering  <meyering@redhat.com>
50498
50499         announce-gen: emit Gnulib's git-based version string.
50500         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
50501         New option --gnulib-version=V, where V is expected to be
50502         the output of running git describe in the gnulib directory.
50503         (get_tool_versions): Request feedback on xdelta.  I suspect it's
50504         not useful, and plan to stop publishing an xdelta file with each
50505         coreutils release.
50506
50507         * build-aux/announce-gen: Also check for lzma-compressed files.
50508
50509 2008-01-11  Bruno Haible  <bruno@clisp.org>
50510
50511         * tests/test-memmem.c (main): Increase maximum allowed time.
50512         * tests/test-strstr.c (main): Likewise.
50513
50514 2008-01-11  Bruno Haible  <bruno@clisp.org>
50515
50516         * doc/functions/memmem.texi: Add more precisions about platforms.
50517         * doc/functions/strstr.texi: Likewise.
50518
50519 2008-01-10  Eric Blake  <ebb9@byu.net>
50520
50521         * m4/strstr.m4: Delete cruft from copy-n-paste.
50522         Reported by Bruno Haible.
50523
50524 2008-01-10  Bruno Haible  <bruno@clisp.org>
50525
50526         Make c-strstr rely on strstr.
50527         * lib/c-strstr.c: Don't include str-kmp.h.
50528         (c_strstr): Define in terms of strstr.
50529         * modules/c-strstr (Files): Remove lib/str-kmp.h.
50530         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
50531
50532 2008-01-10  Bruno Haible  <bruno@clisp.org>
50533
50534         * doc/gnulib.texi (String Functions in C Locale): New section.
50535         * doc/c-ctype.texi: New file.
50536         * doc/c-strcase.texi: New file.
50537         * doc/c-strcaseeq.texi: New file.
50538         * doc/c-strcasestr.texi: New file.
50539         * doc/c-strstr.texi: New file.
50540         * doc/c-strtod.texi: New file.
50541         * doc/c-strtold.texi: New file.
50542
50543 2008-01-10  Eric Blake  <ebb9@byu.net>
50544
50545         * lib/relocatable.h: Fix a comment.
50546
50547 2008-01-10  Eric Blake  <ebb9@byu.net>
50548
50549         Share two-way algorithm.
50550         * lib/str-two-way.h: New file, merged from...
50551         * lib/memmem.c: ...here...
50552         * lib/strstr.c: ...and here.
50553         * modules/memmem (Files): Use it.
50554         * modules/strstr (Files): Likewise.
50555
50556         Avoid quadratic strstr implementations.
50557         * lib/strstr.c: New file.
50558         * m4/strstr.m4: Likewise.
50559         * modules/strstr: Likewise.
50560         * modules/strstr-tests: Likewise.
50561         * tests/test-strstr.c: Likewise.
50562         * lib/string.in.h (rpl_strstr): Declare.
50563         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
50564         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
50565         * modules/string (Makefile.am): Likewise.
50566         * MODULES.html.sh (string handling): Mention new module.
50567         * doc/functions/strstr.texi (strstr): Document the bug.
50568
50569 2008-01-10  Bruno Haible  <bruno@clisp.org>
50570
50571         * lib/relocatable.h (relocate): State whether result is freshly
50572         allocated or not.
50573         * lib/relocatable.c (relocate): Return a freshly allocated string
50574         instead of a pointer to a privately held string.
50575         Reported by Sylvain Beucler <beuc@gnu.org>.
50576
50577 2008-01-10  Colin Watson  <cjwatson@debian.org>
50578
50579         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
50580         s/S_ISNLK/S_ISLNK/.
50581
50582 2008-01-09  Bruno Haible  <bruno@clisp.org>
50583
50584         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
50585         and other files.
50586         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
50587         if it's only a guess.
50588         * modules/memmem: Simplify by depending on memmem-simple.
50589
50590 2008-01-09  Bruno Haible  <bruno@clisp.org>
50591
50592         Work around OpenBSD 4.0 tdelete() bug.
50593         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
50594         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
50595         macros and don't redefine the enum values.
50596         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
50597         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
50598         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
50599
50600 2008-01-09  Bruno Haible  <bruno@clisp.org>
50601
50602         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
50603         (main): Don't perform the tests if setlocale did not install a UTF-8
50604         locale. Needed on OpenBSD 4.0.
50605         * modules/wcwidth-tests (Depends-on): Add localcharset.
50606
50607 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
50608
50609         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
50610         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
50611         * NEWS: announce this.
50612         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
50613
50614 2008-01-09  Simon Josefsson  <simon@josefsson.org>
50615         and Eric Blake  <ebb9@byu.net>
50616
50617         Add memmem-simple module.
50618         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
50619         (gl_FUNC_MEMMEM): Separate performance from presence checks.
50620         * modules/memmem-simple: New file.
50621         * modules/memmem (Description): Tweak.
50622         * MODULES.html.sh (string handling): Mention new module.
50623         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
50624         addressed by memmem-simple.
50625         * NEWS: Document the difference.
50626
50627 2008-01-09  Eric Blake  <ebb9@byu.net>
50628
50629         Give gcc some memmem optimization hints.
50630         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
50631         (strcasestr): Declare as pure.
50632         * modules/memmem (Maintainer): Claim my implementation.
50633
50634 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50635
50636         Support AIX 6.1 and higher.
50637         * build-aux/config.libpath: Likewise.
50638         * build-aux/config.rpath: Likewise.
50639
50640 2008-01-08  Jim Meyering  <meyering@redhat.com>
50641             Bruno Haible  <bruno@clisp.org>
50642
50643         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
50644         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
50645         Reported by Peter Fales in
50646         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
50647
50648 2008-01-08  Bruno Haible  <bruno@clisp.org>
50649
50650         * modules/unictype/category-of (Depends-on): Add
50651         unictype/category-none.
50652         * modules/unictype/category-and-tests (Depends-on): Add
50653         unictype/category-{L,N,Lu,Nd}.
50654         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
50655         * modules/unictype/category-or-tests (Depends-on): Add
50656         unictype/category-{L,N}.
50657         * modules/unictype/category-name-tests (Depends-on): Add
50658         unictype/category-{Z,Nl}.
50659         Reported by Simon Josefsson.
50660
50661 2008-01-08  Bruno Haible  <bruno@clisp.org>
50662
50663         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
50664         convention better.
50665         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
50666         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
50667         Reported by Peter Miller <millerp@canb.auug.org.au>.
50668
50669 2008-01-08  Eric Blake  <ebb9@byu.net>
50670
50671         Rewrite memmem to guarantee linear complexity without malloc.
50672         * lib/memmem.c (memmem): Use Two-Way rather than
50673         Knuth-Morris-Pratt, to allow O(1) space usage.
50674         (critical_factorization, two_way_short_needle)
50675         (two_way_long_needle): New functions.
50676         (knuth_morris_pratt): Delete.
50677         * modules/memmem (Depends-on): No longer need malloca or stdbool.
50678         Add stdint.
50679         * tests/test-memmem.c (main): Add tests for periodic needle and
50680         sublinear performance.
50681         * doc/functions/memmem.texi (memmem): Document other deficiencies
50682         in cygwin and older glibc.
50683
50684 2008-01-08  Bruno Haible  <bruno@clisp.org>
50685
50686         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
50687         augmentation.
50688
50689 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
50690
50691         Add a configure time option: --disable-acl.
50692         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
50693         AC_ARG_ENABLE(acl).
50694
50695 2008-01-06  Simon Josefsson  <simon@josefsson.org>
50696
50697         * tests/test-localename.c: Don't include obsolete "setenv.h".
50698
50699         * modules/localename-tests (Depends-on): Need unsetenv.
50700
50701 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50702
50703         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
50704
50705 2008-01-06  Colin Watson  <cjwatson@debian.org>
50706
50707         * users.txt: Add man-db.
50708
50709 2008-01-07  Bruno Haible  <bruno@clisp.org>
50710
50711         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
50712         previous section name.
50713
50714 2008-01-07  Bruno Haible  <bruno@clisp.org>
50715
50716         * lib/progname.c (set_program_name): Don't strip off a leading
50717         "lt-" prefix outside a .libs directory.
50718         Suggested by Paul Eggert.
50719
50720 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
50721             Bruno Haible  <bruno@clisp.org>
50722
50723         Improve memory cleanup in 'relocatable' module.
50724         * lib/relocatable.h (compute_curr_prefix): Change return type to
50725         'char *'.
50726         * lib/relocatable.c (compute_curr_prefix): Change return type to
50727         'char *'. Free curr_installdir after use.
50728         (relocate): Free curr_prefix_better after use.
50729         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
50730
50731 2008-01-01  Bruno Haible  <bruno@clisp.org>
50732
50733         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
50734         failure on older glibc systems.
50735         Reported by Peter Fales <psfales@alcatel-lucent.com>.
50736
50737 2008-01-05  Eric Blake  <ebb9@byu.net>
50738
50739         Avoid quadratic system memmem.
50740         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
50741         Reported by Ralf Wildenhues.
50742
50743         Fix memmem test for mingw.
50744         * modules/memmem-tests (configure.ac): Check for alarm.
50745         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
50746         it.
50747         * doc/functions/memmem.texi: New file.
50748         * doc/gnulib.texi (Function Substitutes): Add memmem.
50749         Reported by Bruno Haible.
50750
50751 2008-01-04  Bruno Haible  <bruno@clisp.org>
50752
50753         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
50754         Require gl_HEADER_STRINGS_H_DEFAULTS, not
50755         gl_HEADER_STRING_H_DEFAULTS.
50756
50757 2008-01-04  Eric Blake  <ebb9@byu.net>
50758
50759         Shorten duration of memmem test.
50760         * tests/test-memmem.c (main): Use alarm to declare failure if test
50761         is taking too long.
50762         Reported by Ralf Wildenhues.
50763
50764 2007-12-21  Simon Josefsson  <simon@josefsson.org>
50765
50766         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
50767         string, needed by strerror.
50768
50769 2008-01-03  Colin Watson  <cjwatson@debian.org>
50770             Bruno Haible  <bruno@clisp.org>
50771
50772         * doc/gnulib-tool.texi (Localization): New section.
50773
50774 2008-01-02  Bruno Haible  <bruno@clisp.org>
50775
50776         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
50777         variables to 'unsigned char *' type.
50778         Reported by Paul Eggert.
50779
50780 2008-01-02  Jim Meyering  <jim@meyering.net>
50781
50782         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
50783
50784 2007-12-31  Jim Meyering  <jim@meyering.net>
50785
50786         Avoid use of private FTS type name.
50787         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
50788
50789 2007-12-30  Karl Berry  <karl@gnu.org>
50790
50791         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
50792         work around defect in Texinfo and/or the standalone Info browser.
50793
50794 2007-12-30  Bruno Haible  <bruno@clisp.org>
50795
50796         Unify 5 copies of the KMP code.
50797         * lib/str-kmp.h: New file.
50798         * lib/c-strcasestr.c: Include str-kmp.h.
50799         (knuth_morris_pratt): Remove function.
50800         (c_strcasestr): Update.
50801         * lib/c-strstr.c: Include str-kmp.h.
50802         (knuth_morris_pratt): Remove function.
50803         (c_strcasestr): Update.
50804         * lib/mbscasestr.c: Include str-kmp.h.
50805         (knuth_morris_pratt_unibyte): Remove function.
50806         * lib/mbsstr.c: Include str-kmp.h.
50807         (knuth_morris_pratt_unibyte): Remove function.
50808         * lib/strcasestr.c: Include str-kmp.h.
50809         (knuth_morris_pratt): Remove function.
50810         (strcasestr): Update.
50811         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
50812         * modules/c-strstr (Files): Likewise.
50813         * modules/mbscasestr (Files): Likewise.
50814         * modules/mbsstr (Files): Likewise.
50815         * modules/strcasestr (Files): Likewise.
50816         Suggested by Paul Eggert.
50817
50818 2007-12-30  Bruno Haible  <bruno@clisp.org>
50819
50820         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
50821         defined.
50822
50823 2007-12-30  Bruno Haible  <bruno@clisp.org>
50824
50825         * lib/xmalloca.h: Include xalloc.h.
50826         (xnmalloca): New macro.
50827
50828 2007-12-30  Bruno Haible  <bruno@clisp.org>
50829
50830         * lib/malloca.h (nmalloca): New macro.
50831         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
50832         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
50833         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
50834         knuth_morris_pratt_multibyte): Likewise.
50835         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
50836         knuth_morris_pratt_multibyte): Likewise.
50837         * lib/memmem.c (knuth_morris_pratt): Likewise.
50838         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
50839
50840 2007-12-25  Bruno Haible  <bruno@clisp.org>
50841
50842         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
50843         * lib/glob.c: Don't include openat.h.
50844         (link_exists2_p): Add back the code that deals with the
50845         !GLOB_ALTDIRFUNC case.
50846         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
50847         let it do the filename concatenation.
50848         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
50849         * modules/glob (Depends-on): Remove openat.
50850
50851 2007-12-31  Bruno Haible  <bruno@clisp.org>
50852
50853         * modules/dirfd (License): Change to LGPLv2+.
50854         Approved by Jim Meyering.
50855
50856 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
50857
50858         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
50859         when multiplying M by sizeof (size_t).
50860
50861 2007-12-10  Martin Lambers  <marlam@marlam.de>
50862
50863         Override getpagesize on mingw.
50864         * lib/getpagesize.c: New file.
50865         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
50866         * modules/getpagesize (Files): Add lib/getpagesize.c.
50867         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
50868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50869         REPLACE_GETPAGESIZE.
50870         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
50871
50872 2007-12-25  Bruno Haible  <bruno@clisp.org>
50873
50874         * modules/localcharset (Notice): New field.
50875         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
50876         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
50877
50878 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
50879             Bruno Haible  <bruno@clisp.org>
50880
50881         Avoid using the syntax symbol() in formatted documentation.
50882         * MODULES.html.sh (func_module): When replacing symbol() with a
50883         hyperlink, remove the parentheses. Show an error if some remain.
50884         Recognize and render the '...' syntax.
50885         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
50886         Rework. Add paragraph about GCC's inlining.
50887         * doc/alloca.texi: Likewise.
50888         * doc/error.texi: Remove parentheses from symbol reference.
50889         * doc/gnulib-intro.texi: Likewise.
50890         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
50891         * modules/fnmatch (Description): Reword to say "the ... function".
50892         * modules/full-read (Description): Likewise.
50893         * modules/full-write (Description): Likewise.
50894         * modules/safe-read (Description): Likewise.
50895         * modules/safe-write (Description): Likewise.
50896         * modules/strchrnul (Description): Likewise.
50897         * modules/trim (Description): Likewise.
50898         * modules/error (Description): Remove parentheses from symbol
50899         references.
50900         * modules/verror (Description): Likewise.
50901         Reported by Karl Berry.
50902
50903 2007-12-25  Bruno Haible  <bruno@clisp.org>
50904
50905         Fixup after 2007-10-16 commit.
50906         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
50907
50908 2007-12-24  Bruno Haible  <bruno@clisp.org>
50909
50910         Make --enable-relocatable work with DESTDIR.
50911         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
50912         to compute installdir from destprog.
50913         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
50914         also set the RELOC_DESTDIR variable.
50915         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50916
50917 2007-12-24  Bruno Haible  <bruno@clisp.org>
50918
50919         Fix link error due to xalloc_die().
50920         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
50921         of xreadlink.
50922         * lib/relocwrapper.c: Update comments.
50923         * build-aux/install-reloc: Remove xreadlink.c from file list.
50924         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
50925         xreadlink.c.
50926         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50927
50928 2007-12-24  Bruno Haible  <bruno@clisp.org>
50929
50930         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
50931         * lib/setenv.h: Remove file.
50932         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
50933         lib/setenv.h.
50934         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
50935         (Depends-on): Add stdlib.
50936         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
50937         gl_FUNC_UNSETENV.
50938         (Include): Replace setenv.h with <stdlib.h>.
50939         * modules/unsetenv: New file.
50940         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
50941         * lib/unsetenv.c: Include <stdlib.h> first.
50942         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
50943         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
50944         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
50945         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
50946         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
50947         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
50948         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
50949         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
50950         * doc/functions/unsetenv.texi: Update.
50951         * modules/xsetenv (Depends-on): Add unsetenv.
50952         * modules/getdate (Depends-on): Likewise.
50953         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
50954         * lib/xsetenv.c: Don't include setenv.h.
50955         * lib/getdate.y: Likewise.
50956         * lib/relocwrapper.c: Likewise.
50957         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
50958         (Depends-on): Add stdlib.
50959         * NEWS: Mention the changes.
50960         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50961
50962 2007-12-23  Bruno Haible  <bruno@clisp.org>
50963
50964         * lib/memmem.c (memmem): Use lowercase variable names. Tab
50965         indentation.
50966
50967 2007-12-23  Bruno Haible  <bruno@clisp.org>
50968
50969         * lib/c-strcasestr.c: Add more comments.
50970         * lib/c-strstr.c: Likewise.
50971         * lib/mbscasestr.c: Likewise.
50972         * lib/mbsstr.c: Likewise.
50973         * lib/strcasestr.c: Likewise.
50974         * lib/memmem.c: Likewise.
50975
50976 2007-12-23  Bruno Haible  <bruno@clisp.org>
50977
50978         * tests/test-memmem.c: Include <string.h> first.
50979
50980 2007-12-22  Bruno Haible  <bruno@clisp.org>
50981
50982         * gnulib-tool (func_create_testdir): Change $auxdir while generating
50983         the contents of $testsbase.
50984         Reported by Ralf Wildenhues.
50985
50986 2007-12-22  Bruno Haible  <bruno@clisp.org>
50987
50988         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
50989         two variables local_ldadd_before, local_ldadd_last.
50990
50991 2007-12-20  Eric Blake  <ebb9@byu.net>
50992
50993         Work around circular library issue when cross-compiling.
50994         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
50995         that progname.o does not need to pull in rpl_memcmp.
50996
50997 2007-12-19  Eric Blake  <ebb9@byu.net>
50998
50999         Fix memmem to avoid O(n^2) worst-case complexity.
51000         * lib/memmem.c (knuth_morris_pratt): New function.
51001         (memmem): Use it if first few naive iterations fail.
51002         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
51003         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
51004         * modules/memchr (License): Likewise.
51005         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
51006         malloca.
51007         * tests/test-memmem.c: Rewrite, borrowing ideas from
51008         test-mbsstr1.c; the old version wouldn't even compile!
51009         * modules/memmem-tests: New file.
51010         * lib/string.in.h (rpl_memmem): Add declaration.
51011         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
51012         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
51013         REPLACE_MEMMEM.
51014
51015 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51016
51017         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
51018         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
51019         before any system include files, and undef after them all.  This
51020         should fix a problem on VMS reported by John E. Malmberg in
51021         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
51022
51023 2007-12-17  Eric Blake  <ebb9@byu.net>
51024
51025         Revert addition of verify, for BSD/OS.
51026         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
51027         can't handle large files, for the sake of obsolete platforms.
51028         * modules/fseeko (Depends-on): Remove verify.
51029         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
51030         * doc/functions/ftello.texi (ftello): Likewise.
51031         * doc/functions/fgetpos.texi (fgetpos): Likewise.
51032         Reported by Larry Jones.
51033
51034 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
51035
51036         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
51037         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
51038
51039 2007-12-17  Jim Meyering  <meyering@redhat.com>
51040
51041         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
51042         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
51043         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
51044         * modules/getcwd (Depends-on): Add openat.
51045         Reported by Petr Salinger.
51046
51047 2007-12-17  Bruno Haible  <bruno@clisp.org>
51048
51049         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
51050         avoid a segmentation fault of the configure test on x86_64 systems.
51051
51052 2007-12-15  Jim Meyering  <meyering@redhat.com>
51053
51054         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
51055
51056 2007-12-13  Eric Blake  <ebb9@byu.net>
51057
51058         Another fseek test.
51059         * tests/test-fseek.c (main): Also test ungetc handling.
51060         * tests/test-fseeko.c (main): Likewise.
51061         * modules/fseeko (Depends-on): Add verify.
51062         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
51063         large.
51064         Reported by Larry Jones.
51065
51066         Fix fseeko on mingw.
51067         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
51068         seek.
51069
51070         Beef up fseek tests.
51071         * tests/test-fseek.c (main): Also test eof handling.
51072         * tests/test-fseeko.c (main): Likewise.
51073         Reported by Larry Jones.
51074
51075 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
51076
51077         Fix fseeko on BSD-based platforms.
51078         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
51079         successful seek.
51080
51081 2007-12-12  Eric Blake  <ebb9@byu.net>
51082
51083         Allow circular dependency of separate libtests.a
51084         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
51085         when use_libtests.
51086
51087 2007-12-11  Eric Blake  <ebb9@byu.net>
51088
51089         Fix bug with -0.0L in previous patch.
51090         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
51091         * tests/test-isnan.c (main): Also test on zeroes.
51092         * tests/test-isnanf.c (main): Likewise.
51093         * tests/test-isnanl.h (main): Likewise.
51094
51095         Detect pseudo-denormals on x86 even when cross-compiling.
51096         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
51097         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
51098         invalid bit patterns that happen to satisfy ==.
51099
51100         Avoid link failures with separate libtests.a.
51101         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
51102         last, to satisfy circular dependencies.
51103
51104 2007-12-11  Eric Blake  <ebb9@byu.net>
51105         and Bruno Haible  <bruno@clisp.org>
51106
51107         Fix OpenBSD 4.0 <float.h> handling of long double.
51108         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
51109         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
51110         * doc/headers/float.texi (float.h): Document OpenBSD bug.
51111
51112 2007-12-11  Jim Meyering  <meyering@redhat.com>
51113
51114         * users.txt: Add libvirt.
51115
51116         Support versions of autoconf prior to 2.59c.
51117         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
51118         if it is not already defined.
51119
51120 2007-12-09  Bruno Haible  <bruno@clisp.org>
51121
51122         Let 'gnulib-tool --import' collect sources needed for the tests in
51123         tests/ rather than in lib/.
51124         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
51125         argument. If true, add rules to generate libtests.a, and put libtests.a
51126         into $(LDADD). Consider source files in subdirectories and set
51127         uses_subdirs.
51128         (func_emit_initmacro_start, func_emit_initmacro_end,
51129         func_emit_initmacro_done): Pass all arguments explicitly.
51130         (func_import): Determine two module lists main_modules,
51131         testsrelated_modules. Determine use_libtests. Determine two variables
51132         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
51133         instead of just sed_transform_lib_file. Determine two variables
51134         main_files and testsrelated_files. Compute 'files' as the union of
51135         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
51136         func_add_or_update. In the generated gnulib-comp.m4, collect the
51137         object files for tests/ in different variables than those for lib/.
51138         Substitute LIBTESTS_LIBDEPS.
51139         (func_create_testdir): Combine the uses_subdirs results from
51140         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
51141
51142 2007-12-09  Bruno Haible  <bruno@clisp.org>
51143
51144         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
51145         the build-aux directory.
51146
51147 2007-12-09  Bruno Haible  <bruno@clisp.org>
51148
51149         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
51150         introduced on 2006-09-09.
51151
51152 2007-12-07  Jim Meyering  <meyering@redhat.com>
51153
51154         Let these macros work also with autoconf-2.59.
51155         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
51156         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
51157         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51158
51159 2007-12-06  Jim Meyering  <meyering@redhat.com>
51160
51161         Avoid a configure-time syntax error in gl_FUNC_ACL.
51162         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
51163         function in each branch, before testing the cache variable.
51164
51165 2007-12-04  Eric Blake  <ebb9@byu.net>
51166
51167         Make scripts executable.
51168         * build-aux/config.guess: Add execute permissions.
51169         * build-aux/config.sub: Likewise.
51170         * build-aux/gendocs.sh: Likewise.
51171
51172         Fix frexp on mingw.
51173         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
51174         cross-compiling.
51175         * doc/functions/frexp.texi (frexp): Document the bug.
51176
51177         Make cygwin fseeko check more reliable.
51178         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
51179         version numbers, rather than unrelated feature check.
51180         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
51181         * doc/functions/ftello.texi (ftello): Likewise.
51182         Reported by Bruno Haible.
51183
51184         * m4/strerror.m4: Bump version number.
51185
51186 2007-12-03  Bruno Haible  <bruno@clisp.org>
51187
51188         * doc/functions/mprotect.texi: Mention the mingw problem.
51189
51190 2007-12-03  Eric Blake  <ebb9@byu.net>
51191
51192         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
51193         REPLACE_STRERROR is initialized before this macro.
51194
51195 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
51196
51197         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
51198         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
51199         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
51200         put -lsec in even for programs other than 'ls'.  This fixes a problem
51201         for gettext reported by Bruno Haible in
51202         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
51203         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
51204         Add support for Solaris 10.  This isn't efficient, but should get the
51205         job done for now.
51206
51207 2007-12-03  James Youngman  <jay@gnu.org>
51208
51209         * doc/regexprops-generic.texi: change "an close-group" to "a
51210         close-group" and "illegal" to "not allowed".
51211
51212 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51213
51214         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
51215         pr_byname.h. Needed for the rare case when the maintainer has done
51216         "make maintainer-clean" in the source directory and then attempts a
51217         build outside the source directory.
51218         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
51219         scripts_byname.h.
51220
51221 2007-12-02  Martin Lambers <marlam@marlam.de>
51222             Bruno Haible  <bruno@clisp.org>
51223
51224         * lib/getpagesize.h: Remove file.
51225         * lib/unistd.in.h: Include declaration of getpagesize here.
51226         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
51227         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
51228         HAVE_SYS_PARAM_H.
51229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
51230         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
51231         * modules/getpagesize (Files): Remove lib/getpagesize.h.
51232         (Depends-on): Add unistd.
51233         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51234         (Include): Use <unistd.h> instead of getpagesize.h.
51235         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
51236         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
51237         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
51238         gl_GETPAGESIZE invocation, already handled by module dependency.
51239         * lib/pagealign_alloc.c: Don't include getpagesize.h.
51240
51241 2007-12-02  Bruno Haible  <bruno@clisp.org>
51242
51243         * modules/strings-tests: New file.
51244         * tests/test-strings.c: New file.
51245
51246         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
51247         * lib/strings.in.h: New file.
51248         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
51249         * m4/strings_h.m4: New file.
51250         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
51251         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
51252         * modules/strings: New file.
51253         * modules/string (Makefile.am): Update.
51254         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
51255         Reported by Karl Berry.
51256
51257 2007-12-01  Eric Blake  <ebb9@byu.net>
51258
51259         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
51260         accomodate fix in cygwin 1.5.25.
51261
51262 2007-12-01  Jim Meyering  <meyering@redhat.com>
51263
51264         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
51265         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
51266         that would inhibit utf8-optimization of a regexp containing line-
51267         or buffer-anchors, e.g., `^', `$'.
51268
51269 2007-11-30  Bruno Haible  <bruno@clisp.org>
51270
51271         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
51272         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
51273         glthread_recursive_lock_init.
51274         * lib/lock.c (glthread_recursive_lock_init)
51275         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
51276         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51277
51278 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
51279
51280         New function qset_acl, like set_acl but with syscall semantics.
51281         * lib/acl.h (qset_acl): New decl.
51282         * lib/acl.c (qset_acl): New function.
51283         (set_acl): Use new function.  Use more-consistent diagnostics.
51284
51285 2007-11-28  Jim Meyering  <meyering@redhat.com>
51286
51287         * modules/physmem (License): Change from GPL to LGPLv2+.
51288
51289 2007-11-26  Bruno Haible  <bruno@clisp.org>
51290
51291         * lib/vasnprintf.c (decode_long_double): Don't abort if the
51292         'long double' type has excess precision.
51293         Reported by Jim Meyering in
51294         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
51295
51296 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51297
51298         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
51299         Sync from <http://gnu.org/licenses>.
51300         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
51301         with license text from same location.
51302         * doc/maintain.texi, doc/standards.texi:  Sync from
51303         <http://savannah.gnu.org/projects/gnustandards>.
51304
51305 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
51306         and Jim Meyering  <meyering@redhat.com>
51307
51308         Adjust getdate' grammar to accept a slightly more regular language.
51309         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
51310         Before, the former was rejected.
51311         * lib/getdate.y (digits_to_date_time): New function, factored
51312         out of ...
51313         (number): ...here.  Just call digits_to_date_time.
51314         (hybrid): New non-terminal to handle an <unsigned number,
51315         signed relative offset> sequence consistently.
51316
51317 2007-11-18  Jim Meyering  <meyering@redhat.com>
51318
51319         Pull my changes from coreutils:
51320         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
51321         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
51322         use of $gnulib_tool_option_extras, so that it's separated from the
51323         preceding argument.
51324
51325         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
51326         * build-aux/bootstrap (cp_mark_as_generated): Create any required
51327         parent destination directories before copying a file into place.
51328
51329 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
51330
51331         bootstrap: work also with 4-argument variant of AC_INIT
51332         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
51333
51334 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51335
51336         Port test-getaddrinfo to Solaris.
51337         Problem reported by Bruno Haible in
51338         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
51339         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
51340         explanation of setting 'hints'.
51341         Don't reject an implementation merely because it returns EAI_SERVICE.
51342         (EAI_SERVICE): Define to 0 if not defined.
51343
51344 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
51345
51346         The license of gnu-make and posix-shell is now "GPLed build tool".
51347         * modules/gnu-make (License): Likewise.
51348         * modules/posix-shell (License): Likewise.
51349
51350         New module posix-shell, for determining a POSIX shell
51351         or perhaps something that is close enough to a POSIX shell.
51352         * m4/posix-shell.m4: New file.
51353         * modules/posix-shell: New file.
51354
51355         * MODULES.html.sh: Mention new module.
51356
51357         New module gnu-make, for determining whether we're using GNU Make.
51358         * m4/gnu-make.m4: New file.
51359         * modules/gnu-make: New file.
51360         * MODULES.html.sh: Mention new module.
51361
51362 2007-11-14  Jim Meyering  <meyering@redhat.com>
51363
51364         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
51365         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
51366         use this macro to create a function _definition_.
51367         Remove useless "#undef ARGMATCH_DIE".
51368
51369 2007-11-14  Bruno Haible  <bruno@clisp.org>
51370
51371         * lib/config.charset: Update for OpenBSD 4.1.
51372         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
51373
51374 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
51375
51376         Document 64-bit #if problems in stdint.texi.
51377         * doc/headers/stdint.texi (stdint.h): Mention problems with
51378         64-bit-#if, and how to work around them.
51379
51380         Don't insist on 'long long int' support in the preprocessor.  It
51381         breaks too many things.  For example, PRIdMAX still uses a 'long
51382         long int' format with the latest Sun compiler, even though
51383         HAVE_LONG_LONG_INT isn't defined due to that compiler's
51384         preprocessor problem.  This causes the latest coreutils to dump
51385         core on Solaris 10 sparc with the Sun C compiler.
51386         Instead, fix the 2007-10-16 problem in a different way, by evaluating
51387         the troublesome expressions at configure-time, not at #if-time.
51388         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
51389         preprocessor.
51390         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
51391         compile-time C checks, done at 'configure'-time.
51392         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
51393         * modules/inttypes (Makefile): Substitute the new symbols that
51394         gl_INTTYPES_H now generates.
51395         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
51396
51397 2007-11-12  Bruno Haible  <bruno@clisp.org>
51398
51399         Tests for Unicode character classification functions.
51400
51401         * modules/unictype/bidicategory-byname-tests: New file.
51402         * modules/unictype/bidicategory-name-tests: New file.
51403         * modules/unictype/bidicategory-of-tests: New file.
51404         * modules/unictype/bidicategory-test-tests: New file.
51405         * modules/unictype/block-list-tests: New file.
51406         * modules/unictype/block-of-tests: New file.
51407         * modules/unictype/block-test-tests: New file.
51408         * modules/unictype/category-C-tests: New file.
51409         * modules/unictype/category-Cc-tests: New file.
51410         * modules/unictype/category-Cf-tests: New file.
51411         * modules/unictype/category-Cn-tests: New file.
51412         * modules/unictype/category-Co-tests: New file.
51413         * modules/unictype/category-Cs-tests: New file.
51414         * modules/unictype/category-L-tests: New file.
51415         * modules/unictype/category-Ll-tests: New file.
51416         * modules/unictype/category-Lm-tests: New file.
51417         * modules/unictype/category-Lo-tests: New file.
51418         * modules/unictype/category-Lt-tests: New file.
51419         * modules/unictype/category-Lu-tests: New file.
51420         * modules/unictype/category-M-tests: New file.
51421         * modules/unictype/category-Mc-tests: New file.
51422         * modules/unictype/category-Me-tests: New file.
51423         * modules/unictype/category-Mn-tests: New file.
51424         * modules/unictype/category-N-tests: New file.
51425         * modules/unictype/category-Nd-tests: New file.
51426         * modules/unictype/category-Nl-tests: New file.
51427         * modules/unictype/category-No-tests: New file.
51428         * modules/unictype/category-P-tests: New file.
51429         * modules/unictype/category-Pc-tests: New file.
51430         * modules/unictype/category-Pd-tests: New file.
51431         * modules/unictype/category-Pe-tests: New file.
51432         * modules/unictype/category-Pf-tests: New file.
51433         * modules/unictype/category-Pi-tests: New file.
51434         * modules/unictype/category-Po-tests: New file.
51435         * modules/unictype/category-Ps-tests: New file.
51436         * modules/unictype/category-S-tests: New file.
51437         * modules/unictype/category-Sc-tests: New file.
51438         * modules/unictype/category-Sk-tests: New file.
51439         * modules/unictype/category-Sm-tests: New file.
51440         * modules/unictype/category-So-tests: New file.
51441         * modules/unictype/category-Z-tests: New file.
51442         * modules/unictype/category-Zl-tests: New file.
51443         * modules/unictype/category-Zp-tests: New file.
51444         * modules/unictype/category-Zs-tests: New file.
51445         * modules/unictype/category-and-not-tests: New file.
51446         * modules/unictype/category-and-tests: New file.
51447         * modules/unictype/category-byname-tests: New file.
51448         * modules/unictype/category-name-tests: New file.
51449         * modules/unictype/category-none-tests: New file.
51450         * modules/unictype/category-of-tests: New file.
51451         * modules/unictype/category-or-tests: New file.
51452         * modules/unictype/category-test-withtable-tests: New file.
51453         * modules/unictype/combining-class-tests: New file.
51454         * modules/unictype/ctype-alnum-tests: New file.
51455         * modules/unictype/ctype-alpha-tests: New file.
51456         * modules/unictype/ctype-blank-tests: New file.
51457         * modules/unictype/ctype-cntrl-tests: New file.
51458         * modules/unictype/ctype-digit-tests: New file.
51459         * modules/unictype/ctype-graph-tests: New file.
51460         * modules/unictype/ctype-lower-tests: New file.
51461         * modules/unictype/ctype-print-tests: New file.
51462         * modules/unictype/ctype-punct-tests: New file.
51463         * modules/unictype/ctype-space-tests: New file.
51464         * modules/unictype/ctype-upper-tests: New file.
51465         * modules/unictype/ctype-xdigit-tests: New file.
51466         * modules/unictype/decimal-digit-tests: New file.
51467         * modules/unictype/digit-tests: New file.
51468         * modules/unictype/mirror-tests: New file.
51469         * modules/unictype/numeric-tests: New file.
51470         * modules/unictype/property-alphabetic-tests: New file.
51471         * modules/unictype/property-ascii-hex-digit-tests: New file.
51472         * modules/unictype/property-bidi-arabic-digit-tests: New file.
51473         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
51474         * modules/unictype/property-bidi-block-separator-tests: New file.
51475         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
51476         * modules/unictype/property-bidi-common-separator-tests: New file.
51477         * modules/unictype/property-bidi-control-tests: New file.
51478         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
51479         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
51480         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
51481         * modules/unictype/property-bidi-european-digit-tests: New file.
51482         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
51483         * modules/unictype/property-bidi-left-to-right-tests: New file.
51484         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
51485         * modules/unictype/property-bidi-other-neutral-tests: New file.
51486         * modules/unictype/property-bidi-pdf-tests: New file.
51487         * modules/unictype/property-bidi-segment-separator-tests: New file.
51488         * modules/unictype/property-bidi-whitespace-tests: New file.
51489         * modules/unictype/property-byname-tests: New file.
51490         * modules/unictype/property-combining-tests: New file.
51491         * modules/unictype/property-composite-tests: New file.
51492         * modules/unictype/property-currency-symbol-tests: New file.
51493         * modules/unictype/property-dash-tests: New file.
51494         * modules/unictype/property-decimal-digit-tests: New file.
51495         * modules/unictype/property-default-ignorable-code-point-tests: New file.
51496         * modules/unictype/property-deprecated-tests: New file.
51497         * modules/unictype/property-diacritic-tests: New file.
51498         * modules/unictype/property-extender-tests: New file.
51499         * modules/unictype/property-format-control-tests: New file.
51500         * modules/unictype/property-grapheme-base-tests: New file.
51501         * modules/unictype/property-grapheme-extend-tests: New file.
51502         * modules/unictype/property-grapheme-link-tests: New file.
51503         * modules/unictype/property-hex-digit-tests: New file.
51504         * modules/unictype/property-hyphen-tests: New file.
51505         * modules/unictype/property-id-continue-tests: New file.
51506         * modules/unictype/property-id-start-tests: New file.
51507         * modules/unictype/property-ideographic-tests: New file.
51508         * modules/unictype/property-ids-binary-operator-tests: New file.
51509         * modules/unictype/property-ids-trinary-operator-tests: New file.
51510         * modules/unictype/property-ignorable-control-tests: New file.
51511         * modules/unictype/property-iso-control-tests: New file.
51512         * modules/unictype/property-join-control-tests: New file.
51513         * modules/unictype/property-left-of-pair-tests: New file.
51514         * modules/unictype/property-line-separator-tests: New file.
51515         * modules/unictype/property-logical-order-exception-tests: New file.
51516         * modules/unictype/property-lowercase-tests: New file.
51517         * modules/unictype/property-math-tests: New file.
51518         * modules/unictype/property-non-break-tests: New file.
51519         * modules/unictype/property-not-a-character-tests: New file.
51520         * modules/unictype/property-numeric-tests: New file.
51521         * modules/unictype/property-other-alphabetic-tests: New file.
51522         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
51523         * modules/unictype/property-other-grapheme-extend-tests: New file.
51524         * modules/unictype/property-other-id-continue-tests: New file.
51525         * modules/unictype/property-other-id-start-tests: New file.
51526         * modules/unictype/property-other-lowercase-tests: New file.
51527         * modules/unictype/property-other-math-tests: New file.
51528         * modules/unictype/property-other-uppercase-tests: New file.
51529         * modules/unictype/property-paired-punctuation-tests: New file.
51530         * modules/unictype/property-paragraph-separator-tests: New file.
51531         * modules/unictype/property-pattern-syntax-tests: New file.
51532         * modules/unictype/property-pattern-white-space-tests: New file.
51533         * modules/unictype/property-private-use-tests: New file.
51534         * modules/unictype/property-punctuation-tests: New file.
51535         * modules/unictype/property-quotation-mark-tests: New file.
51536         * modules/unictype/property-radical-tests: New file.
51537         * modules/unictype/property-sentence-terminal-tests: New file.
51538         * modules/unictype/property-soft-dotted-tests: New file.
51539         * modules/unictype/property-space-tests: New file.
51540         * modules/unictype/property-terminal-punctuation-tests: New file.
51541         * modules/unictype/property-test-tests: New file.
51542         * modules/unictype/property-titlecase-tests: New file.
51543         * modules/unictype/property-unassigned-code-value-tests: New file.
51544         * modules/unictype/property-unified-ideograph-tests: New file.
51545         * modules/unictype/property-uppercase-tests: New file.
51546         * modules/unictype/property-variation-selector-tests: New file.
51547         * modules/unictype/property-white-space-tests: New file.
51548         * modules/unictype/property-xid-continue-tests: New file.
51549         * modules/unictype/property-xid-start-tests: New file.
51550         * modules/unictype/property-zero-width-tests: New file.
51551         * modules/unictype/scripts-tests: New file.
51552         * modules/unictype/syntax-c-ident-tests: New file.
51553         * modules/unictype/syntax-c-whitespace-tests: New file.
51554         * modules/unictype/syntax-java-ident-tests: New file.
51555         * modules/unictype/syntax-java-whitespace-tests: New file.
51556         * tests/unictype/test-bidi_byname.c: New file.
51557         * tests/unictype/test-bidi_name.c: New file.
51558         * tests/unictype/test-bidi_of.c: New file.
51559         * tests/unictype/test-bidi_test.c: New file.
51560         * tests/unictype/test-block_list.c: New file.
51561         * tests/unictype/test-block_of.c: New file.
51562         * tests/unictype/test-block_test.c: New file.
51563         * tests/unictype/test-categ_and.c: New file.
51564         * tests/unictype/test-categ_and_not.c: New file.
51565         * tests/unictype/test-categ_byname.c: New file.
51566         * tests/unictype/test-categ_name.c: New file.
51567         * tests/unictype/test-categ_none.c: New file.
51568         * tests/unictype/test-categ_of.c: New file.
51569         * tests/unictype/test-categ_or.c: New file.
51570         * tests/unictype/test-categ_test_withtable.c: New file.
51571         * tests/unictype/test-combining.c: New file.
51572         * tests/unictype/test-decdigit.c: New file.
51573         * tests/unictype/test-digit.c: New file.
51574         * tests/unictype/test-mirror.c: New file.
51575         * tests/unictype/test-numeric.c: New file.
51576         * tests/unictype/test-pr_byname.c: New file.
51577         * tests/unictype/test-pr_test.c: New file.
51578         * tests/unictype/test-predicate-part1.h: New file.
51579         * tests/unictype/test-predicate-part2.h: New file.
51580         * tests/unictype/test-scripts.c: New file.
51581         * tests/unictype/test-sy_c_ident.c: New file.
51582         * tests/unictype/test-sy_java_ident.c: New file.
51583
51584         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
51585         for Unicode 5.0.0.
51586         * tests/unictype/test-categ_Cc.c: Likewise.
51587         * tests/unictype/test-categ_Cf.c: Likewise.
51588         * tests/unictype/test-categ_Cn.c: Likewise.
51589         * tests/unictype/test-categ_Co.c: Likewise.
51590         * tests/unictype/test-categ_Cs.c: Likewise.
51591         * tests/unictype/test-categ_L.c: Likewise.
51592         * tests/unictype/test-categ_Ll.c: Likewise.
51593         * tests/unictype/test-categ_Lm.c: Likewise.
51594         * tests/unictype/test-categ_Lo.c: Likewise.
51595         * tests/unictype/test-categ_Lt.c: Likewise.
51596         * tests/unictype/test-categ_Lu.c: Likewise.
51597         * tests/unictype/test-categ_M.c: Likewise.
51598         * tests/unictype/test-categ_Mc.c: Likewise.
51599         * tests/unictype/test-categ_Me.c: Likewise.
51600         * tests/unictype/test-categ_Mn.c: Likewise.
51601         * tests/unictype/test-categ_N.c: Likewise.
51602         * tests/unictype/test-categ_Nd.c: Likewise.
51603         * tests/unictype/test-categ_Nl.c: Likewise.
51604         * tests/unictype/test-categ_No.c: Likewise.
51605         * tests/unictype/test-categ_P.c: Likewise.
51606         * tests/unictype/test-categ_Pc.c: Likewise.
51607         * tests/unictype/test-categ_Pd.c: Likewise.
51608         * tests/unictype/test-categ_Pe.c: Likewise.
51609         * tests/unictype/test-categ_Pf.c: Likewise.
51610         * tests/unictype/test-categ_Pi.c: Likewise.
51611         * tests/unictype/test-categ_Po.c: Likewise.
51612         * tests/unictype/test-categ_Ps.c: Likewise.
51613         * tests/unictype/test-categ_S.c: Likewise.
51614         * tests/unictype/test-categ_Sc.c: Likewise.
51615         * tests/unictype/test-categ_Sk.c: Likewise.
51616         * tests/unictype/test-categ_Sm.c: Likewise.
51617         * tests/unictype/test-categ_So.c: Likewise.
51618         * tests/unictype/test-categ_Z.c: Likewise.
51619         * tests/unictype/test-categ_Zl.c: Likewise.
51620         * tests/unictype/test-categ_Zp.c: Likewise.
51621         * tests/unictype/test-categ_Zs.c: Likewise.
51622         * tests/unictype/test-ctype_alnum.c: Likewise.
51623         * tests/unictype/test-ctype_alpha.c: Likewise.
51624         * tests/unictype/test-ctype_blank.c: Likewise.
51625         * tests/unictype/test-ctype_cntrl.c: Likewise.
51626         * tests/unictype/test-ctype_digit.c: Likewise.
51627         * tests/unictype/test-ctype_graph.c: Likewise.
51628         * tests/unictype/test-ctype_lower.c: Likewise.
51629         * tests/unictype/test-ctype_print.c: Likewise.
51630         * tests/unictype/test-ctype_punct.c: Likewise.
51631         * tests/unictype/test-ctype_space.c: Likewise.
51632         * tests/unictype/test-ctype_upper.c: Likewise.
51633         * tests/unictype/test-ctype_xdigit.c: Likewise.
51634         * tests/unictype/test-decdigit.h: Likewise.
51635         * tests/unictype/test-digit.h: Likewise.
51636         * tests/unictype/test-numeric.h: Likewise.
51637         * tests/unictype/test-pr_alphabetic.c: Likewise.
51638         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
51639         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
51640         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
51641         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
51642         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
51643         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
51644         * tests/unictype/test-pr_bidi_control.c: Likewise.
51645         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
51646         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
51647         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
51648         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
51649         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
51650         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
51651         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
51652         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
51653         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
51654         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
51655         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
51656         * tests/unictype/test-pr_combining.c: Likewise.
51657         * tests/unictype/test-pr_composite.c: Likewise.
51658         * tests/unictype/test-pr_currency_symbol.c: Likewise.
51659         * tests/unictype/test-pr_dash.c: Likewise.
51660         * tests/unictype/test-pr_decimal_digit.c: Likewise.
51661         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
51662         * tests/unictype/test-pr_deprecated.c: Likewise.
51663         * tests/unictype/test-pr_diacritic.c: Likewise.
51664         * tests/unictype/test-pr_extender.c: Likewise.
51665         * tests/unictype/test-pr_format_control.c: Likewise.
51666         * tests/unictype/test-pr_grapheme_base.c: Likewise.
51667         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
51668         * tests/unictype/test-pr_grapheme_link.c: Likewise.
51669         * tests/unictype/test-pr_hex_digit.c: Likewise.
51670         * tests/unictype/test-pr_hyphen.c: Likewise.
51671         * tests/unictype/test-pr_id_continue.c: Likewise.
51672         * tests/unictype/test-pr_id_start.c: Likewise.
51673         * tests/unictype/test-pr_ideographic.c: Likewise.
51674         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
51675         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
51676         * tests/unictype/test-pr_ignorable_control.c: Likewise.
51677         * tests/unictype/test-pr_iso_control.c: Likewise.
51678         * tests/unictype/test-pr_join_control.c: Likewise.
51679         * tests/unictype/test-pr_left_of_pair.c: Likewise.
51680         * tests/unictype/test-pr_line_separator.c: Likewise.
51681         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
51682         * tests/unictype/test-pr_lowercase.c: Likewise.
51683         * tests/unictype/test-pr_math.c: Likewise.
51684         * tests/unictype/test-pr_non_break.c: Likewise.
51685         * tests/unictype/test-pr_not_a_character.c: Likewise.
51686         * tests/unictype/test-pr_numeric.c: Likewise.
51687         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
51688         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
51689         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
51690         * tests/unictype/test-pr_other_id_continue.c: Likewise.
51691         * tests/unictype/test-pr_other_id_start.c: Likewise.
51692         * tests/unictype/test-pr_other_lowercase.c: Likewise.
51693         * tests/unictype/test-pr_other_math.c: Likewise.
51694         * tests/unictype/test-pr_other_uppercase.c: Likewise.
51695         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
51696         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
51697         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
51698         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
51699         * tests/unictype/test-pr_private_use.c: Likewise.
51700         * tests/unictype/test-pr_punctuation.c: Likewise.
51701         * tests/unictype/test-pr_quotation_mark.c: Likewise.
51702         * tests/unictype/test-pr_radical.c: Likewise.
51703         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
51704         * tests/unictype/test-pr_soft_dotted.c: Likewise.
51705         * tests/unictype/test-pr_space.c: Likewise.
51706         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
51707         * tests/unictype/test-pr_titlecase.c: Likewise.
51708         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
51709         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
51710         * tests/unictype/test-pr_uppercase.c: Likewise.
51711         * tests/unictype/test-pr_variation_selector.c: Likewise.
51712         * tests/unictype/test-pr_white_space.c: Likewise.
51713         * tests/unictype/test-pr_xid_continue.c: Likewise.
51714         * tests/unictype/test-pr_xid_start.c: Likewise.
51715         * tests/unictype/test-pr_zero_width.c: Likewise.
51716         * tests/unictype/test-sy_c_whitespace.c: Likewise.
51717         * tests/unictype/test-sy_java_whitespace.c: Likewise.
51718
51719 2007-11-12  Bruno Haible  <bruno@clisp.org>
51720
51721         Unicode character classification functions.
51722         * lib/unictype.h: New file.
51723         * modules/unictype/base: New file.
51724         * modules/unictype/category-L: New file.
51725         * modules/unictype/category-Lu: New file.
51726         * modules/unictype/category-Ll: New file.
51727         * modules/unictype/category-Lt: New file.
51728         * modules/unictype/category-Lm: New file.
51729         * modules/unictype/category-Lo: New file.
51730         * modules/unictype/category-M: New file.
51731         * modules/unictype/category-Mn: New file.
51732         * modules/unictype/category-Mc: New file.
51733         * modules/unictype/category-Me: New file.
51734         * modules/unictype/category-N: New file.
51735         * modules/unictype/category-Nd: New file.
51736         * modules/unictype/category-Nl: New file.
51737         * modules/unictype/category-No: New file.
51738         * modules/unictype/category-P: New file.
51739         * modules/unictype/category-Pc: New file.
51740         * modules/unictype/category-Pd: New file.
51741         * modules/unictype/category-Ps: New file.
51742         * modules/unictype/category-Pe: New file.
51743         * modules/unictype/category-Pi: New file.
51744         * modules/unictype/category-Pf: New file.
51745         * modules/unictype/category-Po: New file.
51746         * modules/unictype/category-S: New file.
51747         * modules/unictype/category-Sm: New file.
51748         * modules/unictype/category-Sc: New file.
51749         * modules/unictype/category-Sk: New file.
51750         * modules/unictype/category-So: New file.
51751         * modules/unictype/category-Z: New file.
51752         * modules/unictype/category-Zs: New file.
51753         * modules/unictype/category-Zl: New file.
51754         * modules/unictype/category-Zp: New file.
51755         * modules/unictype/category-C: New file.
51756         * modules/unictype/category-Cc: New file.
51757         * modules/unictype/category-Cf: New file.
51758         * modules/unictype/category-Cs: New file.
51759         * modules/unictype/category-Co: New file.
51760         * modules/unictype/category-Cn: New file.
51761         * modules/unictype/category-or: New file.
51762         * modules/unictype/category-of: New file.
51763         * modules/unictype/category-test: New file.
51764         * modules/unictype/category-test-withtable: New file.
51765         * modules/unictype/category-byname: New file.
51766         * modules/unictype/category-none: New file.
51767         * modules/unictype/category-and: New file.
51768         * modules/unictype/category-and-not: New file.
51769         * modules/unictype/category-name: New file.
51770         * modules/unictype/combining-class: New file.
51771         * modules/unictype/category-all: New file.
51772         * modules/unictype/bidicategory-all: New file.
51773         * modules/unictype/bidicategory-byname: New file.
51774         * modules/unictype/bidicategory-name: New file.
51775         * modules/unictype/bidicategory-of: New file.
51776         * modules/unictype/bidicategory-test: New file.
51777         * modules/unictype/decimal-digit: New file.
51778         * modules/unictype/digit: New file.
51779         * modules/unictype/numeric: New file.
51780         * modules/unictype/mirror: New file.
51781         * modules/unictype/property-white-space: New file.
51782         * modules/unictype/property-alphabetic: New file.
51783         * modules/unictype/property-other-alphabetic: New file.
51784         * modules/unictype/property-not-a-character: New file.
51785         * modules/unictype/property-default-ignorable-code-point: New file.
51786         * modules/unictype/property-other-default-ignorable-code-point: New
51787         file.
51788         * modules/unictype/property-deprecated: New file.
51789         * modules/unictype/property-logical-order-exception: New file.
51790         * modules/unictype/property-variation-selector: New file.
51791         * modules/unictype/property-private-use: New file.
51792         * modules/unictype/property-unassigned-code-value: New file.
51793         * modules/unictype/property-uppercase: New file.
51794         * modules/unictype/property-other-uppercase: New file.
51795         * modules/unictype/property-lowercase: New file.
51796         * modules/unictype/property-other-lowercase: New file.
51797         * modules/unictype/property-titlecase: New file.
51798         * modules/unictype/property-soft-dotted: New file.
51799         * modules/unictype/property-id-start: New file.
51800         * modules/unictype/property-other-id-start: New file.
51801         * modules/unictype/property-id-continue: New file.
51802         * modules/unictype/property-other-id-continue: New file.
51803         * modules/unictype/property-xid-start: New file.
51804         * modules/unictype/property-xid-continue: New file.
51805         * modules/unictype/property-pattern-white-space: New file.
51806         * modules/unictype/property-pattern-syntax: New file.
51807         * modules/unictype/property-join-control: New file.
51808         * modules/unictype/property-grapheme-base: New file.
51809         * modules/unictype/property-grapheme-extend: New file.
51810         * modules/unictype/property-other-grapheme-extend: New file.
51811         * modules/unictype/property-grapheme-link: New file.
51812         * modules/unictype/property-bidi-control: New file.
51813         * modules/unictype/property-bidi-left-to-right: New file.
51814         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
51815         * modules/unictype/property-bidi-arabic-right-to-left: New file.
51816         * modules/unictype/property-bidi-european-digit: New file.
51817         * modules/unictype/property-bidi-eur-num-separator: New file.
51818         * modules/unictype/property-bidi-eur-num-terminator: New file.
51819         * modules/unictype/property-bidi-arabic-digit: New file.
51820         * modules/unictype/property-bidi-common-separator: New file.
51821         * modules/unictype/property-bidi-block-separator: New file.
51822         * modules/unictype/property-bidi-segment-separator: New file.
51823         * modules/unictype/property-bidi-whitespace: New file.
51824         * modules/unictype/property-bidi-non-spacing-mark: New file.
51825         * modules/unictype/property-bidi-boundary-neutral: New file.
51826         * modules/unictype/property-bidi-pdf: New file.
51827         * modules/unictype/property-bidi-embedding-or-override: New file.
51828         * modules/unictype/property-bidi-other-neutral: New file.
51829         * modules/unictype/property-hex-digit: New file.
51830         * modules/unictype/property-ascii-hex-digit: New file.
51831         * modules/unictype/property-ideographic: New file.
51832         * modules/unictype/property-unified-ideograph: New file.
51833         * modules/unictype/property-radical: New file.
51834         * modules/unictype/property-ids-binary-operator: New file.
51835         * modules/unictype/property-ids-trinary-operator: New file.
51836         * modules/unictype/property-zero-width: New file.
51837         * modules/unictype/property-space: New file.
51838         * modules/unictype/property-non-break: New file.
51839         * modules/unictype/property-iso-control: New file.
51840         * modules/unictype/property-format-control: New file.
51841         * modules/unictype/property-dash: New file.
51842         * modules/unictype/property-hyphen: New file.
51843         * modules/unictype/property-punctuation: New file.
51844         * modules/unictype/property-line-separator: New file.
51845         * modules/unictype/property-paragraph-separator: New file.
51846         * modules/unictype/property-quotation-mark: New file.
51847         * modules/unictype/property-sentence-terminal: New file.
51848         * modules/unictype/property-terminal-punctuation: New file.
51849         * modules/unictype/property-currency-symbol: New file.
51850         * modules/unictype/property-math: New file.
51851         * modules/unictype/property-other-math: New file.
51852         * modules/unictype/property-paired-punctuation: New file.
51853         * modules/unictype/property-left-of-pair: New file.
51854         * modules/unictype/property-combining: New file.
51855         * modules/unictype/property-composite: New file.
51856         * modules/unictype/property-decimal-digit: New file.
51857         * modules/unictype/property-numeric: New file.
51858         * modules/unictype/property-diacritic: New file.
51859         * modules/unictype/property-extender: New file.
51860         * modules/unictype/property-ignorable-control: New file.
51861         * modules/unictype/property-test: New file.
51862         * modules/unictype/property-byname: New file.
51863         * modules/unictype/property-all: New file.
51864         * modules/unictype/scripts: New file.
51865         * modules/unictype/scripts-all: New file.
51866         * modules/unictype/block-of: New file.
51867         * modules/unictype/block-test: New file.
51868         * modules/unictype/block-list: New file.
51869         * modules/unictype/block-all: New file.
51870         * modules/unictype/syntax-c-whitespace: New file.
51871         * modules/unictype/syntax-java-whitespace: New file.
51872         * modules/unictype/syntax-c-ident: New file.
51873         * modules/unictype/syntax-java-ident: New file.
51874         * modules/unictype/ctype-alnum: New file.
51875         * modules/unictype/ctype-alpha: New file.
51876         * modules/unictype/ctype-cntrl: New file.
51877         * modules/unictype/ctype-digit: New file.
51878         * modules/unictype/ctype-graph: New file.
51879         * modules/unictype/ctype-lower: New file.
51880         * modules/unictype/ctype-print: New file.
51881         * modules/unictype/ctype-punct: New file.
51882         * modules/unictype/ctype-space: New file.
51883         * modules/unictype/ctype-upper: New file.
51884         * modules/unictype/ctype-xdigit: New file.
51885         * modules/unictype/ctype-blank: New file.
51886         * lib/unictype/bidi_byname.c: New file.
51887         * lib/unictype/bidi_name.c: New file.
51888         * lib/unictype/bidi_of.c: New file.
51889         * lib/unictype/bidi_test.c: New file.
51890         * lib/unictype/bitmap.h: New file.
51891         * lib/unictype/block_test.c: New file.
51892         * lib/unictype/blocks.c: New file.
51893         * lib/unictype/categ_C.c: New file.
51894         * lib/unictype/categ_Cc.c: New file.
51895         * lib/unictype/categ_Cf.c: New file.
51896         * lib/unictype/categ_Cn.c: New file.
51897         * lib/unictype/categ_Co.c: New file.
51898         * lib/unictype/categ_Cs.c: New file.
51899         * lib/unictype/categ_L.c: New file.
51900         * lib/unictype/categ_Ll.c: New file.
51901         * lib/unictype/categ_Lm.c: New file.
51902         * lib/unictype/categ_Lo.c: New file.
51903         * lib/unictype/categ_Lt.c: New file.
51904         * lib/unictype/categ_Lu.c: New file.
51905         * lib/unictype/categ_M.c: New file.
51906         * lib/unictype/categ_Mc.c: New file.
51907         * lib/unictype/categ_Me.c: New file.
51908         * lib/unictype/categ_Mn.c: New file.
51909         * lib/unictype/categ_N.c: New file.
51910         * lib/unictype/categ_Nd.c: New file.
51911         * lib/unictype/categ_Nl.c: New file.
51912         * lib/unictype/categ_No.c: New file.
51913         * lib/unictype/categ_P.c: New file.
51914         * lib/unictype/categ_Pc.c: New file.
51915         * lib/unictype/categ_Pd.c: New file.
51916         * lib/unictype/categ_Pe.c: New file.
51917         * lib/unictype/categ_Pf.c: New file.
51918         * lib/unictype/categ_Pi.c: New file.
51919         * lib/unictype/categ_Po.c: New file.
51920         * lib/unictype/categ_Ps.c: New file.
51921         * lib/unictype/categ_S.c: New file.
51922         * lib/unictype/categ_Sc.c: New file.
51923         * lib/unictype/categ_Sk.c: New file.
51924         * lib/unictype/categ_Sm.c: New file.
51925         * lib/unictype/categ_So.c: New file.
51926         * lib/unictype/categ_Z.c: New file.
51927         * lib/unictype/categ_Zl.c: New file.
51928         * lib/unictype/categ_Zp.c: New file.
51929         * lib/unictype/categ_Zs.c: New file.
51930         * lib/unictype/categ_and.c: New file.
51931         * lib/unictype/categ_and_not.c: New file.
51932         * lib/unictype/categ_byname.c: New file.
51933         * lib/unictype/categ_name.c: New file.
51934         * lib/unictype/categ_none.c: New file.
51935         * lib/unictype/categ_of.c: New file.
51936         * lib/unictype/categ_or.c: New file.
51937         * lib/unictype/categ_test.c: New file.
51938         * lib/unictype/combining.c: New file.
51939         * lib/unictype/ctype_alnum.c: New file.
51940         * lib/unictype/ctype_alpha.c: New file.
51941         * lib/unictype/ctype_blank.c: New file.
51942         * lib/unictype/ctype_cntrl.c: New file.
51943         * lib/unictype/ctype_digit.c: New file.
51944         * lib/unictype/ctype_graph.c: New file.
51945         * lib/unictype/ctype_lower.c: New file.
51946         * lib/unictype/ctype_print.c: New file.
51947         * lib/unictype/ctype_punct.c: New file.
51948         * lib/unictype/ctype_space.c: New file.
51949         * lib/unictype/ctype_upper.c: New file.
51950         * lib/unictype/ctype_xdigit.c: New file.
51951         * lib/unictype/decdigit.c: New file.
51952         * lib/unictype/digit.c: New file.
51953         * lib/unictype/identsyntaxmap.h: New file.
51954         * lib/unictype/mirror.c: New file.
51955         * lib/unictype/numeric.c: New file.
51956         * lib/unictype/pr_alphabetic.c: New file.
51957         * lib/unictype/pr_ascii_hex_digit.c: New file.
51958         * lib/unictype/pr_bidi_arabic_digit.c: New file.
51959         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
51960         * lib/unictype/pr_bidi_block_separator.c: New file.
51961         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
51962         * lib/unictype/pr_bidi_common_separator.c: New file.
51963         * lib/unictype/pr_bidi_control.c: New file.
51964         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
51965         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
51966         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
51967         * lib/unictype/pr_bidi_european_digit.c: New file.
51968         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
51969         * lib/unictype/pr_bidi_left_to_right.c: New file.
51970         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
51971         * lib/unictype/pr_bidi_other_neutral.c: New file.
51972         * lib/unictype/pr_bidi_pdf.c: New file.
51973         * lib/unictype/pr_bidi_segment_separator.c: New file.
51974         * lib/unictype/pr_bidi_whitespace.c: New file.
51975         * lib/unictype/pr_byname.c: New file.
51976         * lib/unictype/pr_byname.gperf: New file.
51977         * lib/unictype/pr_combining.c: New file.
51978         * lib/unictype/pr_composite.c: New file.
51979         * lib/unictype/pr_currency_symbol.c: New file.
51980         * lib/unictype/pr_dash.c: New file.
51981         * lib/unictype/pr_decimal_digit.c: New file.
51982         * lib/unictype/pr_default_ignorable_code_point.c: New file.
51983         * lib/unictype/pr_deprecated.c: New file.
51984         * lib/unictype/pr_diacritic.c: New file.
51985         * lib/unictype/pr_extender.c: New file.
51986         * lib/unictype/pr_format_control.c: New file.
51987         * lib/unictype/pr_grapheme_base.c: New file.
51988         * lib/unictype/pr_grapheme_extend.c: New file.
51989         * lib/unictype/pr_grapheme_link.c: New file.
51990         * lib/unictype/pr_hex_digit.c: New file.
51991         * lib/unictype/pr_hyphen.c: New file.
51992         * lib/unictype/pr_id_continue.c: New file.
51993         * lib/unictype/pr_id_start.c: New file.
51994         * lib/unictype/pr_ideographic.c: New file.
51995         * lib/unictype/pr_ids_binary_operator.c: New file.
51996         * lib/unictype/pr_ids_trinary_operator.c: New file.
51997         * lib/unictype/pr_ignorable_control.c: New file.
51998         * lib/unictype/pr_iso_control.c: New file.
51999         * lib/unictype/pr_join_control.c: New file.
52000         * lib/unictype/pr_left_of_pair.c: New file.
52001         * lib/unictype/pr_line_separator.c: New file.
52002         * lib/unictype/pr_logical_order_exception.c: New file.
52003         * lib/unictype/pr_lowercase.c: New file.
52004         * lib/unictype/pr_math.c: New file.
52005         * lib/unictype/pr_non_break.c: New file.
52006         * lib/unictype/pr_not_a_character.c: New file.
52007         * lib/unictype/pr_numeric.c: New file.
52008         * lib/unictype/pr_other_alphabetic.c: New file.
52009         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
52010         * lib/unictype/pr_other_grapheme_extend.c: New file.
52011         * lib/unictype/pr_other_id_continue.c: New file.
52012         * lib/unictype/pr_other_id_start.c: New file.
52013         * lib/unictype/pr_other_lowercase.c: New file.
52014         * lib/unictype/pr_other_math.c: New file.
52015         * lib/unictype/pr_other_uppercase.c: New file.
52016         * lib/unictype/pr_paired_punctuation.c: New file.
52017         * lib/unictype/pr_paragraph_separator.c: New file.
52018         * lib/unictype/pr_pattern_syntax.c: New file.
52019         * lib/unictype/pr_pattern_white_space.c: New file.
52020         * lib/unictype/pr_private_use.c: New file.
52021         * lib/unictype/pr_punctuation.c: New file.
52022         * lib/unictype/pr_quotation_mark.c: New file.
52023         * lib/unictype/pr_radical.c: New file.
52024         * lib/unictype/pr_sentence_terminal.c: New file.
52025         * lib/unictype/pr_soft_dotted.c: New file.
52026         * lib/unictype/pr_space.c: New file.
52027         * lib/unictype/pr_terminal_punctuation.c: New file.
52028         * lib/unictype/pr_test.c: New file.
52029         * lib/unictype/pr_titlecase.c: New file.
52030         * lib/unictype/pr_unassigned_code_value.c: New file.
52031         * lib/unictype/pr_unified_ideograph.c: New file.
52032         * lib/unictype/pr_uppercase.c: New file.
52033         * lib/unictype/pr_variation_selector.c: New file.
52034         * lib/unictype/pr_white_space.c: New file.
52035         * lib/unictype/pr_xid_continue.c: New file.
52036         * lib/unictype/pr_xid_start.c: New file.
52037         * lib/unictype/pr_zero_width.c: New file.
52038         * lib/unictype/scripts.c: New file.
52039         * lib/unictype/sy_c_ident.c: New file.
52040         * lib/unictype/sy_c_whitespace.c: New file.
52041         * lib/unictype/sy_java_ident.c: New file.
52042         * lib/unictype/sy_java_whitespace.c: New file.
52043
52044         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
52045         Unicode 5.0.0.
52046         * lib/unictype/blocks.h: Likewise.
52047         * lib/unictype/categ_C.h: Likewise.
52048         * lib/unictype/categ_Cc.h: Likewise.
52049         * lib/unictype/categ_Cf.h: Likewise.
52050         * lib/unictype/categ_Cn.h: Likewise.
52051         * lib/unictype/categ_Co.h: Likewise.
52052         * lib/unictype/categ_Cs.h: Likewise.
52053         * lib/unictype/categ_L.h: Likewise.
52054         * lib/unictype/categ_Ll.h: Likewise.
52055         * lib/unictype/categ_Lm.h: Likewise.
52056         * lib/unictype/categ_Lo.h: Likewise.
52057         * lib/unictype/categ_Lt.h: Likewise.
52058         * lib/unictype/categ_Lu.h: Likewise.
52059         * lib/unictype/categ_M.h: Likewise.
52060         * lib/unictype/categ_Mc.h: Likewise.
52061         * lib/unictype/categ_Me.h: Likewise.
52062         * lib/unictype/categ_Mn.h: Likewise.
52063         * lib/unictype/categ_N.h: Likewise.
52064         * lib/unictype/categ_Nd.h: Likewise.
52065         * lib/unictype/categ_Nl.h: Likewise.
52066         * lib/unictype/categ_No.h: Likewise.
52067         * lib/unictype/categ_P.h: Likewise.
52068         * lib/unictype/categ_Pc.h: Likewise.
52069         * lib/unictype/categ_Pd.h: Likewise.
52070         * lib/unictype/categ_Pe.h: Likewise.
52071         * lib/unictype/categ_Pf.h: Likewise.
52072         * lib/unictype/categ_Pi.h: Likewise.
52073         * lib/unictype/categ_Po.h: Likewise.
52074         * lib/unictype/categ_Ps.h: Likewise.
52075         * lib/unictype/categ_S.h: Likewise.
52076         * lib/unictype/categ_Sc.h: Likewise.
52077         * lib/unictype/categ_Sk.h: Likewise.
52078         * lib/unictype/categ_Sm.h: Likewise.
52079         * lib/unictype/categ_So.h: Likewise.
52080         * lib/unictype/categ_Z.h: Likewise.
52081         * lib/unictype/categ_Zl.h: Likewise.
52082         * lib/unictype/categ_Zp.h: Likewise.
52083         * lib/unictype/categ_Zs.h: Likewise.
52084         * lib/unictype/categ_of.h: Likewise.
52085         * lib/unictype/combining.h: Likewise.
52086         * lib/unictype/ctype_alnum.h: Likewise.
52087         * lib/unictype/ctype_alpha.h: Likewise.
52088         * lib/unictype/ctype_blank.h: Likewise.
52089         * lib/unictype/ctype_cntrl.h: Likewise.
52090         * lib/unictype/ctype_digit.h: Likewise.
52091         * lib/unictype/ctype_graph.h: Likewise.
52092         * lib/unictype/ctype_lower.h: Likewise.
52093         * lib/unictype/ctype_print.h: Likewise.
52094         * lib/unictype/ctype_punct.h: Likewise.
52095         * lib/unictype/ctype_space.h: Likewise.
52096         * lib/unictype/ctype_upper.h: Likewise.
52097         * lib/unictype/ctype_xdigit.h: Likewise.
52098         * lib/unictype/decdigit.h: Likewise.
52099         * lib/unictype/digit.h: Likewise.
52100         * lib/unictype/mirror.h: Likewise.
52101         * lib/unictype/numeric.h: Likewise.
52102         * lib/unictype/pr_alphabetic.h: Likewise.
52103         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
52104         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
52105         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
52106         * lib/unictype/pr_bidi_block_separator.h: Likewise.
52107         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
52108         * lib/unictype/pr_bidi_common_separator.h: Likewise.
52109         * lib/unictype/pr_bidi_control.h: Likewise.
52110         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
52111         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
52112         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
52113         * lib/unictype/pr_bidi_european_digit.h: Likewise.
52114         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
52115         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
52116         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
52117         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
52118         * lib/unictype/pr_bidi_pdf.h: Likewise.
52119         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
52120         * lib/unictype/pr_bidi_whitespace.h: Likewise.
52121         * lib/unictype/pr_combining.h: Likewise.
52122         * lib/unictype/pr_composite.h: Likewise.
52123         * lib/unictype/pr_currency_symbol.h: Likewise.
52124         * lib/unictype/pr_dash.h: Likewise.
52125         * lib/unictype/pr_decimal_digit.h: Likewise.
52126         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
52127         * lib/unictype/pr_deprecated.h: Likewise.
52128         * lib/unictype/pr_diacritic.h: Likewise.
52129         * lib/unictype/pr_extender.h: Likewise.
52130         * lib/unictype/pr_format_control.h: Likewise.
52131         * lib/unictype/pr_grapheme_base.h: Likewise.
52132         * lib/unictype/pr_grapheme_extend.h: Likewise.
52133         * lib/unictype/pr_grapheme_link.h: Likewise.
52134         * lib/unictype/pr_hex_digit.h: Likewise.
52135         * lib/unictype/pr_hyphen.h: Likewise.
52136         * lib/unictype/pr_id_continue.h: Likewise.
52137         * lib/unictype/pr_id_start.h: Likewise.
52138         * lib/unictype/pr_ideographic.h: Likewise.
52139         * lib/unictype/pr_ids_binary_operator.h: Likewise.
52140         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
52141         * lib/unictype/pr_ignorable_control.h: Likewise.
52142         * lib/unictype/pr_iso_control.h: Likewise.
52143         * lib/unictype/pr_join_control.h: Likewise.
52144         * lib/unictype/pr_left_of_pair.h: Likewise.
52145         * lib/unictype/pr_line_separator.h: Likewise.
52146         * lib/unictype/pr_logical_order_exception.h: Likewise.
52147         * lib/unictype/pr_lowercase.h: Likewise.
52148         * lib/unictype/pr_math.h: Likewise.
52149         * lib/unictype/pr_non_break.h: Likewise.
52150         * lib/unictype/pr_not_a_character.h: Likewise.
52151         * lib/unictype/pr_numeric.h: Likewise.
52152         * lib/unictype/pr_other_alphabetic.h: Likewise.
52153         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
52154         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
52155         * lib/unictype/pr_other_id_continue.h: Likewise.
52156         * lib/unictype/pr_other_id_start.h: Likewise.
52157         * lib/unictype/pr_other_lowercase.h: Likewise.
52158         * lib/unictype/pr_other_math.h: Likewise.
52159         * lib/unictype/pr_other_uppercase.h: Likewise.
52160         * lib/unictype/pr_paired_punctuation.h: Likewise.
52161         * lib/unictype/pr_paragraph_separator.h: Likewise.
52162         * lib/unictype/pr_pattern_syntax.h: Likewise.
52163         * lib/unictype/pr_pattern_white_space.h: Likewise.
52164         * lib/unictype/pr_private_use.h: Likewise.
52165         * lib/unictype/pr_punctuation.h: Likewise.
52166         * lib/unictype/pr_quotation_mark.h: Likewise.
52167         * lib/unictype/pr_radical.h: Likewise.
52168         * lib/unictype/pr_sentence_terminal.h: Likewise.
52169         * lib/unictype/pr_soft_dotted.h: Likewise.
52170         * lib/unictype/pr_space.h: Likewise.
52171         * lib/unictype/pr_terminal_punctuation.h: Likewise.
52172         * lib/unictype/pr_titlecase.h: Likewise.
52173         * lib/unictype/pr_unassigned_code_value.h: Likewise.
52174         * lib/unictype/pr_unified_ideograph.h: Likewise.
52175         * lib/unictype/pr_uppercase.h: Likewise.
52176         * lib/unictype/pr_variation_selector.h: Likewise.
52177         * lib/unictype/pr_white_space.h: Likewise.
52178         * lib/unictype/pr_xid_continue.h: Likewise.
52179         * lib/unictype/pr_xid_start.h: Likewise.
52180         * lib/unictype/pr_zero_width.h: Likewise.
52181         * lib/unictype/scripts.h: Likewise.
52182         * lib/unictype/scripts_byname.gperf: Likewise.
52183         * lib/unictype/sy_c_ident.h: Likewise.
52184         * lib/unictype/sy_c_whitespace.h: Likewise.
52185         * lib/unictype/sy_java_ident.h: Likewise.
52186         * lib/unictype/sy_java_whitespace.h: Likewise.
52187
52188         * lib/unictype/Makefile: New file.
52189         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
52190         glibc.
52191         * lib/unictype/3level.h: New file, copied from glibc.
52192         * lib/unictype/3levelbit.h: New file.
52193
52194 2007-11-11  Bruno Haible  <bruno@clisp.org>
52195
52196         * modules/gperf: New file.
52197         * modules/iconv_open (Depends-on): Add it.
52198         (Makefile.am): Remove the GPERF definition.
52199
52200 2007-11-11  Bruno Haible  <bruno@clisp.org>
52201
52202         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
52203         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
52204
52205 2007-11-11  Bruno Haible  <bruno@clisp.org>
52206
52207         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
52208         (usage): Remove function.
52209
52210 2007-11-11  Bruno Haible  <bruno@clisp.org>
52211
52212         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
52213         gl_FUNC_CEILF_LIBS.
52214         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
52215         gl_FUNC_CEIL_LIBS.
52216         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
52217         gl_FUNC_CEILL_LIBS.
52218         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
52219         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
52220         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
52221
52222 2007-11-11  Bruno Haible  <bruno@clisp.org>
52223
52224         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
52225         roundf were declared but do not exist on functions.
52226         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
52227         roundl were declared but do not exist on functions.
52228         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
52229         HAVE_FLOORL_AND_CEILL, respectively.
52230         Needed for Sun C on Solaris 10.
52231
52232 2007-11-11  Bruno Haible  <bruno@clisp.org>
52233
52234         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
52235         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
52236         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
52237         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
52238         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
52239         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
52240         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
52241         HAVE_DECL_ROUNDF.
52242         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
52243         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
52244         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
52245         of HAVE_DECL_ROUND*.
52246         * modules/math (Makefile.am): Update.
52247
52248 2007-11-10  Bruno Haible  <bruno@clisp.org>
52249
52250         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
52251         ptrdiff_t as m4/intl.m4.
52252
52253 2007-11-10  Jim Meyering  <meyering@redhat.com>
52254
52255         Avoid link failure for the argmatch test.
52256         * tests/test-argmatch.c (usage): Define function to avoid a link
52257         failure: argmatch_die requires a usage function.
52258
52259 2007-11-09  Bruno Haible  <bruno@clisp.org>
52260
52261         * doc/functions/snprintf.texi: Mention BeOS deficiency.
52262         * doc/functions/vsnprintf.texi: Likewise.
52263         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
52264         with a size argument < 2.
52265
52266 2007-11-09  Bruno Haible  <bruno@clisp.org>
52267
52268         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
52269         buffer. Fixes an inefficiency introduced on 2007-11-03.
52270
52271 2007-11-09  Bruno Haible  <bruno@clisp.org>
52272
52273         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
52274         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
52275
52276 2007-11-08  Jim Meyering  <meyering@redhat.com>
52277
52278         Change cache variable name prefix "jm_" to "gl_" everywhere.
52279         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
52280         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
52281         * m4/uptime.m4: s/gl_/jm_/
52282
52283 2007-11-07  Bruno Haible  <bruno@clisp.org>
52284
52285         Update to GNU gettext 0.17.
52286         * m4/intl.m4: Update to GNU gettext 0.17.
52287         * m4/po.m4: Likewise.
52288         * modules/gettext (Files): Remove m4/ulonglong.m4.
52289         (configure.ac): Require gettext infrastructure from version 0.17.
52290
52291 2007-11-06  Bruno Haible  <bruno@clisp.org>
52292
52293         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
52294         symbolic values are not defined in a public header.
52295         * lib/freadable.c (freadable) [QNX]: Likewise.
52296         * lib/freadahead.c (freadahead) [QNX]: Likewise.
52297         * lib/freading.c (freading) [QNX]: Likewise.
52298         * lib/fseterr.c (fseterr) [QNX]: Likewise.
52299         * lib/fwritable.c (fwritable) [QNX]: Likewise.
52300         * lib/fwriting.c (fwriting) [QNX]: Likewise.
52301         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
52302         Reported by Alain Magloire.
52303
52304         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
52305
52306 2007-11-05  Bruno Haible  <bruno@clisp.org>
52307
52308         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
52309         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
52310         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
52311         Reported by Eric Blake.
52312
52313 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52314             Bruno Haible  <bruno@clisp.org>
52315
52316         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
52317         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
52318         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
52319         (malloc): Undefine also before including <stdlib.h>.
52320         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
52321         Needed on OSF/1 4.0.
52322
52323 2007-11-05  Jim Meyering  <meyering@redhat.com>
52324
52325         git-version-gen: sync from coreutils.
52326         * build-aux/git-version-gen: Add comments.
52327         Change the first '-' to '.' in the snapshot version string,
52328         e.g., 6.9-377-08144 -> 6.9.377-08144
52329         Remove first parameter.
52330         Don't declare a version "-dirty" merely because a time
52331         stamp has changed.
52332
52333 2007-11-04  Bruno Haible  <bruno@clisp.org>
52334
52335         * lib/lock.h: Protect all macro definitions containing an 'if'
52336         statement through a "do { ... } while (0)".
52337         * lib/tls.h: Likewise.
52338
52339 2007-11-04  Bruno Haible  <bruno@clisp.org>
52340
52341         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
52342
52343 2007-11-04  Bruno Haible  <bruno@clisp.org>
52344
52345         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
52346         * modules/fprintf-posix (Depends-on): Add nocrash.
52347         * modules/snprintf-posix (Depends-on): Likewise.
52348         * modules/sprintf-posix (Depends-on): Likewise.
52349         * modules/vasnprintf-posix (Depends-on): Likewise.
52350         * modules/vasprintf-posix (Depends-on): Likewise.
52351         * modules/vfprintf-posix (Depends-on): Likewise.
52352         * modules/vsnprintf-posix (Depends-on): Likewise.
52353         * modules/vsprintf-posix (Depends-on): Likewise.
52354         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52355         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52356         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52357         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52358         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52359         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52360         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52361
52362 2007-11-04  Bruno Haible  <bruno@clisp.org>
52363
52364         * modules/nocrash: New file.
52365         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
52366         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
52367
52368 2007-11-04  Bruno Haible  <bruno@clisp.org>
52369
52370         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
52371         precision handling.
52372         * tests/test-vasprintf-posix.c (test_function): Likewise.
52373         * tests/test-snprintf-posix.h (test_function): Likewise.
52374         * tests/test-sprintf-posix.h (test_function): Likewise.
52375
52376         Fix *printf behaviour for large precisions on mingw and BeOS.
52377         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
52378         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
52379         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
52380         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52381         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52382         gl_PRINTF_PRECISION and test its result. Invoke
52383         gl_PREREQ_VASNPRINTF_PRECISION.
52384         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52385         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52386         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52387         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52388         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52389         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52390         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52391         * doc/functions/fprintf.texi: Update.
52392         * doc/functions/printf.texi: Update.
52393         * doc/functions/snprintf.texi: Update.
52394         * doc/functions/sprintf.texi: Update.
52395         * doc/functions/vfprintf.texi: Update.
52396         * doc/functions/vprintf.texi: Update.
52397         * doc/functions/vsnprintf.texi: Update.
52398         * doc/functions/vsprintf.texi: Update.
52399
52400 2007-11-04  Bruno Haible  <bruno@clisp.org>
52401
52402         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
52403
52404 2007-11-04  Bruno Haible  <bruno@clisp.org>
52405
52406         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
52407         Reported by Sylvain Beucler <beuc@gnu.org>.
52408
52409 2007-11-03  Bruno Haible  <bruno@clisp.org>
52410
52411         * tests/test-fprintf-posix2.sh: New file.
52412         * tests/test-fprintf-posix2.c: New file.
52413         * modules/fprintf-posix-tests (Files): Add them.
52414         (TESTS): Add test-fprintf-posix2.sh.
52415         (configure.ac): Check for getrlimit and setrlimit.
52416         (check_PROGRAMS): Add test-fprintf-posix2.
52417
52418         * tests/test-printf-posix2.sh: New file.
52419         * tests/test-printf-posix2.c: New file.
52420         * modules/printf-posix-tests (Files): Add them.
52421         (TESTS): Add test-printf-posix2.sh.
52422         (configure.ac): Check for getrlimit and setrlimit.
52423         (check_PROGRAMS): Add test-printf-posix2.
52424
52425         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
52426         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
52427         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
52428         (decode_double): New function, copied from decode_long_double.
52429         (scale10_round_decimal_decoded): New function, extracted from
52430         scale10_round_decimal_long_double.
52431         (scale10_round_decimal_long_double): Use it.
52432         (scale10_round_decimal_double): New function.
52433         (floorlog10): New function.
52434         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
52435         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
52436         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52437         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52438         gl_PRINTF_ENOMEM and test its result. Invoke
52439         gl_PREREQ_VASNPRINTF_ENOMEM.
52440         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52441         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52442         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52443         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52444         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52445         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52446         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52447         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
52448         * modules/snprintf-posix (Depends-on): Likewise.
52449         * modules/sprintf-posix (Depends-on): Likewise.
52450         * modules/vasnprintf-posix (Depends-on): Likewise.
52451         * modules/vasprintf-posix (Depends-on): Likewise.
52452         * modules/vfprintf-posix (Depends-on): Likewise.
52453         * modules/vsnprintf-posix (Depends-on): Likewise.
52454         * modules/vsprintf-posix (Depends-on): Likewise.
52455         * doc/functions/fprintf.texi: Update.
52456         * doc/functions/printf.texi: Update.
52457         * doc/functions/snprintf.texi: Update.
52458         * doc/functions/sprintf.texi: Update.
52459         * doc/functions/vfprintf.texi: Update.
52460         * doc/functions/vprintf.texi: Update.
52461         * doc/functions/vsnprintf.texi: Update.
52462         * doc/functions/vsprintf.texi: Update.
52463
52464 2007-11-03  Bruno Haible  <bruno@clisp.org>
52465
52466         * modules/frexp-nolibm-tests: New file.
52467
52468         * modules/frexp-nolibm: New file.
52469         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
52470
52471 2007-11-03  Bruno Haible  <bruno@clisp.org>
52472
52473         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
52474         value is C99 compliant.
52475         Needed for OSF/1 5.1.
52476
52477 2007-11-03  Bruno Haible  <bruno@clisp.org>
52478
52479         Fix out-of-memory handling of vasnprintf.
52480         * lib/printf-parse.c: Include <errno.h>.
52481         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
52482         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
52483         is already set.
52484
52485 2007-11-02  Eric Blake  <ebb9@byu.net>
52486
52487         Fix tests on cygwin.
52488         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
52489
52490 2007-11-01  Bruno Haible  <bruno@clisp.org>
52491
52492         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
52493         warning.
52494         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
52495         needed for POSIX compatibility.
52496
52497 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52498
52499         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
52500         for compatibility with GNU.
52501
52502 2007-11-01  Bruno Haible  <bruno@clisp.org>
52503
52504         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
52505         (putenv): Renamed from rpl_putenv. Change argument type from
52506         'const char *' to 'char *'.
52507         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
52508         of defining putenv in config.h, just set REPLACE_PUTENV.
52509         * modules/putenv (Depends-on): Add stdlib.
52510         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52511         (Include): Use <stdlib.h>.
52512         * lib/stdlib.in.h (putenv): New declaration.
52513         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
52514         REPLACE_PUTENV.
52515         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
52516         REPLACE_PUTENV.
52517         Needed for MacOS X 10.5.0.
52518         Reported by Peter O'Gorman <peter@pogma.com>.
52519
52520 2007-11-01  Jim Meyering  <meyering@redhat.com>
52521
52522         Treat an empty date string exactly like "0".
52523         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
52524         if the remaining date string (to be parsed) is empty, use "0".
52525         Reported by Mischa Molhoek and discussed in this thread:
52526         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
52527
52528 2007-10-31  Bruno Haible  <bruno@clisp.org>
52529
52530         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
52531         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
52532         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
52533         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
52534         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
52535         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
52536
52537 2007-10-31  Bruno Haible  <bruno@clisp.org>
52538
52539         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
52540         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
52541         (AC_TYPE_LONG_LONG_INT): Use it.
52542         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
52543         it as well.
52544         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
52545         to m4/longlong.m4.
52546         * modules/stdint (Files): Remove m4/ulonglong.m4.
52547         * modules/strtoull (Files): Use m4/longlong.m4 instead of
52548         m4/ulonglong.m4.
52549         * modules/strtoumax (Files): Likewise.
52550
52551 2007-10-30  Bruno Haible  <bruno@clisp.org>
52552
52553         * modules/xvasprintf-posix: New file.
52554         Suggested by Eric Blake.
52555
52556 2007-10-30  Bruno Haible  <bruno@clisp.org>
52557
52558         * modules/xprintf-posix-tests: New file.
52559         * tests/test-xprintf-posix.sh: New file.
52560         * tests/test-xprintf-posix.c: New file.
52561         * tests/test-xfprintf-posix.c: New file.
52562
52563         * modules/xprintf-posix: New file.
52564
52565 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52566
52567         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
52568         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
52569         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
52570
52571 2007-10-29  Bruno Haible  <bruno@clisp.org>
52572
52573         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
52574         contain the special marker '_cv_'.
52575         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
52576         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
52577         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
52578         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
52579         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
52580         Reported by Ralf Wildenhues.
52581
52582 2007-10-29  Bruno Haible  <bruno@clisp.org>
52583
52584         * gnulib-tool (func_import): When --lgpl is not specified, set
52585         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
52586         GPLv3.
52587         Reported by Simon Josefsson.
52588
52589 2007-10-28  Bruno Haible  <bruno@clisp.org>
52590
52591         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
52592         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
52593         HAVE_DECL_ISFINITE.
52594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
52595         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
52596         HAVE_DECL_ISFINITE.
52597
52598 2007-10-28  Bruno Haible  <bruno@clisp.org>
52599
52600         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
52601         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
52602
52603 2007-10-28  Bruno Haible  <bruno@clisp.org>
52604
52605         Fix link errors with Sun C 5.0 on Solaris 10.
52606         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
52607         function is declared but not present in the compiler's libm.
52608         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
52609         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
52610         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
52611         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
52612         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
52613         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
52614         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
52615         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
52616         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
52617         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
52618         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
52619         HAVE_DECL_FLOORL.
52620
52621 2007-10-28  Bruno Haible  <bruno@clisp.org>
52622
52623         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
52624         gl_FUNC_FLOORL. Cache the result.
52625         (gl_FUNC_FLOORL): Use it.
52626         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
52627         gl_FUNC_CEILL. Cache the result.
52628         (gl_FUNC_CEILL): Use it.
52629
52630         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
52631         gl_FUNC_FLOOR. Cache the result.
52632         (gl_FUNC_FLOOR): Use it.
52633         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
52634         gl_FUNC_CEIL. Cache the result.
52635         (gl_FUNC_CEIL): Use it.
52636
52637         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
52638         gl_FUNC_FLOORF. Cache the result.
52639         (gl_FUNC_FLOORF): Use it.
52640         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
52641         gl_FUNC_CEILF. Cache the result.
52642         (gl_FUNC_CEILF): Use it.
52643
52644 2007-10-28  Bruno Haible  <bruno@clisp.org>
52645
52646         * gnulib-tool: Allow specifying the LGPL version number through
52647         --lgpl=2 or --lgpl=3.
52648         (func_usage): Document --lgpl with argument.
52649         Handle --lgpl=... arguments.
52650         (func_import): Recognize also gl_LGPL calls with an argument. When
52651         --lgpl=2 is used and the module's license is just LGPL, report an
52652         error. Set sed_transform_lib_file according to the lgpl variable. In
52653         the generated files, use --lgpl or gl_LGPL invocations with argument,
52654         if necessary.
52655         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
52656         an LGPv2+ license.
52657         * doc/gnulib-tool.texi (Modified imports): Update explanation of
52658         gl_LGPL macro.
52659
52660 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52661             Bruno Haible  <bruno@clisp.org>
52662
52663         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
52664         (u16_uctomb_aux): Likewise.
52665         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
52666         !HAVE_INLINE.
52667         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
52668
52669 2007-10-28  Bruno Haible  <bruno@clisp.org>
52670
52671         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
52672         Invoke AM_GETTEXT_OPTION if it exists.
52673         * modules/vasprintf: Likewise.
52674         * modules/verror: Likewise.
52675         * modules/xprintf: Likewise.
52676         * modules/xvasprintf: Likewise.
52677
52678 2007-10-27  Ben Pfaff  <blp@gnu.org>
52679
52680         * lib/math.in.h: Define isfinite macro and prototypes for
52681         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
52682         implementations.
52683         * m4/math_h.m4: New substitutions for isfinite module.
52684         * lib/isfinite.c: New file.
52685         * m4/isfinite.m4: New file.
52686         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
52687         * modules/isfinite: New file.
52688         * modules/isfinite-tests: New file.
52689         * tests/tests-isfinite.c: New file.
52690         * doc/functions/isfinite.texi: Mention isfinite module.
52691         * MODULES.html.sh: Mention new module.
52692
52693 2007-10-27  Ben Pfaff  <blp@gnu.org>
52694
52695         Ralf Wildenhues reported that Tru64 4.0D declares the round
52696         functions but does not have definitions.
52697         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
52698         cannot be found in any library, set the output variable to
52699         "missing" instead of "".
52700         * m4/round.m4: Also use our substitute if we cannot find round in
52701         any library, even if it is declared.
52702         * m4/roundf.m4: Likewise for roundf.
52703         * m4/roundl.m4: Likewise for roundl.
52704         * lib/math.in.h: Undefine roundf, round, roundl before defining
52705         their replacements, to allow for hypothetical systems where these
52706         may be defined as macros but not available in libraries.
52707
52708 2007-10-27  Bruno Haible  <bruno@clisp.org>
52709
52710         * doc/gnulib.texi: Invoke @firstparagraphindent.
52711         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
52712         changes in gnulib.
52713         (Source changes): New section.
52714
52715 2007-10-26  Bruno Haible  <bruno@clisp.org>
52716
52717         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
52718         borrowed from autoconf.
52719
52720 2007-10-26  Bruno Haible  <bruno@clisp.org>
52721
52722         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
52723         strerror returned the empty string. Needed on HP-UX 11.00.
52724
52725 2007-10-24  Micah Cowan  <micah@cowan.name>
52726
52727         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
52728         * build-aux/bootstrap: Remove support for now-unnecessary option,
52729         --cvs-user, and envvars CVS_USER, CVS_RSH.
52730
52731 2007-10-24  Jim Meyering  <meyering@redhat.com>
52732
52733         Avoid diagnostics from sha1sum when there is no cached checksum.
52734         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
52735         if the po.s1 file hasn't been created yet.
52736
52737         * build-aux/bootstrap: Sync from coreutils:
52738         2007-10-24  Jim Meyering  <meyering@redhat.com>
52739         Get gnulib from the git repository, not from an obsolete cvs one.
52740         * build-aux/bootstrap: Suggestion from Micah Cowan.
52741         2007-10-04  Jim Meyering  <jim@meyering.net>
52742         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
52743         (update_po_files): Work also when there are no .po files in po/.
52744
52745 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52746
52747         * README: Append ".git" to git and cg examples.
52748         Problem reported by Benoit Sigoure.
52749
52750 2007-10-23  Micah Cowan  <micah@cowan.name>
52751
52752         * users.txt: Add wget.
52753
52754 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52755
52756         Fix linking of some unistdio tests on FreeBSD.
52757         * modules/unistdio/u16-vsnprintf-tests
52758         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
52759         * modules/unistdio/u16-vsprintf-tests
52760         (test_u16_vsnprintf1_LDADD): Likewise.
52761         * modules/unistdio/u32-vsnprintf-tests
52762         (test_u32_vsnprintf1_LDADD): Likewise.
52763         * modules/unistdio/u32-vsprintf-tests
52764         (test_u32_vsprintf1_LDADD): Likewise.
52765         * modules/unistdio/u8-vsnprintf-tests
52766         (test_u8_vsnprintf1_LDADD): Likewise.
52767         * modules/unistdio/u8-vsprintf-tests
52768         (test_u8_vsprintf1_LDADD): Likewise.
52769         * modules/unistdio/ulc-vsnprintf-tests
52770         (test_ulc_vsnprintf1_LDADD): Likewise.
52771         * modules/unistdio/ulc-vsprintf-tests
52772         (test_ulc_vsprintf1_LDADD): Likewise.
52773
52774         Fix linking of some uniconv tests on FreeBSD.
52775         * modules/uniconv/u16-conv-from-enc-tests
52776         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
52777         * modules/uniconv/u16-conv-to-enc-tests
52778         (test_u16_conv_to_enc_LDADD): Likewise.
52779         * modules/uniconv/u16-strconv-from-enc-tests
52780         (test_u16_strconv_from_enc_LDADD): Likewise.
52781         * modules/uniconv/u16-strconv-to-enc-tests
52782         (test_u16_strconv_to_enc_LDADD): Likewise.
52783         * modules/uniconv/u32-conv-from-enc-tests
52784         (test_u32_conv_from_enc_LDADD): Likewise.
52785         * modules/uniconv/u32-conv-to-enc-tests
52786         (test_u32_conv_to_enc_LDADD): Likewise.
52787         * modules/uniconv/u32-strconv-from-enc-tests
52788         (test_u32_strconv_from_enc_LDADD): Likewise.
52789         * modules/uniconv/u32-strconv-to-enc-tests
52790         (test_u32_strconv_to_enc_LDADD): Likewise.
52791         * modules/uniconv/u8-conv-from-enc-tests
52792         (test_u8_conv_from_enc_LDADD): Likewise.
52793         * modules/uniconv/u8-conv-to-enc-tests
52794         (test_u8_conv_to_enc_LDADD): Likewise.
52795         * modules/uniconv/u8-strconv-from-enc-tests
52796         (test_u8_strconv_from_enc_LDADD): Likewise.
52797         * modules/uniconv/u8-strconv-to-enc-tests
52798         (test_u8_strconv_to_enc_LDADD): Likewise.
52799
52800 2007-10-22  Bruno Haible  <bruno@clisp.org>
52801
52802         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
52803         size.
52804
52805 2007-10-22  Eric Blake  <ebb9@byu.net>
52806
52807         Tweak x*printf documentation.
52808         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
52809         variable name and comments.
52810         Suggested by Bruno Haible.
52811
52812 2007-10-22  Bruno Haible  <bruno@clisp.org>
52813
52814         * lib/acl.c (copy_acl): Fix file name in comment.
52815
52816 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52817
52818         Fix Tru64 problem with stdbool.h.
52819         * lib/stdbool.in.h (false, true):
52820         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
52821         Don't declare as an enum in this situation; it runs afoul of Tru64.
52822         Problem reported by Steven M. Schweda in
52823         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
52824
52825 2007-10-22  Eric Blake  <ebb9@byu.net>
52826
52827         Also wrap vf?printf.
52828         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
52829         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
52830         (xvprintf, xvfprintf): New functions.
52831
52832 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52833
52834         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
52835         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
52836
52837         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
52838         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
52839
52840 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52841
52842         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
52843         by Bruno Haible.
52844
52845 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52846
52847         * lib/getloadavg.c
52848         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
52849         Undef `sys' after including sys/table.h, for Tru64 4.0D.
52850
52851         * tests/test-i-ring.c: Work for C89.
52852
52853 2007-10-22  Bruno Haible  <bruno@clisp.org>
52854
52855         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
52856         -1u, in preprocessor expression, so that we don't test for the bug
52857         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
52858         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
52859
52860 2007-10-22  Eric Blake  <ebb9@byu.net>
52861
52862         * tests/test-yesno.sh: Silence stderr during test.
52863
52864 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52865
52866         * modules/crypto/gc-camellia: New file.
52867
52868         * m4/gc-camellia.m4: New file.
52869
52870         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
52871
52872         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
52873
52874 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52875
52876         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
52877         --help to stdout.  Reported by sms@antinode.org (Steven
52878         M. Schweda).
52879
52880 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52881
52882         * users.txt: Fix link to libksba.
52883
52884 2007-10-21  Ben Pfaff  <blp@gnu.org>
52885
52886         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
52887         round.c roundf implementation that depends on floorf and ceilf to
52888         be tested unconditionally.
52889
52890 2007-10-21  Ben Pfaff  <blp@gnu.org>
52891
52892         * m4/check-libm-func.m4: Removed.
52893         * m4/check-math-lib.m4: New file.
52894         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
52895         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
52896         definition and lack of AC_LIBOBJ([roundf]).
52897         * m4/roundl.m4: Ditto, and similarly for roundl.
52898         * modules/round: Reference new m4 file.
52899         * modules/roundf: Ditto.
52900         * modules/roundl: Ditto.
52901         * tests/test-round2.c (main): Use ROUND instead of round.
52902         Bug report from Bruno Haible.
52903
52904 2007-10-21  Bruno Haible  <bruno@clisp.org>
52905
52906         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
52907         context.
52908
52909 2007-10-21  Bruno Haible  <bruno@clisp.org>
52910
52911         * tests/test-wcwidth.c (main): Allow negative result for some control
52912         characters.
52913
52914         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
52915         Needed on OSF/1 5.1.
52916
52917 2007-10-21  Bruno Haible  <bruno@clisp.org>
52918
52919         * tests/test-floorf1.c: Include isnanf.h.
52920         (main): Use isnanf() instead of isnan().
52921         * tests/test-ceilf1.c: Include isnanf.h.
52922         (main): Use isnanf() instead of isnan().
52923         * tests/test-truncf1.c: Include isnanf.h.
52924         (main): Use isnanf() instead of isnan().
52925         * tests/test-roundf1.c: Include isnanf.h.
52926         (main): Use isnanf() instead of isnan().
52927
52928 2007-10-21  Eric Blake  <ebb9@byu.net>
52929
52930         * users.txt: Update URL for m4.
52931
52932 2007-10-21  Bruno Haible  <bruno@clisp.org>
52933
52934         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
52935
52936 2007-10-21  Bruno Haible  <bruno@clisp.org>
52937
52938         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
52939         Git's management files if the CVS files are not present.
52940
52941 2007-10-20  Bruno Haible  <bruno@clisp.org>
52942
52943         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
52944         gcc-3.4.x.
52945
52946 2007-10-20  Ben Pfaff  <blp@gnu.org>
52947
52948         * lib/math.in.h: Declare round, roundf, roundl if we are providing
52949         implementations.
52950         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
52951         * lib/round.c: New file.
52952         * lib/roundf.c: New file.
52953         * lib/roundl.c: New file.
52954         * m4/round.m4: New file.
52955         * m4/roundf.m4: New file.
52956         * m4/roundl.m4: New file.
52957         * m4/check-libm-func-m4: New file.
52958         * modules/math: Replace round, roundf, roundl related @VARS@ in
52959         math.in.h.
52960         * modules/round: New file.
52961         * modules/round-tests: New file.
52962         * modules/roundf: New file.
52963         * modules/roundf-tests: New file.
52964         * modules/roundl: New file.
52965         * modules/roundl-tests: New file.
52966         * tests/test-round1.c: New file.
52967         * tests/test-round2.c: New file.
52968         * tests/test-roundf1.c: New file.
52969         * tests/test-roundf2.c: New file.
52970         * tests/test-roundl.c: New file.
52971         * doc/functions/round.texi: Mention round module.
52972         * doc/functions/roundf.texi: Mention roundf module.
52973         * doc/functions/roundl.texi: Mention roundl module.
52974         * MODULES.html.sh: Mention new modules.
52975         Thanks to Bruno Haible for suggestions.
52976
52977 2007-10-20  Jim Meyering  <meyering@redhat.com>
52978
52979         * lib/xprintf.c: Include <config.h> unconditionally.
52980
52981         Change xprintf's license to GPL.
52982         * modules/xprintf (License): s/LGPL/GPL/, since this module
52983         depends on modules (exit and exitfail) which are GPL.
52984         Suggestion from Bruno Haible.
52985
52986         xprintf fixes.
52987         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
52988         Use a clearer diagnostic.
52989         Patch from Bruno Haible.
52990
52991 2007-10-20  Bruno Haible  <bruno@clisp.org>
52992
52993         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
52994         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
52995         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52996
52997 2007-10-20  Bruno Haible  <bruno@clisp.org>
52998
52999         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
53000         precision in the comparison result > x - 1 or similar.
53001         * tests/test-ceilf2.c (correct_result_p): Likewise.
53002         * tests/test-truncf2.c (correct_result_p): Likewise.
53003         * tests/test-trunc2.c (correct_result_p): Likewise.
53004         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53005
53006 2007-10-20  Bruno Haible  <bruno@clisp.org>
53007
53008         * modules/ceil: New file.
53009         * m4/ceil.m4: New file.
53010         * doc/functions/ceil.texi: Mention the 'ceil' module.
53011
53012 2007-10-20  Bruno Haible  <bruno@clisp.org>
53013
53014         * modules/floor: New file.
53015         * m4/floor.m4: New file.
53016         * doc/functions/floor.texi: Mention the 'floor' module.
53017
53018 2007-10-20  Bruno Haible  <bruno@clisp.org>
53019
53020         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
53021         of %a.
53022         * modules/floorf-tests (Depends-on): Likewise.
53023         * modules/truncf-tests (Depends-on): Likewise.
53024         * modules/trunc-tests (Depends-on): Likewise.
53025         Reported by Ben Pfaff.
53026
53027 2007-10-19  Jim Meyering  <meyering@redhat.com>
53028
53029         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
53030         Don't bother testing specific errno values.  Just test ferror.
53031
53032         New module: xprintf
53033         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
53034
53035 2007-10-19  Bruno Haible  <bruno@clisp.org>
53036
53037         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
53038         syntax.
53039         * modules/javaexec (Makefile.am): Likewise.
53040         * modules/relocatable-prog (Makefile.am): Likewise.
53041         Suggested by Jim Meyering.
53042
53043 2007-10-18  Bruno Haible  <bruno@clisp.org>
53044
53045         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
53046         Reported by Jim Meyering.
53047
53048 2007-10-18  Eric Blake  <ebb9@byu.net>
53049
53050         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
53051
53052 2007-10-18  Bruno Haible  <bruno@clisp.org>
53053
53054         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
53055         the format string into writable memory. Needed in Fortify conditions.
53056
53057 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
53058             Bruno Haible  <bruno@clisp.org>
53059
53060         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
53061         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
53062         * modules/trim (Depends-on): Add mbchar.
53063         (configure.ac): Add gl_FUNC_MBRTOWC.
53064         (Makefile.am): Augment lib_SOURCES.
53065
53066 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53067
53068         Modify glob.c to use fstatat and dirfd, to simplify it.
53069         Suggested by Eric Blake.
53070         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
53071         Don't include <stdbool.h>; not used.
53072         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
53073         (link_exists_p): Simplify implementation, since we can now assume
53074         dirfd and fstatat.
53075         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
53076
53077 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53078
53079         * gnulib-tool (func_get_dependencies): Fix sed script to
53080         match only tests.
53081
53082 2007-10-17  Bruno Haible  <bruno@clisp.org>
53083
53084         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
53085         allow locale names without encoding suffix.
53086         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53087         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53088
53089 2007-10-16  Bruno Haible  <bruno@clisp.org>
53090
53091         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
53092         * lib/getgroups.c (getgroups): Likewise.
53093         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
53094
53095 2007-10-16  Bruno Haible  <bruno@clisp.org>
53096
53097         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
53098         * modules/malloc-posix (License): Likewise.
53099         * modules/realloc-posix (License): Likewise.
53100         * modules/calloc-posix (License): Likewise.
53101         * modules/intprops (License): Change from GPL to LGPL, with
53102         Paul Eggert's approval.
53103
53104 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53105
53106         Merge glibc changes into lib/glob.c.
53107
53108         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
53109         2007-10-15 04:59:03 UTC.  Here are the changes:
53110
53111         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
53112
53113         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
53114
53115         * lib/glob.c: Add some branch prediction throughout.
53116
53117         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
53118
53119         [BZ #5103]
53120         * lib/glob.c (glob): Recognize patterns starting \/.
53121
53122         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
53123
53124         [BZ #3996]
53125         * lib/glob.c (attribute_hidden): Define if not defined.
53126         (glob): Unescape dirname, filename or username when needed and not
53127         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
53128         is NULL.  Handle unescaped [ in pattern without closing ].
53129         Don't pass GLOB_CHECK down to recursive glob for directories.
53130         (__glob_pattern_type): New function.
53131         (__glob_pattern_p): Implement using __glob_pattern_type.
53132         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
53133         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
53134         Remove unreachable code.
53135
53136         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
53137
53138         * lib/glob.c (glob_in_dir): Add some comments and asserts to
53139         explain why there are no leaks.
53140
53141         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
53142
53143         [BZ #3253]
53144         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
53145         time, rather allocate increasingly bigger arrays of pointers, if
53146         possible with alloca, if too large with malloc.
53147
53148 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53149
53150         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
53151         Problem reported by H.Merijn Brand in
53152         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
53153         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
53154         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
53155
53156 2007-10-15  Bruno Haible  <bruno@clisp.org>
53157
53158         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
53159         with explicit rpl_ prefix.
53160         * lib/fopen.c (fopen): Likewise.
53161         * lib/freopen.c (freopen): Likewise.
53162         * lib/iconv.c (iconv): Likewise.
53163         * lib/iconv_close.c (iconv_close): Likewise.
53164
53165 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53166
53167         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
53168
53169 2007-10-15  Bruno Haible  <bruno@clisp.org>
53170
53171         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
53172         <stddef.h> instead of <stdlib.h> since we only need NULL.
53173         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53174
53175 2007-10-15  Bruno Haible  <bruno@clisp.org>
53176
53177         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
53178         Replace paragraph talking about LIBOBJS.
53179         Reported by Colin Watson <cjwatson@debian.org>.
53180
53181 2007-10-15  Bruno Haible  <bruno@clisp.org>
53182
53183         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
53184         <stdlib.h> before using NULL.
53185
53186 2007-10-15  Simon Josefsson  <simon@josefsson.org>
53187
53188         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
53189         Reported by Albert Chin <china@thewrittenword.com>.
53190
53191 2007-10-14  Bruno Haible  <bruno@clisp.org>
53192
53193         * modules/iconv_open-utf-tests: New file.
53194         * tests/test-iconv-utf.c: New file.
53195
53196         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
53197         * modules/iconv_open-utf: New file.
53198         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
53199         (iconv, iconv_close): New declarations.
53200         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
53201         be defined.
53202         (iconv_open): Add special handling of conversion between UTF-8 and
53203         UTF-{16,32}{BE,LE}.
53204         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
53205         * lib/iconv_close.c: New file.
53206         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
53207         gl_FUNC_ICONV_OPEN.
53208         (gl_FUNC_ICONV_OPEN): Use it.
53209         (gl_FUNC_ICONV_OPEN_UTF): New macro.
53210         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
53211         and REPLACE_ICONV_UTF.
53212         * modules/iconv_open (Depends-on): Add c-strcase.
53213         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
53214         ICONV_CONST.
53215         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
53216
53217 2007-10-13  Albert Chin  <china@thewrittenword.com>
53218             Bruno Haible  <bruno@clisp.org>
53219
53220         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
53221         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
53222
53223 2007-10-13  Bruno Haible  <bruno@clisp.org>
53224
53225         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
53226         defined, use the ISO C99 inline semantics.
53227         * lib/argp.h (ARGP_EI): Likewise.
53228
53229 2007-10-13  Bruno Haible  <bruno@clisp.org>
53230
53231         Handle 'inline' change in gcc 4.3.0.
53232         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
53233         argp_fmtstream_write, argp_fmtstream_set_lmargin,
53234         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
53235         argp_fmtstream_point): Disable 'extern' declaration if the function
53236         definition is going to be provided inline.
53237         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
53238         semantics, not the ISO C99 inline semantics.
53239         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
53240         'extern' declaration if the function definition is going to be provided
53241         inline.
53242         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
53243         the GNU C inline semantics, not the ISO C99 inline semantics. With
53244         GCC 4.2, avoid a warning.
53245
53246 2007-10-13  Bruno Haible  <bruno@clisp.org>
53247
53248         * lib/freading.h (freading): Enable the use of __freading for
53249         glibc >= 2.7.
53250         * lib/freading.c (freading): Likewise.
53251
53252 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
53253
53254         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
53255         "warning: C99 inline functions are not supported; using GNU89".
53256
53257 2007-10-12  Bruno Haible  <bruno@clisp.org>
53258
53259         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
53260         of 2.
53261         * tests/test-ceilf2.c: New file.
53262         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
53263
53264         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
53265         * modules/ceilf-tests: Update.
53266
53267 2007-10-12  Bruno Haible  <bruno@clisp.org>
53268
53269         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
53270         of 2.
53271         * tests/test-floorf2.c: New file.
53272         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
53273
53274         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
53275         * modules/floorf-tests: Update.
53276
53277 2007-10-12  Bruno Haible  <bruno@clisp.org>
53278
53279         * tests/test-trunc2.c: New file.
53280         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
53281
53282         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
53283         * modules/trunc-tests: Update.
53284
53285 2007-10-12  Bruno Haible  <bruno@clisp.org>
53286
53287         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
53288         of 2.
53289         * tests/test-truncf2.c: New file.
53290         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
53291
53292         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
53293         * modules/truncf-tests: Update.
53294
53295 2007-10-11  Eric Blake  <ebb9@byu.net>
53296
53297         Don't claim strerror is broken on Interix.
53298         * doc/functions/strerror.texi (strerror): Known broken systems are
53299         now Solaris 8, and not Interix.
53300         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
53301         Interix on cross-compile.
53302         Reported by Martin Koeppe in
53303         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
53304
53305 2007-10-11  Bruno Haible  <bruno@clisp.org>
53306
53307         * modules/i-ring-tests: New file.
53308         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
53309         instead of assert.
53310
53311 2007-10-11  Bruno Haible  <bruno@clisp.org>
53312
53313         * modules/filenamecat-tests: New file.
53314         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
53315         * lib/filenamecat.c: Remove test code.
53316
53317 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
53318
53319         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
53320
53321         * lib/strerror.c: Include <string.h> always, to test interface,
53322         and to remove the need for the dummy.
53323         Include intprops.h to compute width instead of doing it ourselves
53324         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
53325         (strerror): Define it to return NULL if there's no system strerror.
53326         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
53327         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
53328         ancient pre-strerror Unix systems well any more.  Saying "unknown
53329         system error" is enough.
53330         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
53331         simpler strerror.c implementation.
53332         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
53333         Simplify the tests to reflect the simpler strerror implementation.
53334         * modules/strerror (Depends-on): Add intprops.
53335
53336 2007-10-09  Eric Blake  <ebb9@byu.net>
53337
53338         Silence test-fpending.
53339         * modules/fpending-tests (Files): Add wrapper script.
53340         * tests/test-fpending.sh: New file.
53341
53342 2007-10-09  Bruno Haible  <bruno@clisp.org>
53343
53344         * MODULES.html.sh (func_module): Don't create a hyperlink for
53345         function names like 'printf_frexp'.
53346         (Misc): Add crc, memxor.
53347         (Characteristics of floating types): New section.
53348         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
53349         isnanf-nolibm, signbit, trunc, truncf, truncl.
53350         (Enhancements for ISO C 99 functions): New subsection Input/output.
53351         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
53352         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
53353         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
53354         (Compatibility checks for POSIX:2001 functions): Add clock-time.
53355         (Enhancements for POSIX:2001 functions): Add chdir-long.
53356         (File system functions): Add areadlink, chdir-safer, read-file.
53357         Remove cycle-check.
53358         (File system as inode set): New section.
53359         (Date and time): Add gethrxtime.
53360         (Multithreading): Add openmp.
53361         (Internationalization functions): Add localename.
53362         (Unicode string functions): Add unistr/u*-mbsnlen.
53363         (Support for maintaining and releasing projects): Add git-version-gen.
53364         (Lone files): Remove directories.
53365
53366 2007-10-08  Ben Pfaff  <blp@gnu.org>
53367
53368         * lib/xmalloca.h: Fix typo in comment.
53369
53370 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53371
53372         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
53373         when avoiding problems with integer overflow.  Use a portable test
53374         instead.
53375
53376 2007-10-08  Simon Josefsson  <simon@josefsson.org>
53377
53378         * modules/dummy (License): Change to LGPLv2+.
53379         * modules/float (License): Likewise
53380         * modules/realloc (License): Likewise
53381         * modules/stdlib (License): Likewise
53382
53383 2007-10-07  Bruno Haible  <bruno@clisp.org>
53384
53385         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
53386         * floor.c (TWO_MANT_DIG): Likewise.
53387         * ceil.c (TWO_MANT_DIG): Likewise.
53388         Reported by Ben Pfaff.
53389
53390 2007-10-07  Bruno Haible  <bruno@clisp.org>
53391
53392         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
53393         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
53394         * lib/frexp.c (FUNC): Likewise.
53395         * lib/printf-frexp.h (printf_frexp): Likewise.
53396         * lib/printf-frexpl.h (printf_frexpl): Likewise.
53397         * lib/printf-frexp.c (FUNC): Likewise.
53398         Suggested by Jim Meyering.
53399
53400 2007-10-07  Jim Meyering  <meyering@redhat.com>
53401
53402         Make xnanosleep's integer overflow test more robust.
53403         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
53404         so that gcc-4.3.0 doesn't optimize away this test for overflow.
53405
53406 2007-10-07  Bruno Haible  <bruno@clisp.org>
53407
53408         * NEWS: Mention the license change.
53409
53410         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
53411         abbreviations in the modules files.
53412
53413         Change copyright notice from GPLv2+ to GPLv3+.
53414         * README: Change copyright notice.
53415         * MODULES.html.sh: Likewise.
53416         * build-aux/bootstrap.conf: Likewise.
53417         * build-aux/config.libpath: Likewise.
53418         * build-aux/csharpcomp.sh.in: Likewise.
53419         * build-aux/csharpexec.sh.in: Likewise.
53420         * build-aux/install-reloc: Likewise.
53421         * build-aux/javacomp.sh.in: Likewise.
53422         * build-aux/javaexec.sh.in: Likewise.
53423         * build-aux/ldd.sh.in: Likewise.
53424         * build-aux/reloc-ldflags: Likewise.
53425         * build-aux/relocatable.sh.in: Likewise.
53426         * build-aux/x-to-1.in: Likewise.
53427         * check-module: Likewise.
53428         * config/srclistvars.sh: Likewise.
53429         * gnulib-tool: Likewise.
53430         * lib/acl-internal.h: Likewise.
53431         * lib/acl.c: Likewise.
53432         * lib/acl.h: Likewise.
53433         * lib/acl_entries.c: Likewise.
53434         * lib/areadlink-with-size.c: Likewise.
53435         * lib/areadlink.c: Likewise.
53436         * lib/areadlink.h: Likewise.
53437         * lib/argmatch.c: Likewise.
53438         * lib/argmatch.h: Likewise.
53439         * lib/argp-ba.c: Likewise.
53440         * lib/argp-eexst.c: Likewise.
53441         * lib/argp-fmtstream.c: Likewise.
53442         * lib/argp-fmtstream.h: Likewise.
53443         * lib/argp-fs-xinl.c: Likewise.
53444         * lib/argp-help.c: Likewise.
53445         * lib/argp-namefrob.h: Likewise.
53446         * lib/argp-parse.c: Likewise.
53447         * lib/argp-pin.c: Likewise.
53448         * lib/argp-pv.c: Likewise.
53449         * lib/argp-pvh.c: Likewise.
53450         * lib/argp-xinl.c: Likewise.
53451         * lib/argp.h: Likewise.
53452         * lib/at-func.c: Likewise.
53453         * lib/atanl.c: Likewise.
53454         * lib/backupfile.c: Likewise.
53455         * lib/backupfile.h: Likewise.
53456         * lib/basename.c: Likewise.
53457         * lib/binary-io.h: Likewise.
53458         * lib/byteswap.in.h: Likewise.
53459         * lib/c-stack.c: Likewise.
53460         * lib/c-stack.h: Likewise.
53461         * lib/c-strcasestr.c: Likewise.
53462         * lib/c-strcasestr.h: Likewise.
53463         * lib/c-strstr.c: Likewise.
53464         * lib/c-strstr.h: Likewise.
53465         * lib/c-strtod.c: Likewise.
53466         * lib/calloc.c: Likewise.
53467         * lib/canon-host.c: Likewise.
53468         * lib/canon-host.h: Likewise.
53469         * lib/canonicalize-lgpl.c: Likewise.
53470         * lib/canonicalize.c: Likewise.
53471         * lib/canonicalize.h: Likewise.
53472         * lib/ceil.c: Likewise.
53473         * lib/ceilf.c: Likewise.
53474         * lib/ceill.c: Likewise.
53475         * lib/chdir-long.c: Likewise.
53476         * lib/chdir-long.h: Likewise.
53477         * lib/chdir-safer.c: Likewise.
53478         * lib/chdir-safer.h: Likewise.
53479         * lib/chown.c: Likewise.
53480         * lib/classpath.c: Likewise.
53481         * lib/classpath.h: Likewise.
53482         * lib/clean-temp.c: Likewise.
53483         * lib/clean-temp.h: Likewise.
53484         * lib/cloexec.c: Likewise.
53485         * lib/close-stream.c: Likewise.
53486         * lib/closein.c: Likewise.
53487         * lib/closein.h: Likewise.
53488         * lib/closeout.c: Likewise.
53489         * lib/closeout.h: Likewise.
53490         * lib/concat-filename.c: Likewise.
53491         * lib/copy-file.c: Likewise.
53492         * lib/copy-file.h: Likewise.
53493         * lib/count-one-bits.h: Likewise.
53494         * lib/crc.c: Likewise.
53495         * lib/crc.h: Likewise.
53496         * lib/creat-safer.c: Likewise.
53497         * lib/csharpcomp.c: Likewise.
53498         * lib/csharpcomp.h: Likewise.
53499         * lib/csharpexec.c: Likewise.
53500         * lib/csharpexec.h: Likewise.
53501         * lib/cycle-check.c: Likewise.
53502         * lib/cycle-check.h: Likewise.
53503         * lib/diacrit.c: Likewise.
53504         * lib/diacrit.h: Likewise.
53505         * lib/diffseq.h: Likewise.
53506         * lib/dirchownmod.c: Likewise.
53507         * lib/dirent.in.h: Likewise.
53508         * lib/dirfd.c: Likewise.
53509         * lib/dirfd.h: Likewise.
53510         * lib/dirname.c: Likewise.
53511         * lib/dirname.h: Likewise.
53512         * lib/dummy.c: Likewise.
53513         * lib/dup-safer.c: Likewise.
53514         * lib/dup2.c: Likewise.
53515         * lib/eealloc.h: Likewise.
53516         * lib/error.c: Likewise.
53517         * lib/error.h: Likewise.
53518         * lib/euidaccess.c: Likewise.
53519         * lib/exclude.c: Likewise.
53520         * lib/exclude.h: Likewise.
53521         * lib/execute.c: Likewise.
53522         * lib/execute.h: Likewise.
53523         * lib/exitfail.c: Likewise.
53524         * lib/exitfail.h: Likewise.
53525         * lib/expl.c: Likewise.
53526         * lib/fatal-signal.c: Likewise.
53527         * lib/fatal-signal.h: Likewise.
53528         * lib/fbufmode.c: Likewise.
53529         * lib/fbufmode.h: Likewise.
53530         * lib/fchdir.c: Likewise.
53531         * lib/fchmodat.c: Likewise.
53532         * lib/fchownat.c: Likewise.
53533         * lib/fcntl--.h: Likewise.
53534         * lib/fcntl-safer.h: Likewise.
53535         * lib/fcntl.in.h: Likewise.
53536         * lib/fd-safer.c: Likewise.
53537         * lib/fflush.c: Likewise.
53538         * lib/file-has-acl.c: Likewise.
53539         * lib/file-set.c: Likewise.
53540         * lib/file-type.c: Likewise.
53541         * lib/file-type.h: Likewise.
53542         * lib/fileblocks.c: Likewise.
53543         * lib/filemode.c: Likewise.
53544         * lib/filemode.h: Likewise.
53545         * lib/filename.h: Likewise.
53546         * lib/filenamecat.c: Likewise.
53547         * lib/filenamecat.h: Likewise.
53548         * lib/findprog.c: Likewise.
53549         * lib/findprog.h: Likewise.
53550         * lib/float.in.h: Likewise.
53551         * lib/floor.c: Likewise.
53552         * lib/floorf.c: Likewise.
53553         * lib/floorl.c: Likewise.
53554         * lib/fopen-safer.c: Likewise.
53555         * lib/fopen.c: Likewise.
53556         * lib/fpending.c: Likewise.
53557         * lib/fpending.h: Likewise.
53558         * lib/fprintf.c: Likewise.
53559         * lib/fprintftime.h: Likewise.
53560         * lib/fpucw.h: Likewise.
53561         * lib/fpurge.c: Likewise.
53562         * lib/fpurge.h: Likewise.
53563         * lib/freadable.c: Likewise.
53564         * lib/freadable.h: Likewise.
53565         * lib/freadahead.c: Likewise.
53566         * lib/freadahead.h: Likewise.
53567         * lib/freading.c: Likewise.
53568         * lib/freading.h: Likewise.
53569         * lib/free.c: Likewise.
53570         * lib/freopen.c: Likewise.
53571         * lib/frexp.c: Likewise.
53572         * lib/frexpl.c: Likewise.
53573         * lib/fseek.c: Likewise.
53574         * lib/fseterr.c: Likewise.
53575         * lib/fseterr.h: Likewise.
53576         * lib/fstatat.c: Likewise.
53577         * lib/fstrcmp.c: Likewise.
53578         * lib/fstrcmp.h: Likewise.
53579         * lib/fsusage.c: Likewise.
53580         * lib/fsusage.h: Likewise.
53581         * lib/ftell.c: Likewise.
53582         * lib/ftello.c: Likewise.
53583         * lib/fts-cycle.c: Likewise.
53584         * lib/fts.c: Likewise.
53585         * lib/fts_.h: Likewise.
53586         * lib/full-read.c: Likewise.
53587         * lib/full-read.h: Likewise.
53588         * lib/full-write.c: Likewise.
53589         * lib/full-write.h: Likewise.
53590         * lib/fwritable.c: Likewise.
53591         * lib/fwritable.h: Likewise.
53592         * lib/fwriteerror.c: Likewise.
53593         * lib/fwriteerror.h: Likewise.
53594         * lib/fwriting.c: Likewise.
53595         * lib/fwriting.h: Likewise.
53596         * lib/gcd.c: Likewise.
53597         * lib/gcd.h: Likewise.
53598         * lib/getcwd.c: Likewise.
53599         * lib/getdate.h: Likewise.
53600         * lib/getdate.y: Likewise.
53601         * lib/getdomainname.c: Likewise.
53602         * lib/getdomainname.h: Likewise.
53603         * lib/getgroups.c: Likewise.
53604         * lib/gethostname.c: Likewise.
53605         * lib/gethrxtime.c: Likewise.
53606         * lib/gethrxtime.h: Likewise.
53607         * lib/getloadavg.c: Likewise.
53608         * lib/getndelim2.c: Likewise.
53609         * lib/getndelim2.h: Likewise.
53610         * lib/getnline.c: Likewise.
53611         * lib/getnline.h: Likewise.
53612         * lib/getopt.c: Likewise.
53613         * lib/getopt.in.h: Likewise.
53614         * lib/getopt1.c: Likewise.
53615         * lib/getopt_int.h: Likewise.
53616         * lib/getpagesize.h: Likewise.
53617         * lib/getsubopt.c: Likewise.
53618         * lib/gettime.c: Likewise.
53619         * lib/getugroups.c: Likewise.
53620         * lib/getugroups.h: Likewise.
53621         * lib/getusershell.c: Likewise.
53622         * lib/gl_anyavltree_list1.h: Likewise.
53623         * lib/gl_anyavltree_list2.h: Likewise.
53624         * lib/gl_anyhash_list1.h: Likewise.
53625         * lib/gl_anyhash_list2.h: Likewise.
53626         * lib/gl_anylinked_list1.h: Likewise.
53627         * lib/gl_anylinked_list2.h: Likewise.
53628         * lib/gl_anyrbtree_list1.h: Likewise.
53629         * lib/gl_anyrbtree_list2.h: Likewise.
53630         * lib/gl_anytree_list1.h: Likewise.
53631         * lib/gl_anytree_list2.h: Likewise.
53632         * lib/gl_anytree_oset.h: Likewise.
53633         * lib/gl_anytreehash_list1.h: Likewise.
53634         * lib/gl_anytreehash_list2.h: Likewise.
53635         * lib/gl_array_list.c: Likewise.
53636         * lib/gl_array_list.h: Likewise.
53637         * lib/gl_array_oset.c: Likewise.
53638         * lib/gl_array_oset.h: Likewise.
53639         * lib/gl_avltree_list.c: Likewise.
53640         * lib/gl_avltree_list.h: Likewise.
53641         * lib/gl_avltree_oset.c: Likewise.
53642         * lib/gl_avltree_oset.h: Likewise.
53643         * lib/gl_avltreehash_list.c: Likewise.
53644         * lib/gl_avltreehash_list.h: Likewise.
53645         * lib/gl_carray_list.c: Likewise.
53646         * lib/gl_carray_list.h: Likewise.
53647         * lib/gl_linked_list.c: Likewise.
53648         * lib/gl_linked_list.h: Likewise.
53649         * lib/gl_linkedhash_list.c: Likewise.
53650         * lib/gl_linkedhash_list.h: Likewise.
53651         * lib/gl_list.c: Likewise.
53652         * lib/gl_list.h: Likewise.
53653         * lib/gl_oset.c: Likewise.
53654         * lib/gl_oset.h: Likewise.
53655         * lib/gl_rbtree_list.c: Likewise.
53656         * lib/gl_rbtree_list.h: Likewise.
53657         * lib/gl_rbtree_oset.c: Likewise.
53658         * lib/gl_rbtree_oset.h: Likewise.
53659         * lib/gl_rbtreehash_list.c: Likewise.
53660         * lib/gl_rbtreehash_list.h: Likewise.
53661         * lib/gl_sublist.c: Likewise.
53662         * lib/gl_sublist.h: Likewise.
53663         * lib/group-member.c: Likewise.
53664         * lib/group-member.h: Likewise.
53665         * lib/hard-locale.c: Likewise.
53666         * lib/hard-locale.h: Likewise.
53667         * lib/hash-pjw.c: Likewise.
53668         * lib/hash-pjw.h: Likewise.
53669         * lib/hash-triple.c: Likewise.
53670         * lib/hash.c: Likewise.
53671         * lib/hash.h: Likewise.
53672         * lib/human.c: Likewise.
53673         * lib/human.h: Likewise.
53674         * lib/i-ring.c: Likewise.
53675         * lib/i-ring.h: Likewise.
53676         * lib/idcache.c: Likewise.
53677         * lib/imaxabs.c: Likewise.
53678         * lib/imaxdiv.c: Likewise.
53679         * lib/inet_pton.c: Likewise.
53680         * lib/inet_pton.h: Likewise.
53681         * lib/intprops.h: Likewise.
53682         * lib/inttostr.c: Likewise.
53683         * lib/inttostr.h: Likewise.
53684         * lib/inttypes.in.h: Likewise.
53685         * lib/isapipe.c: Likewise.
53686         * lib/isdir.c: Likewise.
53687         * lib/isnan.c: Likewise.
53688         * lib/isnan.h: Likewise.
53689         * lib/isnanf.c: Likewise.
53690         * lib/isnanf.h: Likewise.
53691         * lib/isnanl-nolibm.h: Likewise.
53692         * lib/isnanl.c: Likewise.
53693         * lib/isnanl.h: Likewise.
53694         * lib/javacomp.c: Likewise.
53695         * lib/javacomp.h: Likewise.
53696         * lib/javaexec.c: Likewise.
53697         * lib/javaexec.h: Likewise.
53698         * lib/javaversion.c: Likewise.
53699         * lib/javaversion.h: Likewise.
53700         * lib/javaversion.java: Likewise.
53701         * lib/lbrkprop.h: Likewise.
53702         * lib/lchmod.h: Likewise.
53703         * lib/lchown.c: Likewise.
53704         * lib/ldexpl.c: Likewise.
53705         * lib/linebreak.c: Likewise.
53706         * lib/linebreak.h: Likewise.
53707         * lib/linebuffer.c: Likewise.
53708         * lib/linebuffer.h: Likewise.
53709         * lib/locale.in.h: Likewise.
53710         * lib/logl.c: Likewise.
53711         * lib/long-options.c: Likewise.
53712         * lib/long-options.h: Likewise.
53713         * lib/lstat.c: Likewise.
53714         * lib/lstat.h: Likewise.
53715         * lib/math.in.h: Likewise.
53716         * lib/mbchar.c: Likewise.
53717         * lib/mbchar.h: Likewise.
53718         * lib/mbfile.h: Likewise.
53719         * lib/mbiter.h: Likewise.
53720         * lib/mbscasecmp.c: Likewise.
53721         * lib/mbscasestr.c: Likewise.
53722         * lib/mbschr.c: Likewise.
53723         * lib/mbscspn.c: Likewise.
53724         * lib/mbslen.c: Likewise.
53725         * lib/mbsncasecmp.c: Likewise.
53726         * lib/mbsnlen.c: Likewise.
53727         * lib/mbspbrk.c: Likewise.
53728         * lib/mbspcasecmp.c: Likewise.
53729         * lib/mbsrchr.c: Likewise.
53730         * lib/mbssep.c: Likewise.
53731         * lib/mbsspn.c: Likewise.
53732         * lib/mbsstr.c: Likewise.
53733         * lib/mbstok_r.c: Likewise.
53734         * lib/mbswidth.c: Likewise.
53735         * lib/mbswidth.h: Likewise.
53736         * lib/mbuiter.h: Likewise.
53737         * lib/memcasecmp.c: Likewise.
53738         * lib/memcasecmp.h: Likewise.
53739         * lib/memchr.c: Likewise.
53740         * lib/memcmp.c: Likewise.
53741         * lib/memcoll.c: Likewise.
53742         * lib/memcoll.h: Likewise.
53743         * lib/memcpy.c: Likewise.
53744         * lib/memrchr.c: Likewise.
53745         * lib/mkancesdirs.c: Likewise.
53746         * lib/mkdir-p.c: Likewise.
53747         * lib/mkdir-p.h: Likewise.
53748         * lib/mkdir.c: Likewise.
53749         * lib/mkdirat.c: Likewise.
53750         * lib/mkdtemp.c: Likewise.
53751         * lib/mkstemp-safer.c: Likewise.
53752         * lib/mkstemp.c: Likewise.
53753         * lib/modechange.c: Likewise.
53754         * lib/modechange.h: Likewise.
53755         * lib/mountlist.c: Likewise.
53756         * lib/mountlist.h: Likewise.
53757         * lib/mpsort.c: Likewise.
53758         * lib/nanosleep.c: Likewise.
53759         * lib/obstack.c: Likewise.
53760         * lib/obstack.h: Likewise.
53761         * lib/open-safer.c: Likewise.
53762         * lib/open.c: Likewise.
53763         * lib/openat-die.c: Likewise.
53764         * lib/openat-priv.h: Likewise.
53765         * lib/openat-proc.c: Likewise.
53766         * lib/openat.c: Likewise.
53767         * lib/openat.h: Likewise.
53768         * lib/pagealign_alloc.c: Likewise.
53769         * lib/pagealign_alloc.h: Likewise.
53770         * lib/physmem.c: Likewise.
53771         * lib/physmem.h: Likewise.
53772         * lib/pipe-safer.c: Likewise.
53773         * lib/pipe.c: Likewise.
53774         * lib/pipe.h: Likewise.
53775         * lib/posixtm.c: Likewise.
53776         * lib/posixtm.h: Likewise.
53777         * lib/posixver.c: Likewise.
53778         * lib/printf-frexp.c: Likewise.
53779         * lib/printf-frexp.h: Likewise.
53780         * lib/printf-frexpl.c: Likewise.
53781         * lib/printf-frexpl.h: Likewise.
53782         * lib/printf.c: Likewise.
53783         * lib/progname.c: Likewise.
53784         * lib/progname.h: Likewise.
53785         * lib/progreloc.c: Likewise.
53786         * lib/putenv.c: Likewise.
53787         * lib/quote.c: Likewise.
53788         * lib/quote.h: Likewise.
53789         * lib/quotearg.c: Likewise.
53790         * lib/quotearg.h: Likewise.
53791         * lib/raise.c: Likewise.
53792         * lib/readline.c: Likewise.
53793         * lib/readline.h: Likewise.
53794         * lib/readlink.c: Likewise.
53795         * lib/readtokens.c: Likewise.
53796         * lib/readtokens.h: Likewise.
53797         * lib/readtokens0.c: Likewise.
53798         * lib/readtokens0.h: Likewise.
53799         * lib/readutmp.c: Likewise.
53800         * lib/readutmp.h: Likewise.
53801         * lib/realloc.c: Likewise.
53802         * lib/relocwrapper.c: Likewise.
53803         * lib/rename-dest-slash.c: Likewise.
53804         * lib/rename.c: Likewise.
53805         * lib/rmdir.c: Likewise.
53806         * lib/rpmatch.c: Likewise.
53807         * lib/safe-read.c: Likewise.
53808         * lib/safe-read.h: Likewise.
53809         * lib/safe-write.c: Likewise.
53810         * lib/safe-write.h: Likewise.
53811         * lib/same-inode.h: Likewise.
53812         * lib/same.c: Likewise.
53813         * lib/same.h: Likewise.
53814         * lib/save-cwd.c: Likewise.
53815         * lib/save-cwd.h: Likewise.
53816         * lib/savedir.c: Likewise.
53817         * lib/savedir.h: Likewise.
53818         * lib/savewd.c: Likewise.
53819         * lib/savewd.h: Likewise.
53820         * lib/search.in.h: Likewise.
53821         * lib/setenv.c: Likewise.
53822         * lib/setenv.h: Likewise.
53823         * lib/settime.c: Likewise.
53824         * lib/sh-quote.c: Likewise.
53825         * lib/sh-quote.h: Likewise.
53826         * lib/sig2str.c: Likewise.
53827         * lib/sig2str.h: Likewise.
53828         * lib/signal.in.h: Likewise.
53829         * lib/signbitd.c: Likewise.
53830         * lib/signbitf.c: Likewise.
53831         * lib/signbitl.c: Likewise.
53832         * lib/sigprocmask.c: Likewise.
53833         * lib/sincosl.c: Likewise.
53834         * lib/sleep.c: Likewise.
53835         * lib/sprintf.c: Likewise.
53836         * lib/sqrtl.c: Likewise.
53837         * lib/stat-time.h: Likewise.
53838         * lib/stdio--.h: Likewise.
53839         * lib/stdio-safer.h: Likewise.
53840         * lib/stdlib--.h: Likewise.
53841         * lib/stdlib-safer.h: Likewise.
53842         * lib/stdlib.in.h: Likewise.
53843         * lib/stpcpy.c: Likewise.
53844         * lib/stpncpy.c: Likewise.
53845         * lib/strchrnul.c: Likewise.
53846         * lib/strcspn.c: Likewise.
53847         * lib/strerror.c: Likewise.
53848         * lib/strftime.c: Likewise.
53849         * lib/strftime.h: Likewise.
53850         * lib/striconveh.c: Likewise.
53851         * lib/striconveh.h: Likewise.
53852         * lib/striconveha.c: Likewise.
53853         * lib/striconveha.h: Likewise.
53854         * lib/stripslash.c: Likewise.
53855         * lib/strnlen1.c: Likewise.
53856         * lib/strnlen1.h: Likewise.
53857         * lib/strtod.c: Likewise.
53858         * lib/strtoimax.c: Likewise.
53859         * lib/strtok_r.c: Likewise.
53860         * lib/strtol.c: Likewise.
53861         * lib/strtoll.c: Likewise.
53862         * lib/strtoul.c: Likewise.
53863         * lib/strtoull.c: Likewise.
53864         * lib/sysexits.in.h: Likewise.
53865         * lib/tempname.c: Likewise.
53866         * lib/tempname.h: Likewise.
53867         * lib/timespec.h: Likewise.
53868         * lib/tls.c: Likewise.
53869         * lib/tls.h: Likewise.
53870         * lib/tmpdir.c: Likewise.
53871         * lib/tmpdir.h: Likewise.
53872         * lib/tmpfile-safer.c: Likewise.
53873         * lib/tmpfile.c: Likewise.
53874         * lib/trigl.c: Likewise.
53875         * lib/trigl.h: Likewise.
53876         * lib/trim.c: Likewise.
53877         * lib/trim.h: Likewise.
53878         * lib/trunc.c: Likewise.
53879         * lib/truncf.c: Likewise.
53880         * lib/truncl.c: Likewise.
53881         * lib/tsearch.c: Likewise.
53882         * lib/unicodeio.c: Likewise.
53883         * lib/unicodeio.h: Likewise.
53884         * lib/unistd--.h: Likewise.
53885         * lib/unistd-safer.h: Likewise.
53886         * lib/unistdio/ulc-fprintf.c: Likewise.
53887         * lib/unistdio/ulc-vfprintf.c: Likewise.
53888         * lib/unlinkdir.c: Likewise.
53889         * lib/unlinkdir.h: Likewise.
53890         * lib/unlocked-io.h: Likewise.
53891         * lib/unsetenv.c: Likewise.
53892         * lib/userspec.c: Likewise.
53893         * lib/utime.c: Likewise.
53894         * lib/utimecmp.c: Likewise.
53895         * lib/utimecmp.h: Likewise.
53896         * lib/utimens.c: Likewise.
53897         * lib/verify.h: Likewise.
53898         * lib/verror.c: Likewise.
53899         * lib/verror.h: Likewise.
53900         * lib/version-etc-fsf.c: Likewise.
53901         * lib/version-etc.c: Likewise.
53902         * lib/version-etc.h: Likewise.
53903         * lib/vfprintf.c: Likewise.
53904         * lib/vprintf.c: Likewise.
53905         * lib/vsprintf.c: Likewise.
53906         * lib/w32spawn.h: Likewise.
53907         * lib/wait-process.c: Likewise.
53908         * lib/wait-process.h: Likewise.
53909         * lib/wcwidth.c: Likewise.
53910         * lib/write-any-file.c: Likewise.
53911         * lib/xalloc-die.c: Likewise.
53912         * lib/xalloc.h: Likewise.
53913         * lib/xasprintf.c: Likewise.
53914         * lib/xgetcwd.c: Likewise.
53915         * lib/xgetcwd.h: Likewise.
53916         * lib/xgetdomainname.c: Likewise.
53917         * lib/xgetdomainname.h: Likewise.
53918         * lib/xgethostname.c: Likewise.
53919         * lib/xmalloc.c: Likewise.
53920         * lib/xmalloca.c: Likewise.
53921         * lib/xmalloca.h: Likewise.
53922         * lib/xmemcoll.c: Likewise.
53923         * lib/xnanosleep.c: Likewise.
53924         * lib/xreadlink.c: Likewise.
53925         * lib/xreadlink.h: Likewise.
53926         * lib/xsetenv.c: Likewise.
53927         * lib/xsetenv.h: Likewise.
53928         * lib/xstriconv.c: Likewise.
53929         * lib/xstriconv.h: Likewise.
53930         * lib/xstrndup.c: Likewise.
53931         * lib/xstrndup.h: Likewise.
53932         * lib/xstrtod.c: Likewise.
53933         * lib/xstrtod.h: Likewise.
53934         * lib/xstrtol-error.c: Likewise.
53935         * lib/xstrtol.c: Likewise.
53936         * lib/xstrtol.h: Likewise.
53937         * lib/xtime.h: Likewise.
53938         * lib/xvasprintf.c: Likewise.
53939         * lib/xvasprintf.h: Likewise.
53940         * lib/yesno.c: Likewise.
53941         * lib/yesno.h: Likewise.
53942         * posix-modules: Likewise.
53943         * tests/test-alloca-opt.c: Likewise.
53944         * tests/test-arcfour.c: Likewise.
53945         * tests/test-arctwo.c: Likewise.
53946         * tests/test-argmatch.c: Likewise.
53947         * tests/test-argp-2.sh: Likewise.
53948         * tests/test-argp.c: Likewise.
53949         * tests/test-arpa_inet.c: Likewise.
53950         * tests/test-array_list.c: Likewise.
53951         * tests/test-array_oset.c: Likewise.
53952         * tests/test-atexit.c: Likewise.
53953         * tests/test-avltree_list.c: Likewise.
53954         * tests/test-avltree_oset.c: Likewise.
53955         * tests/test-avltreehash_list.c: Likewise.
53956         * tests/test-base64.c: Likewise.
53957         * tests/test-binary-io.c: Likewise.
53958         * tests/test-byteswap.c: Likewise.
53959         * tests/test-c-ctype.c: Likewise.
53960         * tests/test-c-strcasecmp.c: Likewise.
53961         * tests/test-c-strcasestr.c: Likewise.
53962         * tests/test-c-strncasecmp.c: Likewise.
53963         * tests/test-c-strstr.c: Likewise.
53964         * tests/test-canonicalize-lgpl.c: Likewise.
53965         * tests/test-canonicalize.c: Likewise.
53966         * tests/test-carray_list.c: Likewise.
53967         * tests/test-ceilf.c: Likewise.
53968         * tests/test-ceill.c: Likewise.
53969         * tests/test-count-one-bits.c: Likewise.
53970         * tests/test-crc.c: Likewise.
53971         * tests/test-dirname.c: Likewise.
53972         * tests/test-fbufmode.c: Likewise.
53973         * tests/test-fcntl.c: Likewise.
53974         * tests/test-fflush.c: Likewise.
53975         * tests/test-floorf.c: Likewise.
53976         * tests/test-floorl.c: Likewise.
53977         * tests/test-fopen.c: Likewise.
53978         * tests/test-fprintf-posix.c: Likewise.
53979         * tests/test-fprintf-posix.h: Likewise.
53980         * tests/test-fpurge.c: Likewise.
53981         * tests/test-freadable.c: Likewise.
53982         * tests/test-freadahead.c: Likewise.
53983         * tests/test-freading.c: Likewise.
53984         * tests/test-freopen.c: Likewise.
53985         * tests/test-frexp.c: Likewise.
53986         * tests/test-frexpl.c: Likewise.
53987         * tests/test-fseek.c: Likewise.
53988         * tests/test-fseeko.c: Likewise.
53989         * tests/test-fseterr.c: Likewise.
53990         * tests/test-fstrcmp.c: Likewise.
53991         * tests/test-ftell.c: Likewise.
53992         * tests/test-ftello.c: Likewise.
53993         * tests/test-fwritable.c: Likewise.
53994         * tests/test-fwriting.c: Likewise.
53995         * tests/test-getaddrinfo.c: Likewise.
53996         * tests/test-getpass.c: Likewise.
53997         * tests/test-gettimeofday.c: Likewise.
53998         * tests/test-hmac-md5.c: Likewise.
53999         * tests/test-hmac-sha1.c: Likewise.
54000         * tests/test-iconv.c: Likewise.
54001         * tests/test-iconvme.c: Likewise.
54002         * tests/test-inttypes.c: Likewise.
54003         * tests/test-isnan.c: Likewise.
54004         * tests/test-isnanf.c: Likewise.
54005         * tests/test-isnanl-nolibm.c: Likewise.
54006         * tests/test-isnanl.c: Likewise.
54007         * tests/test-isnanl.h: Likewise.
54008         * tests/test-ldexpl.c: Likewise.
54009         * tests/test-linked_list.c: Likewise.
54010         * tests/test-linkedhash_list.c: Likewise.
54011         * tests/test-locale.c: Likewise.
54012         * tests/test-localename.c: Likewise.
54013         * tests/test-lock.c: Likewise.
54014         * tests/test-lseek.c: Likewise.
54015         * tests/test-malloca.c: Likewise.
54016         * tests/test-math.c: Likewise.
54017         * tests/test-mbscasecmp.c: Likewise.
54018         * tests/test-mbscasestr1.c: Likewise.
54019         * tests/test-mbscasestr2.c: Likewise.
54020         * tests/test-mbscasestr3.c: Likewise.
54021         * tests/test-mbscasestr4.c: Likewise.
54022         * tests/test-mbschr.c: Likewise.
54023         * tests/test-mbscspn.c: Likewise.
54024         * tests/test-mbsncasecmp.c: Likewise.
54025         * tests/test-mbspbrk.c: Likewise.
54026         * tests/test-mbspcasecmp.c: Likewise.
54027         * tests/test-mbsrchr.c: Likewise.
54028         * tests/test-mbsspn.c: Likewise.
54029         * tests/test-mbsstr1.c: Likewise.
54030         * tests/test-mbsstr2.c: Likewise.
54031         * tests/test-mbsstr3.c: Likewise.
54032         * tests/test-md5.c: Likewise.
54033         * tests/test-memmem.c: Likewise.
54034         * tests/test-netinet_in.c: Likewise.
54035         * tests/test-open.c: Likewise.
54036         * tests/test-printf-frexp.c: Likewise.
54037         * tests/test-printf-frexpl.c: Likewise.
54038         * tests/test-printf-posix.c: Likewise.
54039         * tests/test-printf-posix.h: Likewise.
54040         * tests/test-rbtree_list.c: Likewise.
54041         * tests/test-rbtree_oset.c: Likewise.
54042         * tests/test-rbtreehash_list.c: Likewise.
54043         * tests/test-read-file.c: Likewise.
54044         * tests/test-rijndael.c: Likewise.
54045         * tests/test-search.c: Likewise.
54046         * tests/test-signbit.c: Likewise.
54047         * tests/test-sleep.c: Likewise.
54048         * tests/test-snprintf-posix.c: Likewise.
54049         * tests/test-snprintf-posix.h: Likewise.
54050         * tests/test-snprintf.c: Likewise.
54051         * tests/test-sprintf-posix.c: Likewise.
54052         * tests/test-sprintf-posix.h: Likewise.
54053         * tests/test-stat-time.c: Likewise.
54054         * tests/test-stdbool.c: Likewise.
54055         * tests/test-stdint.c: Likewise.
54056         * tests/test-stdio.c: Likewise.
54057         * tests/test-stdlib.c: Likewise.
54058         * tests/test-stpncpy.c: Likewise.
54059         * tests/test-strcasestr.c: Likewise.
54060         * tests/test-striconv.c: Likewise.
54061         * tests/test-striconveh.c: Likewise.
54062         * tests/test-striconveha.c: Likewise.
54063         * tests/test-string.c: Likewise.
54064         * tests/test-sys_select.c: Likewise.
54065         * tests/test-sys_socket.c: Likewise.
54066         * tests/test-sys_stat.c: Likewise.
54067         * tests/test-sys_time.c: Likewise.
54068         * tests/test-sysexits.c: Likewise.
54069         * tests/test-time.c: Likewise.
54070         * tests/test-tls.c: Likewise.
54071         * tests/test-trunc.c: Likewise.
54072         * tests/test-truncf.c: Likewise.
54073         * tests/test-truncl.c: Likewise.
54074         * tests/test-unistd.c: Likewise.
54075         * tests/test-vasnprintf-posix.c: Likewise.
54076         * tests/test-vasnprintf-posix2.c: Likewise.
54077         * tests/test-vasnprintf.c: Likewise.
54078         * tests/test-vasprintf-posix.c: Likewise.
54079         * tests/test-vasprintf.c: Likewise.
54080         * tests/test-verify.c: Likewise.
54081         * tests/test-vfprintf-posix.c: Likewise.
54082         * tests/test-vprintf-posix.c: Likewise.
54083         * tests/test-vsnprintf-posix.c: Likewise.
54084         * tests/test-vsnprintf.c: Likewise.
54085         * tests/test-vsprintf-posix.c: Likewise.
54086         * tests/test-wchar.c: Likewise.
54087         * tests/test-wctype.c: Likewise.
54088         * tests/test-wcwidth.c: Likewise.
54089         * tests/test-xstrtol.c: Likewise.
54090         * tests/test-xvasprintf.c: Likewise.
54091         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
54092         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
54093         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
54094         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
54095         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
54096         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
54097         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
54098         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
54099         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
54100         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
54101         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
54102         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
54103         * tests/uniname/test-uninames.c: Likewise.
54104         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
54105         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
54106         * tests/unistdio/test-u16-printf1.h: Likewise.
54107         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
54108         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
54109         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
54110         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
54111         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
54112         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
54113         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
54114         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
54115         * tests/unistdio/test-u32-printf1.h: Likewise.
54116         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
54117         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
54118         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
54119         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
54120         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
54121         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
54122         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
54123         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
54124         * tests/unistdio/test-u8-printf1.h: Likewise.
54125         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
54126         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
54127         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
54128         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
54129         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
54130         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
54131         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
54132         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
54133         * tests/unistdio/test-ulc-printf1.h: Likewise.
54134         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
54135         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
54136         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
54137         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
54138         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
54139         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
54140         * tests/uniwidth/test-u16-strwidth.c: Likewise.
54141         * tests/uniwidth/test-u16-width.c: Likewise.
54142         * tests/uniwidth/test-u32-strwidth.c: Likewise.
54143         * tests/uniwidth/test-u32-width.c: Likewise.
54144         * tests/uniwidth/test-u8-strwidth.c: Likewise.
54145         * tests/uniwidth/test-u8-width.c: Likewise.
54146         * tests/uniwidth/test-uc_width.c: Likewise.
54147         * config/srclist-update: Likewise.
54148         (fixlicense): Update to GPLv3+.
54149
54150         Change copyright notice from LGPLv2.1+ to LGPLv3+.
54151         * tests/test-tsearch.c: Change copyright notice.
54152
54153         Change copyright notice from LGPLv2.0+ to LGPLv3+.
54154         * lib/c-strcaseeq.h: Change copyright notice.
54155         * lib/streq.h: Likewise.
54156         * lib/uniconv.h: Likewise.
54157         * lib/uniconv/u-conv-from-enc.h: Likewise.
54158         * lib/uniconv/u-conv-to-enc.h: Likewise.
54159         * lib/uniconv/u-strconv-from-enc.h: Likewise.
54160         * lib/uniconv/u-strconv-to-enc.h: Likewise.
54161         * lib/uniconv/u16-conv-from-enc.c: Likewise.
54162         * lib/uniconv/u16-conv-to-enc.c: Likewise.
54163         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
54164         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
54165         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
54166         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
54167         * lib/uniconv/u32-conv-from-enc.c: Likewise.
54168         * lib/uniconv/u32-conv-to-enc.c: Likewise.
54169         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
54170         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
54171         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
54172         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
54173         * lib/uniconv/u8-conv-from-enc.c: Likewise.
54174         * lib/uniconv/u8-conv-to-enc.c: Likewise.
54175         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
54176         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
54177         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
54178         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
54179         * lib/uniname.h: Likewise.
54180         * lib/uniname/uniname.c: Likewise.
54181         * lib/unistdio.h: Likewise.
54182         * lib/unistdio/u-asnprintf.h: Likewise.
54183         * lib/unistdio/u-asprintf.h: Likewise.
54184         * lib/unistdio/u-printf-args.c: Likewise.
54185         * lib/unistdio/u-printf-args.h: Likewise.
54186         * lib/unistdio/u-printf-parse.h: Likewise.
54187         * lib/unistdio/u-snprintf.h: Likewise.
54188         * lib/unistdio/u-sprintf.h: Likewise.
54189         * lib/unistdio/u-vasprintf.h: Likewise.
54190         * lib/unistdio/u-vsnprintf.h: Likewise.
54191         * lib/unistdio/u-vsprintf.h: Likewise.
54192         * lib/unistdio/u16-asnprintf.c: Likewise.
54193         * lib/unistdio/u16-asprintf.c: Likewise.
54194         * lib/unistdio/u16-printf-parse.c: Likewise.
54195         * lib/unistdio/u16-snprintf.c: Likewise.
54196         * lib/unistdio/u16-sprintf.c: Likewise.
54197         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
54198         * lib/unistdio/u16-u16-asprintf.c: Likewise.
54199         * lib/unistdio/u16-u16-snprintf.c: Likewise.
54200         * lib/unistdio/u16-u16-sprintf.c: Likewise.
54201         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
54202         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
54203         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
54204         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
54205         * lib/unistdio/u16-vasnprintf.c: Likewise.
54206         * lib/unistdio/u16-vasprintf.c: Likewise.
54207         * lib/unistdio/u16-vsnprintf.c: Likewise.
54208         * lib/unistdio/u16-vsprintf.c: Likewise.
54209         * lib/unistdio/u32-asnprintf.c: Likewise.
54210         * lib/unistdio/u32-asprintf.c: Likewise.
54211         * lib/unistdio/u32-printf-parse.c: Likewise.
54212         * lib/unistdio/u32-snprintf.c: Likewise.
54213         * lib/unistdio/u32-sprintf.c: Likewise.
54214         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
54215         * lib/unistdio/u32-u32-asprintf.c: Likewise.
54216         * lib/unistdio/u32-u32-snprintf.c: Likewise.
54217         * lib/unistdio/u32-u32-sprintf.c: Likewise.
54218         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
54219         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
54220         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
54221         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
54222         * lib/unistdio/u32-vasnprintf.c: Likewise.
54223         * lib/unistdio/u32-vasprintf.c: Likewise.
54224         * lib/unistdio/u32-vsnprintf.c: Likewise.
54225         * lib/unistdio/u32-vsprintf.c: Likewise.
54226         * lib/unistdio/u8-asnprintf.c: Likewise.
54227         * lib/unistdio/u8-asprintf.c: Likewise.
54228         * lib/unistdio/u8-printf-parse.c: Likewise.
54229         * lib/unistdio/u8-snprintf.c: Likewise.
54230         * lib/unistdio/u8-sprintf.c: Likewise.
54231         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
54232         * lib/unistdio/u8-u8-asprintf.c: Likewise.
54233         * lib/unistdio/u8-u8-snprintf.c: Likewise.
54234         * lib/unistdio/u8-u8-sprintf.c: Likewise.
54235         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
54236         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
54237         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
54238         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
54239         * lib/unistdio/u8-vasnprintf.c: Likewise.
54240         * lib/unistdio/u8-vasprintf.c: Likewise.
54241         * lib/unistdio/u8-vsnprintf.c: Likewise.
54242         * lib/unistdio/u8-vsprintf.c: Likewise.
54243         * lib/unistdio/ulc-asnprintf.c: Likewise.
54244         * lib/unistdio/ulc-asprintf.c: Likewise.
54245         * lib/unistdio/ulc-printf-parse.c: Likewise.
54246         * lib/unistdio/ulc-snprintf.c: Likewise.
54247         * lib/unistdio/ulc-sprintf.c: Likewise.
54248         * lib/unistdio/ulc-vasnprintf.c: Likewise.
54249         * lib/unistdio/ulc-vasprintf.c: Likewise.
54250         * lib/unistdio/ulc-vsnprintf.c: Likewise.
54251         * lib/unistdio/ulc-vsprintf.c: Likewise.
54252         * lib/unistr.h: Likewise.
54253         * lib/unistr/u-cpy-alloc.h: Likewise.
54254         * lib/unistr/u-cpy.h: Likewise.
54255         * lib/unistr/u-endswith.h: Likewise.
54256         * lib/unistr/u-move.h: Likewise.
54257         * lib/unistr/u-set.h: Likewise.
54258         * lib/unistr/u-startswith.h: Likewise.
54259         * lib/unistr/u-stpcpy.h: Likewise.
54260         * lib/unistr/u-stpncpy.h: Likewise.
54261         * lib/unistr/u-strcat.h: Likewise.
54262         * lib/unistr/u-strcpy.h: Likewise.
54263         * lib/unistr/u-strcspn.h: Likewise.
54264         * lib/unistr/u-strdup.h: Likewise.
54265         * lib/unistr/u-strlen.h: Likewise.
54266         * lib/unistr/u-strncat.h: Likewise.
54267         * lib/unistr/u-strncpy.h: Likewise.
54268         * lib/unistr/u-strnlen.h: Likewise.
54269         * lib/unistr/u-strpbrk.h: Likewise.
54270         * lib/unistr/u-strspn.h: Likewise.
54271         * lib/unistr/u-strstr.h: Likewise.
54272         * lib/unistr/u-strtok.h: Likewise.
54273         * lib/unistr/u16-check.c: Likewise.
54274         * lib/unistr/u16-chr.c: Likewise.
54275         * lib/unistr/u16-cmp.c: Likewise.
54276         * lib/unistr/u16-cpy-alloc.c: Likewise.
54277         * lib/unistr/u16-cpy.c: Likewise.
54278         * lib/unistr/u16-endswith.c: Likewise.
54279         * lib/unistr/u16-mblen.c: Likewise.
54280         * lib/unistr/u16-mbsnlen.c: Likewise.
54281         * lib/unistr/u16-mbtouc-aux.c: Likewise.
54282         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
54283         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
54284         * lib/unistr/u16-mbtouc.c: Likewise.
54285         * lib/unistr/u16-mbtoucr.c: Likewise.
54286         * lib/unistr/u16-move.c: Likewise.
54287         * lib/unistr/u16-next.c: Likewise.
54288         * lib/unistr/u16-prev.c: Likewise.
54289         * lib/unistr/u16-set.c: Likewise.
54290         * lib/unistr/u16-startswith.c: Likewise.
54291         * lib/unistr/u16-stpcpy.c: Likewise.
54292         * lib/unistr/u16-stpncpy.c: Likewise.
54293         * lib/unistr/u16-strcat.c: Likewise.
54294         * lib/unistr/u16-strchr.c: Likewise.
54295         * lib/unistr/u16-strcmp.c: Likewise.
54296         * lib/unistr/u16-strcpy.c: Likewise.
54297         * lib/unistr/u16-strcspn.c: Likewise.
54298         * lib/unistr/u16-strdup.c: Likewise.
54299         * lib/unistr/u16-strlen.c: Likewise.
54300         * lib/unistr/u16-strmblen.c: Likewise.
54301         * lib/unistr/u16-strmbtouc.c: Likewise.
54302         * lib/unistr/u16-strncat.c: Likewise.
54303         * lib/unistr/u16-strncmp.c: Likewise.
54304         * lib/unistr/u16-strncpy.c: Likewise.
54305         * lib/unistr/u16-strnlen.c: Likewise.
54306         * lib/unistr/u16-strpbrk.c: Likewise.
54307         * lib/unistr/u16-strrchr.c: Likewise.
54308         * lib/unistr/u16-strspn.c: Likewise.
54309         * lib/unistr/u16-strstr.c: Likewise.
54310         * lib/unistr/u16-strtok.c: Likewise.
54311         * lib/unistr/u16-to-u32.c: Likewise.
54312         * lib/unistr/u16-to-u8.c: Likewise.
54313         * lib/unistr/u16-uctomb-aux.c: Likewise.
54314         * lib/unistr/u16-uctomb.c: Likewise.
54315         * lib/unistr/u32-check.c: Likewise.
54316         * lib/unistr/u32-chr.c: Likewise.
54317         * lib/unistr/u32-cmp.c: Likewise.
54318         * lib/unistr/u32-cpy-alloc.c: Likewise.
54319         * lib/unistr/u32-cpy.c: Likewise.
54320         * lib/unistr/u32-endswith.c: Likewise.
54321         * lib/unistr/u32-mblen.c: Likewise.
54322         * lib/unistr/u32-mbsnlen.c: Likewise.
54323         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
54324         * lib/unistr/u32-mbtouc.c: Likewise.
54325         * lib/unistr/u32-mbtoucr.c: Likewise.
54326         * lib/unistr/u32-move.c: Likewise.
54327         * lib/unistr/u32-next.c: Likewise.
54328         * lib/unistr/u32-prev.c: Likewise.
54329         * lib/unistr/u32-set.c: Likewise.
54330         * lib/unistr/u32-startswith.c: Likewise.
54331         * lib/unistr/u32-stpcpy.c: Likewise.
54332         * lib/unistr/u32-stpncpy.c: Likewise.
54333         * lib/unistr/u32-strcat.c: Likewise.
54334         * lib/unistr/u32-strchr.c: Likewise.
54335         * lib/unistr/u32-strcmp.c: Likewise.
54336         * lib/unistr/u32-strcpy.c: Likewise.
54337         * lib/unistr/u32-strcspn.c: Likewise.
54338         * lib/unistr/u32-strdup.c: Likewise.
54339         * lib/unistr/u32-strlen.c: Likewise.
54340         * lib/unistr/u32-strmblen.c: Likewise.
54341         * lib/unistr/u32-strmbtouc.c: Likewise.
54342         * lib/unistr/u32-strncat.c: Likewise.
54343         * lib/unistr/u32-strncmp.c: Likewise.
54344         * lib/unistr/u32-strncpy.c: Likewise.
54345         * lib/unistr/u32-strnlen.c: Likewise.
54346         * lib/unistr/u32-strpbrk.c: Likewise.
54347         * lib/unistr/u32-strrchr.c: Likewise.
54348         * lib/unistr/u32-strspn.c: Likewise.
54349         * lib/unistr/u32-strstr.c: Likewise.
54350         * lib/unistr/u32-strtok.c: Likewise.
54351         * lib/unistr/u32-to-u16.c: Likewise.
54352         * lib/unistr/u32-to-u8.c: Likewise.
54353         * lib/unistr/u32-uctomb.c: Likewise.
54354         * lib/unistr/u8-check.c: Likewise.
54355         * lib/unistr/u8-chr.c: Likewise.
54356         * lib/unistr/u8-cmp.c: Likewise.
54357         * lib/unistr/u8-cpy-alloc.c: Likewise.
54358         * lib/unistr/u8-cpy.c: Likewise.
54359         * lib/unistr/u8-endswith.c: Likewise.
54360         * lib/unistr/u8-mblen.c: Likewise.
54361         * lib/unistr/u8-mbsnlen.c: Likewise.
54362         * lib/unistr/u8-mbtouc-aux.c: Likewise.
54363         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
54364         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
54365         * lib/unistr/u8-mbtouc.c: Likewise.
54366         * lib/unistr/u8-mbtoucr.c: Likewise.
54367         * lib/unistr/u8-move.c: Likewise.
54368         * lib/unistr/u8-next.c: Likewise.
54369         * lib/unistr/u8-prev.c: Likewise.
54370         * lib/unistr/u8-set.c: Likewise.
54371         * lib/unistr/u8-startswith.c: Likewise.
54372         * lib/unistr/u8-stpcpy.c: Likewise.
54373         * lib/unistr/u8-stpncpy.c: Likewise.
54374         * lib/unistr/u8-strcat.c: Likewise.
54375         * lib/unistr/u8-strchr.c: Likewise.
54376         * lib/unistr/u8-strcmp.c: Likewise.
54377         * lib/unistr/u8-strcpy.c: Likewise.
54378         * lib/unistr/u8-strcspn.c: Likewise.
54379         * lib/unistr/u8-strdup.c: Likewise.
54380         * lib/unistr/u8-strlen.c: Likewise.
54381         * lib/unistr/u8-strmblen.c: Likewise.
54382         * lib/unistr/u8-strmbtouc.c: Likewise.
54383         * lib/unistr/u8-strncat.c: Likewise.
54384         * lib/unistr/u8-strncmp.c: Likewise.
54385         * lib/unistr/u8-strncpy.c: Likewise.
54386         * lib/unistr/u8-strnlen.c: Likewise.
54387         * lib/unistr/u8-strpbrk.c: Likewise.
54388         * lib/unistr/u8-strrchr.c: Likewise.
54389         * lib/unistr/u8-strspn.c: Likewise.
54390         * lib/unistr/u8-strstr.c: Likewise.
54391         * lib/unistr/u8-strtok.c: Likewise.
54392         * lib/unistr/u8-to-u16.c: Likewise.
54393         * lib/unistr/u8-to-u32.c: Likewise.
54394         * lib/unistr/u8-uctomb-aux.c: Likewise.
54395         * lib/unistr/u8-uctomb.c: Likewise.
54396         * lib/unitypes.h: Likewise.
54397         * lib/uniwidth.h: Likewise.
54398         * lib/uniwidth/cjk.h: Likewise.
54399         * lib/uniwidth/u16-strwidth.c: Likewise.
54400         * lib/uniwidth/u16-width.c: Likewise.
54401         * lib/uniwidth/u32-strwidth.c: Likewise.
54402         * lib/uniwidth/u32-width.c: Likewise.
54403         * lib/uniwidth/u8-strwidth.c: Likewise.
54404         * lib/uniwidth/u8-width.c: Likewise.
54405         * lib/uniwidth/width.c: Likewise.
54406
54407 2007-10-07  Bruno Haible  <bruno@clisp.org>
54408
54409         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
54410         The file is still under LGPL (see modules/inttypes).
54411
54412 2007-10-06  Bruno Haible  <bruno@clisp.org>
54413
54414         * modules/trunc (Dependencies): Add 'extensions'.
54415         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
54416         Reported by Ben Pfaff <blp@gnu.org>.
54417
54418 2007-10-06  Bruno Haible  <bruno@clisp.org>
54419
54420         * modules/freopen-tests: New file.
54421         * tests/test-freopen.c: New file.
54422
54423         * modules/fopen-tests: New file.
54424         * tests/test-fopen.c: New file.
54425
54426         * modules/fopen: New file.
54427         * lib/fopen.c: New file.
54428         * m4/fopen.m4: New file.
54429         * modules/freopen: New file.
54430         * lib/freopen.c: New file.
54431         * m4/freopen.m4: New file.
54432         * lib/stdio.in.h (fopen, freopen): New declarations.
54433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
54434         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
54435         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
54436         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
54437         * doc/functions/fopen.texi: Mention the 'fopen' module.
54438         * doc/functions/freopen.texi: Mention the 'freopen' module.
54439
54440 2007-10-06  Bruno Haible  <bruno@clisp.org>
54441
54442         * modules/open-tests: New file.
54443         * tests/test-open.c: New file.
54444
54445         * modules/open: New file.
54446         * lib/open.c: New file.
54447         * m4/open.m4: New file.
54448         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
54449         lib/open.c does.
54450         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
54451         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
54452         macros.
54453         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
54454         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
54455         REPLACE_OPEN.
54456         * doc/functions/open.texi: Mention the 'open' module.
54457
54458 2007-10-04  Bruno Haible  <bruno@clisp.org>
54459
54460         * modules/ceill-tests: New file.
54461         * tests/test-ceill.c: New file.
54462
54463         * modules/ceill: New file.
54464         * lib/ceill.c: Replace entire file.
54465         * m4/ceill.m4: New file.
54466         * lib/math.in.h (ceill): Replace declaration.
54467         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
54468         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
54469         * doc/functions/ceill.texi: Mention the 'ceill' module.
54470         * modules/mathl (Files): Remove lib/ceill.c.
54471         (Depends-on): Add ceill.
54472
54473 2007-10-04  Bruno Haible  <bruno@clisp.org>
54474
54475         * modules/ceilf-tests: New file.
54476         * tests/test-ceilf.c: New file.
54477
54478         * modules/ceilf: New file.
54479         * lib/ceil.c: New file.
54480         * lib/ceilf.c: New file.
54481         * m4/ceilf.m4: New file.
54482         * lib/math.in.h (ceilf): New declaration.
54483         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
54484         HAVE_DECL_CEILF.
54485         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
54486         HAVE_DECL_CEILF.
54487         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
54488
54489 2007-10-04  Bruno Haible  <bruno@clisp.org>
54490
54491         * modules/floorl-tests: New file.
54492         * tests/test-floorl.c: New file.
54493
54494         * modules/floorl: New file.
54495         * lib/floorl.c: Replace entire file.
54496         * m4/floorl.m4: New file.
54497         * lib/math.in.h (floorl): Replace declaration.
54498         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
54499         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
54500         * doc/functions/floorl.texi: Mention the 'floorl' module.
54501         * modules/mathl (Files): Remove lib/floorl.c.
54502         (Depends-on): Add floorl.
54503
54504 2007-10-04  Bruno Haible  <bruno@clisp.org>
54505
54506         * modules/floorf-tests: New file.
54507         * tests/test-floorf.c: New file.
54508
54509         * modules/floorf: New file.
54510         * lib/floor.c: New file.
54511         * lib/floorf.c: New file.
54512         * m4/floorf.m4: New file.
54513         * lib/math.in.h (floorf): New declaration.
54514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
54515         HAVE_DECL_FLOORF.
54516         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
54517         HAVE_DECL_FLOORF.
54518         * doc/functions/floorf.texi: Mention the 'floorf' module.
54519
54520 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
54521             Bruno Haible  <bruno@clisp.org>
54522
54523         Advertise for the Git server instead of the CVS server.
54524         * doc/gnulib-intro.texi (Steady Development): Mention the Git
54525         repository instead of the CVS one.
54526         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
54527         about all VCS systems generically.
54528         * doc/gnulib.texi (Introduction): Capitalize `Git'.
54529
54530 2007-10-04  Bruno Haible  <bruno@clisp.org>
54531
54532         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
54533         means.
54534         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
54535
54536 2007-10-04  Bruno Haible  <bruno@clisp.org>
54537
54538         * modules/truncl-tests: New file.
54539         * tests/test-truncl.c: New file.
54540
54541         * modules/truncl: New file.
54542         * lib/truncl.c: New file.
54543         * m4/truncl.m4: New file.
54544         * lib/math.in.h (truncl): New declaration.
54545         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
54546         HAVE_DECL_TRUNCL.
54547         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
54548         HAVE_DECL_TRUNCL.
54549         * doc/functions/truncl.texi: Mention the 'truncl' module.
54550
54551 2007-10-04  Bruno Haible  <bruno@clisp.org>
54552
54553         * modules/truncf-tests: New file.
54554         * tests/test-truncf.c: New file.
54555
54556         * modules/truncf: New file.
54557         * lib/trunc.c: Make paramerizable through USE_* macros.
54558         * lib/truncf.c: New file.
54559         * m4/truncf.m4: New file.
54560         * lib/math.in.h (truncf): New declaration.
54561         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
54562         HAVE_DECL_TRUNCF.
54563         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
54564         HAVE_DECL_TRUNCF.
54565         * doc/functions/truncf.texi: Mention the 'truncf' module.
54566
54567 2007-10-03  Bruno Haible  <bruno@clisp.org>
54568
54569         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
54570         augmentation also for tests modules.
54571         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
54572         * modules/atexit-tests (Makefile.am): Likewise.
54573         * modules/binary-io-tests (Makefile.am): Likewise.
54574         * modules/c-strcase-tests (Makefile.am): Likewise.
54575         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
54576         * modules/canonicalize-tests (Makefile.am): Likewise.
54577         * modules/closein-tests (Makefile.am): Likewise.
54578         * modules/fprintf-posix-tests (Makefile.am): Likewise.
54579         * modules/freadahead-tests (Makefile.am): Likewise.
54580         * modules/fseek-tests (Makefile.am): Likewise.
54581         * modules/fseeko-tests (Makefile.am): Likewise.
54582         * modules/ftell-tests (Makefile.am): Likewise.
54583         * modules/ftello-tests (Makefile.am): Likewise.
54584         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
54585         * modules/isnanl-tests (Makefile.am): Likewise.
54586         * modules/lseek-tests (Makefile.am): Likewise.
54587         * modules/mbscasecmp-tests (Makefile.am): Likewise.
54588         * modules/mbscasestr-tests (Makefile.am): Likewise.
54589         * modules/mbschr-tests (Makefile.am): Likewise.
54590         * modules/mbscspn-tests (Makefile.am): Likewise.
54591         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
54592         * modules/mbspbrk-tests (Makefile.am): Likewise.
54593         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
54594         * modules/mbsrchr-tests (Makefile.am): Likewise.
54595         * modules/mbsspn-tests (Makefile.am): Likewise.
54596         * modules/mbsstr-tests (Makefile.am): Likewise.
54597         * modules/printf-posix-tests (Makefile.am): Likewise.
54598         * modules/snprintf-posix-tests (Makefile.am): Likewise.
54599         * modules/sprintf-posix-tests (Makefile.am): Likewise.
54600         * modules/tsearch-tests (Makefile.am): Likewise.
54601         * modules/uniname/uniname-tests (Makefile.am): Likewise.
54602         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
54603         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
54604         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
54605         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
54606         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
54607         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
54608         * modules/vprintf-posix-tests (Makefile.am): Likewise.
54609         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
54610         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
54611         * modules/xstrtoimax-tests (Makefile.am): Likewise.
54612         * modules/xstrtol-tests (Makefile.am): Likewise.
54613         * modules/xstrtoumax-tests (Makefile.am): Likewise.
54614         * modules/yesno-tests (Makefile.am): Likewise.
54615
54616 2007-10-03  Bruno Haible  <bruno@clisp.org>
54617
54618         * modules/trunc-tests: New file.
54619         * tests/test-trunc.c: New file.
54620
54621         * modules/trunc: New file.
54622         * lib/trunc.c: New file.
54623         * m4/trunc.m4: New file.
54624         * lib/math.in.h (trunc): New declaration.
54625         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
54626         HAVE_DECL_TRUNC.
54627         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
54628         HAVE_DECL_TRUNC.
54629         * doc/functions/trunc.texi: Mention the 'trunc' module.
54630
54631 2007-10-03  Bruno Haible  <bruno@clisp.org>
54632
54633         * tests/test-fpending.c: New file, mostly copied
54634         from coreutils/lib/t-fpending.c.
54635         * modules/fpending-tests: New file.
54636
54637 2007-10-03  Bruno Haible  <bruno@clisp.org>
54638
54639         Port the stdio extensions to QNX (untested).
54640         * lib/fseterr.c (fseterr): Add support for QNX.
54641         * lib/fbufmode.c (fbufmode): Likewise.
54642         * lib/freadable.c (freadable): Likewise.
54643         * lib/fwritable.c (fwritable): Likewise.
54644         * lib/freading.c (freading): Likewise.
54645         * lib/fwriting.c (fwriting): Likewise.
54646         * lib/freadahead.c (freadahed): Likewise.
54647         * lib/fpurge.c (fpurge): Likewise.
54648         * lib/fseeko.c (rpl_fseeko): Likewise.
54649
54650 2007-10-03  Bruno Haible  <bruno@clisp.org>
54651             Jim Meyering  <jim@meyering.net>
54652             Eric Blake  <ebb9@byu.net>
54653
54654         * doc/relocatable.texi: Use @command instead of @program.
54655
54656 2007-10-02  Jim Meyering  <jim@meyering.net>
54657
54658         Perform one more "_.h" -> ".in.h" substitution.
54659         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
54660         instead of unistd_.h here, too.
54661
54662 2007-10-01  Bruno Haible  <bruno@clisp.org>
54663
54664         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
54665         Needed for the alloca-opt module.
54666
54667 2007-09-30  Bruno Haible  <bruno@clisp.org>
54668
54669         * lib/alloca.in.h: Renamed from lib/alloca_.h.
54670         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
54671         alloca_.h.
54672         * lib/argz.in.h: Renamed from lib/argz_.h.
54673         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
54674         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
54675         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
54676         byteswap_.h.
54677         * lib/dirent.in.h: Renamed from lib/dirent_.h.
54678         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
54679         dirent_.h.
54680         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
54681         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
54682         fcntl_.h.
54683         * lib/float.in.h: Renamed from lib/float_.h.
54684         * modules/float (Files, Makefile.am): Use float.in.h instead of
54685         float_.h.
54686         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
54687         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
54688         fnmatch_.h.
54689         * lib/getopt.in.h: Renamed from lib/getopt_.h.
54690         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
54691         getopt_.h.
54692         * lib/glob.in.h: Renamed from lib/glob_.h.
54693         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
54694         * lib/iconv.in.h: Renamed from lib/iconv_.h.
54695         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
54696         iconv_.h.
54697         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
54698         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
54699         inttypes_.h.
54700         * lib/locale.in.h: Renamed from lib/locale_.h.
54701         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
54702         locale_.h.
54703         * lib/math.in.h: Renamed from lib/math_.h.
54704         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
54705         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
54706         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
54707         of netinet_in_.h. Add dependency.
54708         * lib/poll.in.h: Renamed from lib/poll_.h.
54709         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
54710         * lib/search.in.h: Renamed from lib/search_.h.
54711         * modules/search (Files, Makefile.am): Use search.in.h instead of
54712         search_.h.
54713         * lib/signal.in.h: Renamed from lib/signal_.h.
54714         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
54715         _signal.h.
54716         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
54717         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
54718         stdbool_.h.
54719         * lib/stdint.in.h: Renamed from lib/stdint_.h.
54720         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
54721         stdint_.h.
54722         * lib/stdio.in.h: Renamed from lib/stdio_.h.
54723         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
54724         stdio_.h.
54725         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
54726         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
54727         stdlib_.h.
54728         * lib/string.in.h: Renamed from lib/string_.h.
54729         * modules/string (Files, Makefile.am): Use string.in.h instead of
54730         string_.h.
54731         * doc/gnulib-tool.texi (Initial import): Update.
54732         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
54733         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
54734         of sys_select_.h. Add dependency.
54735         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
54736         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
54737         of sys_socket_.h.
54738         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
54739         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
54740         sys_stat_.h.
54741         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
54742         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
54743         sys_time_.h.
54744         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
54745         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
54746         sysexits_.h.
54747         * lib/time.in.h: Renamed from lib/time_.h.
54748         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
54749         * lib/unistd.in.h: Renamed from lib/unistd_.h.
54750         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
54751         unistd_.h.
54752         * lib/wchar.in.h: Renamed from lib/wchar_.h.
54753         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
54754         wchar_.h.
54755         * lib/wctype.in.h: Renamed from lib/wctype_.h.
54756         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
54757         wctype_.h.
54758         * build-aux/bootstrap (slurp): Update.
54759         * lib/.cppi-disable: Update.
54760
54761 2007-09-30  Bruno Haible  <bruno@clisp.org>
54762
54763         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
54764         Needed on BeOS.
54765
54766 2007-09-30  Bruno Haible  <bruno@clisp.org>
54767
54768         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
54769
54770 2007-09-29  Bruno Haible  <bruno@clisp.org>
54771
54772         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
54773
54774 2007-09-29  Bruno Haible  <bruno@clisp.org>
54775
54776         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
54777         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
54778         * build-aux/install-reloc: Compile also areadlink.c.
54779         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
54780
54781 2007-09-29  Bruno Haible  <bruno@clisp.org>
54782
54783         * gnulib-tool (func_emit_initmacro_done): Indentation.
54784
54785 2007-09-29  Bruno Haible  <bruno@clisp.org>
54786
54787         * README: Add CVS checkout update instructions.
54788         Info from Bob Proulx <bob@proulx.com>.
54789
54790 2007-09-28  Eric Blake  <ebb9@byu.net>
54791
54792         Provide move-if-change.
54793         * build-aux/move-if-change: New file, based on best practice
54794         rather than any canonical upstream location.
54795
54796 2007-09-28  Jim Meyering  <jim@meyering.net>
54797
54798         Fix canonicalize loop-detection corner case.
54799         Do not attempt to stat the symlink values stored via seen_triple.
54800         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
54801         on linux-2.6.18, (but not 2.6.22).
54802         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
54803         triple_compare.  The former compares dev,ino,filename, while the latter
54804         would actually stat dirname(filename) when dev and ino were equal.
54805         * lib/hash-triple.c: Install <string.h>.
54806         (STREQ): Define.
54807         (triple_compare_ino_str): New function.
54808         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
54809
54810 2007-09-28  Eric Blake  <ebb9@byu.net>
54811
54812         Enforce that AC_REPLACE_FUNCS files exist.
54813         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
54814         override check for typos.
54815
54816         Fix test-closein on Solaris 10.
54817         * tests/test-closein.c (main): Don't assume stdin can be inherited
54818         closed on all systems.
54819         * tests/test-closein.sh: Likewise.
54820         Reported by Piotr Tarnowski.
54821
54822 2007-09-28  Jim Meyering  <jim@meyering.net>
54823
54824         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
54825
54826 2007-09-27  Jim Meyering  <jim@meyering.net>
54827
54828         canonicalize: Avoid a false-positive cycle failure.
54829         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
54830         Sort.  Remove cycle-check.
54831         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
54832         not cycle-check.h.
54833         (seen_triple): New function.
54834         (canonicalize_filename_mode): Use it instead of cycle-check.
54835         * tests/test-canonicalize.c: Add a test for this bug.
54836         * tests/test-canonicalize.sh: Set up and run the test.
54837
54838         New module, file-set, from coreutils.
54839         * modules/file-set: Define it.
54840         * lib/file-set.c, lib/file-set.h: Implement.
54841
54842         New module, hash-triple, from coreutils.
54843         * modules/hash-triple: Define it.
54844         * lib/hash-triple.c, lib/hash-triple.h: Implement.
54845
54846 2007-09-25  Eric Blake  <ebb9@byu.net>
54847
54848         Fix strerror on Interix.
54849         * lib/string_.h (strerror): Declare replacement.
54850         * doc/functions/strerror.texi (strerror): Document the Interix
54851         shortcoming.
54852         * modules/string (Makefile.am): Support new hooks.
54853         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
54854         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
54855         gl_FUNC_STRERROR_SEPARATE.
54856         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
54857         * lib/strerror.c (rpl_strerror): Provide replacement.
54858         * modules/strerror (Depends-on): Add string.
54859         (configure.ac): Detect use of module.
54860         * tests/test-strerror.c: New file.
54861         * modules/strerror-tests: New test module.
54862         * modules/argp (Depends-on): Add strerror.
54863         * modules/error (Depends-on): Likewise.
54864         Reported by Martin Koeppe.
54865
54866 2007-09-24  Bruno Haible  <bruno@clisp.org>
54867
54868         * README: Update git instructions.
54869
54870 2007-09-24  Eric Blake  <ebb9@byu.net>
54871
54872         Revert fpending breakage from 2007-09-08.
54873         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
54874         __fpending.c.
54875
54876 2007-09-24  Jim Meyering  <jim@meyering.net>
54877
54878         filenamecat.c: Add a test.
54879         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
54880         showing how the function works when DIR is the empty string.
54881
54882 2007-09-21  Simon Josefsson  <simon@josefsson.org>
54883
54884         * tests/test-canonicalize.sh: Turn on executable bit.
54885
54886 2007-09-19  Eric Blake  <ebb9@byu.net>
54887
54888         * README: Update CVS instructions.
54889
54890 2007-09-18  Bruno Haible  <bruno@clisp.org>
54891
54892         * modules/areadlink: New file.
54893         * lib/areadlink.h (areadlink): New declaration.
54894         * lib/areadlink.c: New file, based on lib/xreadlink.c.
54895
54896 2007-09-17  Jim Meyering  <jim@meyering.net>
54897
54898         * lib/savewd.c (ESTALE) [!defined]: Define.
54899         Reported to be required on Interix by Martin Koeppe.
54900
54901 2007-09-17  Bruno Haible  <bruno@clisp.org>
54902
54903         * gnulib-tool (func_version): Use $version.
54904
54905 2007-09-16  Bruno Haible  <bruno@clisp.org>
54906
54907         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
54908         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
54909         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
54910         Reported by Greg Schafer <gschafer@zip.com.au>.
54911
54912 2007-09-15  Bruno Haible  <bruno@clisp.org>
54913
54914         * gnulib-tool (sed): Try a little harder to make bash understand the
54915         alias.
54916         Reported by Bruce Korb <bruce.korb@gmail.com>.
54917
54918 2007-09-13  Eric Blake  <ebb9@byu.net>
54919
54920         * ChangeLog: Remove conflict markers.
54921
54922 2007-09-13  Simon Josefsson  <simon@josefsson.org>
54923
54924         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
54925         Reported by Bruno Haible <bruno@clisp.org>.
54926
54927 2007-09-12  Bruno Haible  <bruno@clisp.org>
54928
54929         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
54930         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
54931         is not defined.
54932
54933 2007-09-12  Eric Blake  <ebb9@byu.net>
54934
54935         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
54936         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
54937         Autoconf definition.
54938         * modules/euidaccess (Depends-on): Add extensions, for
54939         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
54940         * modules/fnmatch (Depends-on): Likewise.
54941         * modules/getaddrinfo (Depends-on): Likewise.
54942         * modules/getdelim (Depends-on): Likewise.
54943         * modules/getline (Depends-on): Likewise.
54944         * modules/getsubopt (Depends-on): Likewise.
54945         * modules/gettext (Depends-on): Likewise.
54946         * modules/group-member (Depends-on): Likewise.
54947         * modules/mbchar (Depends-on): Likewise.
54948         * modules/memmem (Depends-on): Likewise.
54949         * modules/mempcpy (Depends-on): Likewise.
54950         * modules/memrchr (Depends-on): Likewise.
54951         * modules/pagealign_alloc (Depends-on): Likewise.
54952         * modules/readutmp (Depends-on): Likewise.
54953         * modules/stpcpy (Depends-on): Likewise.
54954         * modules/stpncpy (Depends-on): Likewise.
54955         * modules/strchrnul (Depends-on): Likewise.
54956         * modules/strndup (Depends-on): Likewise.
54957         * modules/strsep (Depends-on): Likewise.
54958         * modules/strverscmp (Depends-on): Likewise.
54959         * modules/vasprintf (Depends-on): Likewise.
54960         * modules/wcwidth (Depends-on): Likewise.
54961         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
54962         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
54963         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
54964         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
54965         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54966         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54967         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
54968         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
54969         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
54970         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
54971         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54972         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
54973         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
54974         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
54975         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
54976         * m4/readutmp.m4 (gl_READUTMP): Likewise.
54977         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54978         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
54979         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54980         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
54981         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54982         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
54983         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
54984         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
54985         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
54986         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54987         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
54988         so that lock.m4 can be used in gettext without extensions module.
54989
54990 2007-09-11  Bruno Haible  <bruno@clisp.org>
54991
54992         * m4/isc-posix.m4: Remove file.
54993         Suggested by Eric Blake.
54994
54995 2007-09-11  Eric Blake  <ebb9@byu.net>
54996
54997         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
54998
54999 2007-09-10  Bruno Haible  <bruno@clisp.org>
55000
55001         * posix-modules: Fix typo in error message.
55002         Reported by Matt <mkraai@beckman.com>.
55003
55004 2007-09-09  Bruno Haible  <bruno@clisp.org>
55005
55006         * doc/functions/getdelim.texi: Update list of platforms lacking the
55007         function.
55008         * doc/functions/getline.texi: Likewise.
55009
55010 2007-09-09  Jim Meyering  <jim@meyering.net>
55011
55012         * lib/hash.c (hash_initialize): Detect calloc failure.
55013         Reported by Bruno Haible.
55014
55015 2007-09-09  Bruno Haible  <bruno@clisp.org>
55016
55017         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
55018         malloc or realloc fails.
55019
55020 2007-09-09  Bruno Haible  <bruno@clisp.org>
55021
55022         * modules/getcwd (Depends-on): Add malloc-posix.
55023         * modules/glob (Depends-on): Likewise.
55024         * modules/putenv (Depends-on): Likewise.
55025         * modules/strdup (Depends-on): Likewise.
55026         * modules/getdelim (Depends-on): Add realloc-posix.
55027         * modules/read-file (Depends-on): Likewise.
55028
55029 2007-09-09  Bruno Haible  <bruno@clisp.org>
55030
55031         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
55032         (gl_FUNC_MALLOC_POSIX): Require it.
55033         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
55034         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
55035         * modules/realloc (Files): Add m4/malloc.m4.
55036         * modules/calloc (Files): Likewise.
55037
55038 2007-09-09  Bruno Haible  <bruno@clisp.org>
55039
55040         * modules/malloc-posix: New file.
55041         * modules/malloc (Depends-on): Add malloc-posix.
55042         * lib/malloc.c: Include errno.h.
55043         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
55044         and a POSIX-compatible malloc into a single function. Set ENOMEM
55045         when returning NULL.
55046         * m4/malloc.m4: New file.
55047         * doc/functions/malloc.texi: Mention the malloc-posix module.
55048         * lib/stdlib_.h (malloc): New declaration.
55049         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55050         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
55051         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
55052         and HAVE_MALLOC_POSIX.
55053
55054 2007-09-09  Bruno Haible  <bruno@clisp.org>
55055
55056         * modules/realloc-posix: New file.
55057         * modules/realloc (Depends-on): Add realloc-posix.
55058         * lib/realloc.c: Include errno.h.
55059         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
55060         and a POSIX-compatible realloc into a single function. Set ENOMEM
55061         when returning NULL.
55062         * m4/realloc.m4: New file.
55063         * doc/functions/realloc.texi: Mention the realloc-posix module.
55064         * lib/stdlib_.h (realloc): New declaration.
55065         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55066         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
55067         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
55068         and HAVE_REALLOC_POSIX.
55069
55070 2007-09-09  Bruno Haible  <bruno@clisp.org>
55071
55072         * modules/calloc-posix: New file.
55073         * modules/calloc (Depends-on): Add calloc-posix.
55074         * lib/calloc.c: Include errno.h.
55075         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
55076         and a POSIX-compatible calloc into a single function. Set ENOMEM
55077         when returning NULL.
55078         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
55079         * doc/functions/calloc.texi: Mention the calloc-posix module.
55080         * lib/stdlib_.h (calloc): New declaration.
55081         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55082         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
55083         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
55084         and HAVE_CALLOC_POSIX.
55085
55086 2007-09-09  Bruno Haible  <bruno@clisp.org>
55087
55088         Allow for modules to show an arbitrary notice.
55089         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
55090         * gnulib-tool: New option --extract-notice.
55091         (func_usage): Document it.
55092         (sed_extract_prog): Update.
55093         (func_get_notice): New function.
55094         (func_modules_notice): New function.
55095         (func_import, func_create_testdir): Invoke it.
55096         Suggested by Jim Meyering.
55097
55098 2007-09-09  Bruno Haible  <bruno@clisp.org>
55099
55100         * gnulib-tool: New options --verbose, --quiet.
55101         (func_usage): Document them.
55102         (verbose): New variable.
55103         (func_execute_command): New function.
55104         (func_import): Don't show the module list and the file list if
55105         $verbose < 0.
55106         (func_create_testdir): Likewise. Use func_execute_command.
55107         (func_create_megatestdir): Use func_execute_command.
55108
55109 2007-09-08  Bruno Haible  <bruno@clisp.org>
55110
55111         * gnulib-tool (func_import): Prefer rsync over wget when available,
55112         for fetching the PO files.
55113
55114 2007-09-08  Bruno Haible  <bruno@clisp.org>
55115
55116         * posix-modules: New file. Portions copied from gnulib-tool.
55117         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
55118
55119 2007-09-08  Jim Meyering  <jim@meyering.net>
55120
55121         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
55122         * lib/fpending.h: Rename from __fpending.h.
55123         * lib/fpending.c: Rename from __fpending.c.
55124         Include "fpending.h", not "__fpending.h".
55125         * lib/__fpending.h, lib/__fpending.c: Remove files.
55126         * modules/fpending (Files): Reflect new file names.
55127         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
55128
55129 2007-09-08  Bruno Haible  <bruno@clisp.org>
55130
55131         * m4/inttypes-h.m4: Remove stub file.
55132
55133 2007-09-07  Simon Josefsson  <simon@josefsson.org>
55134
55135         * doc/headers/stdint.texi: Discuss #include_next issue.
55136
55137 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55138
55139         * build-aux/bootstrap: Remove obsolete comment about wget --help.
55140
55141 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55142
55143         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
55144         in variable name.
55145
55146 2007-09-03  Jim Meyering  <jim@meyering.net>
55147
55148         New module: git-version-gen.
55149         * modules/git-version-gen: New file.
55150
55151         Import changes from coreutils for bootstrap script.
55152
55153         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
55154
55155         bootstrap: uses rsync to download the .po files
55156         * build-aux/bootstrap (po_download_command_format): New global.
55157         (download_po_files): Use rsync.
55158         (update_po_files): Don't remove .po files after download,
55159         so future rsync runs can take advantage of the copies.
55160
55161         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
55162
55163         Solve the unnecessary-.po-file-regeneration problem once and for all.
55164         * build-aux/bootstrap (download_po_files): New function, renamed from
55165         get_translations.  Now, downloads, but doesn't update LINGUAS.
55166         (update_po_files): New function.
55167
55168         bootstrap: Ignore more.
55169         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
55170         uniwidth to e.g., lib/.gitignore.
55171         (slurp): Handle the sys_stat_.h -> sys mapping, too.
55172
55173         * build-aux/bootstrap: New setting: vc_ignore.
55174         (insert_sorted_if_absent): Create $file if absent.
55175         Adapt to new, possibly empty, list: $vc_ignore.
55176
55177         bootstrap: generate more ignorable names
55178         * build-aux/bootstrap (slurp): When generating ignorable names,
55179         also map .sin to .sed, .gperf to .c, and .y to .c.
55180
55181 2007-09-03  Jim Meyering  <jim@meyering.net>
55182
55183         * build-aux/git-version-gen: New file, from coreutils.  For details, see
55184         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
55185
55186 2007-09-02  Bruno Haible  <bruno@clisp.org>
55187
55188         Fix mis-recognition of 'mcs' on QNX 6.
55189         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
55190         output contains the string "Mono".
55191         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
55192         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
55193
55194 2007-09-01  Bruno Haible  <bruno@clisp.org>
55195
55196         Fix collision between uniwidth/* and linebreak modules.
55197         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
55198         u32_width): Remove declarations.
55199         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
55200         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
55201         streq3, streq2, streq1, streq0): Remove functions.
55202         (STREQ): Remove macro.
55203         (is_cjk_encoding): Remove function.
55204         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
55205         (uc_width, u8_width, u16_width, u32_width): Remove functions.
55206         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
55207         * NEWS: Document the change.
55208
55209 2007-09-01  Bruno Haible  <bruno@clisp.org>
55210
55211         * lib/streq.h: Add double-inclusion guard.
55212
55213 2007-09-01  Karl Berry  <karl@gnu.org>
55214
55215         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
55216
55217 2007-08-28  Jim Meyering  <jim@meyering.net>
55218
55219         Rename mreadlink_with_size to areadlink_with_size.
55220         * NEWS: Document the change.
55221         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
55222         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
55223         * lib/mreadlink.h: Rename this to...
55224         * lib/areadlink.h: ...this.
55225         * modules/mreadlink-with-size: Rename this to...
55226         * modules/areadlink-with-size: ...this.
55227         * lib/canonicalize.c: Reflect the renaming.
55228         * modules/canonicalize: Likewise.
55229
55230 2007-08-26  Bruno Haible  <bruno@clisp.org>
55231
55232         * gnulib-tool (func_import): When deciding which files to remove,
55233         consider also dangling symbolic links.
55234         Reported by Eric Blake.
55235
55236 2007-08-26  Bruno Haible  <bruno@clisp.org>
55237
55238         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
55239
55240 2007-08-23  Simon Josefsson  <simon@josefsson.org>
55241
55242         * lib/readline.c: Don't include getline.h, the prototype is now
55243         found in stdio.h.
55244
55245 2007-08-23  Jim Meyering  <jim@meyering.net>
55246
55247         Getdelim touchup.
55248         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
55249         around the funlockfile call, since funlockfile never sets errno.
55250         Don't set errno upon failed realloc.
55251
55252 2007-08-22  Eric Blake  <ebb9@byu.net>
55253
55254         Getline touchups.
55255         * lib/getdelim.c (getdelim): Revert regression that required *n to
55256         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
55257         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
55258         getdelim, rather than whether implementation is missing.
55259         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
55260         * lib/stdio_.h (getline): Also declare if replacement is
55261         required.
55262         * doc/functions/getdelim.texi: New file.
55263         * doc/functions/getline.texi: Likewise.
55264         * doc/gnulib.texi (Function Substitutes): Add new files.
55265         Reported by Bruno Haible.
55266
55267 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
55268
55269         * users.txt: Add Guile.
55270
55271 2007-08-22  Eric Blake  <ebb9@byu.net>
55272
55273         * tests/test-getdelim.c (main): Use remove, not unlink.
55274         * tests/test-getline.c (main): Likewise.
55275
55276         Move getline and getdelim into stdio.h, per POSIX 200x.
55277         * modules/getline (Files): Remove getline.h.
55278         (Depends-on): Add stdio.
55279         (configure.ac): Add module indicator.
55280         * modules/getdelim (Files): Remove getdelim.h.
55281         (Depends-on): Add stdio.
55282         (configure.ac): Add module indicator.
55283         * modules/stdio (Makefile.am): Work with new indicators.
55284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
55285         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
55286         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55287         * lib/getdelim.h: Delete.
55288         * lib/getline.h: Delete.
55289         * lib/stdio_.h (getdelim, getline): Declare.
55290         * modules/getdelim-tests: New module.
55291         * modules/getline-tests: Likewise.
55292         * tests/test-getdelim.c: New file.
55293         * tests/test-getline.c: Likewise.
55294         * NEWS: Document the change.
55295         * lib/getline.c: Update choice of header.
55296         * lib/csharpcomp.c: Likewise.
55297         * lib/getpass.c: Likewise.
55298         * lib/javacomp.c: Likewise.
55299         * lib/javaversion.c: Likewise.
55300         * lib/yesno.c: Likewise.
55301         * lib/getdelim.c: Likewise.
55302         (getdelim): Set errno on failure, and avoid memory leak.
55303
55304 2007-08-19  Bruno Haible  <bruno@clisp.org>
55305
55306         * modules/closein (Depends-on): Add freadahead.
55307         * lib/closein.c: Include freadahead.h.
55308         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
55309         is zero.
55310
55311 2007-08-19  Bruno Haible  <bruno@clisp.org>
55312
55313         * modules/freadahead-tests: New file.
55314         * tests/test-freadahead.sh: New file.
55315         * tests/test-freadahead.c: New file.
55316
55317         * modules/freadahead: New file.
55318         * lib/freadahead.h: New file.
55319         * lib/freadahead.c: New file.
55320         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
55321         fbufmode, fpurge, freadable, fwritable.
55322
55323 2007-08-19  Eric Blake  <ebb9@byu.net>
55324
55325         Test yesno in combination with closein.
55326         * lib/yesno.c (yesno): Document use of stdin.
55327         * modules/yesno-tests (Files): New module.
55328         * tests/test-yesno.c (main): New file.
55329         * tests/test-yesno.sh: Likewise.
55330
55331 2007-08-19  Bruno Haible  <bruno@clisp.org>
55332
55333         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
55334         * lib/fseeko.c (rpl_fseeko): Likewise.
55335         * lib/fseterr.c (fseterr): Likewise.
55336
55337 2007-08-19  Bruno Haible  <bruno@clisp.org>
55338
55339         * tests/test-lseek.c (main): Disable a test for BeOS.
55340         * doc/functions/lseek.texi: Document the BeOS bug.
55341
55342 2007-08-19  Bruno Haible  <bruno@clisp.org>
55343             Eric Blake  <ebb9@byu.net>
55344
55345         * lib/lseek.c: Include <sys/stat.h>.
55346         (rpl_lseek): Add workaround code also for Unix platforms.
55347         Needed for BeOS.
55348         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
55349         * doc/functions/lseek.texi: Document BeOS definiency.
55350
55351 2007-08-18  Bruno Haible  <bruno@clisp.org>
55352
55353         * modules/fstrcmp-tests: New file.
55354         * tests/test-fstrcmp.c: New file.
55355
55356 2007-08-18  Bruno Haible  <bruno@clisp.org>
55357
55358         * modules/fstrcmp: New file, from GNU gettext with modifications.
55359         * lib/fstrcmp.h: New file, from GNU gettext.
55360         * lib/fstrcmp.c: New file, from GNU gettext.
55361         * MODULES.html.sh (String handling): Add fstrcmp.
55362
55363 2007-08-18  Bruno Haible  <bruno@clisp.org>
55364
55365         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
55366         'bool'.
55367         (diag, compareseq): Remove const from the ctxt argument.
55368         (USE_HEURISTIC): Undefine at the end.
55369
55370 2007-08-18  Jim Meyering  <jim@meyering.net>
55371
55372         New file: lib/idcache.h
55373         * NEWS: Mention the addition.
55374         * modules/idcache (Files): Add lib/idcache.h
55375         * lib/idcache.c: Include "idcache.h".
55376         Don't include <sys/types.h>.
55377         Add a FIXME comment.
55378         Move file-scoped "static" declarations to the top.
55379         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
55380
55381 2007-08-17  Bruno Haible  <bruno@clisp.org>
55382         and Paul Eggert  <eggert@cs.ucla.edu>
55383
55384         * MODULES.html.sh: Add diffseq.
55385         * modules/diffseq: New file.
55386         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
55387         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
55388
55389 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55390
55391         Import changes from coreutils for bootstrap script.
55392
55393         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
55394
55395         * build-aux/bootstrap (slurp): Work even in environments where
55396         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
55397         current code does not slurp files whose names start with ".", and
55398         this looks like it might be a troublesome area.
55399
55400         2007-07-11  Jim Meyering  <jim@meyering.net>
55401
55402         If there's a GPL vN copyright comment, require that N == 3.
55403
55404         2007-07-08  Jim Meyering  <jim@meyering.net>
55405
55406         Run the coreutils-specific code only if tests/Makefile.am.in exists.
55407         * build-aux/bootstrap (mam_template): Move definition out of loop.
55408
55409         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
55410
55411         * build-aux/bootstrap (symlink_to_dir): Rename function from
55412         symlink_to_gnulib.  Add a directory parameter.  Update all
55413         callers.
55414         (cp_mark_as_generated): Also check for -- and link to -- files in
55415         gl/.
55416
55417         2007-07-08  Jim Meyering  <jim@meyering.net>
55418
55419         Adapt to deeper hierarchy in gnulib.
55420         * build-aux/bootstrap (symlink_to_dir): If the destination
55421         directory doesn't exist, create it. This is required at least for
55422         "lib/uniwidth/cjk.h".
55423
55424         2007-05-15  Jim Meyering  <jim@meyering.net>
55425
55426         * build-aux/bootstrap: Now that generated Makefile.am files
55427         are no longer under version control, they must be created at
55428         bootstrap time.
55429
55430 2007-08-14  Ben Pfaff  <blp@gnu.org>
55431
55432         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
55433
55434 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55435
55436         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
55437         given the changes below.
55438         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
55439         even on hosts that have padding bits beyond the supported 64.
55440
55441 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
55442
55443         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
55444         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
55445         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
55446         depends on it.
55447         (xstrtol_error): Remove.
55448         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
55449         but with a different signature.
55450         (ATTRIBUTE_NORETURN, __attribute__): New macros.
55451         * lib/xstrtol-error.c: Include exitfail.h.
55452         (xstrtol_fatal): New function, with a different signature from the
55453         old xstrtol_error, so that the caller need not worry about passing
55454         in an exit status, or about storage management of the option argument.
55455         (xstrtol_error): Now a static function.  Redo signature to
55456         implement xstrtol_fatal.  Output the correct number of hyphens in
55457         front of the option so that the caller need not worry about
55458         storage management.
55459         (N_): New macro.
55460         (_): Remove; not used now.
55461         * modules/xstrtol: Depend on getopt.
55462         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
55463         of old STRTOL_FATAL_ERROR macro.
55464         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
55465         of test program.
55466         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
55467         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
55468
55469 2007-08-08  Eric Blake  <ebb9@byu.net>
55470
55471         * lib/xstrtol-error.c: Add missing include.
55472
55473         Move xstrtol messages into gnulib domain, when --pobase is used.
55474         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
55475         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
55476         * modules/xstrtol (Files): Distribute new file.
55477         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
55478         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
55479         * tests/test-xstrtol.c: ...into new file.
55480         * tests/test-xstrtoul.c: Also test xstrtoul.
55481         * tests/test-xstrtoimax.c: Also test xstrtoimax.
55482         * tests/test-xstrtoumax.c: Also test xstrtoumax.
55483         * tests/test-xstrtol.sh: Drive the tests.
55484         * tests/test-xstrtoimax.sh: Likewise.
55485         * tests/test-xstrtoumax.sh: Likewise.
55486         * modules/xstrtol-tests: New module.
55487         * modules/xstrtoimax-tests: Likewise.
55488         * modules/xstrtoumax-tests: Likewise.
55489
55490 2007-08-08  Jim Meyering  <jim@meyering.net>
55491
55492         New function: mfile_name_concat.
55493         * lib/filenamecat.c (mfile_name_concat): New function, just like
55494         file_name_concat, but return NULL upon failure rather than exiting
55495         with a diagnostic.
55496         * lib/filenamecat.h: Declare it.
55497
55498 2007-08-07  Bruno Haible  <bruno@clisp.org>
55499
55500         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
55501         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
55502         warning from gcc.
55503         Reported by Eric Blake.
55504
55505 2007-08-07  Simon Josefsson  <simon@josefsson.org>
55506
55507         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
55508         * modules/crypto/arcfour (License): Likewise.
55509         * modules/crypto/des-tests (License): Likewise.
55510         * modules/crypto/gc-arctwo-tests (License): Likewise.
55511         * modules/crypto/gc-des-tests (License): Likewise.
55512         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
55513         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
55514         * modules/crypto/gc-md2-tests (License): Likewise.
55515         * modules/crypto/gc-md4-tests (License): Likewise.
55516         * modules/crypto/gc-md5-tests (License): Likewise.
55517         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
55518         * modules/crypto/gc-rijndael-tests (License): Likewise.
55519         * modules/crypto/gc-sha1-tests (License): Likewise.
55520         * modules/crypto/gc-tests (License): Likewise.
55521         * modules/crypto/hmac-md5 (License): Likewise.
55522         * modules/crypto/hmac-sha1 (License): Likewise.
55523         * modules/crypto/md2-tests (License): Likewise.
55524         * modules/crypto/md4-tests (License): Likewise.
55525         * modules/crypto/md5 (License): Likewise.
55526         * modules/crypto/rijndael (License): Likewise.
55527         * modules/crypto/sha1 (License): Likewise.
55528         * modules/memxor (License): Likewise.
55529
55530 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55531         and Bruno Haible  <bruno@clisp.org>
55532
55533         * NEWS: Describe interface changes to human, xstrtol.
55534         * lib/human.h: Include <xstrtol.h>.
55535         (human_options): Return enum strtol_error, not int.  Remove
55536         bool arg; take int * instead.
55537         * lib/human.c: Don't include "gettext.h".
55538         (_): Remove; no longer used.
55539         Don't include <xstrtol.h>, since human.h does it.
55540         (human_options): Adjust to abovementioned interface changes.
55541         Do not report error to stderr; that's now the caller's
55542         responsibility.
55543         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
55544         interface change.
55545         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
55546         Str, Argument_type_string.  All uses changed.  Put " argument"
55547         in diagnostics to make them clearer.  Change wording of suffix
55548         message for clarity.
55549         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
55550         Argument_type_string.
55551         (STRTOL_FATAL_WARN): Remove; no longer used.
55552         * modules/human (Depends-on): Remove gettext-h.
55553
55554 2007-08-06  Simon Josefsson  <simon@josefsson.org>
55555
55556         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
55557
55558 2007-07-31  Bruno Haible  <bruno@clisp.org>
55559
55560         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
55561         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
55562         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
55563
55564 2007-07-31  Bruno Haible  <bruno@clisp.org>
55565
55566         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
55567         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
55568
55569 2007-07-30  Bruno Haible  <bruno@clisp.org>
55570
55571         * modules/base64 (License): Use the synonymous term "LGPLv2+".
55572         * modules/c-ctype (License): Likewise.
55573         * modules/c-strcase (License): Likewise.
55574         * modules/check-version (License): Likewise.
55575         * modules/iconv (License): Likewise.
55576         * modules/iconv_open (License): Likewise.
55577         * modules/read-file (License): Likewise.
55578         * modules/striconv (License): Likewise.
55579         * modules/strverscmp (License): Likewise.
55580         * modules/vasprintf (License): Likewise.
55581         * modules/crypto/des (License): Likewise.
55582         * modules/crypto/gc (License): Likewise.
55583         * modules/crypto/gc-arcfour (License): Likewise.
55584         * modules/crypto/gc-arctwo (License): Likewise.
55585         * modules/crypto/gc-des (License): Likewise.
55586         * modules/crypto/gc-hmac-md5 (License): Likewise.
55587         * modules/crypto/gc-hmac-sha1 (License): Likewise.
55588         * modules/crypto/gc-md2 (License): Likewise.
55589         * modules/crypto/gc-md4 (License): Likewise.
55590         * modules/crypto/gc-md5 (License): Likewise.
55591         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
55592         * modules/crypto/gc-random (License): Likewise.
55593         * modules/crypto/gc-rijndael (License): Likewise.
55594         * modules/crypto/gc-sha1 (License): Likewise.
55595         * modules/crypto/md2 (License): Likewise.
55596         * modules/crypto/md4 (License): Likewise.
55597
55598 2007-07-30  Jim Meyering  <jim@meyering.net>
55599
55600         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
55601         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
55602         it has valid stat data.  This bug would cause du not to count the
55603         sizes of inaccessible directories.
55604         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
55605         in <http://bugzilla.redhat.com/250077>.
55606
55607 2007-07-25  Peter O'Gorman  <peter@pogma.com>
55608             Bruno Haible  <bruno@clisp.org>
55609
55610         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
55611         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
55612         #include_next, gives a diagnostic about it, but reports no error in
55613         the exit code.
55614         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
55615
55616 2007-07-24  Ben Pfaff  <blp@gnu.org>
55617
55618         Improve name: "count-one-bits" is better than "popcount".
55619         * MODULES.html.sh: Update name.
55620         * lib/popcount.h: Renamed lib/count-one-bits.h.
55621         (popcount): Renamed count_one_bits.
55622         (popcountl): Renamed count_one_bits_l.
55623         (popcountll): Renamed count_one_bits_ll.
55624         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
55625         * modules/popcount: Renamed module/count-one-bits.
55626         * modules/popcount-tests: Renamed module/count-one-bits-tests.
55627         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
55628
55629 2007-07-23  Ben Pfaff  <blp@gnu.org>
55630
55631         * lib/popcount.h (popcount32): Reduce size of constants, to allow
55632         better code generation, and add U to large constants to avoid
55633         warnings, in non-GCC case.
55634         Suggested by Bruno Haible.
55635
55636 2007-07-23  Ben Pfaff  <blp@gnu.org>
55637
55638         * lib/popcount.h: Use verify_true instead of if...abort.
55639         * modules/popcount: Depend on verify module.
55640         Suggested by Jim Meyering.
55641
55642 2007-07-23  Bruno Haible  <bruno@clisp.org>
55643
55644         * gnulib-tool (func_import): Create a .cvsignore file also when the
55645         directory is not yet in CVS but the toplevel directory is. When
55646         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
55647         Reported by Karl Berry.
55648
55649 2007-07-22  Ben Pfaff  <blp@gnu.org>
55650
55651         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
55652         case.
55653         Suggested by Eric Blake.
55654
55655 2007-07-22  Ben Pfaff  <blp@gnu.org>
55656
55657         New module: popcount.
55658         * MODULES.html.sh: Add popcount.
55659         * modules/popcount: New file.
55660         * modules/popcount-tests: New file.
55661         * tests/test-popcount.c: New file.
55662         * lib/popcount.h: New file.
55663         * m4/popcount.m4: New file.
55664
55665 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55666
55667         * build-aux/announce-gen: Update to GPLv3.
55668
55669         * build-aux/config.guess: Update from config.
55670
55671 2007-07-21  Bruno Haible  <bruno@clisp.org>
55672
55673         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
55674         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
55675
55676 2007-07-20  Jim Meyering  <jim@meyering.net>
55677
55678         * check-module: Diagnose a self-dependency.
55679
55680 2007-07-19  Bruno Haible  <bruno@clisp.org>
55681
55682         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
55683         empty.
55684         Reported by Eric Blake.
55685
55686 2007-07-18  Bruno Haible  <bruno@clisp.org>
55687
55688         * gnulib-tool: New options --po-base, --po-domain.
55689         (func_usage): Document them.
55690         (pobase, po_domain): New variables.
55691         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
55692         DEFAULT_TEXT_DOMAIN.
55693         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
55694         (func_import): Consider pobase and po_domain. Create a po/ directory.
55695         (func_create_testdir): Set pobase and po_domain to empty.
55696         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
55697         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
55698
55699 2007-07-18  Bruno Haible  <bruno@clisp.org>
55700
55701         * gnulib-tool (func_get_automake_snippet): Synthesize also an
55702         EXTRA_DIST augmentation for files in build-aux/.
55703
55704 2007-07-16  Bruno Haible  <bruno@clisp.org>
55705
55706         * modules/lseek (License): Use the synonymous term "LGPLv2+".
55707         * modules/getdelim (License): Likewise.
55708
55709 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55710
55711         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
55712         * modules/d-type (License): Likewise.
55713         * modules/extensions (License): Likewise.
55714         * modules/fnmatch (License): Likewise.
55715         * modules/fseeko (License): Likewise.
55716         * modules/getaddrinfo (License): Likewise.
55717         * modules/getline (License): Likewise.
55718         * modules/getlogin_r (License): Likewise.
55719         * modules/getpass (License): Likewise.
55720         * modules/gettimeofday (License): Likewise.
55721         * modules/glob (License): Likewise.
55722         * modules/inet_ntop (License): Likewise.
55723         * modules/malloc (License): Likewise.
55724         * modules/malloca (License): Likewise.
55725         * modules/memmem (License): Likewise.
55726         * modules/mempcpy (License): Likewise.
55727         * modules/memset (License): Likewise.
55728         * modules/minmax (License): Likewise.
55729         * modules/mktime (License): Likewise.
55730         * modules/netinet_in (License): Likewise.
55731         * modules/pathmax (License): Likewise.
55732         * modules/poll (License): Likewise.
55733         * modules/regex (License): Likewise.
55734         * modules/snprintf (License): Likewise.
55735         * modules/stdbool (License): Likewise.
55736         * modules/stdint (License): Likewise.
55737         * modules/stdio (License): Likewise.
55738         * modules/strcase (License): Likewise.
55739         * modules/strcasestr (License): Likewise.
55740         * modules/strdup (License): Likewise.
55741         * modules/string (License): Likewise.
55742         * modules/strndup (License): Likewise.
55743         * modules/strnlen (License): Likewise.
55744         * modules/strpbrk (License): Likewise.
55745         * modules/strptime (License): Likewise.
55746         * modules/strsep (License): Likewise.
55747         * modules/sys_select (License): Likewise.
55748         * modules/sys_socket (License): Likewise.
55749         * modules/sys_stat (License): Likewise.
55750         * modules/sys_time (License): Likewise.
55751         * modules/time (License): Likewise.
55752         * modules/time_r (License): Likewise.
55753         * modules/timegm (License): Likewise.
55754         * modules/unistd (License): Likewise.
55755         * modules/vsnprintf (License): Likewise.
55756         * modules/wctype (License): Likewise.
55757
55758 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55759
55760         * modules/argz (License): LGPLv2+.
55761
55762 2007-07-15  Karl Berry  <karl@gnu.org>
55763
55764         * doc/gnulib.texi: revise node structure per new fdl.texi.
55765
55766 2007-07-14  Bruno Haible  <bruno@clisp.org>
55767
55768         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
55769         the output file.
55770         * lib/uniname/uninames.h: Regenerated.
55771
55772 2007-07-14  Karl Berry  <karl@gnu.org>
55773
55774         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
55775         omitting sectioning and index commands.
55776
55777 2007-07-13  Bruno Haible  <bruno@clisp.org>
55778
55779         New gnulib-tool option --more-symlinks.
55780         * gnulib-tool (func_usage): Document --more-symlinks.
55781         (do_copyrights): New variable.
55782         Recognize option --more-symlinks.
55783         (func_import): Don't add a copyright notice transform to
55784         sed_transform_lib_file if do_copyrights is empty.
55785
55786 2007-07-13  Bruno Haible  <bruno@clisp.org>
55787
55788         * lib/vasnprintf.c (decimal_point_char): Define also if
55789         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
55790         && !NEED_PRINTF_DIRECTIVE_A.
55791         Reported by Clemens Koller <clemens.koller@anagramm.de> via
55792         Gary V. Vaughan <gary@gnu.org>.
55793
55794 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
55795
55796         * lib/inttypes_.h: Undo previous change, since it was fixed
55797         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
55798
55799 2007-07-13  Bruno Haible  <bruno@clisp.org>
55800
55801         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
55802         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
55803
55804 2007-07-13  Jim Meyering  <jim@meyering.net>
55805
55806         df: Don't fail for Tru64's "file-on-file mount".
55807         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
55808         so we fall through and use statfs instead.  Details here:
55809         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
55810         Reported by Albert Chin.
55811
55812 2007-07-13  Bruno Haible  <bruno@clisp.org>
55813
55814         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
55815         * modules/configmake (License): Likewise.
55816         * modules/gettext (License): Likewise.
55817         * modules/gettext-h (License): Likewise.
55818         * modules/include_next (License): Likewise.
55819         * modules/link-warning (License): Likewise.
55820         * modules/localcharset (License): Likewise.
55821         * modules/localename (License): Likewise.
55822         * modules/lock (License): Likewise.
55823         * modules/relocatable-lib-lgpl (License): Likewise.
55824         * modules/size_max (License): Likewise.
55825         * modules/vasnprintf (License): Likewise.
55826         * modules/wchar (License): Likewise.
55827         * modules/xsize (License): Likewise.
55828
55829 2007-07-13  Bruno Haible  <bruno@clisp.org>
55830
55831         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
55832         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
55833
55834 2007-07-12  Bruno Haible  <bruno@clisp.org>
55835
55836         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
55837         in the modules files.
55838
55839 2007-07-11  Karl Berry  <karl@gnu.org>
55840
55841         * MODULES.html.sh (func_module): use
55842          sed -e '\|^'"${includefile}"'$|d'
55843          instead of /.../d, to avoid errors on $includefile's containing /.
55844
55845 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55846
55847         * gnulib-tool (func_import): Avoid duplication of --avoid
55848         statements
55849         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
55850         names to `_' in variable names.
55851
55852 2007-07-10  Eric Blake  <ebb9@byu.net>
55853
55854         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
55855         * NEWS: Document this change.
55856
55857 2007-07-08  Bruno Haible  <bruno@clisp.org>
55858
55859         Update to Unicode 5.0.
55860         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
55861         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
55862         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
55863         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
55864         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
55865         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
55866         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
55867         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
55868         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
55869         U+10A3F, U+1D242..U+1D244.
55870         (nonspacing_table_ind): Update.
55871         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
55872         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
55873
55874 2007-07-08  Bruno Haible  <bruno@clisp.org>
55875
55876         Update to Unicode 5.0.
55877         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
55878         code transform. Extend the name index field of unicode_name_to_code and
55879         unicode_code_to_name from 16 to 24 bits.
55880         * lib/uniname/uniname.c (unicode_character_name,
55881         unicode_name_character): Add the range 0x12xxx to the code transform.
55882         * lib/uniname/uninames.h: Regenerated.
55883         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
55884
55885 2007-07-07  Bruno Haible  <bruno@clisp.org>
55886
55887         * modules/wcwidth-tests: New file.
55888         * tests/test-wcwidth.c: New file.
55889
55890         Work around MacOS X wcwidth() bug.
55891         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
55892         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
55893         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
55894         original wcwidth in non-UTF-8 locales.
55895         * modules/wcwidth (Depends-on): Add localcharset, streq,
55896         uniwidth/width.
55897         * doc/functions/wcwidth.texi: Update.
55898
55899 2007-07-07  Bruno Haible  <bruno@clisp.org>
55900
55901         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
55902         (wcwidth): New declaration.
55903         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
55904         macros.
55905         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
55906         here. Prepare for creating <wchar.h> unconditionally.
55907         * modules/wchar (Depends-on): Add link-warning.
55908         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
55909         REPLACE_WCWIDTH, and GL_LINK_WARNING.
55910         * lib/wcwidth.h: Remove file.
55911         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
55912         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
55913         * modules/wcwidth (Files): Remove lib/wcwidth.h.
55914         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
55915         (Include): Replace wcwidth.h with <wchar.h>.
55916         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
55917         * lib/mbchar.h: Don't include wcwidth.h.
55918         * lib/mbswidth.c: Likewise.
55919         * NEWS: Mention the change.
55920
55921 2007-07-07  Bruno Haible  <bruno@clisp.org>
55922
55923         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
55924         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
55925         definition with an external declaration.
55926         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
55927         defined as a function. Remove AC_C_INLINE requirement.
55928         * modules/wcwidth (Files): Add lib/wcwidth.c.
55929         (Makefile.am): Remove redundant statement.
55930
55931 2007-07-07  Bruno Haible  <bruno@clisp.org>
55932
55933         * MODULES.html.sh (Unicode string functions): Add the new modules.
55934
55935         * tests/uniwidth/test-u32-strwidth.c: New file.
55936         * modules/uniwidth/u32-strwidth-tests: New file.
55937
55938         * lib/uniwidth/u32-strwidth.c: New file.
55939         * modules/uniwidth/u32-strwidth: New file.
55940
55941         * tests/uniwidth/test-u16-strwidth.c: New file.
55942         * modules/uniwidth/u16-strwidth-tests: New file.
55943
55944         * lib/uniwidth/u16-strwidth.c: New file.
55945         * modules/uniwidth/u16-strwidth: New file.
55946
55947         * tests/uniwidth/test-u8-strwidth.c: New file.
55948         * modules/uniwidth/u8-strwidth-tests: New file.
55949
55950         * lib/uniwidth/u8-strwidth.c: New file.
55951         * modules/uniwidth/u8-strwidth: New file.
55952
55953         * tests/uniwidth/test-u32-width.c: New file.
55954         * modules/uniwidth/u32-width-tests: New file.
55955
55956         * lib/uniwidth/u32-width.c: New file.
55957         * modules/uniwidth/u32-width: New file.
55958
55959         * tests/uniwidth/test-u16-width.c: New file.
55960         * modules/uniwidth/u16-width-tests: New file.
55961
55962         * lib/uniwidth/u16-width.c: New file.
55963         * modules/uniwidth/u16-width: New file.
55964
55965         * tests/uniwidth/test-u8-width.c: New file.
55966         * modules/uniwidth/u8-width-tests: New file.
55967
55968         * lib/uniwidth/u8-width.c: New file.
55969         * modules/uniwidth/u8-width: New file.
55970
55971         * tests/uniwidth/test-uc_width.c: New file.
55972         * modules/uniwidth/width-tests: New file.
55973
55974         * lib/uniwidth/width.c: New file, from GNU libiconv.
55975         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
55976         * modules/uniwidth/width: New file.
55977
55978         * lib/uniwidth.h: New file, from GNU libiconv.
55979         * modules/uniwidth/base: New file.
55980
55981 2007-07-07  Bruno Haible  <bruno@clisp.org>
55982
55983         * lib/uniname.h: New file, from GNU gettext.
55984         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
55985         * lib/uniname/uninames.h: New file, from GNU gettext.
55986         * lib/uniname/uniname.c: New file, from GNU gettext.
55987         * tests/uniname/test-uninames.sh: New file.
55988         * tests/uniname/test-uninames.c: New file, from GNU gettext.
55989         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
55990         * modules/uniname/base: New file.
55991         * modules/uniname/uniname: New file.
55992         * modules/uniname/uniname-tests: New file.
55993         * MODULES.html.sh (Unicode string functions): Add the new modules.
55994
55995 2007-07-06  Bruno Haible  <bruno@clisp.org>
55996
55997         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
55998
55999 2007-07-06  Bruno Haible  <bruno@clisp.org>
56000
56001         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
56002         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
56003         includes <cygwin/sys_time.h> which includes <sys/select.h> which
56004         include <sys/time.h>.
56005         Reported by Eric Blake.
56006
56007 2007-07-06  Eric Blake  <ebb9@byu.net>
56008
56009         Fix testing canonicalize on cygwin.
56010         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
56011         Revert patch from 2007-06-19.
56012         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
56013         canonicalize module is also in use.
56014         * tests/test-canonicalize.c: New file.
56015         * tests/test-canonicalize.sh: Likewise.
56016         * modules/canonicalize-tests: Likewise.
56017
56018 2007-07-06  Jim Meyering  <jim@meyering.net>
56019
56020         * lib/getugroups.c (getugroups): Detect getgrent failure.
56021         Adjust comment to reflect reality: this function may return -1.
56022
56023 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56024
56025         * build-aux/bootstrap (TP_URL,get_translations): Update to use
56026         the new TP address.
56027         (usage): Fix typo
56028         (gnulib_mk): New variable.
56029
56030 2007-07-05  Jim Meyering  <jim@meyering.net>
56031
56032         Don't let endgrent clobber errno, no matter how improbable.
56033         * lib/getugroups.c (getugroups): Save and restore errno around
56034         endgrent call.
56035
56036         Close the group DB even when failing with 2^31 or more members.
56037         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
56038
56039 2007-07-04  Jim Meyering  <jim@meyering.net>
56040
56041         * lib/getugroups.h: New file.
56042         * lib/getugroups.c: Include "getugroups.h".
56043         Remove uses of "register" keyword.
56044         Move local variable, "cp", down into scope where used.
56045         Give "username" parameter the "const" attribute.
56046         * modules/getugroups (Files): Add lib/getugroups.h
56047
56048 2007-07-04  Karl Berry  <karl@gnu.org>
56049
56050         * MODULES.html.sh (func_all_modules): Complete rename of
56051         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
56052
56053 2007-07-02  Bruno Haible  <bruno@clisp.org>
56054
56055         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
56056         mode, when inttypes.h comes from gnulib.
56057         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56058
56059 2007-07-02  Simon Josefsson  <simon@josefsson.org>
56060
56061         * NEWS: Mention lgpl module name change.
56062
56063         * modules/lgpl-2.1: Renamed from lgpl.
56064
56065         * NEWS: Mention gpl module name change.
56066
56067         * modules/gpl-3.0: New file, based on gpl-2.0.
56068
56069         * modules/gpl-2.0: Renamed from gpl.
56070
56071         * modules/gpl: Fix filename, doc/gpl.texi is now found at
56072         doc/gpl-2.0.texi.
56073
56074 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56075
56076         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
56077         #define __STDC_LIMIT_MACROS temporarily while including
56078         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
56079         Problem reported by Joel E. Denny in
56080         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
56081
56082 2007-07-01  Bruno Haible  <bruno@clisp.org>
56083
56084         * lib/unistdio.h: New file.
56085         * lib/unistdio/u-asnprintf.h: New file.
56086         * lib/unistdio/u-asprintf.h: New file.
56087         * lib/unistdio/u-printf-args.c: New file.
56088         * lib/unistdio/u-printf-args.h: New file.
56089         * lib/unistdio/u-printf-parse.h: New file.
56090         * lib/unistdio/u-snprintf.h: New file.
56091         * lib/unistdio/u-sprintf.h: New file.
56092         * lib/unistdio/u-vasprintf.h: New file.
56093         * lib/unistdio/u-vsnprintf.h: New file.
56094         * lib/unistdio/u-vsprintf.h: New file.
56095         * lib/unistdio/ulc-asnprintf.c: New file.
56096         * lib/unistdio/ulc-asprintf.c: New file.
56097         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
56098         * lib/unistdio/ulc-printf-parse.c: New file.
56099         * lib/unistdio/ulc-snprintf.c: New file.
56100         * lib/unistdio/ulc-sprintf.c: New file.
56101         * lib/unistdio/ulc-vasnprintf.c: New file.
56102         * lib/unistdio/ulc-vasprintf.c: New file.
56103         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
56104         * lib/unistdio/ulc-vsnprintf.c: New file.
56105         * lib/unistdio/ulc-vsprintf.c: New file.
56106         * lib/unistdio/u8-asnprintf.c: New file.
56107         * lib/unistdio/u8-asprintf.c: New file.
56108         * lib/unistdio/u8-printf-parse.c: New file.
56109         * lib/unistdio/u8-snprintf.c: New file.
56110         * lib/unistdio/u8-sprintf.c: New file.
56111         * lib/unistdio/u8-vasnprintf.c: New file.
56112         * lib/unistdio/u8-vasprintf.c: New file.
56113         * lib/unistdio/u8-vsnprintf.c: New file.
56114         * lib/unistdio/u8-vsprintf.c: New file.
56115         * lib/unistdio/u8-u8-asnprintf.c: New file.
56116         * lib/unistdio/u8-u8-asprintf.c: New file.
56117         * lib/unistdio/u8-u8-snprintf.c: New file.
56118         * lib/unistdio/u8-u8-sprintf.c: New file.
56119         * lib/unistdio/u8-u8-vasnprintf.c: New file.
56120         * lib/unistdio/u8-u8-vasprintf.c: New file.
56121         * lib/unistdio/u8-u8-vsnprintf.c: New file.
56122         * lib/unistdio/u8-u8-vsprintf.c: New file.
56123         * lib/unistdio/u16-asnprintf.c: New file.
56124         * lib/unistdio/u16-asprintf.c: New file.
56125         * lib/unistdio/u16-printf-parse.c: New file.
56126         * lib/unistdio/u16-snprintf.c: New file.
56127         * lib/unistdio/u16-sprintf.c: New file.
56128         * lib/unistdio/u16-vasnprintf.c: New file.
56129         * lib/unistdio/u16-vasprintf.c: New file.
56130         * lib/unistdio/u16-vsnprintf.c: New file.
56131         * lib/unistdio/u16-vsprintf.c: New file.
56132         * lib/unistdio/u16-u16-asnprintf.c: New file.
56133         * lib/unistdio/u16-u16-asprintf.c: New file.
56134         * lib/unistdio/u16-u16-snprintf.c: New file.
56135         * lib/unistdio/u16-u16-sprintf.c: New file.
56136         * lib/unistdio/u16-u16-vasnprintf.c: New file.
56137         * lib/unistdio/u16-u16-vasprintf.c: New file.
56138         * lib/unistdio/u16-u16-vsnprintf.c: New file.
56139         * lib/unistdio/u16-u16-vsprintf.c: New file.
56140         * lib/unistdio/u32-asnprintf.c: New file.
56141         * lib/unistdio/u32-asprintf.c: New file.
56142         * lib/unistdio/u32-printf-parse.c: New file.
56143         * lib/unistdio/u32-snprintf.c: New file.
56144         * lib/unistdio/u32-sprintf.c: New file.
56145         * lib/unistdio/u32-vasnprintf.c: New file.
56146         * lib/unistdio/u32-vasprintf.c: New file.
56147         * lib/unistdio/u32-vsnprintf.c: New file.
56148         * lib/unistdio/u32-vsprintf.c: New file.
56149         * lib/unistdio/u32-u32-asnprintf.c: New file.
56150         * lib/unistdio/u32-u32-asprintf.c: New file.
56151         * lib/unistdio/u32-u32-snprintf.c: New file.
56152         * lib/unistdio/u32-u32-sprintf.c: New file.
56153         * lib/unistdio/u32-u32-vasnprintf.c: New file.
56154         * lib/unistdio/u32-u32-vasprintf.c: New file.
56155         * lib/unistdio/u32-u32-vsnprintf.c: New file.
56156         * lib/unistdio/u32-u32-vsprintf.c: New file.
56157         * tests/unistdio/test-ulc-asnprintf1.c: New file.
56158         * tests/unistdio/test-ulc-asnprintf1.h: New file.
56159         * tests/unistdio/test-ulc-printf1.h: New file.
56160         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
56161         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
56162         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
56163         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
56164         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
56165         * tests/unistdio/test-ulc-vasprintf1.c: New file.
56166         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
56167         * tests/unistdio/test-ulc-vsprintf1.c: New file.
56168         * tests/unistdio/test-u8-asnprintf1.c: New file.
56169         * tests/unistdio/test-u8-asnprintf1.h: New file.
56170         * tests/unistdio/test-u8-printf1.h: New file.
56171         * tests/unistdio/test-u8-vasnprintf1.c: New file.
56172         * tests/unistdio/test-u8-vasnprintf2.c: New file.
56173         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
56174         * tests/unistdio/test-u8-vasnprintf3.c: New file.
56175         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
56176         * tests/unistdio/test-u8-vasprintf1.c: New file.
56177         * tests/unistdio/test-u8-vsnprintf1.c: New file.
56178         * tests/unistdio/test-u8-vsprintf1.c: New file.
56179         * tests/unistdio/test-u16-asnprintf1.c: New file.
56180         * tests/unistdio/test-u16-asnprintf1.h: New file.
56181         * tests/unistdio/test-u16-printf1.h: New file.
56182         * tests/unistdio/test-u16-vasnprintf1.c: New file.
56183         * tests/unistdio/test-u16-vasnprintf2.c: New file.
56184         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
56185         * tests/unistdio/test-u16-vasnprintf3.c: New file.
56186         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
56187         * tests/unistdio/test-u16-vasprintf1.c: New file.
56188         * tests/unistdio/test-u16-vsnprintf1.c: New file.
56189         * tests/unistdio/test-u16-vsprintf1.c: New file.
56190         * tests/unistdio/test-u32-asnprintf1.c: New file.
56191         * tests/unistdio/test-u32-asnprintf1.h: New file.
56192         * tests/unistdio/test-u32-printf1.h: New file.
56193         * tests/unistdio/test-u32-vasnprintf1.c: New file.
56194         * tests/unistdio/test-u32-vasnprintf2.c: New file.
56195         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
56196         * tests/unistdio/test-u32-vasnprintf3.c: New file.
56197         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
56198         * tests/unistdio/test-u32-vasprintf1.c: New file.
56199         * tests/unistdio/test-u32-vsnprintf1.c: New file.
56200         * tests/unistdio/test-u32-vsprintf1.c: New file.
56201         * modules/unistdio/base: New file.
56202         * modules/unistdio/u-printf-args: New file.
56203         * modules/unistdio/ulc-asnprintf: New file.
56204         * modules/unistdio/ulc-asprintf: New file.
56205         * modules/unistdio/ulc-fprintf: New file.
56206         * modules/unistdio/ulc-printf-parse: New file.
56207         * modules/unistdio/ulc-snprintf: New file.
56208         * modules/unistdio/ulc-sprintf: New file.
56209         * modules/unistdio/ulc-vasnprintf: New file.
56210         * modules/unistdio/ulc-vasprintf: New file.
56211         * modules/unistdio/ulc-vfprintf: New file.
56212         * modules/unistdio/ulc-vsnprintf: New file.
56213         * modules/unistdio/ulc-vsprintf: New file.
56214         * modules/unistdio/u8-asnprintf: New file.
56215         * modules/unistdio/u8-asprintf: New file.
56216         * modules/unistdio/u8-printf-parse: New file.
56217         * modules/unistdio/u8-snprintf: New file.
56218         * modules/unistdio/u8-sprintf: New file.
56219         * modules/unistdio/u8-vasnprintf: New file.
56220         * modules/unistdio/u8-vasprintf: New file.
56221         * modules/unistdio/u8-vsnprintf: New file.
56222         * modules/unistdio/u8-vsprintf: New file.
56223         * modules/unistdio/u8-u8-asnprintf: New file.
56224         * modules/unistdio/u8-u8-asprintf: New file.
56225         * modules/unistdio/u8-u8-snprintf: New file.
56226         * modules/unistdio/u8-u8-sprintf: New file.
56227         * modules/unistdio/u8-u8-vasnprintf: New file.
56228         * modules/unistdio/u8-u8-vasprintf: New file.
56229         * modules/unistdio/u8-u8-vsnprintf: New file.
56230         * modules/unistdio/u8-u8-vsprintf: New file.
56231         * modules/unistdio/u16-asnprintf: New file.
56232         * modules/unistdio/u16-asprintf: New file.
56233         * modules/unistdio/u16-printf-parse: New file.
56234         * modules/unistdio/u16-snprintf: New file.
56235         * modules/unistdio/u16-sprintf: New file.
56236         * modules/unistdio/u16-vasnprintf: New file.
56237         * modules/unistdio/u16-vasprintf: New file.
56238         * modules/unistdio/u16-vsnprintf: New file.
56239         * modules/unistdio/u16-vsprintf: New file.
56240         * modules/unistdio/u16-u16-asnprintf: New file.
56241         * modules/unistdio/u16-u16-asprintf: New file.
56242         * modules/unistdio/u16-u16-snprintf: New file.
56243         * modules/unistdio/u16-u16-sprintf: New file.
56244         * modules/unistdio/u16-u16-vasnprintf: New file.
56245         * modules/unistdio/u16-u16-vasprintf: New file.
56246         * modules/unistdio/u16-u16-vsnprintf: New file.
56247         * modules/unistdio/u16-u16-vsprintf: New file.
56248         * modules/unistdio/u32-asnprintf: New file.
56249         * modules/unistdio/u32-asprintf: New file.
56250         * modules/unistdio/u32-printf-parse: New file.
56251         * modules/unistdio/u32-snprintf: New file.
56252         * modules/unistdio/u32-sprintf: New file.
56253         * modules/unistdio/u32-vasnprintf: New file.
56254         * modules/unistdio/u32-vasprintf: New file.
56255         * modules/unistdio/u32-vsnprintf: New file.
56256         * modules/unistdio/u32-vsprintf: New file.
56257         * modules/unistdio/u32-u32-asnprintf: New file.
56258         * modules/unistdio/u32-u32-asprintf: New file.
56259         * modules/unistdio/u32-u32-snprintf: New file.
56260         * modules/unistdio/u32-u32-sprintf: New file.
56261         * modules/unistdio/u32-u32-vasnprintf: New file.
56262         * modules/unistdio/u32-u32-vasprintf: New file.
56263         * modules/unistdio/u32-u32-vsnprintf: New file.
56264         * modules/unistdio/u32-u32-vsprintf: New file.
56265         * modules/unistdio/ulc-asnprintf-tests: New file.
56266         * modules/unistdio/ulc-vasnprintf-tests: New file.
56267         * modules/unistdio/ulc-vasprintf-tests: New file.
56268         * modules/unistdio/ulc-vsnprintf-tests: New file.
56269         * modules/unistdio/ulc-vsprintf-tests: New file.
56270         * modules/unistdio/u8-asnprintf-tests: New file.
56271         * modules/unistdio/u8-vasnprintf-tests: New file.
56272         * modules/unistdio/u8-vasprintf-tests: New file.
56273         * modules/unistdio/u8-vsnprintf-tests: New file.
56274         * modules/unistdio/u8-vsprintf-tests: New file.
56275         * modules/unistdio/u16-asnprintf-tests: New file.
56276         * modules/unistdio/u16-vasnprintf-tests: New file.
56277         * modules/unistdio/u16-vasprintf-tests: New file.
56278         * modules/unistdio/u16-vsnprintf-tests: New file.
56279         * modules/unistdio/u16-vsprintf-tests: New file.
56280         * modules/unistdio/u32-asnprintf-tests: New file.
56281         * modules/unistdio/u32-vasnprintf-tests: New file.
56282         * modules/unistdio/u32-vasprintf-tests: New file.
56283         * modules/unistdio/u32-vsnprintf-tests: New file.
56284         * modules/unistdio/u32-vsprintf-tests: New file.
56285         * MODULES.html.sh (Unicode string functions): Add the new modules.
56286
56287 2007-07-01  Bruno Haible  <bruno@clisp.org>
56288
56289         * lib/sprintf.c (sprintf): Limit the available length estimation,
56290         to avoid address wraparound.
56291         * lib/vsprintf.c (vsprintf): Likewise.
56292         * modules/sprintf-posix (Dependencies): Add stdint.
56293         * modules/vsprintf-posix (Dependencies): Likewise.
56294
56295 2007-07-01  Bruno Haible  <bruno@clisp.org>
56296
56297         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
56298         Windows PATH as well. Conservative double-quoting. Comments.
56299
56300 2007-07-01  Bruno Haible  <bruno@clisp.org>
56301             Eric Blake  <ebb9@byu.net>
56302             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56303
56304         * gnulib-tool (self_abspathname): Fix algorithm to cope with
56305         empty components in $PATH, denoting '.'.
56306
56307 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56308
56309         * gnulib-tool: Fix indentation.
56310         (func_create_megatestdir): Likewise.
56311         Report by Bruno Haible.
56312
56313 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56314
56315         Sync from Automake.
56316         * build-aux/gnupload: Fix shell portability issues with for loops.
56317         Report by Karl Berry.
56318
56319 2007-06-29  Simon Josefsson  <simon@josefsson.org>
56320
56321         * build-aux/maint.mk (POURL): Use translationproject.org.
56322
56323 2007-06-27  Simon Josefsson  <simon@josefsson.org>
56324             Bruno Haible  <bruno@clisp.org>
56325
56326         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
56327         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
56328         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
56329         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
56330         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
56331
56332 2007-06-27  Bruno Haible  <bruno@clisp.org>
56333
56334         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
56335         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
56336
56337 2007-06-26  Karl Berry  <karl@gnu.org>
56338
56339         * MODULES.html.sh: remove xreadlink-with-size.
56340
56341 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56342
56343         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
56344         method that I hope also handles the double-include problem noted
56345         by Bruno Haible in
56346         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
56347
56348 2007-06-23  Bruno Haible  <bruno@clisp.org>
56349
56350         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56351         Don't let the 'mostlyclean' target fail if the last subdirectory could
56352         not be removed.
56353         Reported by Karl Berry.
56354
56355 2007-06-23  Bruno Haible  <bruno@clisp.org>
56356
56357         * gnulib-tool (echo): Add a speedier workaround for ksh.
56358         * tests/test-echo.sh: Likewise.
56359
56360 2007-06-23  Bruno Haible  <bruno@clisp.org>
56361
56362         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
56363         * tests/test-echo.sh: Likewise.
56364
56365 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56366
56367         * gnulib-tool (IFS): Initialize early, so we don't set it to
56368         empty later.
56369         (self_abspathname): Rewrite algorithm to set it, reindent.
56370         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
56371         (func_create_megatestdir): Merge some sed scripts.
56372
56373 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56374
56375         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
56376         exposed by Sun Studio 11 cc on Solaris 8.
56377
56378 2007-06-22  Bruno Haible  <bruno@clisp.org>
56379
56380         * gnulib-tool (echo): Ensure the echo primitive does not interpret
56381         backslashes.
56382         * tests/test-echo.sh: New file.
56383
56384 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56385
56386         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
56387         simplify `sed_replace_build_aux' scripts, they are portable but
56388         echoing them with `echo' is not.
56389         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
56390
56391 2007-06-21  Karl Berry  <karl@gnu.org>
56392
56393         * config/srclist.txt: guess we can't handle the licenses via
56394         srclist at the moment.
56395
56396 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
56397
56398         * MODULES.html.sh: Add include_next.
56399         * modules/include_next: New file.
56400
56401 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
56402
56403         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
56404         INCLUDE_NEXT.
56405         (gl_CHECK_NEXT_HEADERS): New macro.
56406         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
56407         the obsolescent gl_ABSOLUTE_HEADER.
56408         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
56409         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
56410         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
56411         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56412         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
56413         * m4/math_h.m4 (gl_MATH_H): Likewise.
56414         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56415         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56416         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
56417         * m4/stdint.m4 (gl_STDINT_H): Likewise.
56418         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
56419         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
56420         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
56421         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56422         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56423         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
56424         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
56425         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
56426         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
56427         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
56428         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
56429         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56430         * m4/inttypes.m4 (gl_INTTYPES_H): Define
56431         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
56432         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
56433         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
56434         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
56435         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
56436         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
56437         * lib/float_.h: Likewise.
56438         * lib/inttypes_.h: Likewise.
56439         * lib/math_.h: Likewise.
56440         * lib/search_.h: Likewise.
56441         * lib/signal_.h: Likewise.
56442         * lib/stdint_.h: Likewise.
56443         * lib/stdio_.h: Likewise.
56444         * lib/stdlib_.h: Likewise.
56445         * lib/string_.h: Likewise.
56446         * lib/sys_stat_.h: Likewise.
56447         * lib/sys_time_.h: Likewise.
56448         * lib/time_.h: Likewise.
56449         * lib/unistd_.h: Likewise.
56450         * lib/wchar_.h: Likewise.
56451         * lib/wctype_.h: Likewise.
56452         * lib/dirent_.h: Likewise.
56453         * lib/iconv_.h: Likewise.
56454         * lib/locale_.h: Likewise.
56455         * lib/netinet_in_.h: Likewise.
56456         * lib/sys_select_.h: Likewise.
56457         * lib/sys_socket_.h: Likewise.
56458         * lib/sysexits_.h: Likewise.
56459         * modules/fcntl (Depends-on): Depend on include_next, not
56460         absolute_header.
56461         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
56462         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
56463         * modules/fchdir: Likewise.
56464         * modules/float: Likewise.
56465         * modules/iconv_open: Likewise.
56466         * modules/inttypes: Likewise.
56467         * modules/locale: Likewise.
56468         * modules/math: Likewise.
56469         * modules/netinet_in: Likewise.
56470         * modules/search: Likewise.
56471         * modules/signal: Likewise.
56472         * modules/stdint: Likewise.
56473         * modules/stdio: Likewise.
56474         * modules/stdlib: Likewise.
56475         * modules/string: Likewise.
56476         * modules/sys_select: Likewise.
56477         * modules/sys_socket: Likewise.
56478         * modules/sys_stat: Likewise.
56479         * modules/sys_time: Likewise.
56480         * modules/sysexits: Likewise.
56481         * modules/time: Likewise.
56482         * modules/unistd: Likewise.
56483         * modules/wchar: Likewise.
56484         * modules/wctype: Likewise.
56485         * modules/sys_stat: Change maintainer to "all".
56486         * modules/unistd: Likewise.
56487
56488 2007-06-20  Karl Berry  <karl@gnu.org>
56489
56490         * config/srclist.txt: track www changes in license files.
56491
56492 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
56493
56494         * build-aux/bootstrap: Remove stray dot.
56495         Make sure build_aux settings are honored when linking
56496         gnulib_extra_files.
56497
56498 2007-06-19  Eric Blake  <ebb9@byu.net>
56499
56500         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
56501         Allow compilation on cygwin.
56502
56503 2007-06-19  Jim Meyering  <jim@meyering.net>
56504
56505         xreadlink-with-size: Remove module.  No longer used.
56506         Ex-callers now use xreadlink or mreadlink-with-size.
56507         * modules/xreadlink-with-size: Remove module.
56508         * lib/xreadlink-with-size.c: Remove file.
56509         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
56510         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
56511         just before the function definition *is* accurate.
56512
56513         Eliminate one way canonicalize_filename_mode could exit.
56514         * lib/canonicalize.c (canonicalize_filename_mode):
56515         Use mreadlink_with_size, not xreadlink_with_size.
56516
56517 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
56518
56519         Detect porting problems to FreeBSD/arm, which has time_t wider than
56520         long int.  Original problem reported for GNU diff by Xin Li in
56521         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
56522         * modules/getdate (Depends-on): Add intprops, verify.
56523         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
56524         is an integer type no wider than long int.
56525
56526 2007-06-18  Jim Meyering  <jim@meyering.net>
56527
56528         New module: mreadlink-with-size.
56529         * MODULES.html.sh: Add mreadlink-with-size.
56530         * modules/mreadlink-with-size: New module
56531         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
56532         not xreadlink-with-size.
56533         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
56534
56535 2007-06-16  Bruno Haible  <bruno@clisp.org>
56536
56537         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
56538         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
56539         Reported by Gary V. Vaughan <gary@gnu.org>.
56540
56541 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
56542
56543         Revamp lchown so that it lives in unistd.h where it belongs.
56544         * lib/lchown.h: Remove.
56545         * lib/dirchownmod.c: Don't include lib/lchown.h.
56546         * lib/fchownat.c: Likewise.
56547         * lib/openat.c: Likewise.
56548         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
56549         does not follow symlinks.
56550         (EOPNOTSUPP): Define if not defined.
56551         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
56552         is defined to 0.
56553         (lchown): New decl.
56554         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
56555         Do not check for lchown decl.
56556         Set REPLACE_LCHOWN.
56557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
56558         REPLACE_LCHOWN.
56559         * modules/chown: Make it clear it follows symlinks.
56560         * modules/lchown: Make it clear it doesn't follow symlinks.
56561         (Files): Remove lib/lchown.h
56562         (Depends-on): Add unistd.
56563         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
56564         (Include): Include <unistd.h>, not "lchown.h".
56565         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
56566         REPLACE_LCHOWN.
56567
56568 2007-06-15  Jim Meyering  <jim@meyering.net>
56569
56570         Change license (GPL to LGPL) of fsusage and dependents.
56571         * modules/fsusage (License): Change to LGPL.
56572         * modules/full-read (License): Likewise.
56573         * modules/full-write (License): Likewise.
56574         * modules/safe-read (License): Likewise.
56575         * modules/safe-write (License): Likewise.
56576
56577 2007-06-14  Ben Pfaff  <blp@gnu.org>
56578
56579         Missing part of allocsa -> malloca transition.
56580         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
56581         gl_MALLOCA.
56582
56583 2007-06-12  Bruno Haible  <bruno@clisp.org>
56584
56585         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
56586         to ia64, x86_64, i386.
56587         Reported by Eric Blake.
56588
56589 2007-06-12  Bruno Haible  <bruno@clisp.org>
56590
56591         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
56592         cross-compiling to x86_64.
56593
56594 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
56595
56596         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
56597         glitch reported by Ralf Wildenhues in
56598         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
56599
56600         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
56601         Vin Shelton.
56602
56603 2007-06-11  Bruno Haible  <bruno@clisp.org>
56604
56605         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
56606         replacement string.
56607         Reported by Eric Blake.
56608
56609 2007-06-10  Bruno Haible  <bruno@clisp.org>
56610
56611         Prepare vasnprintf code for use with Unicode strings.
56612         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
56613         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
56614         TYPE_U32_STRING.
56615         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
56616         a_u32_string variants.
56617         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
56618         * lib/printf-args.c: Don't include config.h and the specification
56619         header if PRINTF_FETCHARGS is already defined.
56620         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
56621         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
56622         TYPE_U16_STRING, TYPE_U32_STRING.
56623         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
56624         u16_directive, u16_directives, u32_directive, u32_directives): New
56625         types.
56626         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
56627         New declarations.
56628         * lib/printf-parse.c: Don't include config.h and the specification
56629         header if PRINTF_PARSE is already defined. Eliminate the set of
56630         parameters for WIDE_CHAR_VERSION; the user of this file must provide
56631         them now. Include c-ctype.h.
56632         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
56633         directive and CHAR_T_ONLY_ASCII.
56634         * lib/vasnprintf.c: Don't include config.h and the specification header
56635         if VASNPRINTF is already defined.
56636         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
56637         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
56638         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
56639         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
56640         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
56641         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
56642         code accordingly.
56643         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
56644         pad_ourselves also in this case, with the 'c' and 's' directives, and
56645         with a different notion of "width".
56646         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
56647
56648 2007-06-10  Bruno Haible  <bruno@clisp.org>
56649
56650         * modules/unistr/u32-mbsnlen: New file.
56651         * lib/unistr/u32-mbsnlen.c: New file.
56652
56653         * modules/unistr/u16-mbsnlen: New file.
56654         * lib/unistr/u16-mbsnlen.c: New file.
56655
56656         * modules/unistr/u8-mbsnlen: New file.
56657         * lib/unistr/u8-mbsnlen.c: New file.
56658
56659         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
56660         declarations.
56661
56662 2007-06-10  Bruno Haible  <bruno@clisp.org>
56663
56664         * lib/string_.h (mbsnlen): New declaration.
56665         * lib/mbsnlen.c: New file.
56666         * m4/mbsnlen.m4: New file.
56667         * modules/mbsnlen: New file.
56668         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
56669         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
56670         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
56671
56672 2007-06-10  Bruno Haible  <bruno@clisp.org>
56673
56674         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
56675
56676 2007-06-10  Bruno Haible  <bruno@clisp.org>
56677
56678         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
56679         * lib/mbuiter.h: Likewise.
56680
56681 2007-06-10  Bruno Haible  <bruno@clisp.org>
56682
56683         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
56684         declaration.
56685
56686 2007-06-10  Karl Berry  <karl@gnu.org>
56687
56688         * config/srclist.txt: remove gettext entries, Bruno prefers
56689         to update individually.
56690
56691 2007-06-10  Bruno Haible  <bruno@clisp.org>
56692
56693         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
56694         'maxlen'. Ensure only length + width bytes are allocated, not
56695         length + 1 + width.
56696
56697 2007-06-09  Bruno Haible  <bruno@clisp.org>
56698
56699         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
56700         (CHAR_T): Remove macro.
56701         (VASNPRINTF): Update.
56702
56703 2007-06-09  Bruno Haible  <bruno@clisp.org>
56704
56705         * MODULES.html.sh (Unicode string functions): Add the new modules.
56706
56707         * modules/uniconv/u32-conv-to-enc: New file.
56708         * lib/uniconv/u32-conv-to-enc.c: New file.
56709         * modules/uniconv/u32-conv-to-enc-tests: New file.
56710         * tests/uniconv/test-u32-conv-to-enc.c: New file.
56711
56712         * modules/uniconv/u16-conv-to-enc: New file.
56713         * lib/uniconv/u16-conv-to-enc.c: New file.
56714         * lib/uniconv/u-conv-to-enc.h: New file.
56715         * modules/uniconv/u16-conv-to-enc-tests: New file.
56716         * tests/uniconv/test-u16-conv-to-enc.c: New file.
56717
56718         * modules/uniconv/u8-conv-to-enc: New file.
56719         * lib/uniconv/u8-conv-to-enc.c: New file.
56720         * modules/uniconv/u8-conv-to-enc-tests: New file.
56721         * tests/uniconv/test-u8-conv-to-enc.c: New file.
56722
56723         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
56724         u32_conv_to_encoding): New declarations.
56725
56726 2007-06-09  Bruno Haible  <bruno@clisp.org>
56727
56728         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
56729
56730 2007-06-09  Bruno Haible  <bruno@clisp.org>
56731
56732         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
56733         * modules/malloca: Renamed from modules/allocsa, updated.
56734         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
56735         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
56736         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
56737         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
56738         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
56739         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
56740         * modules/xmalloca: Renamed from modules/xallocsa, updated.
56741         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
56742         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
56743         * modules/c-strcasestr (Depends-on): Update.
56744         * lib/c-strcasestr.c: Update.
56745         * modules/c-strstr (Depends-on): Update.
56746         * lib/c-strstr.c: Update.
56747         * modules/canonicalize-lgpl (Depends-on): Update.
56748         * lib/canonicalize-lgpl.c: Update.
56749         * modules/clean-temp (Depends-on): Update.
56750         * lib/clean-temp.c: Update.
56751         * modules/csharpcomp (Depends-on): Update.
56752         * lib/csharpcomp.c: Update.
56753         * modules/csharpexec (Depends-on): Update.
56754         * lib/csharpexec.c: Update.
56755         * modules/javacomp (Depends-on): Update.
56756         * lib/javacomp.c: Update.
56757         * modules/javaexec (Depends-on): Update.
56758         * lib/javaexec.c: Update.
56759         * modules/mbscasestr (Depends-on): Update.
56760         * lib/mbscasestr.c: Update.
56761         * modules/mbsstr (Depends-on): Update.
56762         * lib/mbsstr.c: Update.
56763         * modules/setenv (Depends-on): Update.
56764         * lib/setenv.c: Update.
56765         * modules/strcasestr (Depends-on): Update.
56766         * lib/strcasestr.c: Update.
56767         * modules/striconveha (Depends-on): Update.
56768         * lib/striconveha.c: Update.
56769         * modules/relocatable-prog-wrapper (Files): Update.
56770         * lib/relocwrapper.c: Update.
56771         * build-aux/install-reloc: Update.
56772         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
56773
56774 2007-06-08  Bruno Haible  <bruno@clisp.org>
56775
56776         Port to uClibc.
56777         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
56778         * lib/fpurge.c (fpurge): Likewise.
56779         * lib/freading.c (freading): Likewise.
56780         * lib/fseeko.c (rpl_fseeko): Likewise.
56781         * lib/fseterr.c (fseterr): Likewise.
56782         * lib/fwriting.c (fwriting): Likewise.
56783         * tests/test-fflush.c (main): Avoid a failure on uClibc.
56784
56785 2007-06-08  Bruno Haible  <bruno@clisp.org>
56786
56787         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
56788         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
56789         * modules/gettext (Files): Add m4/intlmacosx.m4.
56790
56791 2007-06-07  Bruno Haible  <bruno@clisp.org>
56792
56793         * modules/localename-tests: New file.
56794         * tests/test-localename.c: New file.
56795
56796         New module 'localename'.
56797         * lib/localename.h: New file.
56798         * lib/localename.c: New file, from GNU gettext.
56799         * m4/localename.m4: New file.
56800         * modules/localename: New file.
56801
56802 2007-06-07  Bruno Haible  <bruno@clisp.org>
56803
56804         Work around the lack of <wchar.h> on some builds of uClibc.
56805         * doc/headers/wchar.texi: Update.
56806         * lib/wchar_.h: Include <wchar.h> only if it exists.
56807         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
56808         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
56809         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
56810         doesn't exist.
56811         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
56812         * modules/mbfile (Depends-on): Add wchar.
56813         * modules/mbiter (Depends-on): Likewise.
56814         * modules/mbuiter (Depends-on): Likewise.
56815         Reported by Simon Josefsson.
56816
56817 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
56818
56819         Work around problem reported by Steven M. Schweda in
56820         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
56821         Tru64 5.1B with the Compaq compiler environment installed declares
56822         an 'isblank' function but does not define it in the C library.
56823         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
56824         * lib/regex_internal.h (isblank): Likewise.
56825         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
56826         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56827
56828 2007-06-05  Bruno Haible  <bruno@clisp.org>
56829
56830         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
56831         ia64.
56832         * modules/printf-safe: New file.
56833         * modules/fprintf-posix (Depends-on): Add printf-safe.
56834         * modules/printf-posix (Depends-on): Likewise.
56835         * modules/snprintf-posix (Depends-on): Likewise.
56836         * modules/sprintf-posix (Depends-on): Likewise.
56837         * modules/vasnprintf-posix (Depends-on): Likewise.
56838         * modules/vasprintf-posix (Depends-on): Likewise.
56839         * modules/vfprintf-posix (Depends-on): Likewise.
56840         * modules/vprintf-posix (Depends-on): Likewise.
56841         * modules/vsnprintf-posix (Depends-on): Likewise.
56842         * modules/vsprintf-posix (Depends-on): Likewise.
56843         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
56844         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
56845         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
56846         "no" on i386, x86_64, ia64.
56847         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
56848         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56849         on i386, x86_64, ia64.
56850         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
56851         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56852         on i386, x86_64, ia64.
56853         * tests/test-vasnprintf-posix.c: Include float.h.
56854         (LDBL80_WORDS): New macro.
56855         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56856         on i386, x86_64, ia64.
56857         * tests/test-vasprintf-posix.c: Include float.h.
56858         (LDBL80_WORDS): New macro.
56859         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56860         on i386, x86_64, ia64.
56861         * tests/test-snprintf-posix.c: Include float.h.
56862         * tests/test-sprintf-posix.c: Likewise.
56863         * tests/test-vsnprintf-posix.c: Likewise.
56864         * tests/test-vsprintf-posix.c: Likewise.
56865
56866 2007-06-05  Bruno Haible  <bruno@clisp.org>
56867
56868         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
56869         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
56870         non-IEEE numbers on i386, x86_64, ia64.
56871         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
56872         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
56873         * tests/test-isnanl.h: Include float.h.
56874         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
56875
56876 2007-06-05  Bruno Haible  <bruno@clisp.org>
56877
56878         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
56879         also the %a / %A. Handle the %a / %A code before this extra handling.
56880
56881 2007-06-05  Bruno Haible  <bruno@clisp.org>
56882
56883         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
56884         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
56885
56886 2007-06-05  Bruno Haible  <bruno@clisp.org>
56887
56888         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
56889         typo in variable name.
56890
56891 2007-06-05  Eric Blake  <ebb9@byu.net>
56892
56893         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
56894         Reported by Simon Josefsson.
56895
56896 2007-06-04  Bruno Haible  <bruno@clisp.org>
56897
56898         Avoid test failures on some PowerPC platforms.
56899         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
56900         Define differently for PowerPC.
56901         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
56902         Reported by Gary V. Vaughan <gary@gnu.org>.
56903
56904 2007-06-02  Bruno Haible  <bruno@clisp.org>
56905
56906         Fix test-stdint failure on FreeBSD/ia64.
56907         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
56908         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
56909         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
56910         * doc/headers/stdint.texi: Update.
56911
56912 2007-06-01  Bruno Haible  <bruno@clisp.org>
56913
56914         * tests/test-binary-io.c (main): Pass a third argument to open().
56915         Reported by Gary V. Vaughan <gary@gnu.org>.
56916
56917 2007-06-01  Bruno Haible  <bruno@clisp.org>
56918
56919         * doc/functions/frexpl.texi: Update for mingw.
56920
56921 2007-06-01  Bruno Haible  <bruno@clisp.org>
56922
56923         * tests/test-lseek.c (main): Disable test of errno for invalid third
56924         argument.
56925         * doc/functions/lseek.texi: Update.
56926         Reported by Gary V. Vaughan <gary@gnu.org>.
56927
56928 2007-05-28  Bruno Haible  <bruno@clisp.org>
56929
56930         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
56931
56932 2007-05-31  Eric Blake  <ebb9@byu.net>
56933
56934         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
56935         cross compiling.
56936
56937 2007-05-30  Eric Blake  <ebb9@byu.net>
56938         and Bruno Haible  <bruno@clisp.org>
56939
56940         Work around mingw test failures exposed by m4-1.4.9b.
56941         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
56942         * tests/test-unistd.c: Disable uid_t and git_t tests for the
56943         moment.
56944
56945 2007-05-30  Bruno Haible  <bruno@clisp.org>
56946
56947         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
56948         assuming that they are closed. Needed on HP-UX 11.
56949
56950 2007-05-29  Bruno Haible  <bruno@clisp.org>
56951
56952         Fix a problem with #include_next.
56953         * lib/dirent_.h: Split the double-inclusion guard.
56954         * lib/fcntl_.h: Likewise.
56955         * lib/float_.h: Likewise.
56956         * lib/iconv_.h: Likewise.
56957         * lib/inttypes_.h: Likewise.
56958         * lib/locale_.h: Likewise.
56959         * lib/math_.h: Likewise.
56960         * lib/netinet_in_.h: Likewise.
56961         * lib/search_.h: Likewise.
56962         * lib/signal_.h: Likewise.
56963         * lib/stdint_.h: Likewise.
56964         * lib/stdio_.h: Likewise.
56965         * lib/stdlib_.h: Likewise.
56966         * lib/string_.h: Likewise.
56967         * lib/sys_select_.h: Likewise.
56968         * lib/sys_socket_.h: Likewise.
56969         * lib/sys_stat_.h: Likewise.
56970         * lib/sys_time_.h: Likewise.
56971         * lib/sysexits_.h: Likewise.
56972         * lib/time_.h: Likewise.
56973         * lib/unistd_.h: Likewise.
56974         * lib/wchar_.h: Likewise.
56975         * lib/wctype_.h: Likewise.
56976
56977 2007-05-29  Bruno Haible  <bruno@clisp.org>
56978
56979         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
56980         for the moment.
56981
56982 2007-05-29  Bruno Haible  <bruno@clisp.org>
56983
56984         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
56985         invocation.
56986         Reported by Eric Blake.
56987
56988 2007-05-29  Bruno Haible  <bruno@clisp.org>
56989
56990         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
56991         compiling case.
56992
56993 2007-05-29  Eric Blake  <ebb9@byu.net>
56994             Bruno Haible  <bruno@clisp.org>
56995
56996         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
56997         cross compiles.
56998
56999 2007-05-28  Eric Blake  <ebb9@byu.net>
57000
57001         * modules/closein-tests (test_closein_LDADD): Support test on
57002         cygwin with libtool.
57003
57004 2007-05-28  Bruno Haible  <bruno@clisp.org>
57005
57006         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
57007         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57008         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57009         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57010         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57011         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57012         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57013         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57014         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57015
57016 2007-05-28  Eric Blake  <ebb9@byu.net>
57017
57018         Unconditionally include <config.h> in unit tests.
57019         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
57020         * tests/test-allocsa.c, tests/test-arcfour.c,
57021         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
57022         tests/test-array_list.c, tests/test-array_oset.c,
57023         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
57024         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
57025         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
57026         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
57027         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
57028         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
57029         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
57030         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
57031         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
57032         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
57033         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
57034         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
57035         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
57036         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
57037         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
57038         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
57039         test-md5.c, test-memmem.c, test-printf-posix.c,
57040         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
57041         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
57042         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
57043         test-strcasestr.c, test-striconv.c, test-striconveh.c,
57044         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
57045         test-vasnprintf-posix2.c, test-vasnprintf.c,
57046         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
57047         test-vfprintf-posix.c, test-vprintf-posix.c,
57048         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
57049         test-xvasprintf.c: Likewise.
57050
57051 2007-05-28  Bruno Haible  <bruno@clisp.org>
57052
57053         * gnulib-tool (func_import): Remember the --with-tests command-line
57054         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
57055         Reported by Eric Blake.
57056
57057 2007-05-28  Bruno Haible  <bruno@clisp.org>
57058
57059         * modules/ftell-tests: New file.
57060         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
57061         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
57062
57063         * lib/ftell.c: New file.
57064         * modules/ftell: New file.
57065         * m4/ftell.m4: New file.
57066         * doc/functions/ftell.texi: Update.
57067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
57068         REPLACE_FTELL.
57069         * lib/stdio_.h (rpl_ftell): New declaration.
57070         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
57071         REPLACE_FTELL.
57072
57073 2007-05-28  Eric Blake  <ebb9@byu.net>
57074
57075         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
57076
57077 2007-05-28  Bruno Haible  <bruno@clisp.org>
57078
57079         * modules/fseek-tests: New file.
57080         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
57081         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
57082
57083         * lib/fseek.c: New file.
57084         * modules/fseek: New file.
57085         * m4/fseek.m4: New file.
57086         * doc/functions/fseek.texi: Update.
57087         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
57088         REPLACE_FSEEK.
57089         * lib/stdio_.h (rpl_fseek): New declaration.
57090         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
57091         REPLACE_FSEEK.
57092
57093 2007-05-28  Bruno Haible  <bruno@clisp.org>
57094
57095         * lib/stdio_.h (fflush): More comments.
57096
57097 2007-05-28  Bruno Haible  <bruno@clisp.org>
57098
57099         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
57100         runtime test.
57101
57102 2007-05-28  Eric Blake  <ebb9@byu.net>
57103
57104         Improve lseek module.
57105         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
57106         * lib/unistd_.h (lseek): Scale back link warning message.
57107         * tests/test-lseek.c: Beef up test.
57108         * tests/test-lseek.sh: Exercise more facets of lseek.
57109         Reported by Bruno Haible.
57110
57111 2007-05-28  Bruno Haible  <bruno@clisp.org>
57112
57113         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
57114         to define.
57115
57116 2007-05-27  Bruno Haible  <bruno@clisp.org>
57117
57118         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
57119
57120 2007-05-27  Bruno Haible  <bruno@clisp.org>
57121
57122         * modules/openmp: New file.
57123         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
57124         Noah Misch.
57125
57126 2007-05-26  Bruno Haible  <bruno@clisp.org>
57127
57128         * modules/chdir-long (Depends-on): Add fchdir.
57129         * modules/chdir-safer (Depends-on): Likewise.
57130         * modules/fts (Depends-on): Likewise.
57131         * modules/fts-lgpl (Depends-on): Likewise.
57132         * modules/openat (Depends-on): Likewise.
57133         * modules/savewd (Depends-on): Likewise.
57134
57135 2007-05-24  Eric Blake  <ebb9@byu.net>
57136
57137         Fix lseek on mingw.
57138         * modules/lseek: New module.
57139         * m4/lseek.m4: New file.
57140         * lib/lseek.c: New file.
57141         * modules/lseek-tests: New file.
57142         * tests/test-lseek.c: New file.
57143         * tests/test-lseek.sh: New file.
57144         * MODULES.html.sh: Document lseek module.
57145         * modules/fflush (Depends-on): Add lseek, fseeko.
57146         * modules/fseeko (Depends-on): Likewise.
57147         * modules/ftello (Depends-on): Likewise.
57148         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
57149         broken.
57150         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
57151         broken.
57152         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
57153         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
57154         * lib/ftello.c (rpl_ftello): Likewise.
57155         * tests/test-fseeko.c (main): Test this.
57156         * tests/test-fseeko.sh: Likewise.
57157         * tests/test-ftello.c (main): Likewise.
57158         * tests/test-ftello.sh: Likewise.
57159         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
57160         implies replacing fseek.
57161         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
57162         HAVE_FTELLO.
57163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
57164         * modules/unistd (Makefile.am): Likewise.
57165         * lib/unistd_.h (lseek): Declare a replacement.
57166         * doc/functions/lseek.texi (lseek): Document this fix.
57167         * doc/functions/fseek.texi (fseek): Likewise.
57168         * doc/functions/ftell.texi (ftell): Likewise.
57169
57170 2007-05-24  Bruno Haible  <bruno@clisp.org>
57171
57172         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
57173         in the printed representation of a NaN.
57174         * tests/test-vasprintf-posix.c (test_function): Likewise.
57175         * tests/test-snprintf-posix.h (test_function): Likewise.
57176         * tests/test-sprintf-posix.h (test_function): Likewise.
57177         Reported by Eric Blake.
57178
57179 2007-05-23  Eric Blake  <ebb9@byu.net>
57180
57181         Fix fseeko/ftello on cygwin 1.5.24.
57182         * doc/functions/fseeko.texi (fseeko): Document the fix.
57183         * doc/functions/ftello.texi (ftello): Document the fix.
57184         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
57185         * doc/functions/stdout.text (stdout): New file.
57186         * doc/functions/stderr.text (stderr): New file.
57187         * doc/gnulib.texi (Function Substitutes): Use new files.
57188         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
57189         prior to 1.7.0.
57190         * tests/test-ftello.c (main): Likewise for ftello.
57191         * tests/test-fseeko.sh: New file.
57192         * tests/test-ftello.sh: New file.
57193         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
57194         with seekable stdin.
57195         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
57196         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
57197         (gl_REPLACE_FSEEKO): New macro.
57198         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
57199         * modules/fseeko (Files): Distribute fseeko.c.
57200         * modules/ftello (Files): Distribute ftello.c.
57201         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
57202         mode.
57203         * lib/ftello.c (rpl_ftello): New file.
57204         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
57205         fseeko, ftello.
57206         (gl_STDIN_LARGE_OFFSET): New macro.
57207         * modules/stdio (Makefile.am): Perform the replacement.
57208         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
57209
57210 2007-05-23  Bruno Haible  <bruno@clisp.org>
57211
57212         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
57213         GNULIB_POSIXCHECK is defined.
57214
57215 2007-05-21  Bruno Haible  <bruno@clisp.org>
57216
57217         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
57218         Check also the output for NaN arguments. When cross-compiling, guess
57219         no on IRIX.
57220         * lib/vasnprintf.c: Update comments.
57221         * tests/test-vasnprintf-posix.c (strisnan): New function.
57222         (test_function): Use it.
57223         * tests/test-vasprintf-posix.c (strisnan): New function.
57224         (test_function): Use it.
57225         * tests/test-snprintf-posix.h (strisnan): New function.
57226         (test_function): Use it.
57227         * tests/test-sprintf-posix.h (strisnan): New function.
57228         (test_function): Use it.
57229         Reported by Eric Blake.
57230
57231 2007-05-20  Bruno Haible  <bruno@clisp.org>
57232
57233         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
57234         numbers that fails on BeOS.
57235         * doc/functions/frexpl.texi: Update.
57236
57237 2007-05-20  Jim Meyering  <jim@meyering.net>
57238
57239         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
57240         forced upon us by glibc-2.6.
57241
57242 2007-05-20  Bruno Haible  <bruno@clisp.org>
57243
57244         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
57245         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
57246         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
57247         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
57248         NEED_PRINTF_INFINITE.
57249         (is_infinitel): New function.
57250         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
57251         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
57252         gl_PREREQ_VASNPRINTF_INFINITE.
57253         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
57254         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57255         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
57256         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
57257         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
57258         gl_PREREQ_VASNPRINTF_INFINITE.
57259         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57260         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57261         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57262         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57263         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57264         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57265         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57266         * doc/functions/fprintf.texi: Update.
57267         * doc/functions/printf.texi: Update.
57268         * doc/functions/snprintf.texi: Update.
57269         * doc/functions/sprintf.texi: Update.
57270         * doc/functions/vfprintf.texi: Update.
57271         * doc/functions/vprintf.texi: Update.
57272         * doc/functions/vsnprintf.texi: Update.
57273         * doc/functions/vsprintf.texi: Update.
57274
57275 2007-05-20  Bruno Haible  <bruno@clisp.org>
57276
57277         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
57278         was not found in libc.
57279         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
57280
57281 2007-05-20  Bruno Haible  <bruno@clisp.org>
57282
57283         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
57284         printed as "-nan" instead of "nan".
57285         * tests/test-vasprintf-posix.c (test_function): Likewise.
57286         * tests/test-snprintf-posix.h (test_function): Likewise.
57287         * tests/test-sprintf-posix.h (test_function): Likewise.
57288         Needed for HP-UX 11.
57289
57290 2007-05-20  Jim Meyering  <jim@meyering.net>
57291
57292         Fix buggy test for the fchownat-deref bug.
57293         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
57294         symlink required for the run-test.  Without it, this test would
57295         always declare that fchownat doesn't work, and client code would
57296         unnecessarily use the replacement function with fixed libc.
57297         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
57298         Reported by Greg Schafer.
57299
57300 2007-05-19  Bruno Haible  <bruno@clisp.org>
57301
57302         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
57303         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
57304         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
57305         Needed for IRIX 6.5 and Solaris 2.5.1.
57306
57307 2007-05-19  Bruno Haible  <bruno@clisp.org>
57308
57309         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
57310         (test_function): Skip tests involving -0.0 on platforms where
57311         -0.0 = 0.0.
57312         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
57313         (test_function): Skip tests involving -0.0 on platforms where
57314         -0.0 = 0.0.
57315         * tests/test-snprintf-posix.h (have_minus_zero): New function.
57316         (test_function): Skip tests involving -0.0 on platforms where
57317         -0.0 = 0.0.
57318         * tests/test-sprintf-posix.h (have_minus_zero): New function.
57319         (test_function): Skip tests involving -0.0 on platforms where
57320         -0.0 = 0.0.
57321         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
57322         tests.
57323         * tests/test-printf-posix.h (test_function): Likewise.
57324         * tests/test-printf-posix.output: Remove all -0.0 related results.
57325         Needed for IRIX 6.5.
57326
57327 2007-05-19  Bruno Haible  <bruno@clisp.org>
57328
57329         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
57330         printed as "nan0x7fffffff" instead of "nan".
57331         * tests/test-vasprintf-posix.c (test_function): Likewise.
57332         * tests/test-snprintf-posix.h (test_function): Likewise.
57333         * tests/test-sprintf-posix.h (test_function): Likewise.
57334         * tests/test-fprintf-posix.h (NaN): Remove macro.
57335         (test_function): Remove all NaN related tests.
57336         * tests/test-printf-posix.h (NaN): Remove macro.
57337         (test_function): Remove all NaN related tests.
57338         * tests/test-printf-posix.output: Remove all NaN related results.
57339         Needed for IRIX 6.5.
57340
57341 2007-05-19  Bruno Haible  <bruno@clisp.org>
57342
57343         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
57344         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
57345
57346 2007-05-19  Bruno Haible  <bruno@clisp.org>
57347
57348         * lib/float_.h: New file.
57349         * m4/float_h.m4: New file.
57350         * modules/float: New file.
57351         * modules/isnanl (Dependencies): Add float.
57352         * modules/isnanl-nolibm (Dependencies): Likewise.
57353         * modules/mathl (Dependencies): Likewise.
57354         * modules/printf-frexpl (Dependencies): Likewise.
57355         * modules/signbit (Dependencies): Likewise.
57356         * modules/vasnprintf (Dependencies): Likewise.
57357         * doc/headers/float.texi: Update.
57358
57359 2007-05-19  Jim Meyering  <jim@meyering.net>
57360
57361         * lib/utimens.c (gl_futimens): Rename from futimens,
57362         now that glibc-2.6 declares futimens.
57363         * lib/utimens.h: Likewise.
57364
57365 2007-05-19  Bruno Haible  <bruno@clisp.org>
57366
57367         Avoid test failures on mingw.
57368         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
57369         * tests/test-printf-posix.sh: Likewise.
57370         * tests/test-vfprintf-posix.sh: Likewise.
57371         * tests/test-vprintf-posix.sh: Likewise.
57372
57373 2007-05-19  Bruno Haible  <bruno@clisp.org>
57374
57375         Fix *printf result for NaN, Inf, -0.0 on mingw.
57376         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
57377         * lib/vasnprintf.c: Include math.h and isnan.h.
57378         (is_infinite_or_zero): New function.
57379         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
57380         values in the %f, %F, %e, %E, %g, %G directives.
57381         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
57382         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57383         gl_PRINTF_INFINITE and test its result. Invoke
57384         gl_PREREQ_VASNPRINTF_INFINITE.
57385         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57386         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57387         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57388         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57389         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57390         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57391         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57392         * doc/functions/fprintf.texi: Update.
57393         * doc/functions/printf.texi: Update.
57394         * doc/functions/snprintf.texi: Update.
57395         * doc/functions/sprintf.texi: Update.
57396         * doc/functions/vfprintf.texi: Update.
57397         * doc/functions/vprintf.texi: Update.
57398         * doc/functions/vsnprintf.texi: Update.
57399         * doc/functions/vsprintf.texi: Update.
57400
57401 2007-05-19  Bruno Haible  <bruno@clisp.org>
57402
57403         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
57404         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
57405         Instead of multiplying with 10^k, set extra_zeroes to k.
57406         (scale10_round_long_double): Remove function.
57407
57408 2007-05-18  Bruno Haible  <bruno@clisp.org>
57409
57410         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
57411         introduced on 2007-05-06.
57412
57413 2007-05-18  Bruno Haible  <bruno@clisp.org>
57414
57415         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
57416         %g directives.
57417         * tests/test-vasprintf-posix.c (test_function): Likewise.
57418         * tests/test-snprintf-posix.h (test_function): Likewise.
57419         * tests/test-sprintf-posix.h (test_function): Likewise.
57420
57421 2007-05-18  Bruno Haible  <bruno@clisp.org>
57422
57423         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
57424         (strmatch): New function.
57425         (test_function): Test the %f directive on numbers of various exponents.
57426         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
57427         (strmatch): New function.
57428         (test_function): Test the %f directive on numbers of various exponents.
57429         * tests/test-snprintf-posix.h (strmatch): New function.
57430         (test_function): Test the %f directive on numbers of various exponents.
57431         * tests/test-sprintf-posix.h (strmatch): New function.
57432         (test_function): Test the %f directive on numbers of various exponents.
57433         * tests/test-snprintf-posix.c (SIZEOF): New macro.
57434         * tests/test-sprintf-posix.c (SIZEOF): New macro.
57435         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
57436         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
57437
57438 2007-05-18  Bruno Haible  <bruno@clisp.org>
57439
57440         Add support for 'long double' number output.
57441         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
57442         * lib/vasnprintf.c: Include math.h and float+.h.
57443         (mp_limb_t): New type.
57444         (GMP_LIMB_BITS): New macro.
57445         (mp_twolimb_t): New type.
57446         (GMP_TWOLIMB_BITS): New macro.
57447         (mpn_t): New type.
57448         (multiply, divide, convert_to_decimal, decode_long_double,
57449         scale10_round_long_double, scale10_round_decimal_long_double,
57450         floorlog10l): New functions.
57451         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
57452         for the %f, %F, %e, %E, %g, %G directives.
57453         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
57454         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57455         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
57456         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
57457         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57458         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57459         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57460         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57461         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57462         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57463         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57464         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
57465         * modules/snprintf-posix (Depends-on): Likewise.
57466         * modules/sprintf-posix (Depends-on): Likewise.
57467         * modules/vasnprintf-posix (Depends-on): Likewise.
57468         * modules/vasprintf-posix (Depends-on): Likewise.
57469         * modules/vfprintf-posix (Depends-on): Likewise.
57470         * modules/vsnprintf-posix (Depends-on): Likewise.
57471         * modules/vsprintf-posix (Depends-on): Likewise.
57472         * modules/vasnprintf (Files): Add lib/float+.h.
57473         * doc/functions/fprintf.texi: Update.
57474         * doc/functions/printf.texi: Update.
57475         * doc/functions/snprintf.texi: Update.
57476         * doc/functions/sprintf.texi: Update.
57477         * doc/functions/vfprintf.texi: Update.
57478         * doc/functions/vprintf.texi: Update.
57479         * doc/functions/vsnprintf.texi: Update.
57480         * doc/functions/vsprintf.texi: Update.
57481
57482 2007-05-18  Bruno Haible  <bruno@clisp.org>
57483
57484         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
57485
57486 2007-05-18  Bruno Haible  <bruno@clisp.org>
57487
57488         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
57489         for printing 64-bit integers. Needed for mingw.
57490
57491 2007-05-18  Bruno Haible  <bruno@clisp.org>
57492
57493         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57494         gl_FUNC_FREXPL_WORKS.
57495         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
57496
57497 2007-05-18  Bruno Haible  <bruno@clisp.org>
57498
57499         * modules/frexpl-nolibm-tests: New file.
57500
57501         * modules/frexpl-nolibm: New file.
57502         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
57503
57504 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
57505
57506         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
57507         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
57508         GCC 4.2, which otherwise issues a lot of warnings.
57509         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
57510         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
57511         Likewise.
57512         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
57513         * modules/iconv_open (iconv.h): Likewise.
57514         * modules/locale (locale.h): Likewise.
57515         * modules/netinet_in (netinet/in.h): Likewise.
57516         * modules/sys_select (sys_select.h): Likewise.
57517         * modules/sys_socket (sys/socket.h): Likewise.
57518         * modules/sys_stat (sys/stat.h): Likewise.
57519         * modules/sysexits (sysexits.h): Likewise.
57520         * modules/unistd (unistd.h): Likewise.
57521
57522 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57523
57524         * modules/closein-tests (Makefile.am): Distribute
57525         `test-closein.sh'.
57526
57527 2007-05-17  Bruno Haible  <bruno@clisp.org>
57528
57529         * tests/test-printf-posix.output: Renamed from
57530         tests/test-fprintf-posix.out.
57531         * modules/fprintf-posix-tests: Update.
57532         * modules/printf-posix-tests: Update.
57533         * modules/vfprintf-posix-tests: Update.
57534         * modules/vprintf-posix-tests: Update.
57535         * tests/test-fprintf-posix.sh: Update.
57536         * tests/test-printf-posix.sh: Update.
57537         * tests/test-vfprintf-posix.sh: Update.
57538         * tests/test-vprintf-posix.sh: Update.
57539         Reported by Ralf Wildenhues.
57540
57541 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
57542
57543         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
57544         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
57545         GCC 4.2, which otherwise issues a lot of warnings.
57546         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
57547         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
57548         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
57549         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
57550         it should no longer be needed.
57551         * lib/string_.h: Likewise.
57552         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
57553         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
57554         * modules/inttypes (inttypes.h): Likewise.
57555         * modules/math (math.h): Likewise.
57556         * modules/search (search.h): Likewise.
57557         * modules/signal (signal.h): Likewise.
57558         * modules/stdint (stdint.h): Likewise.
57559         * modules/stdio (stdio.h): Likewise.
57560         * modules/stdlib (stdlib.h): Likewise.
57561         * modules/string (string.h): Likewise.
57562         * modules/sys_time (sys/time.h): Likewise.
57563         * modules/time (time.h): Likewise.
57564         * modules/wchar (wchar.h): Likewise.
57565         * modules/wctype (wtype.h): Likewise.
57566
57567 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57568
57569         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
57570
57571 2007-05-13  Bruno Haible  <bruno@clisp.org>
57572
57573         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
57574         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57575         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
57576         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
57577         (gl_PREREQ_STRTOK_R): Don't require it here.
57578
57579 2007-05-13  Bruno Haible  <bruno@clisp.org>
57580
57581         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
57582         when used in C++ mode.
57583
57584 2007-05-12  Bruno Haible  <bruno@clisp.org>
57585
57586         * lib/linebuffer.h: Tweak doc.
57587         * lib/linebuffer.c: Likewise.
57588
57589 2007-05-12  James Youngman  <jay@gnu.org>
57590
57591         * lib/linebuffer.c (readlinebuffer_delim): New function,
57592         like readlinebuffer, but use a caller-specified delimiter.
57593         (readlinebuffer): Just call readlinebuffer_delim with '\n'
57594         as the delimiter.
57595         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
57596
57597 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57598
57599         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
57600         * modules/openat (Files): Remove openat-die.c.
57601         (Depends-on): Add openat-die.
57602         * modules/openat-die: New module.
57603
57604 2007-05-06  Bruno Haible  <bruno@clisp.org>
57605
57606         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
57607         Update with info about Cygwin.
57608         * doc/functions/fprintf.texi: Update.
57609         * doc/functions/printf.texi: Update.
57610         * doc/functions/snprintf.texi: Update.
57611         * doc/functions/sprintf.texi: Update.
57612         * doc/functions/vfprintf.texi: Update.
57613         * doc/functions/vprintf.texi: Update.
57614         * doc/functions/vsnprintf.texi: Update.
57615         * doc/functions/vsprintf.texi: Update.
57616         Reported by Eric Blake.
57617
57618 2007-05-06  Bruno Haible  <bruno@clisp.org>
57619
57620         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
57621         padding ourselves for the floating-point directives.
57622         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
57623         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
57624         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57625         gl_PRINTF_FLAG_ZERO and test its result. Invoke
57626         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
57627         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57628         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
57629         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57630         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57631         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57632         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57633         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57634         * tests/test-snprintf-posix.h (test_function): Also check the width
57635         and some flags in the %f directive.
57636         * tests/test-sprintf-posix.h (test_function): Likewise.
57637         * tests/test-vasnprintf-posix.c (test_function): Likewise.
57638         * tests/test-vasprintf-posix.c (test_function): Likewise.
57639         * doc/functions/fprintf.texi: Update.
57640         * doc/functions/printf.texi: Update.
57641         * doc/functions/snprintf.texi: Update.
57642         * doc/functions/sprintf.texi: Update.
57643         * doc/functions/vfprintf.texi: Update.
57644         * doc/functions/vprintf.texi: Update.
57645         * doc/functions/vsnprintf.texi: Update.
57646         * doc/functions/vsprintf.texi: Update.
57647
57648 2007-05-06  Bruno Haible  <bruno@clisp.org>
57649
57650         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
57651         pass the ' flag character to sprintf or snprintf.
57652         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
57653         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
57654         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57655         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
57656         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
57657         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57658         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
57659         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57660         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57661         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57662         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57663         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57664         * tests/test-snprintf-posix.h (test_function): Also check the grouping
57665         flag.
57666         * tests/test-sprintf-posix.h (test_function): Likewise.
57667         * tests/test-vasnprintf-posix.c (test_function): Likewise.
57668         * tests/test-vasprintf-posix.c (test_function): Likewise.
57669         * doc/functions/fprintf.texi: Update.
57670         * doc/functions/printf.texi: Update.
57671         * doc/functions/snprintf.texi: Update.
57672         * doc/functions/sprintf.texi: Update.
57673         * doc/functions/vfprintf.texi: Update.
57674         * doc/functions/vprintf.texi: Update.
57675         * doc/functions/vsnprintf.texi: Update.
57676         * doc/functions/vsprintf.texi: Update.
57677
57678 2007-05-01  Bruno Haible  <bruno@clisp.org>
57679
57680         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
57681
57682 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
57683
57684         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
57685         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
57686
57687 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57688
57689         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
57690         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
57691         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
57692
57693 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
57694
57695         * lib/argp-help.c (struct hol_entry): New member `ord'.
57696         (HOL_ENTRY_PTRCMP): Use ord for comparison
57697         (hol_sort): Initialize ord.
57698
57699 2007-05-01  Bruno Haible  <bruno@clisp.org>
57700
57701         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
57702         Reported by Eric Blake.
57703         * doc/gnulib.texi (Function Substitutes): Update.
57704
57705 2007-05-01  Bruno Haible  <bruno@clisp.org>
57706
57707         * doc/functions.texi: Remove file, now redundant through
57708         doc/functions/*.texi.
57709
57710 2007-05-01  Bruno Haible  <bruno@clisp.org>
57711
57712         * modules/argp (Depends-on): Add sleep.
57713
57714 2007-05-01  Bruno Haible  <bruno@clisp.org>
57715
57716         * modules/sleep-tests: New file.
57717         * tests/test-sleep.c: New file.
57718
57719         * modules/sleep: New file.
57720         * lib/sleep.c: New file.
57721         * m4/sleep.m4: New file.
57722         * lib/unistd_.h (sleep): New declaration.
57723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
57724         HAVE_SLEEP.
57725         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
57726         * doc/functions/sleep.texi: Document the sleep module.
57727
57728 2007-05-01  Bruno Haible  <bruno@clisp.org>
57729
57730         * lib/sigprocmask.h: Remove file.
57731         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
57732         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
57733         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
57734         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
57735         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
57736         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
57737         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
57738         HAVE_SIGSET_T as a shell variable.
57739         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
57740         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
57741         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
57742         (Depends-on): Add signal. Remove verify.
57743         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
57744         (Include): Mention <signal.h> instead of sigprocmask.h.
57745         * NEWS: Mention the change.
57746         * lib/fatal-signal.c: Don't include sigprocmask.h.
57747
57748 2007-05-01  Bruno Haible  <bruno@clisp.org>
57749
57750         * modules/signal: New file.
57751         * lib/signal_.h: New file.
57752         * m4/signal_h.m4: New file.
57753
57754 2007-05-01  Bruno Haible  <bruno@clisp.org>
57755
57756         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
57757         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
57758         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
57759         HAVE_WCTYPE_CTMP_BUG into wctype.h.
57760
57761 2007-05-01  Bruno Haible  <bruno@clisp.org>
57762
57763         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
57764         configure time.
57765         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
57766         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
57767         * modules/sys_stat (Makefile.am): Substitute their values into
57768         sys/stat.h.
57769
57770 2007-05-01  Bruno Haible  <bruno@clisp.org>
57771
57772         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
57773         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
57774         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
57775
57776 2007-05-01  Bruno Haible  <bruno@clisp.org>
57777
57778         * doc/header/assert.texi: Undo last change: don't mention the gnulib
57779         'assert' module here.
57780
57781 2007-05-01  Bruno Haible  <bruno@clisp.org>
57782
57783         * doc/functions/*.texi: New files.
57784         * doc/functions/google-ranking.txt: New file.
57785         * doc/gnulib.texi (Function Substitutes): New chapter.
57786         (ctime, inet_ntoa): Remove sections.
57787         * doc/ctime.texi: Remove file.
57788         * doc/inet_ntoa.texi: Remove file.
57789         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
57790         dependencies.
57791         (%.info): New rule, specifying a --reference-limit.
57792
57793 2007-05-01  Bruno Haible  <bruno@clisp.org>
57794
57795         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
57796
57797 2007-05-01  Bruno Haible  <bruno@clisp.org>
57798
57799         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
57800         the portability of 'mkdir' to mingw systems.
57801
57802 2007-05-01  Bruno Haible  <bruno@clisp.org>
57803
57804         * doc/headers/google-ranking.txt: New file.
57805
57806 2007-04-30  Eric Blake  <ebb9@byu.net>
57807
57808         Prefer fseeko to fseek.
57809         * modules/getpass (Depends-on): Add fseeko.
57810         * lib/getpass.c (getpass): Use fseeko, not fseek.
57811
57812 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
57813
57814         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
57815         assumes the sorting is stable, while most qsort implementations
57816         are not.  Use argument addresses to ensure they never compare as
57817         equal.
57818
57819         * tests/test-argp-2.sh (usage-indent test): Fix output
57820         (func_compare): Restore diff options
57821         * tests/test-argp.c: Restore #include "progname.h"
57822
57823 2007-04-29  Bruno Haible  <bruno@clisp.org>
57824
57825         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
57826         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57827         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
57828         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57829         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
57830         (configure.ac): Define CHECK_SNPRINTF_POSIX.
57831         (TESTS, check_PROGRAMS): Add test-snprintf.
57832         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
57833         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
57834         (TESTS, check_PROGRAMS): Add test-vsnprintf.
57835         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
57836         assertions that fail on HP-UX, OSF/1, or IRIX.
57837         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
57838
57839 2007-04-29  Bruno Haible  <bruno@clisp.org>
57840
57841         * MODULES.html.sh (posix_functions): Remove 'contents'.
57842
57843 2007-04-29  Karl Berry  <karl@gnu.org>
57844
57845         * config/srclist.txt (gendocs_template_min): new entry.
57846
57847 2007-04-29  Bruno Haible  <bruno@clisp.org>
57848
57849         Work around fpurge bug on BSD systems.
57850         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
57851         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
57852         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
57853         fpurge to rpl_fpurge if the system already has this function.
57854         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
57855         the case where the system already has this function. Correct invariants
57856         on BSD systems.
57857         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
57858         BSD systems.
57859
57860 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57861
57862         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
57863         proposed by Sven Verdoolaege.
57864
57865         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
57866         options.
57867         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
57868         (usage and help tests): Update
57869
57870 2007-04-29  Bruno Haible  <bruno@clisp.org>
57871
57872         * tests/test-fflush.c (main): Use a file of size 17, not 10.
57873         Print more information in case of failure. Disable a test on BeOS.
57874
57875 2007-04-29  Bruno Haible  <bruno@clisp.org>
57876
57877         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
57878         This helps debugging on systems on which no gdb is available.
57879
57880 2007-04-29  Bruno Haible  <bruno@clisp.org>
57881
57882         * lib/freading.h: Improve comments.
57883         * lib/fwriting.h: Likewise.
57884         * tests/test-freading.c (main): Don't check freading immediately after
57885         repositioning. Needed for glibc.
57886
57887 2007-04-29  Bruno Haible  <bruno@clisp.org>
57888
57889         * lib/freading.c (freading): Trivial simplification.
57890
57891 2007-04-28  Bruno Haible  <bruno@clisp.org>
57892
57893         * tests/test-fwriting.c (main): Also test the interaction between
57894         fflush and fwriting.
57895         * modules/fwriting-tests (Depends-on): Add fflush.
57896
57897         * tests/test-freading.c (main): Also test the interaction between
57898         fflush and freading.
57899         * modules/freading-tests (Depends-on): Add fflush.
57900
57901 2007-04-28  Bruno Haible  <bruno@clisp.org>
57902
57903         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
57904         fseeko and ftello.
57905         Suggested by Eric Blake.
57906
57907 2007-04-28  Jim Meyering  <jim@meyering.net>
57908
57909         Avoid false-negative in gl_STDINT_H's C99 conformance test.
57910         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
57911         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
57912
57913 2007-04-27  Eric Blake  <ebb9@byu.net>
57914
57915         * doc/headers/assert.texi (assert.h): Document assert module use.
57916
57917 2007-04-27  Bruno Haible  <bruno@clisp.org>
57918
57919         * doc/headers/*.texi: New files.
57920         * doc/gnulib.texi (Header File Substitutes): New chapter.
57921         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
57922         dependencies.
57923         (standards.info ,standards.html, standards.dvi): Update dependencies.
57924         (mostlyclean, clean): New targets.
57925
57926 2007-04-27  Bruno Haible  <bruno@clisp.org>
57927
57928         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
57929         * modules/sysexits (Files, Makefile.am): Update.
57930
57931         * lib/sys_socket_.h: Renamed from lib/socket_.h.
57932         * modules/sys_socket (Files, Makefile.am): Update.
57933
57934         * lib/sys_stat_.h: Renamed from lib/stat_.h.
57935         * modules/sys_stat (Files, Makefile.am): Update.
57936
57937 2007-04-27  Eric Blake  <ebb9@byu.net>
57938
57939         * lib/freading.h: Improve comments.
57940         * lib/fwriting.h: Likewise.
57941         * lib/fflush.c: Likewise.
57942
57943         Fix closein for mingw.
57944         * modules/closein-tests: Add tests for closein.
57945         * tests/test-closein.c: New file.
57946         * tests/test-closein.sh: Likewise.
57947         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
57948         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
57949
57950 2007-04-27  Bruno Haible  <bruno@clisp.org>
57951
57952         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
57953         version is < 6.
57954         * lib/math_.h [__DECC]: Likewise.
57955         * lib/stdio_.h [__DECC]: Likewise.
57956         * lib/stdlib_.h [__DECC]: Likewise.
57957         * lib/string_.h [__DECC]: Likewise.
57958         * lib/time_.h [__DECC]: Likewise.
57959         * lib/wchar_.h [__DECC]: Likewise.
57960         * lib/wctype_.h [__DECC]: Likewise.
57961
57962 2007-04-27  Bruno Haible  <bruno@clisp.org>
57963
57964         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
57965
57966 2007-04-27  Bruno Haible  <bruno@clisp.org>
57967
57968         * lib/fflush.c: Add comments.
57969         * modules/fpurge-tests (Depends-on): Add fflush.
57970         * modules/freadable-tests (Depends-on): Likewise.
57971         * modules/fwritable-tests (Depends-on): Likewise.
57972
57973 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
57974
57975         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
57976         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
57977         Report by Bruno Haible <bruno@clisp.org>.
57978
57979 2007-04-26  Eric Blake  <ebb9@byu.net>
57980
57981         Fix fflush on mingw.
57982         * modules/fflush (Depends-on): Add freading.
57983         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
57984         but unread data.
57985
57986 2007-04-26  Eric Blake  <ebb9@byu.net>
57987         and Bruno Haible  <bruno@clisp.org>
57988
57989         Implement freading and fwriting.
57990         * lib/freading.c: New file.
57991         * lib/freading.h: Likewise.
57992         * m4/freading.m4: Likewise.
57993         * modules/freading: Likewise.
57994         * modules/freading-tests: Likewise.
57995         * tests/test-freading.c: Likewise.
57996         * lib/fwriting.c: New file.
57997         * lib/fwriting.h: Likewise.
57998         * m4/fwriting.m4: Likewise.
57999         * modules/fwriting: Likewise.
58000         * modules/fwriting-tests: Likewise.
58001         * tests/test-fwriting.c: Likewise.
58002         * MODULES.html.sh (File stream based Input/Output): Mention them.
58003
58004 2007-04-26  Bruno Haible  <bruno@clisp.org>
58005
58006         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
58007         'long' when we assume it.
58008         Suggested by Eric Blake.
58009
58010 2007-04-26  Bruno Haible  <bruno@clisp.org>
58011
58012         Ensure fseeko, ftello are declared on glibc systems.
58013         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
58014         * modules/fseeko (configure.ac-early): Likewise.
58015         * modules/ftello (configure.ac-early): Likewise.
58016         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
58017         AC_FUNC_FSEEKO for this.
58018         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
58019         (gl_CHECK_FSEEKO): Remove macro.
58020
58021 2007-04-26  Bruno Haible  <bruno@clisp.org>
58022
58023         * tests/test-fflush.c (main): Also check the ftell result after
58024         fflush and fseek/fseeko.
58025         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
58026         file descriptor position cache in the stream.
58027         * lib/fseeko.c (rpl_fseeko): Likewise.
58028
58029 2007-04-26  Bruno Haible  <bruno@clisp.org>
58030
58031         * modules/fflush-tests (Depends-on): Add fseeko.
58032
58033 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
58034             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58035
58036         * lib/argz_.h: ensure error_t definition is obtained in same
58037         mechanism system argz.h would have.
58038         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
58039         argz facilities are known bad.  Err on the side of caution if
58040         cross-compiling.
58041
58042 2007-04-25  Eric Blake  <ebb9@byu.net>
58043
58044         * lib/fpurge.c (includes): Use stdlib.h for free.
58045         * tests/test-fflush.c (main): Also test fflush-fseeko.
58046
58047 2007-04-25  Bruno Haible  <bruno@clisp.org>
58048
58049         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
58050         * lib/fseeko.c: New file.
58051         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
58052         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
58053         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
58054         gl_FUNC_FSEEKO.
58055         (gl_FUNC_FSEEKO): Invoke it.
58056         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
58057         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
58058         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
58059
58060 2007-04-25  Bruno Haible  <bruno@clisp.org>
58061
58062         * modules/fflush (Depends-on): Add ftello.
58063
58064 2007-04-25  Bruno Haible  <bruno@clisp.org>
58065
58066         * modules/ftello-tests: New file.
58067         * tests/test-ftello.c: New file.
58068
58069         * modules/ftello: New file.
58070         * m4/ftello.m4: New file.
58071         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
58072         HAVE_FTELLO.
58073         * lib/stdio_.h (ftello): New declaration.
58074         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
58075         HAVE_FTELLO.
58076
58077 2007-04-25  Bruno Haible  <bruno@clisp.org>
58078
58079         * modules/fseeko-tests: New file.
58080         * tests/test-fseeko.c: New file.
58081
58082         * modules/fseeko: New file.
58083         * m4/fseeko.m4: New file.
58084         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
58085         HAVE_FSEEKO.
58086         * lib/stdio_.h (fseeko): New declaration.
58087         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
58088         HAVE_FSEEKO.
58089
58090 2007-04-25  Bruno Haible  <bruno@clisp.org>
58091
58092         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
58093
58094 2007-04-25  Bruno Haible  <bruno@clisp.org>
58095
58096         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
58097         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
58098         * tests/test-unistd.c: Likewise.
58099         * tests/test-fcntl.c: Likewise.
58100
58101 2007-04-23  Eric Blake  <ebb9@byu.net>
58102
58103         * lib/fflush.c: Fix missing include.
58104         Reported by Bruno Haible.
58105
58106 2007-04-23  Bruno Haible  <bruno@clisp.org>
58107
58108         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
58109         Reported by Eric Blake.
58110
58111 2007-04-23  Bruno Haible  <bruno@clisp.org>
58112
58113         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
58114
58115 2007-04-23  Bruno Haible  <bruno@clisp.org>
58116
58117         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
58118
58119 2007-04-23  Bruno Haible  <bruno@clisp.org>
58120
58121         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
58122         Needed on HP-UX 11.
58123
58124 2007-04-16  Eric Blake  <ebb9@byu.net>
58125
58126         Make fflush rely on fpurge.
58127         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
58128         open coding all variants.
58129         * modules/fflush (Depends-on): Add fpurge and unistd.
58130         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
58131         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
58132
58133         Fix --with-tests compilation on cygwin.
58134         * modules/argmatch-tests (Makefile.am): List gnulib library first
58135         in LDADD.
58136         * modules/argp-tests (Makefile.am): Likewise.
58137         * modules/array-list-tests (Makefile.am): Likewise.
58138         * modules/array-oset-tests (Makefile.am): Likewise.
58139         * modules/avltree-list-tests (Makefile.am): Likewise.
58140         * modules/avltree-oset-tests (Makefile.am): Likewise.
58141         * modules/avltreehash-list-tests (Makefile.am): Likewise.
58142         * modules/carray-list-tests (Makefile.am): Likewise.
58143         * modules/dirname-tests (Makefile.am): Likewise.
58144         * modules/frexp-tests (Makefile.am): Likewise.
58145         * modules/isnanl-tests (Makefile.am): Likewise.
58146         * modules/linked-list-tests (Makefile.am): Likewise.
58147         * modules/linkedhash-list-tests (Makefile.am): Likewise.
58148         * modules/lock-tests (Makefile.am): Likewise.
58149         * modules/rbtree-list-tests (Makefile.am): Likewise.
58150         * modules/rbtree-oset-tests (Makefile.am): Likewise.
58151         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
58152         * modules/tls-tests (Makefile.am): Likewise.
58153         * modules/tsearch-tests (Makefile.am): Likewise.
58154         * modules/xvasprintf-tests (Makefile.am): Likewise.
58155
58156         Fix fpurge for cygwin.
58157         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
58158         value.
58159         * modules/fpurge-tests (Depends-on): Clean up trash.
58160
58161 2007-04-16  Simon Josefsson  <simon@josefsson.org>
58162
58163         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
58164
58165         * m4/autobuild.m4: Re-indent.
58166
58167 2007-04-13  Bruno Haible  <bruno@clisp.org>
58168
58169         * modules/fpurge-tests: New file.
58170         * tests/test-fpurge.c: New file.
58171
58172         * modules/fpurge: New file.
58173         * lib/fpurge.h: New file.
58174         * lib/fpurge.c: New file.
58175         * m4/fpurge.m4: New file.
58176
58177 2007-04-13  Bruno Haible  <bruno@clisp.org>
58178
58179         * modules/fbufmode-tests: New file.
58180         * tests/test-fbufmode.c: New file.
58181
58182         * modules/fbufmode: New file.
58183         * lib/fbufmode.h: New file.
58184         * lib/fbufmode.c: New file.
58185         * m4/fbufmode.m4: New file.
58186
58187 2007-04-13  Bruno Haible  <bruno@clisp.org>
58188
58189         * modules/fwritable-tests: New file.
58190         * tests/test-fwritable.c: New file.
58191
58192         * modules/fwritable: New file.
58193         * lib/fwritable.h: New file.
58194         * lib/fwritable.c: New file.
58195         * m4/fwritable.m4: New file.
58196
58197 2007-04-13  Bruno Haible  <bruno@clisp.org>
58198
58199         * modules/freadable-tests: New file.
58200         * tests/test-freadable.c: New file.
58201
58202         * modules/freadable: New file.
58203         * lib/freadable.h: New file.
58204         * lib/freadable.c: New file.
58205         * m4/freadable.m4: New file.
58206
58207 2007-04-13  Bruno Haible  <bruno@clisp.org>
58208
58209         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
58210         MOSTLYCLEANFILES.
58211
58212 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
58213
58214         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
58215         gzip bootstrap.conf to avoid dragging in i18n machinery.
58216         (gnulib_tool_option): Use it.
58217
58218 2007-04-13  Bruno Haible  <bruno@clisp.org>
58219
58220         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
58221         %F directives.
58222         * tests/test-vasprintf-posix.c (test_function): Likewise.
58223         * tests/test-snprintf-posix.h (test_function): Likewise.
58224         * tests/test-sprintf-posix.h (test_function): Likewise.
58225         * tests/test-fprintf-posix.h (test_function): Likewise.
58226         * tests/test-printf-posix.h (test_function): Likewise.
58227         * tests/test-fprintf-posix.out: Likewise.
58228
58229 2007-04-13  Bruno Haible  <bruno@clisp.org>
58230
58231         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
58232         * modules/tls-tests (configure.ac): Likewise.
58233         Reported by Arto C. Nirkko <anirkko@insel.ch>.
58234
58235 2007-04-13  Bruno Haible  <bruno@clisp.org>
58236
58237         * lib/tls.c (glthread_tls_get): Fix return type.
58238         Patch by Arto C. Nirkko <anirkko@insel.ch>.
58239
58240 2007-04-12  Eric Blake  <ebb9@byu.net>
58241
58242         * modules/gettime (Depends-on): Remove gettime.
58243         Reported by Dmitry V. Levin.
58244
58245 2007-04-12  Bruno Haible  <bruno@clisp.org>
58246
58247         * modules/fflush (Include): Mention <stdio.h>.
58248         * modules/strtoimax (Include): Mention <inttypes.h>.
58249         * modules/strtoumax (Include): Likewise.
58250
58251 2007-04-12  Eric Blake  <ebb9@byu.net>
58252
58253         * .cvsignore: New file.
58254         * .gitignore: Likewise.
58255
58256 2007-04-12  Bruno Haible  <bruno@clisp.org>
58257
58258         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
58259         not before, since $(LDADD) often contains libgnu.a.
58260         * modules/striconv-tests (test_striconv_LDADD): Likewise.
58261         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
58262         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
58263         Needed on Cygwin.
58264
58265 2007-04-12  Eric Blake  <ebb9@byu.net>
58266
58267         Work around glibc's failure to flush stdin on fclose.
58268         * lib/closein.c (close_stdin): Flush stdin before closing.
58269
58270         Work around glibc's failure to reset seekable stdin on exit.
58271         * modules/closein: New module.
58272         * lib/closein.c: New file.
58273         * lib/closein.h: Likewise.
58274         * m4/closein.m4: Likewise.
58275         * MODULES.html.sh (File stream based Input/Output): Document it.
58276
58277 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58278
58279         * gnulib-tool: Rename generated 'autobuild' script to
58280         'do-autobuild' in --create-megatestdir output.
58281
58282         * doc/gnulib.texi (Build robot for gnulib): Fix.
58283
58284 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58285
58286         * modules/sysexits (Depends-on): Add absolute-header.
58287
58288 2007-04-12  Eric Blake  <ebb9@byu.net>
58289
58290         No need to preserve errno on success.
58291         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
58292         Reported by Bruno Haible.
58293
58294 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58295
58296         * MODULES.html.sh (Support for maintaining and releasing
58297         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
58298
58299 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58300
58301         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
58302
58303 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58304
58305         * modules/autobuild: New module.
58306
58307         * m4/autobuild.m4: New file.
58308
58309 2007-04-11  Bruno Haible  <bruno@clisp.org>
58310
58311         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
58312         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
58313         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
58314         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
58315         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58316         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58317         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58318         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58319         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58320         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58321         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
58322         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58323         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58324         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
58325         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58326         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58327         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
58328         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58329         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58330         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
58331         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58332         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58333         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
58334         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58335         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58336         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
58337         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58338         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58339         Reported by Eric Blake.
58340
58341 2007-04-11  Bruno Haible  <bruno@clisp.org>
58342
58343         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
58344
58345 2007-04-10  Bruno Haible  <bruno@clisp.org>
58346
58347         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
58348         for NaN and Infinity. Needed on FreeBSD 6.1.
58349         * tests/test-vasnprintf-posix.c (test_function): Undo last change
58350         regarding results for "%010a" of Infinity and NaN.
58351         * tests/test-vasprintf-posix.c (test_function): Likewise.
58352         * tests/test-snprintf-posix.h (test_function): Likewise.
58353         * tests/test-sprintf-posix.h (test_function): Likewise.
58354         * tests/test-fprintf-posix.h (test_function): Likewise.
58355         * tests/test-printf-posix.h (test_function): Likewise.
58356         * tests/test-fprintf-posix.out: Likewise.
58357
58358 2007-04-10  Bruno Haible  <bruno@clisp.org>
58359
58360         * modules/locale-tests: New file.
58361         * tests/test-locale.c: New file.
58362
58363         * modules/locale: New file.
58364         * lib/locale_.h: New file.
58365         * m4/locale_h.m4: New file.
58366
58367 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
58368             Bruno Haible  <bruno@clisp.org>
58369
58370         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
58371         be determined, test for availability of the copysignf, copysign,
58372         copysignl functions.
58373         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
58374         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
58375         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
58376
58377 2007-04-09  Eric Blake  <ebb9@byu.net>
58378
58379         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
58380         * modules/stdio (Makefile.am): Support fflush.
58381         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58382         * modules/fflush: New file.
58383         * lib/fflush.c: Likewise.
58384         * m4/fflush.m4: Likewise.
58385         * modules/fflush-tests: New test.
58386         * tests/test-fflush.c: Likewise.
58387         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
58388
58389 2007-04-06  Bruno Haible  <bruno@clisp.org>
58390
58391         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
58392         (VASNPRINTF): Use signbit for faster determination whether to print a
58393         minus sign.
58394         * modules/vasnprintf (Files): Remove lib/float+.h.
58395         * modules/fprintf-posix (Depends-on): Add signbit.
58396         * modules/snprintf-posix (Depends-on): Likewise.
58397         * modules/sprintf-posix (Depends-on): Likewise.
58398         * modules/vasnprintf-posix (Depends-on): Likewise.
58399         * modules/vasprintf-posix (Depends-on): Likewise.
58400         * modules/vfprintf-posix (Depends-on): Likewise.
58401         * modules/vsnprintf-posix (Depends-on): Likewise.
58402         * modules/vsprintf-posix (Depends-on): Likewise.
58403
58404 2007-04-06  Bruno Haible  <bruno@clisp.org>
58405
58406         * tests/test-frexp.c (main): Test also the sign bit of zero results.
58407         * tests/test-frexpl.c (main): Likewise.
58408         * tests/test-ldexpl.c (main): Likewise.
58409         * modules/frexp-tests (Depends-on): Add signbit.
58410         * modules/frexpl-tests (Depdends-on): Likewise.
58411         * modules/ldexpl-tests (Depdends-on): Likewise.
58412
58413 2007-04-06  Bruno Haible  <bruno@clisp.org>
58414
58415         * modules/signbit-tests: New file.
58416         * tests/test-signbit.c: New file.
58417
58418         * modules/signbit: New file.
58419         * lib/signbitf.c: New file.
58420         * lib/signbitd.c: New file.
58421         * lib/signbitl.c: New file.
58422         * m4/signbit.m4: New file.
58423         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
58424         (signbit): New macro.
58425         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
58426         REPLACE_SIGNBIT.
58427         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
58428         REPLACE_FREXPL into math.h.
58429
58430 2007-04-06  Bruno Haible  <bruno@clisp.org>
58431
58432         * modules/isnanf-nolibm-tests: New file.
58433         * tests/test-isnanf.c: New file.
58434
58435         * modules/isnanf-nolibm: New file.
58436         * lib/isnanf.h: New file.
58437         * lib/isnanf.c: New file.
58438         * lib/isnan.c: Consider the USE_FLOAT macro.
58439         * m4/isnanf.m4: New file.
58440
58441 2007-04-06  Bruno Haible  <bruno@clisp.org>
58442
58443         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
58444         (Link): New section.
58445
58446         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
58447
58448 2007-04-06  Bruno Haible  <bruno@clisp.org>
58449
58450         Assume the 'long double' type.
58451         * m4/longdouble.m4: Remove file.
58452         * config/srclist.txt: Don't mention longdouble.m4.
58453         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
58454         * lib/float+.h: Likewise.
58455         * lib/frexp.c: Likewise.
58456         * lib/printf-args.h: Likewise.
58457         * lib/printf-args.c: Likewise.
58458         * lib/printf-frexp.c: Likewise.
58459         * lib/printf-parse.c: Likewise.
58460         * lib/vasnprintf.c: Likewise.
58461         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
58462         * m4/intl.m4: Likewise.
58463         * m4/isnanl.m4: Likewise.
58464         * m4/printf.m4: Likewise.
58465         * m4/printf-frexpl.m4: Likewise.
58466         * m4/vasnprintf.m4: Likewise.
58467         * modules/allocsa (Files): Remove m4/longdouble.m4.
58468         * modules/gettext (Files): Likewise.
58469         * modules/relocatable-prog-wrapper (Files): Likewise.
58470         * modules/vasnprintf (Files): Likewise.
58471         * modules/isnanl (Files): Likewise.
58472         (Include): Simplify.
58473         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
58474         (Include): Simplify.
58475         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
58476         (Include): Simplify.
58477         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
58478         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58479         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
58480         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58481         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
58482         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58483         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
58484         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58485         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
58486         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58487         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
58488         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58489         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
58490         * tests/test-isnanl.c: Likewise.
58491         * tests/test-snprintf-posix.h: Likewise.
58492         * tests/test-sprintf-posix.h: Likewise.
58493         * tests/test-vasnprintf-posix.c: Likewise.
58494         * tests/test-vasnprintf-posix2.c: Likewise.
58495         * tests/test-vasprintf-posix.c: Likewise.
58496
58497 2007-04-06  Bruno Haible  <bruno@clisp.org>
58498
58499         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
58500         * lib/math_.h [__DECC]: Include the overridden include file through
58501         #include_next, outside the double-inclusion guard.
58502         * lib/stdio_.h [__DECC]: Likewise.
58503         * lib/stdlib_.h [__DECC]: Likewise.
58504         * lib/string_.h [__DECC]: Likewise.
58505         * lib/time_.h [__DECC]: Likewise.
58506         * lib/wchar_.h [__DECC]: Likewise.
58507         * lib/wctype_.h [__DECC]: Likewise.
58508         * lib/inttypes_.h [__DECC]: Likewise.
58509         Reported by Albert Chin <china@thewrittenword.com> in
58510         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
58511
58512 2007-04-04  Eric Blake  <ebb9@byu.net>
58513
58514         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
58515         1.5.x.
58516
58517 2007-04-04  Bruno Haible  <bruno@clisp.org>
58518
58519         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
58520         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
58521
58522 2007-04-04  Bruno Haible  <bruno@clisp.org>
58523
58524         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
58525         results for "%010a" of Infinity and NaN.
58526         * tests/test-vasprintf-posix.c (test_function): Likewise.
58527         * tests/test-snprintf-posix.h (test_function): Likewise.
58528         * tests/test-sprintf-posix.h (test_function): Likewise.
58529         * tests/test-fprintf-posix.h (test_function): Remove these tests.
58530         * tests/test-printf-posix.h (test_function): Likewise.
58531         * tests/test-fprintf-posix.out: Update.
58532         Needed for FreeBSD 6.1.
58533
58534 2007-04-04  Bruno Haible  <bruno@clisp.org>
58535
58536         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
58537         directly used by the gnulib modules nor by gnulib-tool.
58538
58539 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
58540
58541         * DEPENDENCIES: Give overall description of version dependency
58542         desirability.  Use more-typical names for apps.
58543         Add shell, coreutils, diffutils, grep, tar, gzip.
58544
58545 2007-04-04  Simon Josefsson  <simon@josefsson.org>
58546
58547         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
58548
58549 2007-04-04  Karl Berry  <karl@gnu.org>
58550
58551         * MODULES.html.sh (func_module): missing '.
58552
58553 2007-04-03  Bruno Haible  <bruno@clisp.org>
58554
58555         * modules/argmatch-tests (Makefile.am): New variable
58556         test_argmatch_LDADD.
58557         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
58558         * modules/array-list-tests (Makefile.am): New variable
58559         test_array_list_LDADD.
58560         * modules/array-oset-tests (Makefile.am): New variable
58561         test_array_oset_LDADD.
58562         * modules/avltree-list-tests (Makefile.am): New variable
58563         test_avltree_list_LDADD.
58564         * modules/avltree-oset-tests (Makefile.am): New variable
58565         test_avltree_oset_LDADD.
58566         * modules/avltreehash-list-tests (Makefile.am): New variable
58567         test_avltreehash_list_LDADD.
58568         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
58569         test_canonicalize_lgpl_LDADD.
58570         * modules/carray-list-tests (Makefile.am): New variable
58571         test_carray_list_LDADD.
58572         * modules/dirname-tests (Makefile.am): New variable
58573         test_dirname_LDADD.
58574         * modules/linked-list-tests (Makefile.am): New variable
58575         test_linked_list_LDADD.
58576         * modules/linkedhash-list-tests (Makefile.am): New variable
58577         test_linkedhash_list_LDADD.
58578         * modules/rbtree-list-tests (Makefile.am): New variable
58579         test_rbtree_list_LDADD.
58580         * modules/rbtree-oset-tests (Makefile.am): New variable
58581         test_rbtree_oset_LDADD.
58582         * modules/rbtreehash-list-tests (Makefile.am): New variable
58583         test_rbtreehash_list_LDADD.
58584         * modules/xvasprintf-tests (Makefile.am): New variable
58585         test_xvasprintf_LDADD.
58586         Reported by Eric Blake.
58587
58588 2007-04-03  Eric Blake  <ebb9@byu.net>
58589
58590         * DEPENDENCIES: Weaken m4 requirements.
58591
58592 2007-04-03  Bruno Haible  <bruno@clisp.org>
58593
58594         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
58595         * modules/isnanl-tests (configure.ac): Likewise.
58596
58597 2007-04-03  Ben Pfaff  <blp@gnu.org>
58598
58599         * modules/iconv_open: Add $(srcdir)/ to source directory
58600         references in Makefile fragments that call gperf, to fix VPATH
58601         builds.
58602
58603 2007-04-03  Bruno Haible  <bruno@clisp.org>
58604
58605         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
58606         * lib/ldexpl.c: Undo last change.
58607
58608 2007-04-03  Bruno Haible  <bruno@clisp.org>
58609
58610         * modules/printf-frexpl (Depends-on): Undo last change.
58611         (Files): Add m4/ldexpl.m4.
58612
58613 2007-04-03  Bruno Haible  <bruno@clisp.org>
58614
58615         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
58616         * modules/isnanl (Link): New section.
58617
58618         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
58619         * modules/frexp (Link): New section.
58620
58621         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
58622         * modules/frexpl (Link): New section.
58623
58624         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
58625         * modules/ldexpl (Link): New section.
58626
58627 2007-04-03  Bruno Haible  <bruno@clisp.org>
58628
58629         * modules/TEMPLATE-EXTENDED: New file.
58630         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
58631
58632 2007-04-03  Bruno Haible  <bruno@clisp.org>
58633
58634         * DEPENDENCIES: New file.
58635         Suggested by Simon Josefsson.
58636
58637 2007-04-03  Bruno Haible  <bruno@clisp.org>
58638
58639         * doc/gnulib.texi: Escape @.
58640
58641 2007-04-03  James Youngman  <jay@gnu.org>
58642         and Paul Eggert  <eggert@cs.ucla.edu>
58643
58644         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
58645         birthtime on all systems that have birthtime, not just those which
58646         use st_birthtimensec rather than st_birthtim.  Putting zero in
58647         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
58648         that the birth time is not available for files on an NFS mount.
58649
58650 2007-04-03  Simon Josefsson  <simon@josefsson.org>
58651
58652         * modules/memxor: Move back from crypto/, suggested by Bruno.
58653         * modules/crypto/hmac-sha1: Fix memxor dependency.
58654
58655         * modules/crypto/gc: Moved from ../.
58656
58657 2007-04-02  Eric Blake  <ebb9@byu.net>
58658
58659         * lib/ldexpl.c (includes): Avoid libm.
58660
58661         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
58662
58663 2007-04-02  Bruno Haible  <bruno@clisp.org>
58664
58665         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
58666         on IRIX.
58667
58668 2007-04-02  Bruno Haible  <bruno@clisp.org>
58669
58670         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
58671         x86 or x86_64 platforms running MacOS X.
58672         Reported by Ryan Schmidt <@ryandesign.com>.
58673
58674 2007-04-02  Bruno Haible  <bruno@clisp.org>
58675
58676         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
58677         i386.
58678
58679 2007-04-01  Simon Josefsson  <simon@josefsson.org>
58680
58681         * modules/crypto/arcfour: Moved from ../.
58682         * modules/crypto/arcfour-tests: Moved from ../.
58683         * modules/crypto/arctwo: Moved from ../.
58684         * modules/crypto/arctwo-tests: Moved from ../.
58685         * modules/crypto/des: Moved from ../.
58686         * modules/crypto/des-tests: Moved from ../.
58687         * modules/crypto/gc-arcfour: Moved from ../.
58688         * modules/crypto/gc-arcfour-tests: Moved from ../.
58689         * modules/crypto/gc-arctwo: Moved from ../.
58690         * modules/crypto/gc-arctwo-tests: Moved from ../.
58691         * modules/crypto/gc-des: Moved from ../.
58692         * modules/crypto/gc-des-tests: Moved from ../.
58693         * modules/crypto/gc-hmac-md5: Moved from ../.
58694         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
58695         * modules/crypto/gc-hmac-sha1: Moved from ../.
58696         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
58697         * modules/crypto/gc-md2: Moved from ../.
58698         * modules/crypto/gc-md2-tests: Moved from ../.
58699         * modules/crypto/gc-md4: Moved from ../.
58700         * modules/crypto/gc-md4-tests: Moved from ../.
58701         * modules/crypto/gc-md5: Moved from ../.
58702         * modules/crypto/gc-md5-tests: Moved from ../.
58703         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
58704         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
58705         * modules/crypto/gc-random: Moved from ../.
58706         * modules/crypto/gc-rijndael: Moved from ../.
58707         * modules/crypto/gc-rijndael-tests: Moved from ../.
58708         * modules/crypto/gc-sha1: Moved from ../.
58709         * modules/crypto/gc-sha1-tests: Moved from ../.
58710         * modules/crypto/gc-tests: Moved from ../.
58711         * modules/crypto/hmac-md5: Moved from ../.
58712         * modules/crypto/hmac-md5-tests: Moved from ../.
58713         * modules/crypto/hmac-sha1: Moved from ../.
58714         * modules/crypto/hmac-sha1-tests: Moved from ../.
58715         * modules/crypto/md2: Moved from ../.
58716         * modules/crypto/md2-tests: Moved from ../.
58717         * modules/crypto/md4: Moved from ../.
58718         * modules/crypto/md4-tests: Moved from ../.
58719         * modules/crypto/md5: Moved from ../.
58720         * modules/crypto/md5-tests: Moved from ../.
58721         * modules/crypto/memxor: Moved from ../.
58722         * modules/crypto/rijndael: Moved from ../.
58723         * modules/crypto/rijndael-tests: Moved from ../.
58724         * modules/crypto/sha1: Moved from ../.
58725
58726 2007-03-30  James Youngman  <jay@gnu.org>
58727
58728         * tests/test-stat-time.c (prepare_test): use chmod() rather than
58729         rename() to change the ctime of a file (because ctime is unaffected
58730         by rename on jfs2 on AIX 5.1).
58731         (main): Start by doing cleanup, in case a previous run failed leaving
58732         test files behind.
58733
58734 2007-03-31  Bruno Haible  <bruno@clisp.org>
58735
58736         Support old proprietary implementations of iconv.
58737         * modules/iconv_open: New file.
58738         * lib/iconv_.h: New file.
58739         * m4/iconv_h.m4: New file.
58740         * lib/iconv_open.c: New file.
58741         * lib/iconv_open-aix.gperf: New file.
58742         * lib/iconv_open-hpux.gperf: New file.
58743         * lib/iconv_open-irix.gperf: New file.
58744         * lib/iconv_open-osf.gperf: New file.
58745         * m4/iconv_open.m4: New file.
58746         * modules/linebreak (Depends-on): Add iconv_open.
58747         * modules/striconv (Depends-on): Likewise.
58748         * modules/striconveh (Depends-on): Likewise.
58749         * modules/unicodeio (Depends-on): Likewise.
58750         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
58751         (iconv_t)(-1).
58752         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
58753         conversion if cd is (iconv_t)(-1).
58754         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
58755         is not possible.
58756
58757 2007-03-31  Bruno Haible  <bruno@clisp.org>
58758
58759         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
58760         work on Solaris either. Protect also second use of "autodetect_jp".
58761
58762 2007-03-31  Bruno Haible  <bruno@clisp.org>
58763
58764         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
58765         the function is not present.
58766
58767 2007-03-31  Bruno Haible  <bruno@clisp.org>
58768
58769         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
58770         the function is not present.
58771
58772 2007-03-31  Bruno Haible  <bruno@clisp.org>
58773
58774         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
58775         a bug in HP-UX iconv_open().
58776
58777 2007-03-31  Bruno Haible  <bruno@clisp.org>
58778
58779         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
58780         (Mathematics <math.h>): New section, add fpieee.
58781         (Input/output <stdio.h>): Add fseterr.
58782         (Mathematics <math.h>): New section, add printf-frexp.
58783         (Container data structures): Add sublist.
58784         (Core language properties): Add fpucw, inline.
58785         (Functions for greatest-width integer types <inttypes.h>): Add
58786         imaxabs, imaxdiv, inttypes.
58787         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
58788         isnanl-nolibm, ldexp.
58789         (Mathematics <math.h>): New section, add printf-frexpl.
58790         (Support for systems lacking POSIX:2001): Add fprintf-posix,
58791         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
58792         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
58793         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
58794         (Unicode string functions): Add unistr/u*-mbtoucr.
58795         (Java): Add javacomp-script, javaexec-script.
58796         (C#): Add csharpcomp-script, csharpexec-script.
58797         (Support for building libraries and executables): Add havelib,
58798         relocatable-*.
58799         (Support for maintaining and releasing projects): Renamed from
58800         'Support for maintaining and release projects'. Add announce-gen.
58801
58802 2007-03-31  Bruno Haible  <bruno@clisp.org>
58803
58804         * README: Talk primarily about git.
58805         (git and CVS): Renamed from CVS.
58806         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
58807         gnulib is available through git.
58808         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
58809
58810 2007-03-30  Bruno Haible  <bruno@clisp.org>
58811
58812         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
58813         * lib/poll_.h: Likewise.
58814         * lib/stat_.h: Likewise.
58815         * lib/sys_time_.h: Likewise.
58816         * lib/sysexit_.h: Likewise.
58817         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
58818         * lib/stdbool_.h: Likewise.
58819         * lib/byteswap_.h: Add double-inclusion guard.
58820
58821 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
58822
58823         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
58824
58825 2007-03-30  Karl Berry  <karl@gnu.org>
58826
58827         * config/srclist-update: double space after USA in the license
58828         substitution, since that's how it's usually (?) written.
58829
58830 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
58831
58832         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
58833         reported by Bruno Haible.
58834
58835 2007-03-29  Bruno Haible  <bruno@clisp.org>
58836
58837         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
58838         a bug in AIX iconv().
58839
58840 2007-03-29  Bruno Haible  <bruno@clisp.org>
58841
58842         * modules/ldexpl-tests: New file.
58843         * tests/test-ldexpl.c: New file.
58844
58845 2007-03-29  Bruno Haible  <bruno@clisp.org>
58846
58847         * lib/ldexpl.c: Include fpucw.h.
58848         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
58849         multiplication.
58850         * modules/ldexpl (Depends-on): Add fpucw.
58851
58852 2007-03-29  Bruno Haible  <bruno@clisp.org>
58853
58854         * modules/ldexpl: New file.
58855         * m4/ldexpl.m4: New file.
58856         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
58857         set.
58858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
58859         REPLACE_LDEXPL.
58860         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
58861         REPLACE_LDEXPL.
58862         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
58863         gl_FUNC_LDEXPL_WORKS.
58864         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
58865         * modules/mathl (Files): Remove lib/ldexpl.c.
58866         (Depends-on): Add ldexpl.
58867
58868 2007-03-29  Bruno Haible  <bruno@clisp.org>
58869
58870         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
58871
58872 2007-03-29  Bruno Haible  <bruno@clisp.org>
58873
58874         * tests/test-striconveh.c (main): Don't assume that a direct conversion
58875         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
58876         and possibly also HP-UX.
58877         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
58878         work on AIX, IRIX, HP-UX, OSF/1.
58879         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
58880         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
58881         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
58882         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
58883         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
58884         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
58885
58886 2007-03-29  Bruno Haible  <bruno@clisp.org>
58887
58888         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
58889
58890 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
58891
58892         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
58893         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
58894
58895 2007-03-29  Eric Blake  <ebb9@byu.net>
58896
58897         * lib/acl-internal.h: Remove redundant include.
58898         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
58899         Cygwin when a file is locked.
58900
58901 2007-03-29  Bruno Haible  <bruno@clisp.org>
58902
58903         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
58904         file.
58905         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
58906
58907 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
58908
58909         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
58910         try to remove a parent directory if the child couldn't be removed
58911         (except for the first rmdir, which could fail because the child
58912         doesn't exist).  Problem reported by Jeff Blaine in
58913         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
58914
58915 2007-03-28  Bruno Haible  <bruno@clisp.org>
58916
58917         * lib/striconveh.c (utf8conv_carefully): New function.
58918         (mem_cd_iconveh_internal): Invoke it.
58919
58920 2007-03-28  Bruno Haible  <bruno@clisp.org>
58921
58922         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
58923         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
58924         input.
58925         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
58926         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
58927         unistr/u8-uctomb.
58928
58929 2007-03-28  Bruno Haible  <bruno@clisp.org>
58930
58931         * modules/unistr/u8-mbtoucr: New file.
58932         * lib/unistr/u8-mbtoucr.c: New file.
58933         * modules/unistr/u16-mbtoucr: New file.
58934         * lib/unistr/u16-mbtoucr.c: New file.
58935         * modules/unistr/u16-mbtoucr: New file.
58936         * lib/unistr/u16-mbtoucr.c: New file.
58937         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
58938
58939 2007-03-27  Simon Josefsson  <simon@josefsson.org>
58940             Bruno Haible  <bruno@clisp.org>
58941
58942         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
58943         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
58944         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
58945
58946         * m4/stdio_h.m4: Add stubs for vasprintf too.
58947
58948         * modules/stdio: Support vasprintf in sed command.
58949
58950         * modules/vasprintf: Depend on stdio for prototypes.  Remove
58951         vasprintf.h.  Add stdio module indicator.
58952
58953         * lib/stdio_.h: Declare asprintf and vasprintf, based on
58954         vasprintf.h.
58955
58956         * lib/vasprintf.h: File removed.
58957
58958         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
58959         * lib/vasprintf.c: Ditto.
58960         * lib/xvasprintf.c: Ditto.
58961         * tests/test-vasprintf-posix.c: Ditto.
58962         * tests/test-vasprintf.c: Ditto.
58963
58964 2007-03-27  Bruno Haible  <bruno@clisp.org>
58965
58966         Make vasnprintf multithread-safe.
58967         * lib/vasnprintf.c (decimal_point_char): New function.
58968         (VASNPRINTF): Use it.
58969         Suggested by Simon Josefsson.
58970
58971 2007-03-27  Eric Blake  <ebb9@byu.net>
58972
58973         Support sub-second birthtime on cygwin.
58974         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
58975         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
58976         (get_stat_birthtime): Also work with st_birthtim.
58977
58978 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
58979
58980         * lib/stat-time.h (USE_BIRTHTIME): Remove.
58981         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
58982         (get_stat_birthtime_ns): Do not try to use "spare" fields.
58983         (get_stat_birthtime_ns): Simplify compile-time tests.
58984         (get_stat_birthtime): Change the API to look like
58985         get_stat_mtime etc., except return a negative tv_nsec on error.
58986         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
58987         Don't check for "spare" fields.
58988         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
58989         or for struct stat.st_birthtime, as these tests aren't used.
58990         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
58991
58992 2007-03-27  Bruno Haible  <bruno@clisp.org>
58993
58994         * lib/stat-time.h: Include <sys/stat.h>.
58995
58996 2007-03-27  James Youngman  <jay@gnu.org>
58997
58998         * lib/stat-time.h (get_stat_birthtime): New function for
58999           retrieving st_birthtime as provided by UFS2 (hence *BSD).
59000         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
59001           and its variants.
59002         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
59003         * modules/stat-time-test: New file.
59004         * tests/test-stat-time.c: New test, devised by Bruno Haible.
59005
59006 2007-03-26  Bruno Haible  <bruno@clisp.org>
59007
59008         Better support of signalling NaNs.
59009         * lib/atanl.c: Include isnanl.h.
59010         (atanl): Perform test for NaN at the beginning of the function and
59011         through a call to isnanl.
59012         * lib/cosl.c: Include isnanl.h.
59013         (cosl): Perform test for NaN at the beginning of the function and
59014         through a call to isnanl.
59015         * lib/ldexpl.c: Include isnanl.h.
59016         (ldexpl): Perform test for NaN through a call to isnanl.
59017         * lib/logl.c: Include isnanl.h.
59018         (logl): Perform test for NaN at the beginning of the function and
59019         through a call to isnanl.
59020         * lib/sinl.c: Include isnanl.h.
59021         (sinl): Perform test for NaN at the beginning of the function and
59022         through a call to isnanl.
59023         * lib/sqrtl.c: Include isnanl.h.
59024         (sqrtl): Perform test for NaN at the beginning of the function and
59025         through a call to isnanl.
59026         * lib/tanl.c: Include isnanl.h.
59027         (tanl): Perform test for NaN at the beginning of the function and
59028         through a call to isnanl.
59029         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
59030         * modules/mathl (Depends-on): Add isnanl.
59031
59032 2007-03-26  Eric Blake  <ebb9@byu.net>
59033
59034         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
59035         regression in logic sense of previous patch.
59036
59037 2007-03-26  Bruno Haible  <bruno@clisp.org>
59038
59039         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
59040         unportable shell command "if ! ...".
59041         Reported by Ralf Wildenhues.
59042
59043 2007-03-25  Bruno Haible  <bruno@clisp.org>
59044
59045         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
59046         <sysexits.h> file, and only add EX_CONFIG.
59047         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
59048         absolute file name and whether it is sufficient. Substitute also
59049         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
59050         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
59051         ABSOLUTE_SYSEXITS_H into sysexits.h.
59052
59053 2007-03-25  Bruno Haible  <bruno@clisp.org>
59054
59055         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
59056         hints is NULL.
59057
59058 2007-03-25  Bruno Haible  <bruno@clisp.org>
59059
59060         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
59061         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
59062
59063 2007-03-25  Bruno Haible  <bruno@clisp.org>
59064
59065         * lib/vasnprintf.c: Include langinfo.h.
59066         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
59067         multithread-safe.
59068         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
59069         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
59070         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59071         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59072         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59073         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59074         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59075         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
59076         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59077         Reported by Simon Josefsson.
59078
59079 2007-03-25  Bruno Haible  <bruno@clisp.org>
59080
59081         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
59082         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
59083         * modules/vasnprintf (Depends-on): Add stdint.
59084
59085 2007-03-25  Bruno Haible  <bruno@clisp.org>
59086
59087         * modules/fpieee: New file.
59088         * m4/fpieee.m4: New file.
59089         * modules/isnan-nolibm (Depends-on): Add fpieee.
59090         * modules/isnanl-nolibm (Depends-on): Add fpieee.
59091         * modules/isnanl (Depends-on): Add fpieee.
59092
59093 2007-03-25  Bruno Haible  <bruno@clisp.org>
59094
59095         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
59096
59097 2007-03-25  Bruno Haible  <bruno@clisp.org>
59098
59099         Avoid test failures on IRIX 6.5.
59100         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
59101         (main): Use it.
59102         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
59103         macros.
59104         (main): Use them.
59105
59106 2007-03-25  Bruno Haible  <bruno@clisp.org>
59107
59108         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
59109         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
59110         exists but doesn't work.
59111         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
59112         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
59113         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
59114         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
59115         math.h.
59116
59117 2007-03-25  Bruno Haible  <bruno@clisp.org>
59118
59119         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
59120         returns inf. Needed on IRIX 6.5.
59121
59122 2007-03-25  Bruno Haible  <bruno@clisp.org>
59123
59124         * tests/test-frexpl.c: Include isnanl-nolibm.h.
59125         (main): Use isnanl instead of x != x idiom.
59126         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
59127
59128         * tests/test-frexp.c: Include isnan.h.
59129         (main): Use isnan instead of x != x idiom.
59130         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
59131
59132 2007-03-25  Bruno Haible  <bruno@clisp.org>
59133
59134         * tests/test-frexp.c (NaN): New function/macro.
59135         (main): Use it instead of 0.0 / 0.0.
59136         * tests/test-isnan.c (NaN): New function/macro.
59137         (main): Use it instead of 0.0 / 0.0.
59138         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
59139         (test_function): Use it instead of 0.0 / 0.0.
59140         * tests/test-vasprintf-posix.c (NaN): New function/macro.
59141         (test_function): Use it instead of 0.0 / 0.0.
59142         * tests/test-snprintf-posix.h (NaN): New function/macro.
59143         (test_function): Use it instead of 0.0 / 0.0.
59144         * tests/test-sprintf-posix.h (NaN): New function/macro.
59145         (test_function): Use it instead of 0.0 / 0.0.
59146         * tests/test-fprintf-posix.h (NaN): New function/macro.
59147         (test_function): Use it instead of 0.0 / 0.0.
59148         * tests/test-printf-posix.h (NaN): New function/macro.
59149         (test_function): Use it instead of 0.0 / 0.0.
59150
59151         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
59152
59153 2007-03-25  Bruno Haible  <bruno@clisp.org>
59154
59155         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
59156
59157 2007-03-25  Bruno Haible  <bruno@clisp.org>
59158
59159         * lib/regexec.c (merge_state_with_log): Make static.
59160
59161 2007-03-25  Bruno Haible  <bruno@clisp.org>
59162
59163         * lib/trigl.c (kernel_rem_pio2): Make static.
59164
59165 2007-03-25  Bruno Haible  <bruno@clisp.org>
59166
59167         * lib/sincosl.c (sincosl_table): Make static.
59168
59169 2007-03-25  Bruno Haible  <bruno@clisp.org>
59170
59171         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
59172         if the compiler does not support C99.
59173
59174 2007-03-25  Bruno Haible  <bruno@clisp.org>
59175
59176         * modules/time (Makefile.am): Ensure all rule action lines start with a
59177         tab.
59178
59179 2007-03-24  Bruno Haible  <bruno@clisp.org>
59180
59181         * modules/tsearch-tests: New file.
59182         * tests/test-tsearch.sh: New file.
59183         * tests/test-tsearch.c: New file, mostly copied from glibc.
59184
59185         * modules/search-tests: New file.
59186         * tests/test-search.c: New file.
59187
59188         * modules/search: New file.
59189         * lib/search_.h: New file, incorporating lib/tsearch.h.
59190         * m4/search_h.m4: New file.
59191         * lib/tsearch.h: Remove file.
59192         * lib/tsearch.c: Include search.h instead of tsearch.h.
59193         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
59194         HAVE_TSEARCH.
59195         * modules/tsearch (Files): Remove lib/tsearch.h.
59196         (Depends-on): Add search.
59197         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
59198         (Include): Change tsearch.h into search.h.
59199
59200 2007-03-24  Bruno Haible  <bruno@clisp.org>
59201
59202         * modules/fpucw: New file.
59203         * lib/fpucw.h: New file.
59204         * lib/frexp.c: Include fpucw.h.
59205         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
59206         (FUNC): Use them.
59207         * lib/printf-frexp.c: Include fpucw.h.
59208         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
59209         (FUNC): Use them.
59210         * lib/vasnprintf.c: Include fpucw.h.
59211         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
59212         'long double' calculations.
59213         * tests/test-frexpl.c: Include fpucw.h.
59214         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
59215         * tests/test-printf-frexpl.c: Include fpucw.h.
59216         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
59217         * modules/frexpl (Depends-on): Add fpucw.
59218         * modules/printf-frexpl (Depends-on): Likewise.
59219         * modules/fprintf-posix (Depends-on): Likewise.
59220         * modules/snprintf-posix (Depends-on): Likewise.
59221         * modules/sprintf-posix (Depends-on): Likewise.
59222         * modules/vasnprintf-posix (Depends-on): Likewise.
59223         * modules/vasprintf-posix (Depends-on): Likewise.
59224         * modules/vfprintf-posix (Depends-on): Likewise.
59225         * modules/vsnprintf-posix (Depends-on): Likewise.
59226         * modules/vsprintf-posix (Depends-on): Likewise.
59227         * modules/frexpl-tests (Depends-on): Likewise.
59228         * modules/printf-frexpl-tests (Depends-on): Likewise.
59229
59230 2007-03-24  Bruno Haible  <bruno@clisp.org>
59231
59232         * lib/float+.h: New file.
59233         * lib/isnan.c: Include float+.h.
59234         (SIZE): New macro.
59235         (FUNC): Compare only SIZE bytes of the value.
59236         * lib/vasnprintf.c: Include float+.h.
59237         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
59238         SIZEOF_LDBL or SIZEOF_DBL bytes.
59239         * modules/isnan-nolibm (Files): Add lib/float+.h.
59240         * modules/isnanl-nolibm (Files): Add lib/float+.h.
59241         * modules/isnanl (Files): Add lib/float+.h.
59242         * modules/vasnprintf (Files): Add lib/float+.h.
59243
59244 2007-03-24  Bruno Haible  <bruno@clisp.org>
59245
59246         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
59247         include isnanl-nolibm.h.
59248
59249 2007-03-24  Bruno Haible  <bruno@clisp.org>
59250
59251         * tests/test-read-file.c (main): Don't produce spurious output for
59252         expected situations. Make the test fail if it encountered unexpected
59253         results.
59254
59255 2007-03-24  Bruno Haible  <bruno@clisp.org>
59256
59257         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
59258         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
59259
59260 2007-03-24  Bruno Haible  <bruno@clisp.org>
59261
59262         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
59263
59264 2007-03-24  Bruno Haible  <bruno@clisp.org>
59265
59266         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
59267         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
59268
59269         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
59270         * modules/utf8-ucs4: Turn into a symbolic link to module
59271         unistr/u8-mbtouc.
59272
59273         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
59274         utf8-ucs4-unsafe.
59275         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
59276         unistr/u8-mbtouc-unsafe.
59277
59278         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
59279         * modules/utf16-ucs4: Turn into a symbolic link to module
59280         unistr/u16-mbtouc.
59281
59282         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
59283         utf16-ucs4-unsafe.
59284         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
59285         unistr/u16-mbtouc-unsafe.
59286
59287         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
59288         * modules/ucs4-utf8: Turn into a symbolic link to module
59289         unistr/u8-ubtomb.
59290
59291         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
59292         * modules/ucs4-utf16: Turn into a symbolic link to module
59293         unistr/u16-ubtomb.
59294
59295 2007-03-24  Bruno Haible  <bruno@clisp.org>
59296
59297         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
59298         Enable the function only if HAVE_INLINE.
59299         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
59300         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
59301         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
59302         Enable the function only if HAVE_INLINE.
59303         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
59304         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
59305         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
59306         Enable the function only if HAVE_INLINE.
59307         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
59308         Enable the function only if HAVE_INLINE.
59309         * modules/utf8-ucs4: Update.
59310         * modules/utf8-ucs4-unsafe: Update.
59311         * modules/utf16-ucs4: Update.
59312         * modules/utf16-ucs4-unsafe: Update.
59313         * modules/ucs4-utf8: Update.
59314         * modules/ucs4-utf16: Update.
59315
59316 2007-03-24  Bruno Haible  <bruno@clisp.org>
59317
59318         * lib/utf8-ucs4.h: Remove file.
59319         * lib/utf8-ucs4-unsafe.h: Remove file.
59320         * lib/utf16-ucs4.h: Remove file.
59321         * lib/utf16-ucs4-unsafe.h: Remove file.
59322         * lib/ucs4-utf8.h: Remove file.
59323         * lib/ucs4-utf16.h: Remove file.
59324         * lib/unistr.h: Include their previous contents.
59325         * m4/utf-ucs4.m4: Remove file.
59326         * m4/ucs4-utf.m4: Remove file.
59327         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
59328         (Depends-on): Add unistr/base.
59329         (configure.ac): Remove gl_UTF_UCS4.
59330         (Makefile.am): Update.
59331         (Include): Change to unistr.h.
59332         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
59333         (Depends-on): Add unistr/base.
59334         (configure.ac): Remove gl_UTF_UCS4.
59335         (Makefile.am): Update.
59336         (Include): Change to unistr.h.
59337         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
59338         (Depends-on): Add unistr/base.
59339         (configure.ac): Remove gl_UTF_UCS4.
59340         (Makefile.am): Update.
59341         (Include): Change to unistr.h.
59342         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
59343         (Depends-on): Add unistr/base.
59344         (configure.ac): Remove gl_UTF_UCS4.
59345         (Makefile.am): Update.
59346         (Include): Change to unistr.h.
59347         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
59348         (Depends-on): Add unistr/base.
59349         (configure.ac): Remove gl_UCS4_UTF.
59350         (Makefile.am): Update.
59351         (Include): Change to unistr.h.
59352         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
59353         (Depends-on): Add unistr/base.
59354         (configure.ac): Remove gl_UCS4_UTF.
59355         (Makefile.am): Update.
59356         (Include): Change to unistr.h.
59357         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
59358         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
59359         utf8-ucs4-unsafe.h.
59360         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
59361         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
59362         utf16-ucs4-unsafe.h.
59363         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
59364         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
59365         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
59366         * lib/unistr/u8-strchr.c: Likewise.
59367         * lib/unistr/u8-strrchr.c: Likewise.
59368         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
59369         * lib/unistr/u16-strchr.c: Likewise.
59370         * lib/unistr/u16-strrchr.c: Likewise.
59371         * lib/striconveh.c: Update.
59372         * lib/linebreak.c: Update.
59373
59374 2007-03-24  Bruno Haible  <bruno@clisp.org>
59375
59376         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
59377         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
59378
59379 2007-03-22  Bruno Haible  <bruno@clisp.org>
59380
59381         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
59382
59383 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
59384
59385         * MODULES.html.sh (File system functions): New module write-any-file.
59386         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
59387         * m4/write-any-file.m4: New files.
59388
59389 2007-03-23  Eric Blake  <ebb9@byu.net>
59390
59391         * gnulib-tool: Rearrange space-tab sequences, since some editors
59392         like to eat them.
59393
59394 2007-03-23  Eric Blake  <ebb9@byu.net>
59395
59396         * lib/version-etc.c (version_etc_va): Update license wording to
59397         be more concise.  Recommended by Richard Stallman.
59398
59399 2007-03-22  Bruno Haible  <bruno@clisp.org>
59400
59401         * lib/poll.c (MSG_PEEK): New fallback definition.
59402
59403 2007-03-22  Bruno Haible  <bruno@clisp.org>
59404
59405         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
59406         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
59407         (main): Update.
59408         Fixes a compilation error on BeOS.
59409
59410 2007-03-22  Bruno Haible  <bruno@clisp.org>
59411
59412         * modules/frexpl-tests: New file.
59413         * tests/test-frexpl.c: New file.
59414
59415         * modules/frexpl: New file.
59416         * m4/frexpl.m4: New file.
59417         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
59418         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
59419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
59420         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
59421         (Depends-on): Add frexpl. Remove isnanl-nolibm.
59422         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
59423
59424 2007-03-22  Bruno Haible  <bruno@clisp.org>
59425
59426         * lib/frexpl.c: Share code with lib/frexp.c.
59427         * modules/mathl (Files): Add lib/frexp.c.
59428         (Depends-on): Add isnanl-nolibm.
59429
59430 2007-03-22  Bruno Haible  <bruno@clisp.org>
59431
59432         * modules/printf-frexp (Files): Add m4/frexp.m4.
59433         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
59434         only if the found frexp function actually works.
59435
59436 2007-03-22  Bruno Haible  <bruno@clisp.org>
59437
59438         * lib/frexp.c: Remove older implementation that uses divisions.
59439
59440 2007-03-21  Bruno Haible  <bruno@clisp.org>
59441
59442         * modules/frexp-tests: New file.
59443         * tests/test-frexp.c: New file.
59444
59445         * modules/frexp: New file.
59446         * lib/frexp.c: New file.
59447         * m4/frexp.m4: New file.
59448         * lib/math_.h (frexp): New declaration.
59449         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
59450         REPLACE_FREXP.
59451         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
59452
59453 2007-03-21  Bruno Haible  <bruno@clisp.org>
59454
59455         * modules/isnanl-tests: New file.
59456         * tests/test-isnanl.c: New file.
59457
59458         * modules/isnanl: New file.
59459         * lib/isnanl.h: New file.
59460         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
59461         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
59462         gl_FUNC_ISNANL_WORKS.
59463         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
59464         New macros.
59465
59466 2007-03-21  Bruno Haible  <bruno@clisp.org>
59467
59468         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
59469         lib/isnanl.h.
59470         (Include): Update.
59471         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
59472         * lib/vasnprintf.c: Update.
59473         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
59474         tests/test-isnanl.h, remove tests/test-isnanl.c.
59475         (Makefile.am): Update.
59476         * tests/test-isnanl-nolibm.c: New file.
59477         * tests/test-isnanl.h: New file.
59478         * tests/test-isnanl.c: Remove file.
59479
59480 2007-03-21  Jim Meyering  <jim@meyering.net>
59481
59482         When trying to open ".", treat ESTALE like EACCES.
59483         * lib/savewd.c (savewd_save): Resort to forking not just upon
59484         failure with EACCES, but also when errno is ESTALE.
59485
59486 2007-03-20  Bruno Haible  <bruno@clisp.org>
59487
59488         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
59489         Needed on AIX 5.1. Reported by Matthew Woehlke.
59490
59491 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59492
59493         Suggestions by Bruno Haible:
59494         * lib/acl-internal.h: Include "gettext.h" rather than rolling
59495         our own.
59496         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
59497         * modules/acl (Depends-on): Add gettext.
59498
59499 2007-03-19  Bruno Haible  <bruno@clisp.org>
59500
59501         * modules/iconvme: Remove file.
59502         * lib/iconvme.h: Remove file.
59503         * lib/iconvme.c: Remove file.
59504         * m4/iconvme.m4: Remove file.
59505
59506 2007-03-19  Bruno Haible  <bruno@clisp.org>
59507
59508         * doc/relocatable-maint.texi: Break long shell script line.
59509         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
59510
59511 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59512
59513         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
59514         handle file_has_acl.
59515         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
59516         * lib/acl.c: Move header inclusions and related macro defns into
59517         lib/acl-internal.h.
59518         (S_ISLNK): Remove defn, since that's now done for us.
59519         (file_has_acl): Move to lib/file-has-acl.c.
59520         Call acl_trivial if available.  This is the crucial part of the fix.
59521         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
59522         shared within the library.  Rewrite a bit, partly to make it compatible
59523         with the GNU coding style.
59524         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
59525         Remove unnecessary double-quotes.
59526         Don't test for acl_to_text; the build will catch that.
59527         Replace acl_entries if it doesn't exist and it is needed.
59528         Check for -lsec and acl_trivial (as used on Solaris 10).
59529         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
59530         lib/file-has-acl.c.
59531         (Depends-on): Add sys_stat, for S_ISLNK.
59532
59533 2007-03-19  Ben Pfaff  <blp@gnu.org>
59534
59535         * doc/gnulib.texi: Fix typos.
59536         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
59537
59538 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59539
59540         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
59541         If size is zero here, buf must be zero.
59542
59543 2007-03-19  Simon Josefsson  <simon@josefsson.org>
59544
59545         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
59546         <bruno@clisp.org>.
59547
59548 2007-03-18  Bruno Haible  <bruno@clisp.org>
59549
59550         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
59551         Suggested by Eric Blake.
59552
59553 2007-03-18  Ben Pfaff  <blp@gnu.org>
59554
59555         * doc/relocatable.texi: Recommend using as prefix a directory
59556         that does not exist and will never be created.  Based on
59557         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
59558         and others.
59559
59560 2007-03-17  Bruno Haible  <bruno@clisp.org>
59561
59562         * lib/fchownat.c: Include lchown.h.
59563
59564 2007-03-17  Bruno Haible  <bruno@clisp.org>
59565
59566         Fix endless loop when the given allocated size was > INT_MAX.
59567         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
59568         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
59569         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
59570         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
59571         * lib/sprintf.c (sprintf): Likewise.
59572
59573 2007-03-17  Bruno Haible  <bruno@clisp.org>
59574
59575         * tests/test-argp-2.sh (func_compare): Output a context diff.
59576
59577 2007-03-17  Bruno Haible  <bruno@clisp.org>
59578
59579         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
59580         locale's decimal-point character.
59581
59582 2007-03-17  Bruno Haible  <bruno@clisp.org>
59583
59584         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
59585         before comparing it. Needed because on some platforms (e.g. x86) a
59586         'long double' occupies less bytes than sizeof (long double).
59587
59588 2007-03-17  Bruno Haible  <bruno@clisp.org>
59589
59590         * tests/test-crc.c (main): Make printf statements 64-bit clean.
59591         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
59592         * tests/test-getaddrinfo.c (simple): Likewise.
59593         * tests/test-read-file.c (main): Likewise.
59594
59595 2007-03-17  Bruno Haible  <bruno@clisp.org>
59596
59597         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
59598
59599 2007-03-17  Bruno Haible  <bruno@clisp.org>
59600
59601         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
59602         unused variable.
59603
59604 2007-03-17  Bruno Haible  <bruno@clisp.org>
59605
59606         * tests/test-c-strcasecmp.c: Include c-strcase.h.
59607         * tests/test-c-strncasecmp.c: Likewise.
59608
59609 2007-03-17  Bruno Haible  <bruno@clisp.org>
59610
59611         * modules/stdlib (Depends-on): Add unistd.
59612         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
59613         Needed for MacOS X 10.3.
59614
59615 2007-03-17  Bruno Haible  <bruno@clisp.org>
59616
59617         * lib/unistr/u-strdup.h: Include <stdlib.h>.
59618
59619 2007-03-17  Bruno Haible  <bruno@clisp.org>
59620
59621         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
59622
59623 2007-03-17  Bruno Haible  <bruno@clisp.org>
59624
59625         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
59626         to reflect files copied from gnulib (with or without modifications).
59627         Suggested by Jim Meyering.
59628
59629 2007-03-17  Eric Blake  <ebb9@byu.net>
59630
59631         * NEWS: Document stdlib change from 2007-02-18.
59632
59633 2007-03-17  Jim Meyering  <jim@meyering.net>
59634
59635         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
59636         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
59637         someone uses a name containing shell meta-characters.
59638         Reported by Alfred M. Szmidt.
59639
59640         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
59641
59642 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
59643
59644         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
59645         and copy gettext configuration files only if configure.ac contains
59646         a use of AM_GNU_GETTEXT_VERSION.
59647
59648 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
59649
59650         * build-aux/bootstrap (gnulib_name): New variable.
59651         (gnulib_tool_options): Use it.
59652
59653 2007-03-13  Simon Josefsson  <simon@josefsson.org>
59654
59655         * tests/test-des.c: Use new namespace.
59656
59657 2007-03-15  Bruno Haible  <bruno@clisp.org>
59658
59659         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
59660         Reported by James Youngman <jay@gnu.org>.
59661
59662 2007-03-15  Bruno Haible  <bruno@clisp.org>
59663
59664         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
59665         declared prototype. Needed with cc on OSF/1 5.1.
59666
59667 2007-03-15  Bruno Haible  <bruno@clisp.org>
59668
59669         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
59670         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
59671         (struct gl_list_implementation): Add dispose_fn argument to the
59672         'create_empty', 'create' methods.
59673         (struct gl_list_impl_base): Add field 'dispose_fn'.
59674         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
59675         argument.
59676         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
59677         dispose_fn argument.
59678         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
59679         dispose_fn on the dropped values.
59680         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
59681         dispose_fn argument.
59682         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
59683         dropped values.
59684         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
59685         (gl_tree_remove_node): Call dispose_fn on the dropped value.
59686         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
59687         (gl_tree_remove_node): Call dispose_fn on the dropped value.
59688         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
59689         argument.
59690         (gl_tree_list_free): Call dispose_fn on the dropped values.
59691         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
59692         the dropped values.
59693         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
59694         Add dispose_fn argument.
59695         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
59696         Call dispose_fn on the dropped values.
59697         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
59698         Add dispose_fn argument.
59699         (gl_sublist_create): Initialize the 'dispose_fn' field.
59700         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
59701         * tests/test-array_list.c (main): Update.
59702         * tests/test-carray_list.c (main): Update.
59703         * tests/test-avltree_list.c (main): Update.
59704         * tests/test-rbtree_list.c (main): Update.
59705         * tests/test-avltreehash_list.c (main): Update.
59706         * tests/test-rbtreehash_list.c (main): Update.
59707         * tests/test-linked_list.c (main): Update.
59708         * tests/test-linkedhash_list.c (main): Update.
59709         * tests/test-array_oset.c (main): Update.
59710
59711 2007-03-15  Bruno Haible  <bruno@clisp.org>
59712
59713         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
59714         (gl_oset_create_empty): Add dispose_fn argument.
59715         (struct gl_oset_implementation): Add dispose_fn argument to
59716         'create_empty' method.
59717         (struct gl_oset_impl_base): Add dispose_fn field.
59718         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
59719         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
59720         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
59721         values.
59722         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
59723         (gl_tree_oset_free): Call dispose_fn on the dropped values.
59724         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
59725         dropped value.
59726         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
59727         dropped value.
59728         * tests/test-array_oset.c (main): Update.
59729         * tests/test-avltree_oset.c (main): Update.
59730         * tests/test-rbtree_oset.c (main): Update.
59731         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
59732
59733 2007-03-13  Bruno Haible  <bruno@clisp.org>
59734
59735         * tests/test-stdbool.c (i): Update after last patch.
59736
59737 2007-03-12  Bruno Haible  <bruno@clisp.org>
59738
59739         * lib/quotearg.c: Include <wctype.h> early, before the definition of
59740         the iswprint macro. Needed on Solaris 2.5.1.
59741
59742 2007-03-12  Bruno Haible  <bruno@clisp.org>
59743
59744         * tests/test-printf-frexp.c (main): Declare x as volatile.
59745
59746 2007-03-12  Simon Josefsson  <simon@josefsson.org>
59747
59748         * doc/gnulib.texi (Build robot for gnulib): New section.
59749
59750 2007-03-12  Jim Meyering  <jim@meyering.net>
59751
59752         * build-aux/bootstrap: New file.
59753         * build-aux/bootstrap.conf: New file, from coreutils.
59754
59755 2007-03-11  Bruno Haible  <bruno@clisp.org>
59756
59757         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
59758
59759 2007-03-12  Simon Josefsson  <simon@josefsson.org>
59760
59761         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
59762         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
59763         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
59764
59765 2007-03-11  Bruno Haible  <bruno@clisp.org>
59766
59767         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
59768         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
59769
59770 2007-03-11  Bruno Haible  <bruno@clisp.org>
59771
59772         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
59773         formula. Needed for SunPRO C 5.0.
59774
59775 2007-03-11  Bruno Haible  <bruno@clisp.org>
59776
59777         * modules/long-options (Depends-on): Add getopt.
59778
59779 2007-03-11  Bruno Haible  <bruno@clisp.org>
59780
59781         * modules/modechange (Depends-on): Add stdbool.
59782
59783 2007-03-11  Bruno Haible  <bruno@clisp.org>
59784
59785         * modules/i-ring (Depends-on): Add stdbool.
59786
59787 2007-03-11  Bruno Haible  <bruno@clisp.org>
59788
59789         * modules/gc-des (Depends-on): Add stdbool.
59790
59791 2007-03-11  Bruno Haible  <bruno@clisp.org>
59792
59793         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
59794
59795 2007-03-11  Bruno Haible  <bruno@clisp.org>
59796
59797         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
59798
59799 2007-03-11  Bruno Haible  <bruno@clisp.org>
59800
59801         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
59802
59803 2007-03-11  Bruno Haible  <bruno@clisp.org>
59804
59805         * lib/vasnprintf.c (sprintf): Undefine.
59806
59807 2007-03-11  Bruno Haible  <bruno@clisp.org>
59808
59809         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
59810         initializers in SunPRO C and Compaq C compilers.
59811
59812 2007-03-11  Bruno Haible  <bruno@clisp.org>
59813
59814         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
59815         decrementing code ANSI C compliant.
59816
59817 2007-03-11  Bruno Haible  <bruno@clisp.org>
59818
59819         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
59820         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
59821
59822 2007-03-11  Bruno Haible  <bruno@clisp.org>
59823
59824         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
59825         <stdbool.h> substitute doesn't pass.
59826
59827 2007-03-11  Bruno Haible  <bruno@clisp.org>
59828
59829         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
59830
59831 2007-03-11  Bruno Haible  <bruno@clisp.org>
59832
59833         * gnulib-tool (func_create_megatestdir): Create also an autobuild
59834         script, for submission to autobuild.josefsson.org.
59835
59836 2007-03-10  Bruno Haible  <bruno@clisp.org>
59837
59838         * modules/canonicalize-lgpl-tests: New file.
59839         * tests/test-canonicalize-lgpl.sh: New file.
59840         * tests/test-canonicalize-lgpl.c: New file.
59841
59842         * modules/c-strcase-tests: New file.
59843         * tests/test-c-strcase.sh: New file.
59844         * tests/test-c-strcasecmp.c: New file.
59845         * tests/test-c-strncasecmp.c: New file.
59846
59847         * modules/atexit-tests: New file.
59848         * tests/test-atexit.sh: New file.
59849         * tests/test-atexit.c: New file.
59850
59851 2007-03-10  Bruno Haible  <bruno@clisp.org>
59852
59853         * tests/test-binary-io.sh: Use temporary filenames that are not so
59854         likely to clash with those of other tests (in a parallel make).
59855         * tests/test-binary-io.c: Likewise.
59856
59857 2007-03-10  Bruno Haible  <bruno@clisp.org>
59858
59859         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
59860         fallback; use #error instead.
59861         Suggested by Simon Josefsson.
59862
59863 2007-03-10  Bruno Haible  <bruno@clisp.org>
59864
59865         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
59866         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
59867         first and the last.
59868
59869 2007-03-10  Bruno Haible  <bruno@clisp.org>
59870
59871         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
59872
59873 2007-03-10  Bruno Haible  <bruno@clisp.org>
59874
59875         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
59876         "make distcheck".
59877         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
59878         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
59879         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
59880
59881 2007-03-10  Bruno Haible  <bruno@clisp.org>
59882
59883         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
59884         variable.
59885         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
59886         variable.
59887
59888 2007-03-09  Eric Blake  <ebb9@byu.net>
59889         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
59890
59891         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
59892         types are not being provided by gnulib.
59893         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
59894         types are supported.
59895
59896 2007-03-10  Bruno Haible  <bruno@clisp.org>
59897
59898         * lib/stdio_.h (__attribute__): New macro.
59899         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
59900         vsprintf): Specify __attribute__ __format__ for GCC.
59901         Suggested by Eric Blake.
59902
59903 2007-03-09  Bruno Haible  <bruno@clisp.org>
59904
59905         * modules/printf-posix-tests: New file.
59906         * tests/test-printf-posix.sh: New file.
59907         * tests/test-printf-posix.c: New file.
59908
59909         * modules/printf-posix: New file.
59910         * lib/printf.c: New file.
59911         * m4/printf-posix-rpl.m4: New file.
59912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
59913         REPLACE_PRINTF.
59914         * lib/stdio_.h (printf): New declaration.
59915         (format, __format__, ____printf____, ____scanf____, ____strftime____,
59916         ____strfmon____): New macros.
59917         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
59918         REPLACE_PRINTF.
59919
59920 2007-03-09  Bruno Haible  <bruno@clisp.org>
59921
59922         * tests/test-vasnprintf-posix2.sh: New file.
59923         * tests/test-vasnprintf-posix2.c: New file.
59924         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
59925         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
59926         (Makefile.am): Activate test-vasnprintf-posix2.sh.
59927
59928         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
59929         a locale dependent decimal point, rather than always '.'.
59930
59931 2007-03-09  Eric Blake  <ebb9@byu.net>
59932
59933         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
59934         spite of platforms like Tandem/NSK that define it to -1.
59935
59936 2007-03-08  Bruno Haible  <bruno@clisp.org>
59937
59938         * modules/vprintf-posix-tests: New file.
59939         * tests/test-vprintf-posix.sh: New file.
59940         * tests/test-vprintf-posix.c: New file.
59941         * tests/test-printf-posix.h: New file.
59942
59943         * modules/vprintf-posix: New file.
59944         * lib/vprintf.c: New file.
59945         * m4/vprintf-posix.m4: New file.
59946         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
59947         REPLACE_VPRINTF.
59948         * lib/stdio_.h (vprintf): New declaration.
59949         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
59950         REPLACE_VPRINTF.
59951
59952 2007-03-08  Bruno Haible  <bruno@clisp.org>
59953
59954         * modules/fprintf-posix-tests: New file.
59955         * tests/test-fprintf-posix.sh: New file.
59956         * tests/test-fprintf-posix.c: New file.
59957
59958         * modules/fprintf-posix: New file.
59959         * lib/fprintf.c: New file.
59960         * m4/fprintf-posix.m4: New file.
59961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
59962         REPLACE_FPRINTF.
59963         * lib/stdio_.h (fprintf): New declaration.
59964         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
59965         REPLACE_FPRINTF.
59966
59967 2007-03-08  Bruno Haible  <bruno@clisp.org>
59968
59969         * modules/vfprintf-posix-tests: New file.
59970         * tests/test-vfprintf-posix.sh: New file.
59971         * tests/test-vfprintf-posix.c: New file.
59972         * tests/test-fprintf-posix.h: New file.
59973         * tests/test-fprintf-posix.out: New file.
59974
59975         * modules/vfprintf-posix: New file.
59976         * lib/vfprintf.c: New file.
59977         * m4/vfprintf-posix.m4: New file.
59978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
59979         REPLACE_VFPRINTF.
59980         * lib/stdio_.h (vfprintf): New declaration.
59981         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
59982         REPLACE_VFPRINTF.
59983
59984 2007-03-08  Bruno Haible  <bruno@clisp.org>
59985
59986         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
59987
59988 2007-03-08  Bruno Haible  <bruno@clisp.org>
59989
59990         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
59991         instead of 'expr' invocations.
59992         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59993         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59994         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59995         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59996         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59997         Suggested by Paul Eggert.
59998
59999 2007-03-08  Bruno Haible  <bruno@clisp.org>
60000
60001         * modules/fseterr-tests: New file.
60002         * tests/test-fseterr.c: New file.
60003
60004         * modules/fseterr: New file.
60005         * lib/fseterr.h: New file.
60006         * lib/fseterr.c: New file.
60007
60008 2007-03-08  Bruno Haible  <bruno@clisp.org>
60009
60010         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
60011         * lib/getopt_.h: Likewise.
60012         * lib/mbswidth.h: Likewise.
60013         * lib/setenv.h: Likewise.
60014         * lib/vasnprintf.h: Likewise.
60015         * lib/vasprintf.h: Likewise.
60016         * lib/verror.h: Likewise.
60017         * lib/xsetenv.h: Likewise.
60018         * lib/xvasprintf.h: Likewise.
60019
60020 2007-03-08  Jim Meyering  <jim@meyering.net>
60021
60022         * users.txt: Add parted.
60023
60024         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
60025
60026 2007-03-07  Bruno Haible  <bruno@clisp.org>
60027
60028         * m4/printf.m4: Make the shell script snippets copy&pastable.
60029
60030 2007-03-02  Bruno Haible  <bruno@clisp.org>
60031
60032         * lib/netinet_in_.h: New file.
60033         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
60034         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
60035         * modules/netinet_in (Files): Add lib/netinet_in_.h.
60036         (Depends-on): Add absolute-header.
60037         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
60038         into netinet/in.h.
60039
60040 2007-03-03  Bruno Haible  <bruno@clisp.org>
60041
60042         * lib/sys_select_.h: New file.
60043         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
60044         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
60045         * modules/sys_select (Files): Add lib/sys_select_.h.
60046         (Depends-on): Add absolute-header.
60047         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
60048         into sys/select.h.
60049
60050 2007-03-02  Bruno Haible  <bruno@clisp.org>
60051
60052         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
60053         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
60054         values.
60055         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
60056         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
60057         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
60058         * modules/sys_socket (Depends-on): Add absolute-header.
60059         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
60060         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
60061         (Include): Remove requirement of inclusion of <sys/types.h>.
60062
60063 2007-03-02  Bruno Haible  <bruno@clisp.org>
60064
60065         * lib/byteswap_.h (bswap_32): Fix formula.
60066
60067 2007-03-06  Bruno Haible  <bruno@clisp.org>
60068
60069         * modules/sprintf-posix-tests: New file.
60070         * tests/test-sprintf-posix.c: New file.
60071
60072         * modules/sprintf-posix: New file.
60073         * lib/sprintf.c: New file.
60074         * m4/sprintf-posix.m4: New file.
60075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
60076         REPLACE_SPRINTF.
60077         * lib/stdio_.h (sprintf): New declaration.
60078         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
60079         REPLACE_SPRINTF.
60080
60081 2007-03-06  Bruno Haible  <bruno@clisp.org>
60082
60083         * modules/vsprintf-posix-tests: New file.
60084         * tests/test-vsprintf-posix.c: New file.
60085         * tests/test-sprintf-posix.h: New file.
60086
60087         * modules/vsprintf-posix: New file.
60088         * lib/vsprintf.c: New file.
60089         * m4/vsprintf-posix.m4: New file.
60090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
60091         REPLACE_VSPRINTF.
60092         * lib/stdio_.h (vsprintf): New declaration.
60093         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
60094         REPLACE_VSPRINTF.
60095
60096 2007-03-06  Bruno Haible  <bruno@clisp.org>
60097
60098         * modules/vsnprintf (Depend-on): Remove minmax.
60099
60100 2007-03-06  Bruno Haible  <bruno@clisp.org>
60101
60102         * modules/snprintf-posix-tests: New file.
60103         * tests/test-snprintf-posix.c: New file.
60104
60105         * modules/snprintf-posix: New file.
60106         * m4/snprintf-posix.m4: New file.
60107         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
60108         gl_FUNC_SNPRINTF.
60109         (gl_FUNC_SNPRINTF): Invoke it.
60110         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
60111         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
60112         is set.
60113         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
60114
60115 2007-03-06  Bruno Haible  <bruno@clisp.org>
60116
60117         * modules/vsnprintf-posix-tests: New file.
60118         * tests/test-vsnprintf-posix.c: New file.
60119         * tests/test-snprintf-posix.h: New file.
60120
60121         * modules/vsnprintf-posix: New file.
60122         * m4/vsnprintf-posix.m4: New file.
60123         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
60124         gl_FUNC_VSNPRINTF.
60125         (gl_FUNC_VSNPRINTF): Invoke it.
60126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
60127         * lib/stdio_.h (vsnprintf): Define as a replacement if
60128         REPLACE_VSNPRINTF is set.
60129         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
60130
60131 2007-03-06  Bruno Haible  <bruno@clisp.org>
60132
60133         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
60134         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
60135
60136 2007-03-06  Bruno Haible  <bruno@clisp.org>
60137
60138         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
60139         (asinl): Declare also if HAVE_DECL_ASINL is set.
60140         (atanl): Declare also if HAVE_DECL_ATANL is set.
60141         (ceill): Declare also if HAVE_DECL_CEILL is set.
60142         (cosl): Declare also if HAVE_DECL_COSL is set.
60143         (expl): Declare also if HAVE_DECL_EXPL is set.
60144         (floorl): Declare also if HAVE_DECL_FLOORL is set.
60145         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
60146         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
60147         (logl): Declare also if HAVE_DECL_LOGL is set.
60148         (sinl): Declare also if HAVE_DECL_SINL is set.
60149         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
60150         (tanl): Declare also if HAVE_DECL_TANL is set.
60151         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
60152         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
60153         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
60154         declaration of frexpl, ldexpl.
60155         * modules/printf-frexpl (Depends-on): Add math.
60156         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
60157
60158 2007-03-05  Bruno Haible  <bruno@clisp.org>
60159
60160         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
60161         frexpl and ldexpl are declared.
60162         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
60163
60164 2007-03-05  Bruno Haible  <bruno@clisp.org>
60165
60166         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
60167         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
60168
60169 2007-03-05  Bruno Haible  <bruno@clisp.org>
60170
60171         * lib/stdio_.h: Include <stddef.h>.
60172
60173 2007-03-05  Bruno Haible  <bruno@clisp.org>
60174
60175         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
60176
60177 2007-03-05  Bruno Haible  <bruno@clisp.org>
60178
60179         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
60180         NetBSD 4, from Ralf Wildenhues.
60181
60182 2007-03-04  Bruno Haible  <bruno@clisp.org>
60183
60184         * lib/vasprintf.h: Update #if logic for the case when the functions
60185         exist but are overridden.
60186
60187 2007-03-04  Bruno Haible  <bruno@clisp.org>
60188
60189         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
60190         implementations: glibc-2.4 and MacOS X 10.3.
60191         * tests/test-vasnprintf-posix.c (test_function): Test also the case
60192         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
60193         * tests/test-vasprintf-posix.c (test_function): Likewise.
60194
60195 2007-03-04  Bruno Haible  <bruno@clisp.org>
60196
60197         * modules/vasprintf-posix-tests: New file.
60198         * tests/test-vasprintf-posix.c: New file.
60199
60200         * modules/vasprintf-posix: New file.
60201         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
60202         defined.
60203         * m4/vasprintf-posix.m4: New file.
60204         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
60205         gl_FUNC_VASPRINTF.
60206         (gl_FUNC_VASPRINTF): Invoke it.
60207         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
60208         here.
60209         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
60210
60211 2007-03-04  Bruno Haible  <bruno@clisp.org>
60212
60213         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
60214         REPLACE_GETTIMEOFDAY.
60215         * modules/sys_time (Makefile.am): Likewise.
60216         * m4/sys_time_h.m4: Likewise.
60217         * m4/gettimeofday.m4: Likewise.
60218
60219 2007-03-04  Bruno Haible  <bruno@clisp.org>
60220
60221         * modules/vasnprintf-posix-tests: New file.
60222         * tests/test-vasnprintf-posix.c: New file.
60223
60224         * modules/vasnprintf-posix: New file.
60225         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
60226         printf-frexpl.h.
60227         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
60228         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
60229         REPLACE_VASNPRINTF is defined.
60230         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
60231         gl_FUNC_VASNPRINTF.
60232         (gl_FUNC_VASNPRINTF): Invoke it.
60233         * m4/vasnprintf-posix.m4: New file.
60234         * m4/printf.m4: New file.
60235
60236 2007-03-04  Bruno Haible  <bruno@clisp.org>
60237
60238         Compile progreloc.c only if --enable-relocatable is specified.
60239         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
60240         if --enable-relocatable was specified.
60241         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
60242         lib_SOURCES.
60243
60244 2007-03-04  Jim Meyering  <jim@meyering.net>
60245
60246         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
60247         Use it consistently, rather than enumerating errno constants.
60248
60249 2007-03-04  Bruno Haible  <bruno@clisp.org>
60250
60251         * modules/xvasprintf-tests: New file.
60252         * tests/test-xvasprintf.c: New file.
60253
60254         * modules/vasprintf-tests: New file.
60255         * tests/test-vasprintf.c: New file.
60256
60257         * modules/vasnprintf-tests: New file.
60258         * tests/test-vasnprintf.c: New file.
60259
60260         * modules/vsnprintf-tests: New file.
60261         * tests/test-vsnprintf.c: New file.
60262
60263         * modules/snprintf-tests: New file.
60264         * tests/test-snprintf.c: New file.
60265
60266 2007-03-04  Bruno Haible  <bruno@clisp.org>
60267
60268         Compile relocatable.c only if --enable-relocatable is specified.
60269         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
60270         gl_RELOCATABLE_LIBRARY.
60271         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
60272         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
60273         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
60274         gl_RELOCATABLE_LIBRARY.
60275         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
60276         (Makefile.am): Remove lib_SOURCES.
60277         * modules/relocatable-lib-lgpl (configure.ac): Invoke
60278         gl_RELOCATABLE_LIBRARY.
60279         (Makefile.am): Remove lib_SOURCES.
60280         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
60281         always.
60282         * modules/relocatable-prog-wrapper (configure.ac): Invoke
60283         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
60284
60285 2007-03-04  Bruno Haible  <bruno@clisp.org>
60286
60287         * modules/argmatch-tests: New file.
60288         * tests/test-argmatch.c: New file.
60289
60290         * tests/test-allocsa.c (main): Halve the number of loop runs.
60291
60292         * modules/alloca-opt-tests: New file.
60293         * tests/test-alloca-opt.c: New file.
60294
60295 2007-03-04  Jim Meyering  <jim@meyering.net>
60296
60297         Work around difference between Linux ACLs and Solaris 10 ZFS.
60298         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
60299         for EINVAL.
60300
60301 2007-03-03  Bruno Haible  <bruno@clisp.org>
60302
60303         * modules/relocatable-prog (Depends-on): Add back progreloc's
60304         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
60305
60306 2007-03-03  Bruno Haible  <bruno@clisp.org>
60307
60308         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
60309         * modules/relocatable-lib: New file.
60310
60311 2007-03-03  Bruno Haible  <bruno@clisp.org>
60312
60313         * modules/relocatable-prog: Renamed from modules/relocatable.
60314         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
60315
60316 2007-03-03  Bruno Haible  <bruno@clisp.org>
60317
60318         * modules/relocatable-script (Files): Add doc/relocatable.texi,
60319         m4/relocatable-lib.m4.
60320         (Depends-on): Remove 'relocatable'.
60321         (configure.ac): Add gl_RELOCATABLE_NOP.
60322
60323 2007-03-03  Bruno Haible  <bruno@clisp.org>
60324
60325         * modules/relocatable-prog-wrapper: New file.
60326         * modules/relocatable (Depends-on): Add it. Remove all other
60327         dependencies except progname.
60328         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
60329
60330         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
60331         (gl_FUNC_STRERROR): Nop.
60332         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
60333
60334         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
60335         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
60336
60337         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
60338         (gl_FUNC_READLINK): Update.
60339
60340         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
60341
60342 2007-03-03  Bruno Haible  <bruno@clisp.org>
60343
60344         * lib/xreadlink.c: Include <unistd.h> unconditionally.
60345         * modules/xreadlink (Depends-on): Add unistd.
60346         * modules/xreadlink-with-size (Depends-on): Likewise.
60347
60348 2007-03-03  Bruno Haible  <bruno@clisp.org>
60349
60350         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
60351         extracted from gt_FUNC_SETENV.
60352         (gt_FUNC_SETENV): Remove macro.
60353         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
60354         remove gt_FUNC_SETENV.
60355
60356 2007-03-03  Bruno Haible  <bruno@clisp.org>
60357
60358         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
60359         ENABLE_RELOCATABLE here.
60360         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
60361
60362 2007-03-03  Bruno Haible  <bruno@clisp.org>
60363
60364         * modules/rbtreehash-list-tests (Depends-on): Add progname.
60365         * tests/test-rbtreehash_list.c: Include progname.h.
60366         (main): Call set_program_name.
60367
60368         * modules/rbtree-oset-tests (Depends-on): Add progname.
60369         * tests/test-rbtree_oset.c: Include progname.h.
60370         (main): Call set_program_name.
60371
60372         * modules/rbtree-list-tests (Depends-on): Add progname.
60373         * tests/test-rbtree_list.c: Include progname.h.
60374         (main): Call set_program_name.
60375
60376         * modules/linked-list-tests (Depends-on): Add progname.
60377         * tests/test-linked_list.c: Include progname.h.
60378         (main): Call set_program_name.
60379
60380 2007-03-03  Bruno Haible  <bruno@clisp.org>
60381
60382         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
60383         All uses of __restrict changed to _Restrict_.
60384         * lib/glob_.h (__restrict): Remove macro.
60385
60386 2007-03-02  Bruno Haible  <bruno@clisp.org>
60387
60388         * modules/gettext (configure.ac): Require gettext infrastructure
60389         from version 0.16.1.
60390
60391 2007-03-02  Bruno Haible  <bruno@clisp.org>
60392
60393         * modules/linkedhash-list-tests (Depends-on): Add progname.
60394         * tests/test-linkedhash_list.c: Include progname.h.
60395         (main): Call set_program_name.
60396
60397         * modules/carray-list-tests (Depends-on): Add progname.
60398         * tests/test-carray_list.c: Include progname.h.
60399         (main): Call set_program_name.
60400
60401         * modules/avltreehash-list-tests (Depends-on): Add progname.
60402         * tests/test-avltreehash_list.c: Include progname.h.
60403         (main): Call set_program_name.
60404
60405         * modules/avltree-oset-tests (Depends-on): Add progname.
60406         * tests/test-avltree_oset.c: Include progname.h.
60407         (main): Call set_program_name.
60408
60409         * modules/avltree-list-tests (Depends-on): Add progname.
60410         * tests/test-avltree_list.c: Include progname.h.
60411         (main): Call set_program_name.
60412
60413         * modules/array-oset-tests (Depends-on): Add progname.
60414         * tests/test-array_oset.c: Include progname.h.
60415         (main): Call set_program_name.
60416
60417         * modules/array-list-tests (Depends-on): Add progname.
60418         * tests/test-array_list.c: Include progname.h.
60419         (main): Call set_program_name.
60420
60421         * modules/argp-tests (Depends-on): Add progname.
60422         * tests/test-argp.c: Include argp.h first. Include progname.h.
60423         (main): Call set_program_name.
60424
60425 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
60426
60427         * doc/gnulib-tool.texi (Initial import): Reword description of
60428         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
60429         limited effect even if defined after the first system include.
60430
60431 2007-03-01  Bruno Haible  <bruno@clisp.org>
60432
60433         * build-aux/config.libpath: Update to libtool-1.5.22.
60434         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
60435
60436 2007-03-01  Bruno Haible  <bruno@clisp.org>
60437
60438         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
60439         foo_CFLAGS.
60440         Reported by Ralf Wildenhues.
60441
60442 2007-03-01  Bruno Haible  <bruno@clisp.org>
60443
60444         * build-aux/install-reloc: Remove object files left over by some
60445         compilers.
60446         Reported by Ralf Wildenhues.
60447
60448 2007-03-01  Bruno Haible  <bruno@clisp.org>
60449
60450         * build-aux/install-reloc: Break long lines.
60451
60452 2007-03-01  Bruno Haible  <bruno@clisp.org>
60453
60454         * doc/relocatable.texi: Document that it may not work on OpenBSD.
60455         Reported by Ralf Wildenhues.
60456
60457 2007-03-01  Bruno Haible  <bruno@clisp.org>
60458
60459         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
60460         include ordering constraints.
60461
60462 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60463
60464         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
60465         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
60466         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
60467         as another example.
60468         * lib/time_.h: Fix misspelling.
60469         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60470         Require gl_HEADER_TIME_H_DEFAULTS.
60471         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
60472         * m4/time_r.m4 (gl_TIME_R): Likewise.
60473         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
60474
60475 2007-03-01  Bruno Haible  <bruno@clisp.org>
60476
60477         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
60478         * m4/utimens.m4 (gl_UTIMENS): Likewise.
60479
60480 2007-03-01  Jim Meyering  <jim@meyering.net>
60481
60482         * modules/xreadlink (Maintainer): Add my name.
60483         * modules/xreadlink-with-size (Depends-on): Alphabetize.
60484
60485 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
60486             Bruno Haible  <bruno@clisp.org>
60487
60488         * build-aux/install-reloc: Compile also c-ctype.c.
60489         * build-aux/relocatable.sh.in: New file.
60490         * doc/relocatable.texi: New file.
60491         * doc/relocatable-maint.texi: New file.
60492         * doc/gnulib.texi: Include relocatable-maint.texi.
60493         * lib/progreloc.c: Include unistd.h unconditionally.
60494         * lib/relocwrapper.c: Include unistd.h unconditionally.
60495         Include c-ctype.h.
60496         (add_dotbin): Use c_tolower.
60497         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
60498         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
60499         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
60500         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
60501         to m4/relocatable-lib.m4.
60502         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
60503         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
60504         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
60505         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
60506         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
60507         * modules/relocatable: New file.
60508         * modules/relocatable-lib: New file.
60509         * modules/relocatable-script: New file.
60510
60511 2007-02-28  Bruno Haible  <bruno@clisp.org>
60512
60513         Import --enable-relocatable infrastructure.
60514         * build-aux/config.libpath: New file, from GNU gettext.
60515         * build-aux/install-reloc: New file, from GNU gettext.
60516         * build-aux/reloc-ldflags: New file, from GNU gettext.
60517         * lib/relocatable.h: New file, from GNU gettext.
60518         * lib/relocatable.c: New file, from GNU gettext.
60519         * lib/relocwrapper.c: New file, from GNU gettext.
60520         * m4/relocatable.m4: New file, from GNU gettext.
60521
60522 2007-02-28  Bruno Haible  <bruno@clisp.org>
60523
60524         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
60525
60526         * modules/xreadlink: New file, from GNU gettext with modifications.
60527         * lib/xreadlink.c: New file, from GNU gettext.
60528         * lib/xreadlink.h: Add comments.
60529         (xreadlink): New declaration.
60530
60531         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
60532         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
60533         lib/xreadlink-with-size.c.
60534         (configure.ac): Remove gl_XREADLINK invocation.
60535         (Makefile.am): Augment lib_SOURCES.
60536         * m4/xreadlink.m4: Remove file.
60537         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
60538         (xreadlink_with_size): Renamed from xreadink.
60539         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
60540         * modules/canonicalize (Depends-on): Replace xreadlink with
60541         xreadlink-with-size.
60542         * lib/canonicalize.c (canonicalize_filename_mode): Update.
60543
60544 2007-02-25  Jim Meyering  <jim@meyering.net>
60545
60546         * build-aux/announce-gen: When complaining about excess arguments,
60547         list them.
60548
60549 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60550
60551         * README: Document signed integer overflow situation more
60552         accurately.
60553
60554 2007-02-25  Bruno Haible  <bruno@clisp.org>
60555
60556         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
60557         'a' or 'A' conversion.
60558
60559 2007-02-25  Bruno Haible  <bruno@clisp.org>
60560
60561         * modules/filename: Renamed from modules/pathname.
60562         (Files): Replace lib/pathname.h with lib/filename.h. Replace
60563         lib/concatpath.c with lib/concat-filename.c.
60564         (Makefile.am): Update.
60565         (Include): Replace pathname.h with filename.h.
60566         * lib/filename.h: Renamed from lib/pathname.h.
60567         (concatenated_filename): Renamed from concatenated_pathname.
60568         * lib/concat-filename.c: Renamed from lib/concatpath.c.
60569         (concatenated_filename): Renamed from concatenated_pathname.
60570         * lib/findprog.c: Include filename.h instead of pathname.h.
60571         (find_in_path): Update.
60572         * lib/javacomp.c: Include filename.h instead of pathname.h.
60573         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
60574         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
60575         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
60576         is_oldgcj_14_13_usable, is_javac_usable): Update.
60577         * lib/javaexec.c: Include filename.h instead of pathname.h.
60578         (execute_java_class): Update.
60579         * modules/findprog: Update.
60580         * modules/javacomp: Update.
60581         * modules/javaexec: Update.
60582         * MODULES.html.sh (File system functions): Add 'filename', remove
60583         'pathname'.
60584
60585 2007-02-25  Bruno Haible  <bruno@clisp.org>
60586
60587         * modules/printf-frexpl-tests: New file.
60588         * tests/test-printf-frexpl.c: New file.
60589
60590         * modules/printf-frexpl: New file.
60591         * lib/printf-frexpl.h: New file.
60592         * lib/printf-frexpl.c: New file.
60593         * m4/printf-frexpl.m4: New file.
60594
60595 2007-02-25  Bruno Haible  <bruno@clisp.org>
60596
60597         * modules/printf-frexp-tests: New file.
60598         * tests/test-printf-frexp.c: New file.
60599
60600         * modules/printf-frexp: New file.
60601         * lib/printf-frexp.h: New file.
60602         * lib/printf-frexp.c: New file.
60603         * m4/printf-frexp.m4: New file.
60604
60605 2007-02-25  Bruno Haible  <bruno@clisp.org>
60606
60607         Assume automake >= 1.10 for the tests.
60608         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
60609         * modules/arctwo-tests: Likewise.
60610         * modules/argp-tests: Likewise.
60611         * modules/avltree-list-tests: Likewise.
60612         * modules/avltree-oset-tests: Likewise.
60613         * modules/avltreehash-list-tests: Likewise.
60614         * modules/carray-list-tests: Likewise.
60615         * modules/crc-tests: Likewise.
60616         * modules/des-tests: Likewise.
60617         * modules/gc-arcfour-tests: Likewise.
60618         * modules/gc-arctwo-tests: Likewise.
60619         * modules/gc-des-tests: Likewise.
60620         * modules/gc-hmac-md5-tests: Likewise.
60621         * modules/gc-hmac-sha1-tests: Likewise.
60622         * modules/gc-md2-tests: Likewise.
60623         * modules/gc-md4-tests: Likewise.
60624         * modules/gc-md5-tests: Likewise.
60625         * modules/gc-pbkdf2-sha1-tests: Likewise.
60626         * modules/gc-rijndael-tests: Likewise.
60627         * modules/gc-sha1-tests: Likewise.
60628         * modules/gc-tests: Likewise.
60629         * modules/getaddrinfo-tests: Likewise.
60630         * modules/hmac-md5-tests: Likewise.
60631         * modules/hmac-sha1-tests: Likewise.
60632         * modules/linked-list-tests: Likewise.
60633         * modules/linkedhash-list-tests: Likewise.
60634         * modules/lock-tests: Likewise.
60635         * modules/md2-tests: Likewise.
60636         * modules/md4-tests: Likewise.
60637         * modules/md5-tests: Likewise.
60638         * modules/rbtree-list-tests: Likewise.
60639         * modules/rbtree-oset-tests: Likewise.
60640         * modules/rbtreehash-list-tests: Likewise.
60641         * modules/read-file-tests: Likewise.
60642         * modules/rijndael-tests: Likewise.
60643         * modules/stdint-tests: Likewise.
60644         * modules/tls-tests: Likewise.
60645
60646 2007-02-24  Bruno Haible  <bruno@clisp.org>
60647
60648         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
60649         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
60650         function; instead check whether isnan with a double argument links.
60651         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
60652         function; instead check whether isnan with a 'long double' argument
60653         links.
60654         Reported by Eric Blake <ebb9@byu.net>.
60655
60656 2007-02-24  Bruno Haible  <bruno@clisp.org>
60657
60658         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
60659         defined.
60660         * lib/isnanl.c: Remove all code. Just include isnan.c.
60661         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
60662
60663 2007-02-25  Jim Meyering  <jim@meyering.net>
60664
60665         Avoid conflicting types for 'unsetenv' on FreeBSD.
60666         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
60667         conflicting with FreeBSD's (5.0 and 6.1) function declaration
60668         in stdlib.h.
60669
60670 2007-02-24  Bruno Haible  <bruno@clisp.org>
60671
60672         * modules/isnanl-nolibm-tests: New file.
60673         * tests/test-isnanl.c: New file.
60674
60675         * modules/isnanl-nolibm: New file.
60676         * lib/isnanl.h: New file.
60677         * lib/isnanl.c: New file.
60678         * m4/isnanl.m4: New file.
60679
60680 2007-02-24  Bruno Haible  <bruno@clisp.org>
60681
60682         * modules/isnan-nolibm-tests: New file.
60683         * tests/test-isnan.c: New file.
60684
60685         * modules/isnan-nolibm: New file.
60686         * lib/isnan.h: New file.
60687         * lib/isnan.c: New file.
60688         * m4/isnan.m4: New file.
60689
60690 2007-02-24  Bruno Haible  <bruno@clisp.org>
60691
60692         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
60693         assume that an exponent fits in 20 bits.
60694
60695 2007-02-24  Jim Meyering  <jim@meyering.net>
60696
60697         * m4/regex.m4: Update the description of the configure-time option,
60698         --without-included-regex, to state accurately what the defaults are,
60699         and perhaps to give people an idea why using this option is risky.
60700
60701 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
60702
60703         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
60704         loops on small arguments.  This attempts to avoid the problem
60705         Bruno Haible reported for AIX 4.3.2 in
60706         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
60707
60708 2007-02-23  Bruno Haible  <bruno@clisp.org>
60709
60710         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
60711         Needed for help2man.
60712
60713 2007-02-23  Karl Berry  <karl@gnu.org>
60714
60715         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
60716         exists, foo.h should be cvs-ignored, not committed.
60717
60718 2007-02-23  Eric Blake  <ebb9@byu.net>
60719
60720         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
60721         * lib/stat-time.h (includes): Likewise.
60722         * lib/utimecmp.c (includes): Likewise.
60723         * lib/utimens.h (includes): Likewise.
60724         * lib/getdate.y (includes): Also include "timespec.h" for use
60725         internal to the module.
60726         * modules/utimens (Depends-on): Revert yesterday's patch.
60727         * modules/nanosleep (Depends-on): Add missing dependency.
60728
60729 2007-02-22  Bruno Haible  <bruno@clisp.org>
60730
60731         * lib/glob.c: Don't include getlogin_r.h.
60732
60733 2007-02-22  Jim Meyering  <jim@meyering.net>
60734
60735         * modules/utimens (Depends-on): Add timespec, required for
60736         utimens.h's inclusion of timespec.h.
60737
60738 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
60739
60740         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
60741         long unreadable paths in GNU/Linux.  Problem reported by Andreas
60742         Schwab in
60743         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
60744         I'll try to think of a better way to fix the Solaris problem.
60745
60746         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
60747         like glibc; on Solaris 10, it fails with errno == EINVAL.
60748         POSIX says the behavior is unspecified if the first argument is NULL,
60749         so play it safe and never pass NULL to the system getcwd.
60750
60751 2007-02-21  Jim Meyering  <jim@meyering.net>
60752
60753         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
60754         of gettimeofday.  It would conflict with the one now always
60755         provided via sys_time_.h.  Reported by Matthew Woehlke, as
60756         an IRIX 6.5 build failure.
60757
60758 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
60759
60760         Minor fixups to port to Solaris 10 with Sun C 5.8.
60761         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
60762         * modules/getcwd (Depends-on): Add dirfd.
60763         * lib/putenv.c (putenv): #undef it.
60764         (rpl_putenv): New decl.
60765         (malloc, free): Include <stdlib.h> rather than prototyping separately.
60766
60767 2007-02-20  Bruno Haible  <bruno@clisp.org>
60768
60769         * modules/stdio-tests: New file.
60770         * tests/test-stdio.c: New file.
60771
60772         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
60773         (Depends-on): Add stdio.
60774         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
60775         (Include): Use <stdio.h> instead of vsnprintf.h.
60776         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
60777         HAVE_DECL_VSNPRINTF.
60778         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
60779
60780         * modules/snprintf (Files): Remove lib/snprintf.h.
60781         (Depends-on): Add stdio.
60782         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
60783         (Include): Use <stdio.h> instead of snprintf.h.
60784         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
60785         HAVE_DECL_SNPRINTF.
60786         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
60787         * lib/getaddrinfo.c: Likewise.
60788
60789         * modules/stdio: New file.
60790         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
60791         * lib/snprintf.h: Remove file.
60792         * lib/vsnprintf.h: Remove file.
60793         * lib/.cppi-disable: Remove snprintf.h.
60794         * m4/stdio_h.m4: New file.
60795         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
60796
60797 2007-02-20  Jim Meyering  <jim@meyering.net>
60798
60799         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
60800         used by e.g., mingw.  From Bruno Haible.
60801
60802 2007-02-19  Bruno Haible  <bruno@clisp.org>
60803
60804         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
60805         warnings.
60806         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60807
60808 2007-02-19  Bruno Haible  <bruno@clisp.org>
60809
60810         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
60811         from mingw users.
60812
60813 2007-02-19  Bruno Haible  <bruno@clisp.org>
60814
60815         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
60816         warnings.
60817         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
60818
60819 2007-02-19  Jim Meyering  <jim@meyering.net>
60820
60821         Don't use FD after a successful "fdopendir (fd)".
60822         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
60823         Reset it by calling dirfd on the just-obtained DIR*.
60824
60825         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
60826         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
60827
60828 2007-02-18  Bruno Haible  <bruno@clisp.org>
60829
60830         * lib/readlink.c: Include <unistd.h>.
60831         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
60832         HAVE_READLINK.
60833         * modules/readlink (Depends-on): Add unistd.
60834         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60835         (Include): Add <unistd.h>.
60836
60837         * lib/getlogin_r.h: Remove file.
60838         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
60839         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
60840         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
60841         HAVE_DECL_GETLOGIN_R.
60842         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
60843         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60844         (Include): Use <unistd.h> instead of getlogin_r.h.
60845
60846         * lib/getcwd.h: Remove file.
60847         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
60848         * lib/xgetcwd.c: Likewise.
60849         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
60850         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
60851         * modules/getcwd (Files): Remove lib/getcwd.h.
60852         (Depends-on): Add unistd.
60853         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60854         (Include): Use <unistd.h> instad of getcwd.h.
60855
60856         * lib/ftruncate.c: Include <unistd.h> first.
60857         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
60858         Set HAVE_FTRUNCATE.
60859         * modules/ftruncate (Depends-on): Add unistd.
60860         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60861
60862         * lib/fchdir.c: Include <unistd.h> first.
60863         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
60864         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
60865         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
60866         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60867         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
60868
60869         * lib/dup2.c: Include <unistd.h> first.
60870         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
60871         HAVE_DUP2.
60872         * modules/dup2 (Depends-on): Add unistd.
60873         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60874
60875         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
60876         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
60877         REPLACE_CHOWN. Don't define chown as a macro here.
60878         * modules/chown (Depends-on): Add unistd.
60879         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60880
60881         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
60882         Add definition for GL_LINK_WARNING.
60883         (chown, dup2): New declarations.
60884         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
60885         link warning.
60886         (ftruncate): New declaration.
60887         (getcwd): New declaration, taken from old getcwd.h.
60888         (getlogin_r): New declaration, taken from old getlogin_r.h.
60889         (readlink): New declaration.
60890         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
60891         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
60892         (gl_PREREQ_UNISTD): Remove macro.
60893         (gl_UNISTD_MODULE_INDICATOR): New macro.
60894         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
60895         many new variables. Don't set UNISTD_H.
60896         * modules/unistd (Description): Change.
60897         (Depends-on): Add link-warning.
60898         (configure.ac): Update.
60899         (Makefile.am): Create unistd.h always. Substitute many new variables
60900         into it.
60901
60902 2007-02-18  Bruno Haible  <bruno@clisp.org>
60903
60904         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
60905         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
60906         HAVE_GETSUBOPT.
60907         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
60908         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
60909         * lib/getsubopt.h: Remove file.
60910         * modules/getsubopt (Files): Remove lib/getsubopt.h.
60911         (Depends-on): Add stdlib.
60912         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60913         (Includes): Use <stdlib.h> instead of getsubopt.h.
60914         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
60915         Set HAVE_GETSUBOPT.
60916         * lib/getsubopt.c: Don't include getsubopt.h.
60917
60918 2007-02-18  Bruno Haible  <bruno@clisp.org>
60919
60920         * modules/fchdir (Depends-on): Add dup2.
60921
60922 2007-02-18  Bruno Haible  <bruno@clisp.org>
60923
60924         * lib/stdlib_.h: Handle glibc's special invocation convention
60925         specially.
60926
60927 2007-02-18  Bruno Haible  <bruno@clisp.org>
60928
60929         * modules/stdlib-tests: New file.
60930         * tests/test-stdlib.c: New file.
60931
60932         * modules/mkstemp (Files): Remove lib/mkstemp.h.
60933         (Depends-on): Add stdlib.
60934         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60935         (Includes): Use <stdlib.h> instead of mkstemp.h.
60936         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
60937         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
60938         * lib/mkstemp.c: Don't include mkstemp.h.
60939         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
60940         * lib/stdlib--.h: Don't include mkstemp.h.
60941
60942         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
60943         (Depends-on): Add stdlib.
60944         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60945         (Includes): Use <stdlib.h> instead of mkdtemp.h.
60946         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
60947         HAVE_MKDTEMP.
60948         * lib/mkdtemp.c: Don't include mkdtemp.h.
60949         * lib/clean-temp.c: Don't include mkdtemp.h.
60950
60951         * modules/exit (Files): Remove lib/exit.h.
60952         (Depends-on): Add stdlib.
60953         (Makefile.am): Remove lib_SOURCES.
60954         (Include): Use <stdlib.h> instead of exit.h.
60955         * lib/argmatch.c: Don't include exit.h.
60956         * lib/execute.c: Likewise.
60957         * lib/pagealign_alloc.c: Likewise.
60958         * lib/pipe.c: Likewise.
60959         * lib/wait-process.c: Likewise.
60960         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
60961         * lib/exitfail.c: Likewise.
60962         * lib/savewd.c: Likewise.
60963         * lib/xsetenv.c: Likewise.
60964
60965         * modules/stdlib: New file.
60966         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
60967         and extra comments about mkstemp().
60968         * lib/exit.h: Remove file.
60969         * lib/mkdtemp.h: Remove file.
60970         * lib/mkstemp.h: Remove file.
60971         * m4/stdlib_h.m4: New file.
60972         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
60973
60974 2007-02-18  Bruno Haible  <bruno@clisp.org>
60975
60976         * modules/math-tests: New file.
60977         * tests/test-math.c: New file.
60978
60979         * modules/math: New file.
60980         * modules/mathl (Files): Remove lib/mathl.h.
60981         (Depends-on): Add math.
60982         (Makefile.am): Don't mention mathl.h.
60983         (Include): Use <math.h> instead of mathl.h.
60984         * lib/math_.h: New file.
60985         * lib/mathl.h: Remove file.
60986         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
60987         mathl.h.
60988         * lib/asinl.c: Likewise.
60989         * lib/atanl.c: Likewise.
60990         * lib/ceill.c: Likewise.
60991         * lib/cosl.c: Likewise.
60992         * lib/expl.c: Likewise.
60993         * lib/floorl.c: Likewise.
60994         * lib/frexpl.c: Likewise.
60995         * lib/ldexpl.c: Likewise.
60996         * lib/logl.c: Likewise.
60997         * lib/sincosl.c: Likewise.
60998         * lib/sinl.c: Likewise.
60999         * lib/sqrtl.c: Likewise.
61000         * lib/tanl.c: Likewise.
61001         * lib/trigl.c: Likewise.
61002         * m4/math_h.m4: New file.
61003         * MODULES.html.sh (Mathematics): Add math.
61004
61005 2007-02-17  Bruno Haible  <bruno@clisp.org>
61006
61007         * modules/wctype-tests: New file.
61008         * tests/test-wctype.c: New file.
61009
61010         * modules/wchar-tests: New file.
61011         * tests/test-wchar.c: New file.
61012
61013         * modules/unistd-tests: New file.
61014         * tests/test-unistd.c: New file.
61015
61016         * modules/time-tests: New file.
61017         * tests/test-time.c: New file.
61018
61019         * modules/sysexits-tests: New file.
61020         * tests/test-sysexits.c: New file.
61021
61022         * modules/sys_time-tests: New file.
61023         * tests/test-sys_time.c: New file.
61024
61025         * modules/sys_stat-tests: New file.
61026         * tests/test-sys_stat.c: New file.
61027
61028         * modules/sys_socket-tests: New file.
61029         * tests/test-sys_socket.c: New file.
61030
61031         * modules/sys_select-tests: New file.
61032         * tests/test-sys_select.c: New file.
61033
61034         * modules/string-tests: New file.
61035         * tests/test-string.c: New file.
61036
61037         * modules/stdbool-tests: New file.
61038         * tests/test-stdbool.c: New file.
61039
61040         * modules/netinet_in-tests: New file.
61041         * tests/test-netinet_in.c: New file.
61042
61043         * modules/inttypes-tests: New file.
61044         * tests/test-inttypes.c: New file.
61045
61046         * modules/fcntl-tests: New file.
61047         * tests/test-fcntl.c: New file.
61048
61049         * modules/byteswap-tests: New file.
61050         * tests/test-byteswap.c: New file.
61051
61052         * modules/arpa_inet-tests: New file.
61053         * tests/test-arpa_inet.c: New file.
61054
61055 2007-02-17  Bruno Haible  <bruno@clisp.org>
61056
61057         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
61058         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
61059         if the corresponding module is not enabled. Emit link warnings if
61060         the function is used nevertheless.
61061         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
61062         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
61063         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
61064         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
61065         * modules/inttypes (Depends-on): Add link-warning.
61066         (Makefile.am): Copy the contents of build-aux/link-warning.h into
61067         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
61068         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
61069         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
61070         * modules/imaxdiv (configure.ac): Likewise.
61071         * modules/strtoimax (configure.ac): Likewise.
61072         * modules/strtoumax (configure.ac): Likewise.
61073
61074 2007-02-17  Bruno Haible  <bruno@clisp.org>
61075
61076         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
61077         gl_STRING_MODULE_INDICATOR_DEFAULTS.
61078         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
61079         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
61080
61081 2007-02-17  Bruno Haible  <bruno@clisp.org>
61082
61083         * modules/link-warning: New file.
61084         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
61085         * lib/string_.h (GL_LINK_WARNING): Remove definition.
61086         * modules/string (Depends-on): Add link-warning.
61087         (Makefile.am): Copy the contents of build-aux/link-warning.h into
61088         string.h.
61089         * MODULES.html.sh (Support for building libraries and executables): Add
61090         link-warning.
61091
61092 2007-02-17  Bruno Haible  <bruno@clisp.org>
61093
61094         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
61095         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
61096         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
61097         long lines.
61098
61099 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
61100             Bruno Haible  <bruno@clisp.org>
61101
61102         * modules/tmpfile: New file.
61103         * lib/tmpfile.c: New file.
61104         * m4/tmpfile.m4: New file.
61105         * MODULES.html.sh (func_all_modules): New section "Input/output".
61106
61107 2007-02-15  Bruno Haible  <bruno@clisp.org>
61108
61109         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
61110         (supports_delete_on_close): New function.
61111         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
61112
61113 2007-02-14  Bruno Haible  <bruno@clisp.org>
61114
61115         * modules/mbspcasecmp-tests: New file.
61116         * tests/test-mbspcasecmp.sh: New file.
61117         * tests/test-mbspcasecmp.c: New file.
61118
61119         New module mbspcasecmp.
61120         * modules/mbspcasecmp: New file.
61121         * lib/mbspcasecmp.c: New file.
61122         * lib/string_.h (strncasecmp): Change warning message.
61123         (mbspcasecmp): New declaration.
61124         * m4/mbspcasecmp.m4: New file.
61125         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61126         GNULIB_MBSPCASECMP.
61127         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
61128         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
61129
61130 2007-02-14  Bruno Haible  <bruno@clisp.org>
61131
61132         * modules/mbsncasecmp-tests: New file.
61133         * tests/test-mbsncasecmp.sh: New file.
61134         * tests/test-mbsncasecmp.c: New file.
61135
61136         New module mbsncasecmp.
61137         * modules/mbsncasecmp: New file.
61138         * lib/mbsncasecmp.c: New file.
61139         * lib/string_.h (mbsncasecmp): New declaration.
61140         * m4/mbsncasecmp.m4: New file.
61141         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61142         GNULIB_MBSNCASECMP.
61143         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
61144         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
61145
61146 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
61147
61148         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
61149         Verify that it doesn't overlap with our flags.
61150         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
61151         do not have the desired effect in multibyte locales; instead, use
61152         mbscasecmp.
61153         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
61154         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
61155         we don't require GNU fnmatch ourselves (if our users require it, they
61156         should do so explicitly).
61157
61158         Fix regex code so it doesn't rely on strcasecmp.
61159         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
61160         Otherwise, include gnulib's langinfo.h.
61161         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
61162         undesirable behavior in non-C locales.  Instead, rely on localecharset.
61163         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
61164         * modules/regex (FILES): Remove m4/codeset.m4.
61165         (Depends-on): Add localcharset.  Remove strcase.
61166
61167 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61168
61169         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
61170         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
61171
61172 2007-02-13  Bruno Haible  <bruno@clisp.org>
61173
61174         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
61175         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61176
61177 2007-02-12  Bruno Haible  <bruno@clisp.org>
61178
61179         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
61180         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
61181         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
61182         time warning rather than a link error.
61183
61184 2007-02-12  Bruno Haible  <bruno@clisp.org>
61185
61186         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
61187         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61188         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61189
61190 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
61191
61192         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
61193         args, not 2.
61194
61195 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
61196
61197         New module 'time', so that apps can include <time.h> as per
61198         POSIX and GNU instead of separate include files like time_r.h
61199         and timegm.h.  This implementation tries out a simpler approach
61200         for replacing decls in standard include files (as compared to
61201         the string module), somewhat as an experiment.
61202
61203         * config/srclist.txt: Comment out mktime.c for now.
61204         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
61205         since it doesn't apply any more.  Use generic wording instead.
61206         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
61207         'time'.
61208         * lib/time_.h, m4/time_h.m4, modules/time: New files.
61209         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
61210         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
61211         Don't include <sys/types.h>; no longer needed since we assume C89.
61212         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
61213         * lib/strftime.c: Likewise.
61214         * lib/time_r.c: Likewise.
61215         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
61216         * lib/nanosleep.c: Include <time.h> first, to check interface.
61217         * lib/strptime.c: Likewise.
61218         * lib/time_r.c: Likewise.
61219         * lib/timegm.c: Likewise.
61220         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
61221         needed.
61222         * lib/timegm.c: Don't include timegm.h; no longer needed.
61223         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
61224         time.h now handles any problems in that area.
61225         (struct timespec, nanosleep): Remove; time.h now arranges for these.
61226         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
61227         that time.h defines struct timespec.
61228         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
61229         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
61230         handles that.
61231         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
61232         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
61233         needed.  Set REPLACE_LOCALTIME.
61234         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
61235         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
61236         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
61237         nanosleep; time_h.m4 now does that.  Don't require
61238         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
61239         module handles this now.
61240         * modules/getdate (Depends-on): Remove timespec.  Add time.
61241         * modules/nanosleep (Depends-on): Likewise.
61242         * modules/stat-time (Depends-on): Likewise.
61243         * modules/nanosleep (Include): Include time.h, not timespec.h.
61244         * modules/strptime (Files): Remove lib/strptime.h.
61245         (Depends-on): Add extensions, time.
61246         (Include): Include time.h, not strptime.h.
61247         * modules/time_r (Files): Remove lib/time_r.h.
61248         (Depends-on): Add time.
61249         (Include): Include time.h, not time_r.h.
61250         * modules/timegm: Likewise.
61251         * modules/timespec (Description): Now does timespec-related decls
61252         of our own, instead of struct timespec itself.
61253         (Depends-on): Add time; remove extensions.
61254         (Maintainer): Add self.
61255         * modules/utimecmp (Depends-on): Add time; remove timespec.
61256         * modules/utimens (Depends-on): Likewise.
61257         * modules/xnanosleep (Depends-on): Likewise.
61258
61259 2007-02-11  Bruno Haible  <bruno@clisp.org>
61260
61261         * lib/c-strstr.c: Include allocsa.h.
61262         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
61263         * lib/c-strcasestr.c: Include allocsa.h.
61264         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
61265         * lib/strcasestr.c: Include allocsa.h.
61266         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
61267         * lib/mbsstr.c: Include allocsa.h.
61268         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
61269         allocsa/freesa instead of malloc/free.
61270         * lib/mbscasestr.c: Include allocsa.h.
61271         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
61272         allocsa/freesa instead of malloc/free.
61273         * modules/c-strstr (Depends-on): Add allocsa.
61274         * modules/c-strcasestr (Depends-on): Likewise.
61275         * modules/strcasestr (Depends-on): Likewise.
61276         * modules/mbsstr (Depends-on): Likewise.
61277         * modules/mbscasestr (Depends-on): Likewise.
61278
61279 2007-02-11  Bruno Haible  <bruno@clisp.org>
61280
61281         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
61282
61283         * modules/mbsspn-tests: New file.
61284         * tests/test-mbsspn.sh: New file.
61285         * tests/test-mbsspn.c: New file.
61286
61287 2007-02-11  Bruno Haible  <bruno@clisp.org>
61288
61289         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
61290
61291         * modules/mbspbrk-tests: New file.
61292         * tests/test-mbspbrk.sh: New file.
61293         * tests/test-mbspbrk.c: New file.
61294
61295 2007-02-11  Bruno Haible  <bruno@clisp.org>
61296
61297         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
61298         unneeded cast.
61299
61300         * modules/mbscspn-tests: New file.
61301         * tests/test-mbscspn.sh: New file.
61302         * tests/test-mbscspn.c: New file.
61303
61304 2007-02-11  Bruno Haible  <bruno@clisp.org>
61305
61306         * modules/mbscasecmp-tests: New file.
61307         * tests/test-mbscasecmp.sh: New file.
61308         * tests/test-mbscasecmp.c: New file.
61309
61310 2007-02-11  Bruno Haible  <bruno@clisp.org>
61311
61312         Ensure O(n) worst-case complexity of mbscasestr.
61313         * lib/mbscasestr.c: Include stdbool.h.
61314         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
61315         functions.
61316         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
61317         the bookkeeping indicates that it's worth it.
61318         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
61319
61320         * modules/mbscasestr-tests: New file.
61321         * tests/test-mbscasestr1.c: New file.
61322         * tests/test-mbscasestr2.sh: New file.
61323         * tests/test-mbscasestr2.c: New file.
61324         * tests/test-mbscasestr3.sh: New file.
61325         * tests/test-mbscasestr3.c: New file.
61326         * tests/test-mbscasestr4.sh: New file.
61327         * tests/test-mbscasestr4.c: New file.
61328         * m4/locale-tr.m4: New file.
61329
61330 2007-02-11  Bruno Haible  <bruno@clisp.org>
61331
61332         Ensure O(n) worst-case complexity of mbsstr.
61333         * lib/mbsstr.c: Include stdbool.h.
61334         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
61335         functions.
61336         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
61337         bookkeeping indicates that it's worth it.
61338         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
61339
61340         * modules/mbsstr-tests: New file.
61341         * tests/test-mbsstr1.c: New file.
61342         * tests/test-mbsstr2.sh: New file.
61343         * tests/test-mbsstr2.c: New file.
61344         * tests/test-mbsstr3.sh: New file.
61345         * tests/test-mbsstr3.c: New file.
61346         * m4/locale-fr.m4: New file.
61347
61348 2007-02-11  Bruno Haible  <bruno@clisp.org>
61349
61350         * lib/mbsrchr.c (mbsrchr): Fix bug.
61351
61352         * modules/mbsrchr-tests: New file.
61353         * tests/test-mbsrchr.sh: New file.
61354         * tests/test-mbsrchr.c: New file.
61355
61356 2007-02-11  Bruno Haible  <bruno@clisp.org>
61357
61358         * lib/mbschr.c (mbschr): Fix bug.
61359
61360         * modules/mbschr-tests: New file.
61361         * tests/test-mbschr.sh: New file.
61362         * tests/test-mbschr.c: New file.
61363         * m4/locale-zh.m4: New file.
61364
61365 2007-02-11  Bruno Haible  <bruno@clisp.org>
61366
61367         Support for copying multibyte string iterators.
61368         * lib/mbiter.h: Include <string.h>.
61369         (mbiter_multi_copy): New function.
61370         (mbi_copy): New macro.
61371         * lib/mbuiter.h: Include <string.h>.
61372         (mbuiter_multi_copy): New function.
61373         (mbui_copy): New macro.
61374
61375 2007-02-11  Bruno Haible  <bruno@clisp.org>
61376
61377         New module mbslen.
61378         * modules/mbslen: New file.
61379         * lib/mbslen.c: New file.
61380         * lib/string_.h (mbslen): New declaration.
61381         * m4/mbslen.m4: New file.
61382         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61383         GNULIB_MBSLEN.
61384         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
61385         * MODULES.html.sh (Internationalization functions): Add mbslen.
61386
61387 2007-02-11  Bruno Haible  <bruno@clisp.org>
61388
61389         Ensure O(n) worst-case complexity of strcasestr substitute.
61390         * lib/strcasestr.c: Include stdbool.h.
61391         (knuth_morris_pratt): New function.
61392         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
61393         bookkeeping indicates that it's worth it.
61394         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
61395
61396         * modules/strcasestr-tests: New file.
61397         * tests/test-strcasestr.c: New file.
61398
61399 2007-02-11  Bruno Haible  <bruno@clisp.org>
61400
61401         Ensure O(n) worst-case complexity of c_strcasestr.
61402         * lib/c-strcasestr.c: Include stdbool.h, string.h.
61403         (knuth_morris_pratt): New function.
61404         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
61405         the bookkeeping indicates that it's worth it.
61406         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
61407
61408         * modules/c-strcasestr-tests: New file.
61409         * tests/test-c-strcasestr.c: New file.
61410
61411 2007-02-11  Bruno Haible  <bruno@clisp.org>
61412
61413         Ensure O(n) worst-case complexity of c_strstr.
61414         * lib/c-strstr.c: Include stdbool.h, string.h.
61415         (knuth_morris_pratt): New function.
61416         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
61417         bookkeeping indicates that it's worth it.
61418         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
61419
61420         * lib/c-strstr.c: Complete rewrite for maintainability.
61421
61422         * modules/c-strstr-tests: New file.
61423         * tests/test-c-strstr.c: New file.
61424
61425 2007-02-11  Bruno Haible  <bruno@clisp.org>
61426
61427         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
61428         5.2.1 and earlier, whereby \055 was treated just like the range
61429         delimiter '-'.
61430         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
61431
61432 2007-02-08  Bruno Haible  <bruno@clisp.org>
61433
61434         * modules/regex (Depends-on): Add stdbool.
61435         Reported by Dalibor Topic <robilad@kaffe.org>.
61436
61437 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
61438
61439         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
61440         Prefer returning from main to exiting from it.
61441         Remove unnecessary parens after sizeof.
61442
61443 2007-02-05  Bruno Haible  <bruno@clisp.org>
61444
61445         New module mbssep.
61446         * modules/mbssep: New file.
61447         * lib/mbssep.c: New file.
61448         * lib/string_.h (strsep): Add a conditional link warning.
61449         (mbssep): New declaration.
61450         * m4/mbssep.m4: New file.
61451         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61452         GNULIB_MBSSEP.
61453         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
61454         * MODULES.html.sh (Internationalization functions): Add mbssep.
61455
61456 2007-02-05  Bruno Haible  <bruno@clisp.org>
61457
61458         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
61459         Optimize search in case of 1 delimiter.
61460
61461 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
61462
61463         * lib/acl.h: Include sys/types.h before sys/acl.h.
61464
61465 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
61466
61467         Merge upstream fix for glibc bugzilla #3957:
61468
61469         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
61470
61471         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
61472         bit for RE_HAT_LISTS_NOT_NEWLINE.
61473         (build_charclass_op): Remove bogus comment.
61474
61475 2007-02-05  Simon Josefsson  <simon@josefsson.org>
61476
61477         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
61478
61479 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
61480
61481         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
61482         * lib/memmem.c [!defined _LIBC]: Include config.h.
61483
61484 2007-02-04  Bruno Haible  <bruno@clisp.org>
61485
61486         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
61487         warning message.
61488
61489 2007-02-04  Bruno Haible  <bruno@clisp.org>
61490
61491         New module mbstok_r.
61492         * modules/mbstok_r: New file.
61493         * lib/mbstok_r.c: New file.
61494         * lib/string_.h (strtok_r): Change argument names to match the
61495         comments. Add a conditional link warning.
61496         (mbstok_r): New declaration.
61497         * m4/mbstok_r.m4: New file.
61498         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61499         GNULIB_MBSTOK_R.
61500         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
61501         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
61502
61503 2007-02-04  Bruno Haible  <bruno@clisp.org>
61504
61505         New module mbsspn.
61506         * modules/mbsspn: New file.
61507         * lib/mbsspn.c: New file.
61508         * lib/string_.h (strspn): Add a conditional link warning.
61509         (mbsspn): New declaration.
61510         * m4/mbsspn.m4: New file.
61511         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61512         GNULIB_MBSSPN.
61513         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
61514         * MODULES.html.sh (Internationalization functions): Add mbsspn.
61515
61516 2007-02-04  Bruno Haible  <bruno@clisp.org>
61517
61518         New module mbspbrk.
61519         * modules/mbspbrk: New file.
61520         * lib/mbspbrk.c: New file.
61521         * lib/string_.h (strpbrk): Add a conditional link warning.
61522         (mbspbrk): New declaration.
61523         * m4/mbspbrk.m4: New file.
61524         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61525         GNULIB_MBSPBRK.
61526         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
61527         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
61528
61529 2007-02-04  Bruno Haible  <bruno@clisp.org>
61530
61531         New module mbscspn.
61532         * modules/mbscspn: New file.
61533         * lib/mbscspn.c: New file.
61534         * lib/string_.h (strcspn): Add a conditional link warning.
61535         (mbscspn): New declaration.
61536         * m4/mbscspn.m4: New file.
61537         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61538         GNULIB_MBSCSPN.
61539         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
61540         * MODULES.html.sh (Internationalization functions): Add mbscspn.
61541
61542 2007-02-04  Bruno Haible  <bruno@clisp.org>
61543
61544         New module mbscasestr, reduced goal of strcasestr.
61545         * modules/mbscasestr: New file.
61546         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
61547         (mbscasestr): Renamed from strcasestr.
61548         * lib/strcasestr.c: Don't include mbuiter.h.
61549         (strcasestr): Remove support for multibyte locales.
61550         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
61551         Change the conditional link warning.
61552         (mbscasestr): New declaration.
61553         * m4/mbscasestr.m4: New file.
61554         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
61555         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
61556         REPLACE_STRCASESTR.
61557         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
61558         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61559         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
61560         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
61561         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
61562         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
61563         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
61564         (Depends-on): Remove mbuiter.
61565         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
61566
61567 2007-02-04  Bruno Haible  <bruno@clisp.org>
61568
61569         Simplify handling of strncasecmp.
61570         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
61571         the conditional link warning.
61572         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61573         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
61574         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
61575         * modules/strcase (configure.ac): Don't invoke
61576         gl_STRING_MODULE_INDICATOR.
61577         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
61578
61579 2007-02-04  Bruno Haible  <bruno@clisp.org>
61580
61581         New module mbscasecmp, reduced goal of strcasecmp.
61582         * modules/mbscasecmp: New file.
61583         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
61584         (mbscasecmp): Renamed from strcasecmp.
61585         * lib/strcasecmp.c: Don't include mbuiter.h.
61586         (strcasecmp): Remove support for multibyte locales.
61587         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
61588         Change the conditional link warning.
61589         (mbscasecmp): New declaration.
61590         * m4/mbscasecmp.m4: New file.
61591         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
61592         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
61593         REPLACE_STRCASECMP.
61594         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
61595         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61596         GNULIB_MBSCASECMP.
61597         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
61598         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
61599         * modules/strcase (Files): Remove m4/mbrtowc.m4.
61600         (Depends-on): Remove mbuiter.
61601         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
61602
61603 2007-02-04  Bruno Haible  <bruno@clisp.org>
61604
61605         New module mbsstr. Remove module strstr.
61606         * modules/mbsstr: New file.
61607         * modules/strstr: Remove file.
61608         * lib/mbsstr.c: Renamed from lib/strstr.c.
61609         (mbsstr): Renamed from strstr.
61610         * lib/string_.h (strstr): Remove declaration. Change the conditional
61611         link warning.
61612         (mbsstr): New declaration.
61613         * m4/mbsstr.m4: New file.
61614         * m4/strstr.m4: Remove file.
61615         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
61616         REPLACE_STRSTR.
61617         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
61618         Don't initialize GNULIB_STRSTR.
61619         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
61620         substitute GNULIB_STRSTR and REPLACE_STRSTR.
61621         * MODULES.html.sh (Internationalization functions): Add mbsstr.
61622         (Support for systems lacking ANSI C 89): Remove strstr.
61623
61624 2007-02-04  Bruno Haible  <bruno@clisp.org>
61625
61626         New module mbsrchr.
61627         * modules/mbsrchr: New file.
61628         * lib/mbsrchr.c: New file.
61629         * lib/string_.h (strrchr): Add a conditional link warning.
61630         (mbsrchr): New declaration.
61631         * m4/mbsrchr.m4: New file.
61632         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61633         GNULIB_MBSRCHR.
61634         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
61635         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
61636
61637 2007-02-04  Bruno Haible  <bruno@clisp.org>
61638
61639         New module mbschr.
61640         * modules/mbschr: New file.
61641         * lib/mbschr.c: New file.
61642         * lib/string_.h (strchr): Add a conditional link warning.
61643         (mbschr): New declaration.
61644         * m4/mbschr.m4: New file.
61645         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61646         GNULIB_MBSCHR.
61647         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
61648         * MODULES.html.sh (Internationalization functions): Add mbschr.
61649
61650 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
61651
61652         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
61653
61654         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
61655
61656 2007-02-04  Bruno Haible  <bruno@clisp.org>
61657
61658         New module description section 'configure.ac-early'.
61659         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
61660         (func_get_autoconf_early_snippet): New function.
61661         (func_import, func_create_testdir): Use it. Remove special cases for
61662         modules 'extensions' and 'lock'.
61663         * modules/extensions (configure.ac-early): Require
61664         gl_USE_SYSTEM_EXTENSIONS.
61665         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
61666
61667 2007-02-04  Bruno Haible  <bruno@clisp.org>
61668
61669         Make use of gcj-4.3's -fsource and -ftarget option.
61670         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
61671         and if so try the options -fsource and -ftarget.
61672         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
61673         source_version, ftarget_option, target_version arguments.
61674         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
61675         (is_envjavac_oldgcj_14_14_usable): Renamed from
61676         is_envjavac_gcj_14_14_usable.
61677         (is_envjavac_oldgcj_14_13_usable): Renamed from
61678         is_envjavac_gcj_14_13_usable.
61679         (is_gcj_present): Update.
61680         (is_gcj_43, is_gcj43_usable): New functions.
61681         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
61682         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
61683         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
61684         try the options -fsource and -ftarget.
61685
61686 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61687
61688         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
61689         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
61690         larger value.
61691
61692 2007-02-03  Jim Meyering  <jim@meyering.net>
61693
61694         Give tools a better chance to allocate space for very large buffers.
61695         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
61696
61697         Make pwd and readlink work also when run with an unreadable parent dir
61698         on systems with openat support.
61699         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
61700         provided getcwd function, even when we have openat support.
61701         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
61702
61703 2007-02-02  Bruno Haible  <bruno@clisp.org>
61704
61705         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
61706         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
61707         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
61708         portability problems if one of these functions is only used on specific
61709         platforms.
61710         Reported by Paul Eggert.
61711
61712 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
61713
61714         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
61715         is causing more trouble than it's curing.
61716         * lib/regex_internal.h (__mempcpy): Remove.
61717         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
61718         (and make the code a tad smaller to boot).
61719         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
61720
61721 2007-02-02  Jim Meyering  <jim@meyering.net>
61722
61723         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
61724         section, not in the Makefile.am: one.
61725
61726 2007-02-02  Eric Blake  <ebb9@byu.net>
61727
61728         * lib/strchrnul.c: Always include config.h first.
61729
61730         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
61731         gnulib strstr is not necessary here.
61732
61733 2007-02-02  Simon Josefsson  <simon@josefsson.org>
61734
61735         * m4/socklen.m4: Fix typo.
61736
61737 2007-02-02  Eric Blake  <ebb9@byu.net>
61738
61739         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
61740         * modules/netinet_in (Makefile.am): Likewise.
61741
61742 2007-02-01  Bruno Haible  <bruno@clisp.org>
61743
61744         * lib/string_.h (GL_LINK_WARNING): New macro.
61745         (strcasecmp, strstr, strcasestr): If provided by the system,
61746         conditionally define as a macro that leads to a warning instead of to
61747         an error.
61748         (strncasecmp): Conditionally define as a macro that leads to a warning.
61749
61750 2007-02-01  Karl Berry  <karl@gnu.org>
61751
61752         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
61753
61754 2007-02-01  Bruno Haible  <bruno@clisp.org>
61755
61756         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
61757         renamings.
61758
61759 2007-02-01  Eric Blake  <ebb9@byu.net>
61760
61761         * modules/regex (Depends-on): Revert dependence on mempcpy.
61762         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
61763         module's definition of mempcpy.
61764         Reported by Paul Eggert.
61765
61766 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
61767
61768         * lib/string_.h: If the gnulib module XYZ is not present, undefine
61769         the symbol XYZ before redefining it.  This fixes a problem with
61770         programs that don't use XYZ, when compiled on systems that define
61771         XYZ to something else.
61772
61773 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
61774
61775         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
61776         occurs when "mkdir -m foo" creates a setgid directory that is (1)
61777         writeable to group or other and (2) is intended to have a special
61778         mode bit that is set or cleared.  In such a case, the directory
61779         should be neither group- nor other-writeable until the special
61780         mode bits are right.
61781
61782 2007-01-31  Eric Blake  <ebb9@byu.net>
61783
61784         * modules/mountlist (Depends-on): Add strstr.
61785
61786         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
61787         bug.
61788         * modules/string (Makefile.am): Remove redundant replacement.
61789         * modules/regex (Depends-on): Add mempcpy.
61790
61791 2007-01-31  Bruno Haible  <bruno@clisp.org>
61792
61793         New module description field 'Link'.
61794         * gnulib-tool (func_usage): Document --extract-link-directive.
61795         (sed_extract_prog): Recognize 'Link' directive.
61796         (func_get_link_directive): New function.
61797         (func_import): Show summary of link directives.
61798         Handle --extract-link-directive option.
61799         * modules/acl (Link): New section.
61800         * modules/clock-time (Link): New section.
61801         * modules/euidaccess (Link): New section.
61802         * modules/gettext (Link): New section.
61803         * modules/iconv (Link): New section.
61804         * modules/lock (Link): New section.
61805         * modules/nanosleep (Link): New section.
61806         * modules/readline (Link): New section.
61807
61808 2007-01-27  Bruno Haible  <bruno@clisp.org>
61809
61810         Enforce the use of gnulib modules for unportable <string.h> functions.
61811         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
61812         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
61813         (gl_HEADER_STRING_H_BODY): Require it.
61814         * lib/string_.h: If the gnulib module XYZ is not present, redefine
61815         the symbol XYZ to one that gives a link error.
61816         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
61817         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
61818         * modules/mempcpy (configure.ac): Likewise.
61819         * modules/memrchr (configure.ac): Likewise.
61820         * modules/stpcpy (configure.ac): Likewise.
61821         * modules/stpncpy (configure.ac): Likewise.
61822         * modules/strcase (configure.ac): Likewise.
61823         * modules/strcasestr (configure.ac): Likewise.
61824         * modules/strchrnul (configure.ac): Likewise.
61825         * modules/strdup (configure.ac): Likewise.
61826         * modules/strndup (configure.ac): Likewise.
61827         * modules/strnlen (configure.ac): Likewise.
61828         * modules/strpbrk (configure.ac): Likewise.
61829         * modules/strsep (configure.ac): Likewise.
61830         * modules/strstr (configure.ac): Likewise.
61831         * modules/strtok_r (configure.ac): Likewise.
61832
61833 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
61834
61835         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
61836
61837 2007-01-30  Jim Meyering  <jim@meyering.net>
61838
61839         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
61840
61841 2007-01-29  Bruno Haible  <bruno@clisp.org>
61842
61843         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
61844         * lib/execute.c: Likewise.
61845         * lib/pipe.c: Likewise.
61846         * lib/printf-args.h: Likewise.
61847         * lib/printf-args.c: Likewise.
61848         * lib/printf-parse.c: Likewise.
61849         * lib/vasnprintf.c: Likewise.
61850
61851 2007-01-29  Eric Blake  <ebb9@byu.net>
61852
61853         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
61854         declaration.
61855
61856 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
61857
61858         * lib/strptime.h (strptime): Use 'restrict' for args where
61859         POSIX requires this.
61860         * lib/strptime.c (strptime): Likewise.
61861         Change license notice from LGPL to GPL, since gnulib-tool will
61862         change this as needed.
61863         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
61864         defined.
61865         Include "strptime.h" first, to check interface.
61866         Do not #undef _LIBC and _NL_CURRENT.
61867         Do not include <stdlib.h>; no longer needed.
61868         Include "time_r.h" and declare ptime_locale_status
61869         only if _LIBC is not defined.
61870         (__P): Remove unused macro.
61871         (match_string): Bring back glibc version, but use it only if _LIBC
61872         is defined.
61873         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
61874         Remove unnecessary assertion and abort() call.
61875         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
61876         * m4/strptime.m4: Fix serial number comment.
61877         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
61878         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
61879         (Depends-on): Add time_r.
61880
61881 2007-01-29  Bruno Haible  <bruno@clisp.org>
61882
61883         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61884         strptime.
61885         * modules/strptime (Depends-on): Add stdbool.
61886         * lib/strptime.h: Include <time.h> always. Add comments.
61887
61888 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61889
61890         * modules/strptime: New file.
61891         * lib/strptime.h: New file.
61892         * lib/strptime.c: New file.
61893         * m4/strptime.m4: New file.
61894
61895 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61896
61897         * MODULES.html.sh: New module mpsort.
61898         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
61899
61900         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
61901         a circularity problem with HP-UX ia64 reported by Bob Proulx in
61902         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
61903         All uses changed.
61904         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
61905         All uses changed.
61906         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
61907         to _Restrict_.
61908         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
61909         the parameter matches the prototype.
61910
61911 2007-01-28  Jim Meyering  <jim@meyering.net>
61912
61913         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
61914         sys/time.h here, reverting that part of the previous patch:
61915         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
61916
61917 2007-01-28  Bruno Haible  <bruno@clisp.org>
61918
61919         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
61920         value of $(SYS_TIME_H).
61921         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
61922         remove it conditionally, too. [added by Jim Meyering]
61923         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
61924         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61925         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
61926         GETTIMEOFDAY_REPLACEMENT to 1.
61927
61928 2007-01-28  Bruno Haible  <bruno@clisp.org>
61929
61930         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
61931         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
61932         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
61933         Set UNISTD_H instead of UNISTD_H2.
61934         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
61935
61936 2007-01-28  Bruno Haible  <bruno@clisp.org>
61937
61938         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
61939         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
61940
61941 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61942
61943         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
61944         (func_create_testdir): Ensure C locale for `grep' and `tr'
61945         character ranges.
61946         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
61947         ACLOCAL_AMFLAGS parsing state machine.
61948
61949 2007-01-27  Bruno Haible  <bruno@clisp.org>
61950
61951         * modules/unistr/base: Update.
61952
61953 2007-01-27  Bruno Haible  <bruno@clisp.org>
61954
61955         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
61956         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
61957         * modules/unistr/u32-mbtouc-unsafe: Renamed from
61958         modules/unistr/u32-mbtouc.
61959         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
61960         * lib/unistr.h: Update.
61961         * lib/linebreak.c: Update.
61962         * modules/unistr/u32-mbtouc: Renamed from
61963         modules/unistr/u32-mbtouc-safe.
61964         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
61965         * lib/unistr.h: Update.
61966         * lib/unistr/u32-to-u8.c: Update.
61967         * lib/unistr/u32-to-u16.c: Update.
61968
61969 2007-01-27  Bruno Haible  <bruno@clisp.org>
61970
61971         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
61972         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
61973         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
61974         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
61975         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
61976         * modules/unistr/u16-mbtouc-unsafe: Renamed from
61977         modules/unistr/u16-mbtouc.
61978         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
61979         * lib/unistr.h: Update.
61980         * lib/linebreak.c: Update.
61981         * modules/linebreak: Update.
61982         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
61983         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
61984         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
61985         * modules/unistr/u16-mbtouc: Renamed from
61986         modules/unistr/u16-mbtouc-safe.
61987         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
61988         * lib/unistr.h: Update.
61989         * lib/unistr/u16-to-u8.c: Update.
61990         * modules/unistr/u16-to-u8: Update.
61991         * lib/unistr/u16-to-u32.c: Update.
61992         * modules/unistr/u16-to-u32: Update.
61993
61994 2007-01-27  Bruno Haible  <bruno@clisp.org>
61995
61996         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
61997         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
61998         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
61999         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
62000         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
62001         * modules/unistr/u8-mbtouc-unsafe: Renamed from
62002         modules/unistr/u8-mbtouc.
62003         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
62004         * lib/unistr.h: Update.
62005         * lib/striconveh.c: Update.
62006         * modules/striconveh: Update.
62007         * lib/linebreak.c: Update.
62008         * modules/linebreak: Update.
62009         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
62010         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
62011         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
62012         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
62013         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
62014         * lib/unistr.h: Update.
62015         * lib/striconveh.c: Update.
62016         * modules/striconveh: Update.
62017         * lib/unistr/u8-to-u16.c: Update.
62018         * modules/unistr/u8-to-u16: Update.
62019         * lib/unistr/u8-to-u32.c: Update.
62020         * modules/unistr/u8-to-u32: Update.
62021
62022 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62023
62024         Sync from Libtool.
62025         * lib/argz.c: Do not include strings.h nor memory.h, include
62026         string.h unconditionally.  Patch by Simon Josefsson.
62027
62028 2007-01-27  Bruno Haible  <bruno@clisp.org>
62029
62030         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
62031         from gl_HEADER_STRING_H_BODY.
62032         (gl_HEADER_STRING_H_BODY): Require it.
62033         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
62034         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62035         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62036         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62037         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62038         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
62039         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62040         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62041         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
62042         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62043         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62044         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
62045         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62046         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
62047         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62048
62049 2007-01-27  Bruno Haible  <bruno@clisp.org>
62050
62051         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
62052         check_PROGRAMS into noinst_PROGRAMS.
62053         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
62054         check_PROGRAMS in this case.
62055         (func_import): Set for_test to false.
62056         (func_create_testdir): Set for_test to true.
62057
62058 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62059             Bruno Haible  <bruno@clisp.org>
62060
62061         * modules/strcasestr (Files): Remove lib/strcasestr.h.
62062         (Depends-on): Add string.
62063         (Includes): Use <string.h> instead of strcasestr.h.
62064         * modules/string (Makefile.am): Also substitute the value of
62065         REPLACE_STRCASESTR.
62066         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
62067         assume strcasestr is declared in <string.h> not <strings.h>. Also
62068         set REPLACE_STRCASESTR.
62069         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
62070         REPLACE_STRCASESTR.
62071         * lib/strcasestr.h: Remove file.
62072         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
62073         * lib/string_.h (strcasestr): New declaration.
62074
62075 2007-01-27  Bruno Haible  <bruno@clisp.org>
62076
62077         * lib/string_.h: Use 'extern'.
62078
62079 2007-01-27  Jim Meyering  <jim@meyering.net>
62080
62081         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
62082         of set-but-not-used local, "q".
62083
62084         * lib/mempcpy.c: Include <config.h> before <string.h>.
62085         This fixes a compilation error on HP-UX, due to the system's
62086         "restrict"-using mempcpy prototype.
62087
62088 2007-01-26  Bruno Haible  <bruno@clisp.org>
62089
62090         Small optimization.
62091         * lib/javacomp.c: Include c-strstr.h.
62092          (is_envjavac_gcj): Use c_strstr instead of strstr.
62093         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
62094
62095 2007-01-26  Bruno Haible  <bruno@clisp.org>
62096
62097         * MODULES.html.sh (Unicode string functions): Add the new modules.
62098
62099         * modules/uniconv/u32-strconv-to-locale: New file.
62100         * lib/uniconv/u32-strconv-to-locale.c: New file.
62101
62102         * modules/uniconv/u16-strconv-to-locale: New file.
62103         * lib/uniconv/u16-strconv-to-locale.c: New file.
62104
62105         * modules/uniconv/u8-strconv-to-locale: New file.
62106         * lib/uniconv/u8-strconv-to-locale.c: New file.
62107
62108         * modules/uniconv/u32-strconv-from-locale: New file.
62109         * lib/uniconv/u32-strconv-from-locale.c: New file.
62110
62111         * modules/uniconv/u16-strconv-from-locale: New file.
62112         * lib/uniconv/u16-strconv-from-locale.c: New file.
62113
62114         * modules/uniconv/u8-strconv-from-locale: New file.
62115         * lib/uniconv/u8-strconv-from-locale.c: New file.
62116
62117         * modules/uniconv/u32-strconv-to-enc: New file.
62118         * lib/uniconv/u32-strconv-to-enc.c: New file.
62119         * modules/uniconv/u32-strconv-to-enc-tests: New file.
62120         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
62121
62122         * modules/uniconv/u16-strconv-to-enc: New file.
62123         * lib/uniconv/u16-strconv-to-enc.c: New file.
62124         * lib/uniconv/u-strconv-to-enc.h: New file.
62125         * modules/uniconv/u16-strconv-to-enc-tests: New file.
62126         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
62127
62128         * modules/uniconv/u8-strconv-to-enc: New file.
62129         * lib/uniconv/u8-strconv-to-enc.c: New file.
62130         * modules/uniconv/u8-strconv-to-enc-tests: New file.
62131         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
62132
62133         * modules/uniconv/u32-strconv-from-enc: New file.
62134         * lib/uniconv/u32-strconv-from-enc.c: New file.
62135         * modules/uniconv/u32-strconv-from-enc-tests: New file.
62136         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
62137
62138         * modules/uniconv/u16-strconv-from-enc: New file.
62139         * lib/uniconv/u16-strconv-from-enc.c: New file.
62140         * modules/uniconv/u16-strconv-from-enc-tests: New file.
62141         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
62142
62143         * modules/uniconv/u8-strconv-from-enc: New file.
62144         * lib/uniconv/u8-strconv-from-enc.c: New file.
62145         * lib/uniconv/u-strconv-from-enc.h: New file.
62146         * modules/uniconv/u8-strconv-from-enc-tests: New file.
62147         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
62148
62149         * modules/uniconv/u32-conv-from-enc: New file.
62150         * lib/uniconv/u32-conv-from-enc.c: New file.
62151         * modules/uniconv/u32-conv-from-enc-tests: New file.
62152         * tests/uniconv/test-u32-conv-from-enc.c: New file.
62153
62154         * modules/uniconv/u16-conv-from-enc: New file.
62155         * lib/uniconv/u16-conv-from-enc.c: New file.
62156         * lib/uniconv/u-conv-from-enc.h: New file.
62157         * modules/uniconv/u16-conv-from-enc-tests: New file.
62158         * tests/uniconv/test-u16-conv-from-enc.c: New file.
62159
62160         * modules/uniconv/u8-conv-from-enc: New file.
62161         * lib/uniconv/u8-conv-from-enc.c: New file.
62162         * modules/uniconv/u8-conv-from-enc-tests: New file.
62163         * tests/uniconv/test-u8-conv-from-enc.c: New file.
62164
62165         * modules/uniconv/base: New file.
62166         * lib/uniconv.h: New file.
62167
62168 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
62169
62170         * doc/gnulib-tool.texi (Initial import): Update to match current
62171         behavior with strdup module.
62172         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
62173         * lib/memmem.h: Remove; all uses removed.  This is now done
62174         by <string.h>.
62175         * lib/mempcpy.h: Likewise.
62176         * lib/memrchr.h: Likewise.
62177         * lib/stpcpy.h: Likewise.
62178         * lib/stpncpy.h: Likewise.
62179         * lib/strcase.h: Likewise.
62180         * lib/strchrnul.h: Likewise.
62181         * lib/strdup.h: Likewise.
62182         * lib/strndup.h: Likewise.
62183         * lib/strnlen.h: Likewise.
62184         * lib/strpbrk.h: Likewise.
62185         * lib/strsep.h: Likewise.
62186         * lib/strstr.h: Likewise.
62187         * lib/strtok_r.h: Likewise.
62188         * lib/string_.h: New file.
62189         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
62190         Rely on <string.h> instead.
62191         * lib/canon-host.c: Likewise.
62192         * lib/chdir-long.c: Likewise.
62193         * lib/concatpath.c: Likewise.
62194         * lib/exclude.c: Likewise.
62195         * lib/fchdir.c: Likewise.
62196         * lib/getaddrinfo.c: Likewise.
62197         * lib/getcwd.c: Likewise.
62198         * lib/getsubopt.c: Likewise.
62199         * lib/glob.c: Likewise.
62200         * lib/hard-locale.c: Likewise.
62201         * lib/iconvme.c: Likewise.
62202         * lib/javacomp.c: Likewise.
62203         * lib/mempcpy.c: Likewise.
62204         * lib/memrchr.c: Likewise.
62205         * lib/regex_internal.h: Likewise.
62206         * lib/stpncpy.c: Likewise.
62207         * lib/strcasecmp.c: Likewise.
62208         * lib/strchrnul.c: Likewise.
62209         * lib/strdup.c: Likewise.
62210         * lib/striconv.c: Likewise.
62211         * lib/striconveh.c: Likewise.
62212         * lib/striconveha.c: Likewise.
62213         * lib/strncasecmp.c: Likewise.
62214         * lib/strndup.c: Likewise.
62215         * lib/strnlen.c: Likewise.
62216         * lib/strsep.c: Likewise.
62217         * lib/strstr.c: Likewise.
62218         * lib/strtok_r.c: Likewise.
62219         * lib/userspec.c: Likewise.
62220         * lib/w32spawn.h: Likewise.
62221         * lib/xstrndup.c: Likewise.
62222         * lib/mountlist.c (strstr): Remove decl.
62223         * m4/string_h.m4: New file.
62224         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
62225         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
62226         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
62227         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
62228         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
62229         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
62230         Set REPLACE_STRCASECMP if necessary.
62231         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
62232         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
62233         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
62234         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
62235         HAVE_DECL_STRDUP if necessary.
62236         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
62237         since gl_FUNC_STRNDUP does that now.
62238         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
62239         Check for decl here...
62240         (gl_PREREQ_STRNLEN): ... not here.
62241         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
62242         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
62243         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
62244         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
62245         necessary.
62246         * modules/string: New file.
62247         * modules/memmem (Files): Remove special-purpose include file.
62248         (Depends-on): Add string.
62249         (Include): Include <string.h>, not the removed file.
62250         * modules/mempcpy: Likewise.
62251         * modules/memrchr: Likewise.
62252         * modules/stpcpy: Likewise.
62253         * modules/stpncpy: Likewise.
62254         * modules/strcase: Likewise.
62255         * modules/strchrnul: Likewise.
62256         * modules/strdup: Likewise.
62257         * modules/strndup: Likewise.
62258         * modules/strnlen: Likewise.
62259         * modules/strpbrk: Likewise.
62260         * modules/strsep: Likewise.
62261         * modules/strstr: Likewise.
62262         * modules/strtok_r: Likewise.
62263         * tests/test-dirname.c: Don't include "strdup.h", since
62264         <string.h> now suffices.
62265         * tests/test-memmem.c: Don't include "memmem.h", since
62266         <string.h> now suffices.
62267
62268 2007-01-25  Bruno Haible  <bruno@clisp.org>
62269
62270         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
62271         *resultp is 0.
62272
62273         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
62274         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
62275         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
62276         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
62277
62278         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
62279         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
62280         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
62281         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
62282         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
62283         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
62284
62285 2007-01-24  Bruno Haible  <bruno@clisp.org>
62286
62287         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
62288         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
62289         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
62290         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
62291         gl_FUNC_FTS_CORE.
62292         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
62293         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
62294         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62295         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
62296         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
62297         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
62298         gl_FUNC_FCHOWNAT.
62299         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
62300         gl_FUNC_STRFTIME.
62301         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
62302         Reported by Ralf Wildenhues.
62303
62304 2007-01-24  Bruno Haible  <bruno@clisp.org>
62305
62306         Drop AC_REQUIRE calls that are redundant with the module dependencies.
62307         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
62308         gl_GETADDRINFO.
62309         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
62310         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
62311         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
62312
62313 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
62314
62315         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
62316         Don't use 'exit'; just return from 'main'.
62317         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
62318
62319         * lib/fnmatch_.h: Readjust white space and comments to match
62320         glibc, to avoid spurious diffs.
62321
62322 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62323
62324         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
62325         2004-12-01 change by Jakub Jelinek, since this code won't compile
62326         if !LIBC.  Problem reported by Bob Proulx.
62327
62328 2007-01-23  Bruno Haible  <bruno@clisp.org>
62329
62330         * lib/striconveh.c: Include c-strcaseeq.h.
62331         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
62332         * modules/striconveh (Depends-on): Add c-strcaseeq.
62333
62334 2007-01-23  Bruno Haible  <bruno@clisp.org>
62335
62336         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
62337
62338         * modules/c-strcaseeq: New file.
62339         * lib/c-strcaseeq.h: New file.
62340
62341         * modules/streq: New file.
62342         * lib/streq.h: New file.
62343
62344 2007-01-23  Bruno Haible  <bruno@clisp.org>
62345
62346         * modules/striconveha-tests: New file.
62347         * tests/test-striconveha.c: New file.
62348
62349         * lib/striconveha.h: Include <stdbool.h>.
62350         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
62351         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
62352         (mem_iconveha_notranslit): Renamed from mem_iconveha.
62353         (mem_iconveha): New function.
62354         (str_iconveha_notranslit): Renamed from str_iconveha.
62355         (str_iconveha): New function.
62356         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
62357         c-strcase.
62358
62359 2007-01-23  Bruno Haible  <bruno@clisp.org>
62360
62361         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
62362         encodings without forgiving before trying any encoding with handler.
62363         (str_iconveha): Try all encodings without forgiving before trying any
62364         encoding with handler.
62365
62366 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62367
62368         Import the following changes from libc.
62369
62370         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
62371
62372         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
62373
62374         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
62375
62376         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
62377         normal_bracket label.
62378
62379         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
62380
62381         [BZ #361]
62382         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
62383         to normal_bracket after fetching the next character.
62384
62385 2007-01-22  Bruno Haible  <bruno@clisp.org>
62386
62387         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
62388         argument.
62389         * lib/striconveh.c (iconv_carefully_1): New function.
62390         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
62391         argument.
62392         (str_cd_iconveh): Update.
62393         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
62394         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
62395         * tests/test-striconveh.c (MAGIC): New macro.
62396         (new_offsets): New function.
62397         (main): Test call with and without offsets.
62398
62399 2007-01-22  Bruno Haible  <bruno@clisp.org>
62400
62401         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
62402         * modules/sys_select (Makefile.am): Likewise.
62403         * modules/sys_socket (Makefile.am): Likewise.
62404         * modules/sys_time (Makefile.am): Likewise.
62405
62406 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
62407
62408         * modules/gettimeofday (License): Change from GPL to LGPL, since
62409         gettimeofday is a library function.
62410
62411 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62412
62413         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
62414
62415 2007-01-21  Bruno Haible  <bruno@clisp.org>
62416
62417         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
62418
62419 2007-01-21  Bruno Haible  <bruno@clisp.org>
62420
62421         * modules/striconveha: New file.
62422         * lib/striconveha.h: New file.
62423         * lib/striconveha.c: New file.
62424         * MODULES.html.sh (Internationalization functions): Add striconveha.
62425         * lib/striconv.c (str_iconv): Optimize the case of an empty input
62426         string.
62427         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
62428
62429 2007-01-21  Bruno Haible  <bruno@clisp.org>
62430
62431         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
62432         * lib/striconveh.c (str_iconveh): Likewise.
62433
62434 2007-01-21  Bruno Haible  <bruno@clisp.org>
62435
62436         * lib/striconveh.h (mem_iconveh): New declaration.
62437         * lib/striconveh.c (mem_iconveh): New function.
62438         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
62439
62440 2007-01-21  Bruno Haible  <bruno@clisp.org>
62441
62442         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
62443
62444         * lib/striconveh.h (mem_cd_iconveh): Change specification.
62445         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
62446         original result buffer.
62447         (str_cd_iconveh): Update.
62448         * tests/test-striconveh.c (main): Update.
62449
62450         * lib/striconv.h (mem_cd_iconv): Change specification.
62451         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
62452         result buffer.
62453         (str_cd_iconv): Update.
62454         * tests/test-striconv.c (main): Update.
62455
62456 2007-01-21  Bruno Haible  <bruno@clisp.org>
62457
62458         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
62459
62460 2007-01-20  Jim Meyering  <jim@meyering.net>
62461
62462         * lib/userspec.c (parse_with_separator): If a user or group string
62463         starts with "+", skip the corresponding name-to-ID look-up, since
62464         such a look-up must fail: user and group names may not include "+".
62465
62466 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
62467
62468         * lib/poll.c: Include sys/time.h and time.h unconditionally,
62469         since we now assume the sys_time module.
62470         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
62471         check for sys/time.h; no longer needed.
62472         * modules/poll (Depends-on): Depend on sys_time.
62473
62474 2007-01-18  Bruno Haible  <bruno@clisp.org>
62475
62476         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
62477         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
62478
62479         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
62480         gettimeofday.
62481
62482         * tests/test-gettimeofday.c: Include <time.h>.
62483         (dummy): Remove variable.
62484
62485         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
62486         gl_HEADER_SYS_TIME_H.
62487         (gl_HEADER_SYS_TIME_H): New macro.
62488
62489         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
62490         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62491         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
62492         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
62493         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62494         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
62495         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
62496         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62497         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
62498         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
62499         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62500
62501         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
62502         last change; it caused a compilation error when cross-compiling to
62503         Cygwin.
62504
62505 2007-01-18  Jim Meyering  <jim@meyering.net>
62506
62507         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
62508         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
62509         than the race-prone "test -d sys || mkdir sys".
62510         (configure.ac): Use AC_PROG_MKDIR_P.
62511         * modules/sys_select: Likewise.
62512         * modules/sys_socket: Likewise.
62513         * modules/sys_time: Likewise.
62514
62515 2007-01-18  Eric Blake  <ebb9@byu.net>
62516
62517         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
62518         replace gettimeofday.
62519         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
62520         name, to avoid infinite recursion.
62521
62522 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
62523
62524         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
62525         module sys_time.
62526         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
62527         assume timespec.h defines struct timeval.
62528         * lib/settime.c: Likewise.
62529         * lib/utimens.c: Likewise.
62530         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
62531         since we now assume the gettimeofday module.
62532         * lib/tempname.c (__gen_tempname): Likewise.
62533         * lib/gettimeofday.h: Remove.
62534         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
62535         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
62536         Include <time.h>, for 'time()'.
62537         (localtime_buffer_addr): Also use this workaround if
62538         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
62539         to simplify the uses.  All uses changed.
62540         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
62541         that #undef is inside {}, and 'const' follows type name consistently.
62542         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
62543         (gettimeofday): Do not use the maximum possible value for
62544         tv->tv_usec, since that might break usages other than ls.c.
62545         Instead, we'll leave ls.c alone.  This undoes today's patch
62546         by Bruno.  Add a compile-time warning for 1s-clock resolution;
62547         we've never observed the problem but might as well keep the
62548         canary.
62549         * lib/nanosleep.c: Include timespec.h first, for interface check.
62550         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
62551         now assume the sys_time module.
62552         * lib/tempname.c: Likewise.
62553         * lib/timespec.h: Likewise.
62554         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
62555         needed.
62556         * lib/strftime.c: Likewise.
62557         * lib/timespec.h: Likewise.
62558         * lib/posixtm.c: Include posixtm.h first, for interface check.
62559         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
62560         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
62561         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
62562         * lib/sys_time_.h: New file.
62563         * lib/timespec.h (struct timespec): Use long int, not long.
62564         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
62565         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
62566         Remove obsolescent call to AC_HEADER_TIME.
62567         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
62568         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62569         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
62570         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
62571         Likewise.
62572         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
62573         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
62574         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
62575         into the sys_time module.  Check for gettimeofday just once.
62576         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
62577         for gettimeofday signature to just check the signature.  Merely
62578         compile it, since linking doesn't test signature.  Improve test for
62579         whether gettimeofday.o is actually needed.
62580         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
62581         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
62582         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
62583         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62584         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
62585         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
62586         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
62587         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
62588         than worrying about sys/time.h.
62589         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62590         Don't bother worrying about TIME_WITH_SYS_TIME.
62591         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
62592         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
62593         * m4/sys_time_h.m4: New file.
62594         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
62595         Don't include sys/time.h.  Return from main rather than exiting.
62596         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
62597         all uses changed.
62598         * modules/gethrxtime (Depends-on): Add sys_time.
62599         * modules/gettime (Depends-on): Likewise.
62600         * modules/gettimeofday (Depends-on): Likewise.
62601         * modules/nanosleep (Depends-on): Likewise.
62602         * modules/settime (Depends-on): Likewise.
62603         * modules/tempname (Depends-on): Likewise.
62604         * modules/utimens (Depends-on): Likewise.
62605         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
62606         (Include): Change back to <sys/time.h>.
62607         (Maintainer): Add self.
62608         * modules/sys_time: New file.
62609         * modules/tempname (Depends-on): Add gettimeofday.
62610         * tests/test-gettimeofday.c: Include <sys/time.h>
62611         rather than gettimeofday.h.
62612
62613 2007-01-17  Bruno Haible  <bruno@clisp.org>
62614
62615         * gnulib-tool (func_get_license): Revert last patch. Instead, let
62616         the license default to GPL.
62617         (func_create_testdir): Don't complain if a module is LGPL and its
62618         tests module depends on GPLed modules.
62619
62620 2007-01-17  Bruno Haible  <bruno@clisp.org>
62621
62622         * lib/gettimeofday.c (gettimeofday): Add code for the case
62623         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
62624         maximum possible value for tv->tv_usec, rather than the minimum one.
62625
62626 2005-10-08  Martin Lambers  <marlam@marlam.de>
62627 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62628 2007-01-16  Bruno Haible  <bruno@clisp.org>
62629
62630         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
62631         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
62632         gl_FUNC_GETTIMEOFDAY.
62633         (Include): Add gettimeofday.h.
62634         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
62635         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
62636         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
62637         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
62638         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
62639         * lib/gettimeofday.h: New file.
62640         * lib/gettimeofday.c: Include <sys/timeb.h>.
62641         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
62642         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62643         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
62644         fall back on time().
62645
62646         * tests/test-gettimeofday.c: New file.
62647         * modules/gettimeofday-tests: New file.
62648
62649 2007-01-16  Eric Blake  <ebb9@byu.net>
62650
62651         * modules/fnmatch (Depends-on): Depend on wchar.
62652         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
62653         * m4/fnmatch.m4: Likewise.
62654         * modules/mbchar (Makefile.am): Assume <wchar.h>.
62655         * m4/mbchar.m4: Likewise.
62656         * modules/mbswidth (Depends-on): Depend on wchar.
62657         * lib/mbswidth.c: Assume <wchar.h>.
62658         * m4/mbswidth.m4: Likewise.
62659         * modules/quotearg (Depends-on): Depend on wchar.
62660         * lib/quotearg.c: Assume <wchar.h>.
62661         * m4/quotearg.m4: Likewise.
62662         * modules/regex (Depends-on): Depend on wchar.
62663         * lib/regex_internal.h: Assume <wchar.h>.
62664         * m4/regex.m4: Likewise.
62665         * modules/stdint (Depends-on): Depend on wchar.
62666         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
62667         * m4/stdint.m4: Likewise.
62668         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
62669         * modules/strftime (Depends-on): Depend on wchar.
62670         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
62671         * modules/strtol (Depends-on): Depend on wchar.
62672         * lib/strtol.c: Assume <wchar.h>.
62673         * modules/wcwidth (Depends-on): Depend on wchar.
62674         * lib/wcwidth.h: Assume <wchar.h>.
62675         * m4/wcwidth.m4: Likewise.
62676
62677 2007-01-16  Bruno Haible  <bruno@clisp.org>
62678
62679         * modules/csharpexec-script: New, created from...
62680         * modules/csharpexec: ... this.
62681
62682 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
62683
62684         * modules/javaexec-script: New, created from...
62685         * modules/javaexec: ... this.
62686
62687 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62688
62689         * modules/poll (Dependencies): Add sys_select.
62690
62691 2007-01-15  Jim Meyering  <jim@meyering.net>
62692
62693         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
62694         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
62695         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
62696         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
62697
62698 2007-01-15  Bruno Haible  <bruno@clisp.org>
62699
62700         * modules/striconveh: New file.
62701         * lib/striconveh.h: New file.
62702         * lib/striconveh.c: New file.
62703         * MODULES.html.sh (Internationalization functions): Add striconveh.
62704
62705         * modules/striconveh-tests: New file.
62706         * tests/test-striconveh.c: New file.
62707
62708 2007-01-15  Bruno Haible  <bruno@clisp.org>
62709
62710         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
62711         not from GNU libiconv or GNU libc.
62712
62713 2007-01-15  Bruno Haible  <bruno@clisp.org>
62714
62715         * doc/gnulib-intro.texi (Copyright): Explain the different license
62716         terms for module descriptions, autoconf macros, tests, documentation.
62717
62718 2007-01-14  Bruno Haible  <bruno@clisp.org>
62719
62720         * modules/striconv-tests: New file.
62721         * tests/test-striconv.c: New file.
62722
62723 2007-01-14  Bruno Haible  <bruno@clisp.org>
62724
62725         * modules/iconv-tests: New file.
62726         * tests/test-iconv.c: New file.
62727
62728 2007-01-14  Bruno Haible  <bruno@clisp.org>
62729
62730         * gnulib-tool (func_get_license): For test modules, use the license of
62731         the main module.
62732
62733 2007-01-14  Bruno Haible  <bruno@clisp.org>
62734
62735         * modules/iconv (Include): Clarify that <iconv.h> can only be included
62736         if iconv is found to exist.
62737
62738 2007-01-14  Bruno Haible  <bruno@clisp.org>
62739
62740         * modules/c-ctype-tests: New file.
62741         * tests/test-c-ctype.c: New file.
62742
62743 2007-01-14  Bruno Haible  <bruno@clisp.org>
62744
62745         * modules/binary-io-tests: New file.
62746         * tests/test-binary-io.sh: New file.
62747         * tests/test-binary-io.c: New file.
62748
62749 2007-01-14  Bruno Haible  <bruno@clisp.org>
62750
62751         * modules/array-oset-tests: New file.
62752         * tests/test-array_oset.c: New file.
62753
62754 2007-01-14  Bruno Haible  <bruno@clisp.org>
62755
62756         * modules/array-list-tests: New file.
62757         * tests/test-array_list.c: New file.
62758
62759 2007-01-14  Bruno Haible  <bruno@clisp.org>
62760
62761         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
62762         and make.
62763         Reported by Simon Josefsson in
62764         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
62765
62766 2007-01-14  Bruno Haible  <bruno@clisp.org>
62767
62768         * modules/allocsa-tests: New file.
62769         * tests/test-allocsa.c: New file.
62770
62771 2007-01-14  Bruno Haible  <bruno@clisp.org>
62772
62773         * modules/fchdir (Depends-on): Add absolute-header.
62774         * modules/unistd (Depends-on): Likewise.
62775
62776 2006-12-30  Bruno Haible  <bruno@clisp.org>
62777
62778         * modules/fchdir: New file.
62779         * modules/unistd (Files): Add lib/unistd_.h.
62780         (Makefile.am): Generate unistd.h from unistd_.h.
62781         * lib/fchdir.c: New file.
62782         * lib/dirent_.h: New file.
62783         * lib/unistd_.h: New file.
62784         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
62785         * m4/fchdir.m4: New file.
62786         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
62787         (gl_HEADER_UNISTD): Invoke it.
62788         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
62789         function.
62790         * lib/backupfile.c (opendir, closedir): Undefine.
62791         * lib/chown.c (open, close): Undefine.
62792         * lib/clean-temp.c (open, close): Undefine.
62793         * lib/copy-file.c (open, close): Undefine.
62794         * lib/execute.c (open, close): Undefine.
62795         * lib/fsusage.c (open, close): Undefine.
62796         * lib/gc-gnulib.c (open, close): Undefine.
62797         * lib/getcwd.c (opendir, closedir): Undefine.
62798         * lib/glob.c (opendir, closedir): Undefine.
62799         * lib/javacomp.c (open, close): Undefine.
62800         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
62801         * lib/openat-proc.c (open, close): Undefine.
62802         * lib/pagealign_alloc.c (open, close): Undefine.
62803         * lib/pipe.c (open, close): Undefine.
62804         * lib/progreloc.c (open, close): Undefine.
62805         * lib/savedir.c (opendir, closedir): Undefine.
62806         * lib/utime.c (open, close): Undefine.
62807         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
62808
62809 2007-01-10  Bruno Haible  <bruno@clisp.org>
62810
62811         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
62812
62813 2007-01-12  Eric Blake  <ebb9@byu.net>
62814
62815         Provide a robust <wchar.h>.  Further simplifications are now
62816         possible in other modules, but not included here.
62817         * modules/wchar: New module.
62818         * m4/wchar.m4: New file.
62819         * lib/wchar_.h: Likewise.
62820         * modules/mbchar (Depends-on): Depend on wchar, as the first use
62821         of the new module.
62822         * MODULES.html.sh (Extended multibyte and wide character utilities):
62823         New section.
62824
62825 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
62826
62827         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
62828         to a reasonable default for memory allocation.
62829         (xreadlink): Don't allocate a huge buffer, to work around a buggy
62830         file system that reports garbage st_size values for symlinks.
62831         Problem reported by Liyang Hu.
62832
62833 2007-01-11  Simon Josefsson  <simon@josefsson.org>
62834
62835         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
62836         Emacs .#* auto-save files).
62837
62838 2007-01-11  Bruno Haible  <bruno@clisp.org>
62839
62840         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
62841         directory.
62842
62843 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62844
62845         Use @...@ consistently in lib/wctype_.h.
62846         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
62847         on it being set to 1 or 0.
62848         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
62849         go back to AC_SUBSTing it.
62850         * modules/wctype (Makefile.am): Undo previous change.
62851
62852 2007-01-10  Eric Blake  <ebb9@byu.net>
62853
62854         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
62855         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
62856         * modules/wctype (Makefile.am): Likewise.
62857         Reported by Chris McGuire.
62858
62859 2007-01-10  Jim Meyering  <jim@meyering.net>
62860
62861         fts.c: a small readability/maintainability improvement
62862         * lib/fts.c (fts_read): Make this code slightly more readable and
62863         maintainable by hoisting the "sp->fts_cur = p" assignments to
62864         immediately follow the statements that set P.  Derived from
62865         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
62866
62867 2007-01-10  Eric Blake  <ebb9@byu.net>
62868
62869         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
62870         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
62871         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62872         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
62873         Reported by Chris McGuire.
62874
62875 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62876
62877         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
62878         in sed script.
62879
62880 2007-01-09  Bruno Haible  <bruno@clisp.org>
62881
62882         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
62883         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
62884         variables.
62885         (func_module): Use them.
62886
62887 2007-01-09  Bruno Haible  <bruno@clisp.org>
62888
62889         * modules/unistr/base: New file.
62890         * lib/unistr.h: New file.
62891
62892         * modules/unistr/u8-to-u16: New file.
62893         * lib/unistr/u8-to-u16.c: New file.
62894
62895         * modules/unistr/u8-to-u32: New file.
62896         * lib/unistr/u8-to-u32.c: New file.
62897
62898         * modules/unistr/u16-to-u8: New file.
62899         * lib/unistr/u16-to-u8.c: New file.
62900
62901         * modules/unistr/u16-to-u32: New file.
62902         * lib/unistr/u16-to-u32.c: New file.
62903
62904         * modules/unistr/u32-to-u8: New file.
62905         * lib/unistr/u32-to-u8.c: New file.
62906
62907         * modules/unistr/u32-to-u16: New file.
62908         * lib/unistr/u32-to-u16.c: New file.
62909
62910         * modules/unistr/u8-check: New file.
62911         * modules/unistr/u16-check: New file.
62912         * modules/unistr/u32-check: New file.
62913         * lib/unistr/u8-check.c: New file.
62914         * lib/unistr/u16-check.c: New file.
62915         * lib/unistr/u32-check.c: New file.
62916
62917         * modules/unistr/u8-chr: New file.
62918         * modules/unistr/u16-chr: New file.
62919         * modules/unistr/u32-chr: New file.
62920         * lib/unistr/u8-chr.c: New file.
62921         * lib/unistr/u16-chr.c: New file.
62922         * lib/unistr/u32-chr.c: New file.
62923
62924         * modules/unistr/u8-cmp: New file.
62925         * modules/unistr/u16-cmp: New file.
62926         * modules/unistr/u32-cmp: New file.
62927         * lib/unistr/u8-cmp.c: New file.
62928         * lib/unistr/u16-cmp.c: New file.
62929         * lib/unistr/u32-cmp.c: New file.
62930
62931         * modules/unistr/u8-cpy: New file.
62932         * modules/unistr/u16-cpy: New file.
62933         * modules/unistr/u32-cpy: New file.
62934         * lib/unistr/u8-cpy.c: New file.
62935         * lib/unistr/u16-cpy.c: New file.
62936         * lib/unistr/u32-cpy.c: New file.
62937         * lib/unistr/u-cpy.h: New file.
62938
62939         * modules/unistr/u8-cpy-alloc: New file.
62940         * modules/unistr/u16-cpy-alloc: New file.
62941         * modules/unistr/u32-cpy-alloc: New file.
62942         * lib/unistr/u8-cpy-alloc.c: New file.
62943         * lib/unistr/u16-cpy-alloc.c: New file.
62944         * lib/unistr/u32-cpy-alloc.c: New file.
62945         * lib/unistr/u-cpy-alloc.h: New file.
62946
62947         * modules/unistr/u8-endswith: New file.
62948         * modules/unistr/u16-endswith: New file.
62949         * modules/unistr/u32-endswith: New file.
62950         * lib/unistr/u8-endswith.c: New file.
62951         * lib/unistr/u16-endswith.c: New file.
62952         * lib/unistr/u32-endswith.c: New file.
62953         * lib/unistr/u-endswith.h: New file.
62954
62955         * modules/unistr/u8-mblen: New file.
62956         * modules/unistr/u16-mblen: New file.
62957         * modules/unistr/u32-mblen: New file.
62958         * lib/unistr/u8-mblen.c: New file.
62959         * lib/unistr/u16-mblen.c: New file.
62960         * lib/unistr/u32-mblen.c: New file.
62961
62962         * modules/unistr/u8-mbtouc: New file.
62963         * modules/unistr/u16-mbtouc: New file.
62964         * modules/unistr/u32-mbtouc: New file.
62965         * lib/unistr/u8-mbtouc.c: New file.
62966         * lib/unistr/u16-mbtouc.c: New file.
62967         * lib/unistr/u32-mbtouc.c: New file.
62968
62969         * modules/unistr/u8-mbtouc-safe: New file.
62970         * modules/unistr/u16-mbtouc-safe: New file.
62971         * modules/unistr/u32-mbtouc-safe: New file.
62972         * lib/unistr/u8-mbtouc-safe.c: New file.
62973         * lib/unistr/u16-mbtouc-safe.c: New file.
62974         * lib/unistr/u32-mbtouc-safe.c: New file.
62975
62976         * modules/unistr/u8-move: New file.
62977         * modules/unistr/u16-move: New file.
62978         * modules/unistr/u32-move: New file.
62979         * lib/unistr/u8-move.c: New file.
62980         * lib/unistr/u16-move.c: New file.
62981         * lib/unistr/u32-move.c: New file.
62982         * lib/unistr/u-move.h: New file.
62983
62984         * modules/unistr/u8-next: New file.
62985         * modules/unistr/u16-next: New file.
62986         * modules/unistr/u32-next: New file.
62987         * lib/unistr/u8-next.c: New file.
62988         * lib/unistr/u16-next.c: New file.
62989         * lib/unistr/u32-next.c: New file.
62990
62991         * modules/unistr/u8-prev: New file.
62992         * modules/unistr/u16-prev: New file.
62993         * modules/unistr/u32-prev: New file.
62994         * lib/unistr/u8-prev.c: New file.
62995         * lib/unistr/u16-prev.c: New file.
62996         * lib/unistr/u32-prev.c: New file.
62997
62998         * modules/unistr/u8-set: New file.
62999         * modules/unistr/u16-set: New file.
63000         * modules/unistr/u32-set: New file.
63001         * lib/unistr/u8-set.c: New file.
63002         * lib/unistr/u16-set.c: New file.
63003         * lib/unistr/u32-set.c: New file.
63004         * lib/unistr/u-set.h: New file.
63005
63006         * modules/unistr/u8-startswith: New file.
63007         * modules/unistr/u16-startswith: New file.
63008         * modules/unistr/u32-startswith: New file.
63009         * lib/unistr/u8-startswith.c: New file.
63010         * lib/unistr/u16-startswith.c: New file.
63011         * lib/unistr/u32-startswith.c: New file.
63012         * lib/unistr/u-startswith.h: New file.
63013
63014         * modules/unistr/u8-stpcpy: New file.
63015         * modules/unistr/u16-stpcpy: New file.
63016         * modules/unistr/u32-stpcpy: New file.
63017         * lib/unistr/u8-stpcpy.c: New file.
63018         * lib/unistr/u16-stpcpy.c: New file.
63019         * lib/unistr/u32-stpcpy.c: New file.
63020         * lib/unistr/u-stpcpy.h: New file.
63021
63022         * modules/unistr/u8-stpncpy: New file.
63023         * modules/unistr/u16-stpncpy: New file.
63024         * modules/unistr/u32-stpncpy: New file.
63025         * lib/unistr/u8-stpncpy.c: New file.
63026         * lib/unistr/u16-stpncpy.c: New file.
63027         * lib/unistr/u32-stpncpy.c: New file.
63028         * lib/unistr/u-stpncpy.h: New file.
63029
63030         * modules/unistr/u8-strcat: New file.
63031         * modules/unistr/u16-strcat: New file.
63032         * modules/unistr/u32-strcat: New file.
63033         * lib/unistr/u8-strcat.c: New file.
63034         * lib/unistr/u16-strcat.c: New file.
63035         * lib/unistr/u32-strcat.c: New file.
63036         * lib/unistr/u-strcat.h: New file.
63037
63038         * modules/unistr/u8-strchr: New file.
63039         * modules/unistr/u16-strchr: New file.
63040         * modules/unistr/u32-strchr: New file.
63041         * lib/unistr/u8-strchr.c: New file.
63042         * lib/unistr/u16-strchr.c: New file.
63043         * lib/unistr/u32-strchr.c: New file.
63044
63045         * modules/unistr/u8-strcmp: New file.
63046         * modules/unistr/u16-strcmp: New file.
63047         * modules/unistr/u32-strcmp: New file.
63048         * lib/unistr/u8-strcmp.c: New file.
63049         * lib/unistr/u16-strcmp.c: New file.
63050         * lib/unistr/u32-strcmp.c: New file.
63051
63052         * modules/unistr/u8-strcpy: New file.
63053         * modules/unistr/u16-strcpy: New file.
63054         * modules/unistr/u32-strcpy: New file.
63055         * lib/unistr/u8-strcpy.c: New file.
63056         * lib/unistr/u16-strcpy.c: New file.
63057         * lib/unistr/u32-strcpy.c: New file.
63058         * lib/unistr/u-strcpy.h: New file.
63059
63060         * modules/unistr/u8-strcspn: New file.
63061         * modules/unistr/u16-strcspn: New file.
63062         * modules/unistr/u32-strcspn: New file.
63063         * lib/unistr/u8-strcspn.c: New file.
63064         * lib/unistr/u16-strcspn.c: New file.
63065         * lib/unistr/u32-strcspn.c: New file.
63066         * lib/unistr/u-strcspn.h: New file.
63067
63068         * modules/unistr/u8-strdup: New file.
63069         * modules/unistr/u16-strdup: New file.
63070         * modules/unistr/u32-strdup: New file.
63071         * lib/unistr/u8-strdup.c: New file.
63072         * lib/unistr/u16-strdup.c: New file.
63073         * lib/unistr/u32-strdup.c: New file.
63074         * lib/unistr/u-strdup.h: New file.
63075
63076         * modules/unistr/u8-strlen: New file.
63077         * modules/unistr/u16-strlen: New file.
63078         * modules/unistr/u32-strlen: New file.
63079         * lib/unistr/u8-strlen.c: New file.
63080         * lib/unistr/u16-strlen.c: New file.
63081         * lib/unistr/u32-strlen.c: New file.
63082         * lib/unistr/u-strlen.h: New file.
63083
63084         * modules/unistr/u8-strmblen: New file.
63085         * modules/unistr/u16-strmblen: New file.
63086         * modules/unistr/u32-strmblen: New file.
63087         * lib/unistr/u8-strmblen.c: New file.
63088         * lib/unistr/u16-strmblen.c: New file.
63089         * lib/unistr/u32-strmblen.c: New file.
63090
63091         * modules/unistr/u8-strmbtouc: New file.
63092         * modules/unistr/u16-strmbtouc: New file.
63093         * modules/unistr/u32-strmbtouc: New file.
63094         * lib/unistr/u8-strmbtouc.c: New file.
63095         * lib/unistr/u16-strmbtouc.c: New file.
63096         * lib/unistr/u32-strmbtouc.c: New file.
63097
63098         * modules/unistr/u8-strncat: New file.
63099         * modules/unistr/u16-strncat: New file.
63100         * modules/unistr/u32-strncat: New file.
63101         * lib/unistr/u8-strncat.c: New file.
63102         * lib/unistr/u16-strncat.c: New file.
63103         * lib/unistr/u32-strncat.c: New file.
63104         * lib/unistr/u-strncat.h: New file.
63105
63106         * modules/unistr/u8-strncmp: New file.
63107         * modules/unistr/u16-strncmp: New file.
63108         * modules/unistr/u32-strncmp: New file.
63109         * lib/unistr/u8-strncmp.c: New file.
63110         * lib/unistr/u16-strncmp.c: New file.
63111         * lib/unistr/u32-strncmp.c: New file.
63112
63113         * modules/unistr/u8-strncpy: New file.
63114         * modules/unistr/u16-strncpy: New file.
63115         * modules/unistr/u32-strncpy: New file.
63116         * lib/unistr/u8-strncpy.c: New file.
63117         * lib/unistr/u16-strncpy.c: New file.
63118         * lib/unistr/u32-strncpy.c: New file.
63119         * lib/unistr/u-strncpy.h: New file.
63120
63121         * modules/unistr/u8-strnlen: New file.
63122         * modules/unistr/u16-strnlen: New file.
63123         * modules/unistr/u32-strnlen: New file.
63124         * lib/unistr/u8-strnlen.c: New file.
63125         * lib/unistr/u16-strnlen.c: New file.
63126         * lib/unistr/u32-strnlen.c: New file.
63127         * lib/unistr/u-strnlen.h: New file.
63128
63129         * modules/unistr/u8-strpbrk: New file.
63130         * modules/unistr/u16-strpbrk: New file.
63131         * modules/unistr/u32-strpbrk: New file.
63132         * lib/unistr/u8-strpbrk.c: New file.
63133         * lib/unistr/u16-strpbrk.c: New file.
63134         * lib/unistr/u32-strpbrk.c: New file.
63135         * lib/unistr/u-strpbrk.h: New file.
63136
63137         * modules/unistr/u8-strrchr: New file.
63138         * modules/unistr/u16-strrchr: New file.
63139         * modules/unistr/u32-strrchr: New file.
63140         * lib/unistr/u8-strrchr.c: New file.
63141         * lib/unistr/u16-strrchr.c: New file.
63142         * lib/unistr/u32-strrchr.c: New file.
63143
63144         * modules/unistr/u8-strspn: New file.
63145         * modules/unistr/u16-strspn: New file.
63146         * modules/unistr/u32-strspn: New file.
63147         * lib/unistr/u8-strspn.c: New file.
63148         * lib/unistr/u16-strspn.c: New file.
63149         * lib/unistr/u32-strspn.c: New file.
63150         * lib/unistr/u-strspn.h: New file.
63151
63152         * modules/unistr/u8-strstr: New file.
63153         * modules/unistr/u16-strstr: New file.
63154         * modules/unistr/u32-strstr: New file.
63155         * lib/unistr/u8-strstr.c: New file.
63156         * lib/unistr/u16-strstr.c: New file.
63157         * lib/unistr/u32-strstr.c: New file.
63158         * lib/unistr/u-strstr.h: New file.
63159
63160         * modules/unistr/u8-strtok: New file.
63161         * modules/unistr/u16-strtok: New file.
63162         * modules/unistr/u32-strtok: New file.
63163         * lib/unistr/u8-strtok.c: New file.
63164         * lib/unistr/u16-strtok.c: New file.
63165         * lib/unistr/u32-strtok.c: New file.
63166         * lib/unistr/u-strtok.h: New file.
63167
63168         * modules/unistr/u8-uctomb: New file.
63169         * modules/unistr/u16-uctomb: New file.
63170         * modules/unistr/u32-uctomb: New file.
63171         * lib/unistr/u8-uctomb.c: New file.
63172         * lib/unistr/u16-uctomb.c: New file.
63173         * lib/unistr/u32-uctomb.c: New file.
63174
63175         * MODULES.html.sh (Unicode string functions): Add the new modules.
63176
63177 2007-01-08  Bruno Haible  <bruno@clisp.org>
63178
63179         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
63180         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
63181         subdirectories.
63182
63183 2007-01-08  Karl Berry  <karl@gnu.org>
63184
63185         * doc/error.texi: mention that main() fns must set program_name
63186         when progname is used.
63187
63188 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
63189
63190         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
63191         WCTYPE_H is empty, for the benefit of builds from non-distclean
63192         directories.  Problem reported by Eric Blake in
63193         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
63194
63195 2007-01-08  Bruno Haible  <bruno@clisp.org>
63196
63197         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
63198         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
63199         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
63200         PROVIDE_CANONICALIZE_FILENAME_MODE.
63201         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
63202
63203 2007-01-08  Bruno Haible  <bruno@clisp.org>
63204
63205         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
63206         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
63207         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
63208         * lib/fts.c: Likewise.
63209         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
63210
63211 2006-12-25  Bruno Haible  <bruno@clisp.org>
63212
63213         * modules/utf8-ucs4-safe: New file.
63214         * lib/utf8-ucs4-safe.h: New file.
63215         * lib/unistr/utf8-ucs4-safe.c: New file.
63216
63217         * modules/utf16-ucs4-safe: New file.
63218         * lib/utf16-ucs4-safe.h: New file.
63219         * lib/unistr/utf16-ucs4-safe.c: New file.
63220
63221         * MODULES.html.sh (Unicode string functions): Add the new modules.
63222
63223 2007-01-08  Bruno Haible  <bruno@clisp.org>
63224
63225         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
63226         (Depends-on): Add unitypes.
63227         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
63228         (u8_mbtouc_aux): Move out to separate file.
63229         (u8_mbtouc): Use ucs4_t, uint8_t types.
63230         * lib/unistr/utf8-ucs4.c: New file.
63231
63232         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
63233         (Depends-on): Add unitypes.
63234         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
63235         (u16_mbtouc_aux): Move out to separate file.
63236         (u16_mbtouc): Use ucs4_t, uint16_t types.
63237         * lib/unistr/utf16-ucs4.c: New file.
63238
63239         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
63240         (Depends-on): Add unitypes.
63241         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
63242         (u8_uctomb_aux): Move out to separate file.
63243         (u8_uctomb): Use ucs4_t, uint8_t types.
63244         * lib/unistr/ucs4-utf8.c: New file.
63245
63246         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
63247         (Depends-on): Add unitypes.
63248         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
63249         (u16_uctomb_aux): Move out to separate file.
63250         (u16_uctomb): Use ucs4_t, uint16_t types.
63251         * lib/unistr/ucs4-utf16.c: New file.
63252
63253 2006-12-25  Bruno Haible  <bruno@clisp.org>
63254
63255         * modules/unitypes: New file.
63256         * lib/unitypes.h: New file.
63257         * MODULES.html.sh (func_all_modules): New section "Unicode string
63258         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
63259         this section. Add unitypes.
63260
63261 2007-01-08  Bruno Haible  <bruno@clisp.org>
63262
63263         Avoid variable names that conflict with those from libtool.
63264         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
63265         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
63266         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
63267         library_names_spec to acl_library_names_spec, hardcode_* to
63268         acl_hardcode_*.
63269         Reported by Ralf Wildenhues.
63270
63271 2007-01-08  Bruno Haible  <bruno@clisp.org>
63272
63273         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
63274         definition.
63275         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
63276         definition.
63277         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
63278         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
63279         definition.
63280         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
63281         definition.
63282         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
63283         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
63284         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
63285         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
63286         definition.
63287         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
63288         definition.
63289         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
63290         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
63291         GC_USE_<algorithm>.
63292         * lib/gc-libgcrypt.c: Likewise.
63293         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
63294         * modules/gc-arctwo (configure.ac): Likewise.
63295         * modules/gc-des (configure.ac): Likewise.
63296         * modules/gc-hmac-md5 (configure.ac): Likewise.
63297         * modules/gc-hmac-sha1 (configure.ac): Likewise.
63298         * modules/gc-md2 (configure.ac): Likewise.
63299         * modules/gc-md4 (configure.ac): Likewise.
63300         * modules/gc-md5 (configure.ac): Likewise.
63301         * modules/gc-random (configure.ac): Likewise.
63302         * modules/gc-rijndael (configure.ac): Likewise.
63303         * modules/gc-sha1 (configure.ac): Likewise.
63304
63305 2007-01-08  Bruno Haible  <bruno@clisp.org>
63306
63307         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
63308         macro definition.
63309         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
63310         definition.
63311         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
63312         definition.
63313         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
63314         * modules/fcntl-safer (configure.ac): Likewise.
63315         * modules/fopen-safer (configure.ac): Likewise.
63316         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
63317         GNULIB_FWRITEERROR macro definition.
63318
63319 2007-01-08  Bruno Haible  <bruno@clisp.org>
63320
63321         * m4/gnulib-common.m4: New file.
63322         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
63323         (func_get_filelist): Add m4/gnulib-common.m4.
63324
63325 2007-01-08  Bruno Haible  <bruno@clisp.org>
63326
63327         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
63328         command.
63329
63330 2007-01-08  Jim Meyering  <jim@meyering.net>
63331
63332         Use a more robust test for a "can't happen" condition.
63333         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
63334         narrowed the st_size value.  Presuming the "can't happen" condition
63335         is true, that narrowing could conceivably convert an invalid st_size
63336         value into a valid one.  Instead, use a change based on Matthew
63337         Woehlke's original patch.
63338
63339         Slight readability improvement: use an assert-like macro
63340         in place of literal "abort ()" uses.
63341         * lib/fts.c (fts_assert): Define.
63342         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
63343         Use this macro instead of a bare 'abort'.
63344
63345 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
63346
63347         Don't worry about using IRIX 5.3's wctype.h broken definitions;
63348         simply work around them.
63349         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
63350         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
63351         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
63352         declaring.
63353         Don't bother to define as macros, since the standard doesn't require it.
63354         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
63355         longer worry about IRIX 5.3.
63356         (HAVE_WCTYPE_CTMP_BUG): Remove.
63357
63358 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63359
63360         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
63361         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
63362         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63363         Problems reported by Georg Schwarz for IRIX 5.3.
63364
63365         * gnulib-tool (autoconf_minversion): Take the maximum version number
63366         found, not the minimum.  Problem reported by James Youngman.
63367
63368 2007-01-03  Karl Berry  <karl@gnu.org>
63369
63370         * doc/error.texi: new file, explaining interaction with progname.
63371         * doc/gnulib.texi: include it.  Update copyright.
63372
63373 2007-01-03  Simon Josefsson  <simon@josefsson.org>
63374
63375         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
63376         AC_CANONICAL_HOST, to improve autobuild outputs.
63377
63378 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
63379             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63380
63381         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
63382         sockets, server sockets, and other file descriptors.  Count errors
63383         to compute the return value.  Reorder the code a bit to be easier
63384         to follow.  Don't set event bits that were not requested (except
63385         POLLERR and POLLHUP).
63386
63387 2007-01-01  Bruno Haible  <bruno@clisp.org>
63388
63389         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
63390
63391 2007-01-03  Jim Meyering  <jim@meyering.net>
63392
63393         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
63394
63395 2007-01-02  Bruno Haible  <bruno@clisp.org>
63396
63397         * modules/settime (Include): Require timespec.h.
63398         * modules/nanosleep (Include): Likewise.
63399
63400 2007-01-01  Bruno Haible  <bruno@clisp.org>
63401
63402         * gnulib-tool (func_emit_copyright_notice): Bump year.
63403         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
63404
63405 2007-01-01  Bruno Haible  <bruno@clisp.org>
63406
63407         Improve support for OpenBSD.
63408         * build-aux/config.rpath (libname_spec): Export.
63409         (library_names_spec): New variable. Export.
63410         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
63411         library_names_spec from the config.rpath output. Locate shared library
63412         through the name pattern in library_names_spec.
63413
63414 2007-01-01  Eric Blake  <ebb9@byu.net>
63415
63416         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
63417
63418 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
63419
63420         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
63421         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
63422         assume the C locale, and avoid an "eval" that could cause trouble.
63423         Problem with SORT reported by Bob Proulx.
63424
63425         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
63426         Define.  Trivial patch from Henning Nielsen Lund, originally
63427         sent to bug-grep@gnu.org today.
63428
63429 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63430
63431         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
63432         struct stat.  Problem reported by Henning Nielsen Lund.
63433         * lib/acl.c: Include acl.h first, to check interface.  Don't
63434         bother to include sys/types.h and sys/stat.h again.
63435
63436 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
63437
63438         Import the following change from libc; problem reported by
63439         Sven Verdoolaege.
63440
63441         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
63442
63443         [BZ #1373]
63444         * lib/argp.h: Remove __NTH for __argp_usage inline function.
63445
63446 2006-12-28  Jim Meyering  <jim@meyering.net>
63447
63448         * build-aux/announce-gen: Do not assume that the package
63449         builds any of tar.gz, tar.bz2, and .xdelta files.
63450         Suggestion from Simon Josefsson.
63451
63452 2006-12-28  Simon Josefsson  <simon@josefsson.org>
63453
63454         * modules/announce-gen: New file.
63455
63456 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
63457
63458         * lib/mbchar.h: Just include <wctype.h>; the wctype module
63459         handles its gotchas now.
63460         * lib/mbswidth.c: Likewise.
63461         * lib/wcwidth.h: Likewise.
63462         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
63463         and iswcntrl; the wctype module does this stuff now.
63464         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
63465         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63466         * modules/mbchar (Depends-on): Add wctype.
63467         * modules/mbswidth (Depends-on): Likewise.
63468         * modules/wcwidth (Depends-on): Likewise.
63469
63470 2006-12-27  Eric Blake  <ebb9@byu.net>
63471
63472         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
63473         module uses more than what <wctype.h> is required to provide.
63474
63475 2006-12-26  Eric Blake  <ebb9@byu.net>
63476
63477         * gnulib-tool (sed_extract_prog): Avoid space-tab.
63478
63479 2006-12-26  Eric Blake  <ebb9@byu.net>
63480
63481         * modules/absolute-header: New module.
63482         * modules/fcntl (Depends-on): Depend on it.
63483         * modules/inttypes (Depends-on): Likewise.
63484         * modules/stdint (Depends-on): Likewise.
63485         * modules/sys_stat (Depends-on): Likewise.
63486         * modules/wctype (Depends-on): Likewise.
63487         * MODULES.html.sh (Support for building libraries and
63488         executables): Document it.
63489
63490 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
63491
63492         * gnulib-tool (SED): Remove, undoing previous change.
63493         The problem was that it broke coreutils on Solaris, because
63494         "sed --posix" leaked into a makefile.
63495         (sed): New alias, if 'alias' and GNU sed.
63496
63497 2006-12-24  Jim Meyering  <jim@meyering.net>
63498
63499         Work around an fchownat bug in glibc-2.4:
63500         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
63501         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
63502         in spite of the -P option.
63503         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
63504         New macros.
63505         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
63506         * modules/openat (Files): Add lib/fchownat.c.
63507         * lib/openat.c (fchownat): Don't define here.  Move to...
63508         * lib/fchownat.c: ...this new file.
63509
63510 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63511
63512         Fix bug reported by Bruno Haible in
63513         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
63514         where quotearg.c didn't compile on Mac OS X 10.2 because it
63515         lacks <wchar.h> and wint_t.
63516         * lib/wctype_.h (__wctype_wint_t): New type.
63517         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
63518         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
63519         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
63520         Arg is now of type __wctype_wint_t, not wint_t.
63521         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
63522         substitute HAVE_WINT_T.
63523         * modules/wctype (Files): Add m4/wint_t.m4.
63524         (wctype.h): Substitute HAVE_WINT_T.
63525
63526 2006-12-23  Bruno Haible  <bruno@clisp.org>
63527
63528         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
63529
63530 2006-12-23  Bruno Haible  <bruno@clisp.org>
63531
63532         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
63533         S_ISLNK.
63534         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
63535         mingw.
63536
63537 2006-12-22  Bruno Haible  <bruno@clisp.org>
63538
63539         * lib/copy-file.c: Include acl.h.
63540         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
63541         Close the file descriptors only after being done with copy_acl.
63542         * modules/copy-file (Depends-on): Add acl.
63543
63544 2006-12-22  Bruno Haible  <bruno@clisp.org>
63545
63546         * gnulib-tool (SED): New variable.
63547         Use $SED instead of sed everywhere.
63548
63549 2006-12-22  Bruno Haible  <bruno@clisp.org>
63550
63551         * modules/no-c++: New file.
63552         * m4/no-c++.m4: New file.
63553         * MODULES.html.sh (Support for building libraries and executables):
63554         Add no-c++.
63555
63556 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
63557
63558         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
63559         Include <limits.h>, and use its INT_MAX to rewrite the
63560         j loop so that it does not overflow 'int'.  Problem reported by
63561         Ralf Wildenhues in
63562         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
63563         Play it safe by shifting left by 1 rather than multiplying by 2,
63564         as GCC is less likely to optimize this away when the value
63565         is signed (when it assumes overflow leads to undefined behavior).
63566         Also, don't assume time_t uses two's complement.
63567
63568 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
63569
63570         * MODULES.html.sh: New module wctype.
63571         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
63572         * lib/fnmatch.c: Don't bother to include <wchar.h> before
63573         <wctype.h>, since the new wctype module should fix this.
63574         * lib/quotearg.c: Include <wctype.h> unconditionally, since
63575         the wctype module should arrange for it.
63576         * lib/regex_internal.h: Likewise.
63577         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
63578         since the wctype module should handle this now.
63579         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
63580         * modules/fnmatch (Depends-on): Add wctype.
63581         * modules/quotearg (Depends-on): Likewise.
63582         * modules/regex (Depends-on): Likewise.
63583
63584 2006-12-19  Bruno Haible  <bruno@clisp.org>
63585
63586         * lib/strdup.h [C++]: Wrap definitions in extern "C".
63587         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
63588
63589 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63590
63591         * modules/savewd (Depends-on): Fix dependency on fcntl.
63592
63593 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63594
63595         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
63596         conforms to C99, rather than relying on the user's environment
63597         setting of STDINT_H.
63598
63599 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63600         and Eric Blake  <ebb9@byu.net>
63601
63602         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
63603         This is more consistent with the other defines here.
63604         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
63605         Port to z/OS.  Problem reported by Paul Gilmartin.
63606         Change local vars to use gl_ prefix rather than ac_.
63607         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
63608         with other defines.
63609         * modules/double-slash-root: New module.
63610         * modules/dirname (Files): Remove m4/double-slash-root.m4.
63611         (Depends-on): Add double-slash-root.
63612         * MODULES.html.sh (File system functions): Mention new module.
63613
63614 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
63615
63616         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
63617         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
63618         This is for the benefit of gzip, which doesn't do i18n.
63619
63620 2006-12-12  Jim Meyering  <jim@meyering.net>
63621
63622         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
63623         Reported by Andreas Schwab <schwab@suse.de>.
63624
63625 2006-12-12  Bruno Haible  <bruno@clisp.org>
63626
63627         Merge these changes.
63628         2006-09-05  Bruno Haible  <bruno@clisp.org>
63629         * lib/iconvme.c (iconv_string): No need to save and restore errno when
63630         iconv_alloc succeeded.
63631         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
63632         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
63633         test for " && dest " at the end - dest is always != NULL there. Call
63634         iconv with 4xNULL arguments initially, to reset the state. Call iconv
63635         with 2xNULL arguments, also to flush the state storage. Handle the
63636         IRIX iconv behaviour. Realloc the final result, to throw away unused
63637         memory.
63638
63639 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
63640
63641         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
63642         and fchmodat unconditionally, since glibc 2.4 has them.
63643         Problem reported by Arkadiusz Miskiewicz.
63644
63645 2006-12-10  Bruno Haible  <bruno@clisp.org>
63646
63647         * gnulib-tool (func_import): Show the include files only for those
63648         modules that are copied and specified.
63649         Reported by Karl Berry.
63650
63651 2006-12-08  Jim Meyering  <jim@meyering.net>
63652
63653         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
63654         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
63655
63656         * build-aux/announce-gen: Add two new options, both optional:
63657         --bootstrap-tools=TOOL_LIST
63658               a comma-separated list of tools, e.g.,
63659               autoconf,automake,bison,gnulib
63660         --gnulib-snapshot-date=DATE
63661               if gnulib is in the bootstrap tool list,
63662               then report this as the snapshot date.
63663               If not specified, use the current date/time.
63664               If you specify a date here, be sure it's UTC.
63665
63666 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63667
63668         * tests/test-argp-2.sh: Fix test to match actual output.
63669         (func_compare): Fix sed script to be portable.
63670
63671 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
63672
63673         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
63674         workaround for this case.  It is not autoconfigured now; offhand
63675         it's hard to see how to autoconfigure it.
63676
63677 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
63678
63679         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
63680         a directory that is about to be chowned.  Such a directory's
63681         initial file permissions should permit the owner only and this
63682         should not be changed until after the chown, since the group and
63683         other bits would be incorrect if they granted permission before
63684         the chown.
63685
63686         Fix porting problem for iswctype reported by Georg Schwarz in:
63687         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
63688         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
63689         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
63690         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
63691         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63692
63693 2006-12-03  Jim Meyering  <jim@meyering.net>
63694
63695         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
63696         p->fts_statp may not yet be defined.
63697         (fts_read): Instead, set it in the caller, once p->fts_statp is
63698         sure to be defined, and corresponds to a top-level directory.
63699         This bug made du -x fail.  Here's the coreutils test case:
63700         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
63701         Reported by Mike Frysinger.
63702
63703 2006-12-01  Jim Meyering  <jim@meyering.net>
63704
63705         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
63706         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
63707         Reported by Simon Josefsson.
63708
63709 2006-11-30  Jim Meyering  <jim@meyering.net>
63710
63711         * m4/warning.m4: Use the all-permissive copyright notice
63712         recommended by RMS (rather than LGPL).
63713         * m4/vararrays.m4: Likewise.
63714         * m4/flexmember.m4: Likewise.
63715
63716 2006-11-29  Bruno Haible  <bruno@clisp.org>
63717
63718         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63719         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
63720         using +=.
63721         Reported by Simon Josefsson <simon@josefsson.org>.
63722
63723 2006-11-28  James Youngman <jay@gnu.org>
63724
63725         * README: Advise users that they might find the bug-gnulib@gnu.org
63726         and autotools-announce@gnu.org mailing lists useful.
63727
63728 2006-11-28  Bruno Haible  <bruno@clisp.org>
63729
63730         * m4/ptrdiff_max.m4: Remove file.
63731
63732 2006-11-21  Bruno Haible  <bruno@clisp.org>
63733
63734         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
63735         _AC_COMPUTE_INT.
63736         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63737         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
63738         _AC_COMPUTE_INT.
63739         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63740         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
63741         _AC_COMPUTE_INT.
63742         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63743
63744 2006-11-28  Jim Meyering  <jim@meyering.net>
63745
63746         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
63747         warning from "gcc -Wshadow" about shadowing the builtin.
63748
63749 2006-11-27  Bruno Haible  <bruno@clisp.org>
63750
63751         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
63752         _AC_COMPUTE_INT.
63753         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63754
63755 2006-11-27  Bruno Haible  <bruno@clisp.org>
63756             Paul Eggert  <eggert@cs.ucla.edu>
63757
63758         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
63759
63760 2006-11-26  Bruno Haible  <bruno@clisp.org>
63761
63762         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63763         noinst_LTLIBRARIES.
63764
63765 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
63766             Bruno Haible  <bruno@clisp.org>
63767
63768         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
63769         if compiling with "gcc -ansi".
63770
63771 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
63772
63773         Fix some incompatibilities with gcc -ansi -pedantic.
63774         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
63775         if compiling pedantically with GCC, unless it's C99 or later.
63776         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
63777         it mishandles gcc -ansi -pedantic as well.
63778         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
63779         if gcc -pedantic.
63780         * lib/regexec.c (check_node_accept_bytes): Don't use auto
63781         initializers for struct if -pedantic, unless it's C99 or later.
63782
63783 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
63784
63785         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
63786         Don't close an fd more than once. Identical atimes indicate
63787         success, not failure.
63788
63789 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
63790
63791         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
63792
63793 2006-11-23  Jim Meyering  <jim@meyering.net>
63794
63795         * build-aux/announce-gen: New file.  From coreutils.
63796
63797 2006-11-22  Jim Meyering  <jim@meyering.net>
63798
63799         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
63800         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
63801         (fts_read): Use a temporary to narrow the overused st_size member
63802         before using it in a switch statement.  Reported by Matthew Woehlke.
63803
63804         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
63805         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
63806
63807 2006-11-20  Bruno Haible  <bruno@clisp.org>
63808
63809         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
63810         changequote instead of pairs of brackets.
63811         Reported by Andreas Schwab <schwab@suse.de>.
63812
63813 2006-11-21  Jim Meyering  <jim@meyering.net>
63814
63815         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
63816         so as to remain compatible with older compilers.
63817         Patch from Michael Deutschmann.
63818
63819 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63820
63821         * MODULES.html.sh (File system functions): Add openat.
63822
63823         * lib/openat.h (rpl_fstatat): New macro, if
63824         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
63825         (fstatat): Define to rpl_fstatat under the same conditions,
63826         unless COMPILING_FSTATAT.
63827         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
63828         seems to have the bug.
63829         * lib/fstatat.c: New file.
63830         * modules/openat (Files): Add it.
63831
63832 2006-11-20  Bruno Haible  <bruno@clisp.org>
63833
63834         * Makefile: New file.
63835
63836 2006-11-20  Jim Meyering  <jim@meyering.net>
63837
63838         The beginnings of syntax-related checks for gnulib.
63839         * lib/Makefile: New file.
63840         * lib/t-idcache: New script.  Ensure that the two halves of
63841         idcache.c stay in sync.
63842
63843         * lib/idcache.c: Adjust comments in user- and group- portions to
63844         be more accurate, and to be consistent with one another.
63845
63846 2006-11-20  Jim Meyering  <jim@meyering.net>
63847
63848         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
63849         continue using the flexible array member (thus, this module performs
63850         half as many malloc calls), with the addition that...
63851         (getgroup, getuser): Consistently record a non-match via an empty
63852         "name" string, and map an empty string match to a NULL return value.
63853         * modules/idcache (Depends-on): Re-add flexmember.
63854
63855         * lib/idcache.c (getuser): Remove all uses of the register keyword.
63856         (getuidbyname, getgroup, getgidbyname): Likewise.
63857
63858         Use cleaner syntax: NULL rather than 0.
63859         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
63860
63861 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63862
63863         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
63864         It mishandled the case where the group was missing.
63865         Problem reported by Greg Schafer.
63866         * modules/idcache: Likewise.
63867
63868 2006-11-18  Jim Meyering  <jim@meyering.net>
63869
63870         * check-module (%exempt_header): Add exception for some
63871         conditionally-included headers.
63872
63873         * modules/i-ring (Depends-on): Add verify.
63874         (License): Change to LGPL.
63875
63876 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63877
63878         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
63879         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
63880         and inttostr.h.  Use snprintf rather than uinttostr, so that
63881         LGPLed code doesn't depend on GPLed.
63882
63883 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63884
63885         * modules/inline (License): Change from GPL to LGPL.
63886
63887 2006-11-17  Jim Meyering  <jim@meyering.net>
63888
63889         * modules/d-type (License): Switch to LGPL.
63890
63891 2006-11-15  Bruno Haible  <bruno@clisp.org>
63892
63893         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
63894
63895 2006-11-15  Eric Blake  <ebb9@byu.net>
63896
63897         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
63898         the module dependency.
63899
63900 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63901             Bruno Haible  <bruno@clisp.org>
63902
63903         * gnulib-tool (func_create_testdir): Add license consistency check.
63904
63905 2006-11-15  Eric Blake  <ebb9@byu.net>
63906
63907         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
63908         random "(cached)" in configure output.
63909
63910 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63911
63912         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
63913         test for conforming inttypes.h is both announced and cached.
63914
63915         * MODULES.html.sh (seen_modules, seen_files): New variables.
63916         (func_module): Rewrite to use a few less gnulib-tool and sed
63917         invocations.  Avoid a couple of quadratic algorithms for ...
63918         (missed_modules, missed_files): ... these, with ...
63919         (func_append, func_tmpdir): ... these new functions, from
63920         gnulib-tool.  Analogously, install traps for cleanup.
63921
63922         * tests/test-gc.c (main): Remove unused variables.
63923         * tests/test-read-file.c: Include stdlib.h, for 'free'.
63924
63925 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
63926
63927         * modules/inttostr (License): Change to LGPL.
63928
63929 2006-11-14  Eric Blake  <ebb9@byu.net>
63930
63931         * modules/tempname (License): Change to LGPL.
63932
63933 2006-11-14  Eric Blake  <ebb9@byu.net>
63934
63935         * doc/functions.texi (Function Portability): *printf functions on
63936         Cygwin now understand all POSIX size specifiers.
63937
63938 2006-11-14  Bruno Haible  <bruno@clisp.org>
63939
63940         * modules/c-ctype (License): Change to LGPL.
63941
63942 2006-11-12  Bruno Haible  <bruno@clisp.org>
63943
63944         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
63945         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
63946         for GNOME libraries, for which the include files are installed in
63947         subdirectories of $prefix/include.
63948
63949 2006-11-12  Bruno Haible  <bruno@clisp.org>
63950
63951         * m4/lib-link.m4: Require at least autoconf-2.54.
63952         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
63953         name to underscores for the --with option.
63954
63955 2006-11-13  Bruno Haible  <bruno@clisp.org>
63956
63957         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
63958         the tests directory.
63959         Reported by Ralf Wildenhues.
63960
63961 2006-11-13  Bruno Haible  <bruno@clisp.org>
63962
63963         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
63964         (func_emit_initmacro_end): Undo the override here.
63965         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
63966         Works around the famous automake error in coreutils.
63967
63968 2006-11-13  Eric Blake  <ebb9@byu.net>
63969
63970         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
63971         element, not its node.
63972
63973 2006-11-12  Bruno Haible  <bruno@clisp.org>
63974
63975         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
63976         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
63977
63978 2006-11-12  Bruno Haible  <bruno@clisp.org>
63979
63980         * gnulib-tool: New option --local-symlink.
63981         (func_usage): Document it.
63982         (lsymbolic): New variable.
63983         (func_import, func_create_testdir): If --symlink was not specified,
63984         test whether --local-symlink was specified and the file comes from
63985         the local_gnulib_dir.
63986
63987 2006-11-12  Bruno Haible  <bruno@clisp.org>
63988
63989         * gnulib-tool (func_ln): New function.
63990         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
63991
63992 2006-11-12  Bruno Haible  <bruno@clisp.org>
63993
63994         Finish support for source files in subdirectories.
63995         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
63996         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
63997         AUTOMAKE_OPTIONS.
63998         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
63999
64000 2006-11-12  Bruno Haible  <bruno@clisp.org>
64001
64002         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64003         EXTRA_lib_SOURCES augmentation.
64004         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
64005
64006 2006-11-12  Jim Meyering  <jim@meyering.net>
64007
64008         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
64009         file descriptors.  This also averts a failure on systems with
64010         native openat support when a traversed directory lacks "x" access.
64011         * lib/fts_.h: Include "i-ring.h"
64012         (struct FTS) [fts_fd_ring]: New member.
64013         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
64014         (FCHDIR): Add parentheses.
64015         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
64016         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
64017         When descending, rather than simply closing the previous
64018         fts_cwd_fd value, push that file descriptor onto the ring.
64019         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
64020         (fts_open): Initialize the new fd_ring member.
64021         (fts_close): Clear the ring.
64022         (fts_safe_changedir): When possible, use our new fd_ring to skip
64023         the diropen and fstat and dev/ino comparison that would normally
64024         accompany a virtual `chdir ("..")'.
64025
64026         * modules/fts (Depends-on): Add i-ring.
64027         * modules/i-ring: New module.
64028         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
64029         * m4/i-ring.m4: New file.
64030
64031 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64032
64033         * gnulib-tool (func_create_testdir): Fix replacement of
64034         `build-aux' in configure.ac.  Run autotools in gltests
64035         subdirectory.
64036         (func_create_testdir, func_create_megatestdir, test): There is
64037         no need for '--force' in most autotool invocations in a new
64038         tree.  Actually fail the whole test if any of the tools, or the
64039         configure or make stages fail.
64040
64041         Sync from Automake.
64042         * build-aux/gnupload: Revert last change.  Add pointer to upload
64043         instructions of the GNU Maintenance Instructions.
64044         Suggestion by Karl Berry.
64045
64046 2006-11-10  Jim Meyering  <jim@meyering.net>
64047
64048         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
64049
64050 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64051
64052         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
64053         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
64054         (bind_textdomain_codeset) [! ENABLE_NLS]:
64055         Evaluate all the arguments.  That way, callers get compatible behavior
64056         if the arguments have side effects.  Also, it avoids some GCC
64057         diagnostics in some cases; Joel E. Denny reported problems when Bison
64058         was configured with --enable-gcc-warnigs.
64059
64060 2006-11-10  Jim Meyering  <jim@meyering.net>
64061
64062         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
64063         relevant options in CFLAGS (like -O, -fno-inline) are taken into
64064         account.
64065
64066 2006-11-10  Jim Meyering  <jim@meyering.net>
64067
64068         * modules/inline: New file/module.
64069         * modules/xalloc (Files): Remove m4/inline.m4.
64070         (Depends-on): Add inline, instead.
64071         * modules/oset: Likewise.
64072         * modules/list: Likewise.
64073
64074 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64075
64076         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
64077         Problem reported by Matthew Woehlke.
64078
64079 2006-11-09  Bruno Haible  <bruno@clisp.org>
64080
64081         * lib/tempname.c (gen_tempname): Remove variant that invokes
64082         __gen_tempname.
64083         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
64084         __gen_tempname.
64085
64086 2006-11-08  Bruno Haible  <bruno@clisp.org>
64087
64088         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
64089         to 'yes' instead of 'cross-compiling'.
64090
64091 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
64092
64093         * lib/quotearg.h (quotearg_free): New decl.
64094         * lib/quotearg.c (quotearg_free): New function.
64095         (slot0, nslots, slotvec0, slotvec):
64096         Now file-scope so that quotearg_free can get at them.
64097
64098 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64099
64100         Sync from Automake.
64101         * build-aux/gnupload: Add missing 'gnu' to example URL.
64102         Report by Karl Berry.
64103
64104 2006-11-08  Bruno Haible  <bruno@clisp.org>
64105
64106         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
64107         Suggested by Paul Eggert.
64108
64109 2006-11-08  Jim Meyering  <jim@meyering.net>
64110
64111         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
64112         It's already included if !_LIBC.
64113         (fts_safe_changedir): Add a comment.
64114
64115 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64116
64117         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
64118         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
64119         Matthew Woehlke.
64120
64121         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
64122         definitions up, to avoid colliding with change below.
64123         (static_inline) [HAVE_INLINE]: New macro.
64124         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
64125         Provide extern decls when !HAVE_INLINE.  Do not define unless
64126         static_inline is defined, either by us or by xmalloc.c.  Use
64127         static_inline rather than static inline.
64128         (XCALLOC): Optimize sizeof(T) = 1 case.
64129         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
64130
64131 2006-11-07  Bruno Haible  <bruno@clisp.org>
64132
64133         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
64134         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
64135         AC_C_INLINE.
64136         * modules/xalloc (Files): Add m4/inline.m4.
64137
64138 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64139
64140         * README: Fix typo.
64141         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
64142         (Miscellanous Notes): ...from this.
64143
64144 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64145
64146         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
64147         Mention that offsetof should be used instead of sizeof.
64148         From Bruno Haible.
64149
64150 2006-11-07  Bruno Haible  <bruno@clisp.org>
64151
64152         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
64153
64154 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
64155
64156         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
64157         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
64158         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
64159         (gl_tree_add_before, gl_tree_add_after):
64160         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
64161         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
64162         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
64163         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
64164         (gl_linked_add_after, gl_linked_add_at): Likewise.
64165         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
64166         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
64167         (gl_tree_add_before, gl_tree_add_after): Likewise.
64168         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
64169         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
64170         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
64171
64172 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64173
64174         * lib/gl_oset.h: Use C comment style, not C++ comment style.
64175
64176 2006-11-06  Bruno Haible  <bruno@clisp.org>
64177
64178         * m4/inline.m4: New file.
64179         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
64180         * modules/list (Files): Add m4/inline.m4.
64181         * modules/oset (Files): Likewise.
64182
64183 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
64184
64185         * lib/idcache.c: Include <stddef.h>, for offsetof.
64186         (struct userid.name): Change from char * to a flexible array member.
64187         All uses changed.
64188         * modules/idcache (Depends-on): Add flexmember.
64189
64190         * MODULES.html.sh (Core language properties): New module flexmember.
64191         * modules/flexmember, m4/flexmember.m4: New files.
64192
64193         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
64194         inline functions that are identical with the old xnmalloc_inline,
64195         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
64196         that we can avoid some unnecessary integer multiplications and
64197         divisions in the common case where the element size is known at
64198         compile time.
64199         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
64200         needed.
64201         (xnboundedmalloc): Remove.
64202         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
64203         arguments, for consistency with rest of this header.
64204         (xcharalloc): Rewrite using XNMALLOC.
64205         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
64206         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
64207         versions have been moved to lib/xalloc.h and renamed to be the
64208         non-*_inline versions.
64209         (xmalloc, xrealloc): Implement without reference to the xnmalloc
64210         and xnrealloc functions, since those functions are now inline and
64211         now call us.
64212         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
64213         renaming described above.
64214         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
64215         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
64216         captures the dependency in AC_C_INLINE.
64217
64218         New module canonicalize-lgpl, proposed by Charles Wilson in
64219         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
64220         with a few small changes afterwards.
64221         * MODULES.html.sh (File system functions): New module
64222         canonicalize-lgpl.
64223         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
64224         and canonicalize_file_name.
64225         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
64226         * modules/canonicalize-lgpl: New files.
64227
64228 2006-11-05  Bruno Haible  <bruno@clisp.org>
64229
64230         * gnulib-tool (func_import, func_create_testdir): Create directories
64231         also for files in subdirectories of lib/.
64232
64233 2006-11-05  Bruno Haible  <bruno@clisp.org>
64234
64235         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
64236         ANSI C compliant.
64237
64238 2006-11-03  Bruno Haible  <bruno@clisp.org>
64239
64240         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
64241         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
64242         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
64243         (xnboundedmalloc): New inline function.
64244         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
64245         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
64246         xmalloc.
64247         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
64248         xmalloc.
64249         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
64250         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
64251         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
64252         xmalloc.
64253         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
64254         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
64255         xmalloc.
64256         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
64257         gl_tree_add_after): Use XMALLOC instead of xmalloc.
64258         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
64259         xmalloc.
64260         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
64261         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
64262         gl_tree_add_after): Use XMALLOC instead of xmalloc.
64263         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
64264         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
64265         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
64266         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
64267
64268 2006-11-03  Bruno Haible  <bruno@clisp.org>
64269
64270         * lib/c-ctype.h [C++]: Define functions without name mangling.
64271         * lib/fwriteerror.h [C++]: Likewise.
64272         * lib/gcd.h [C++]: Likewise.
64273         * lib/linebreak.h [C++]: Likewise.
64274
64275 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
64276
64277         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
64278         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
64279         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
64280         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
64281         Check for functions and headers just once.
64282         Check for declaration of canonicalize_file_name.
64283         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
64284
64285 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64286
64287         * gnulib-tool (func_import): Fix typo in actioncmd.
64288
64289 2006-11-02  Bruno Haible  <bruno@clisp.org>
64290
64291         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
64292         newline sequence in the Makefile.am snippet as a space, like "make"
64293         does.
64294         Reported by Roger Persson <perrog@gmail.com>.
64295
64296 2006-11-01  Bruno Haible  <bruno@clisp.org>
64297
64298         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
64299         already declared in <string.h>.
64300         * lib/strcase.h (strncasecmp): Don't declare it if yes.
64301
64302 2006-11-01  Bruno Haible  <bruno@clisp.org>
64303
64304         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
64305         * lib/strcase.h: Include <string.h>.
64306         (strcasecmp): Define to rpl_strcasecmp here.
64307
64308 2006-11-01  Bruno Haible  <bruno@clisp.org>
64309
64310         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
64311
64312 2006-11-01  Eric Blake  <ebb9@byu.net>
64313
64314         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
64315
64316         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
64317
64318 2006-10-29  Bruno Haible  <bruno@clisp.org>
64319
64320         Make it compile in C++ mode.
64321         * lib/full-write.c (full_rw): Add a cast.
64322
64323 2006-11-01  Bruno Haible  <bruno@clisp.org>
64324
64325         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
64326         be POSIX compliant.
64327         Reported by Roger Persson <perrog@gmail.com>.
64328
64329 2006-11-01  Eric Blake  <ebb9@byu.net>
64330
64331         * lib/getopt_.h: Fix comments.
64332
64333 2006-10-31  Eric Blake  <ebb9@byu.net>
64334
64335         * modules/tmpdir (Depends-on): Add sys_stat.
64336         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
64337         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
64338         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
64339         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
64340         tempname.
64341
64342 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
64343
64344         Avoid some C++ diagnostics reported by Bruno Haible.
64345         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
64346         xmalloc.
64347         (quotearg_alloc): Use xcharalloc rather than xmalloc.
64348         (struct slotvec): Move to top level.
64349         (quotearg_n_options): Rewrite to avoid xmalloc.
64350         * lib/xalloc.h (xcharalloc): New function.
64351         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
64352         [defined __cplusplus]: Add function template that provides result
64353         type propagation.  This part of the change is from Bruno Haible.
64354
64355 2006-10-29  Bruno Haible  <bruno@clisp.org>
64356
64357         Make it compile in C++ mode.
64358         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
64359         * lib/strnlen1.c (strnlen1): Cast memchr result.
64360         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
64361         * lib/clean-temp.c (string_equals, string_hash): Add casts.
64362         (create_temp_dir): Rename local variable 'template'.
64363         (compile_csharp_using_sscli): Add cast.
64364         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
64365         * lib/findprog.c (find_in_path): Likewise.
64366         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
64367         * lib/wait-process.c (register_slave_subprocess): Likewise.
64368
64369 2006-10-22  Bruno Haible  <bruno@clisp.org>
64370
64371         * modules/tsearch: New file.
64372         * lib/tsearch.h: New file.
64373         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
64374         * m4/tsearch.m4: New file.
64375         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
64376
64377 2006-10-29  Eric Blake  <ebb9@byu.net>
64378
64379         * lib/arcfour.c: Assume config.h.
64380         * lib/arctwo.c: Likewise.
64381         * lib/base64.c: Likewise.
64382         * lib/check-version.c: Likewise.
64383         * lib/crc.c: Likewise.
64384         * lib/des.c: Likewise.
64385         * lib/gc-gnulib.c: Likewise.
64386         * lib/gc-libgcrypt.c: Likewise.
64387         * lib/gc-pbkdf2-sha1.c: Likewise.
64388         * lib/getaddrinfo.c: Likewise.
64389         * lib/getdelim.c: Likewise.
64390         * lib/getline.c: Likewise.
64391         * lib/hmac-md5.c: Likewise.
64392         * lib/hmac-sha1.c: Likewise.
64393         * lib/iconvme.c: Likewise.
64394         * lib/md2.c: Likewise.
64395         * lib/md4.c: Likewise.
64396         * lib/memxor.c: Likewise.
64397         * lib/read-file.c: Likewise.
64398         * lib/readline.c: Likewise.
64399         * lib/rijndael-alg-fst.c: Likewise.
64400         * lib/rijndael-api-fst.c: Likewise.
64401         * lib/xgetdomainname.c: Likewise.
64402
64403 2006-10-28  Eric Blake  <ebb9@byu.net>
64404
64405         * lib/xstrndup.c: Assume config.h.
64406
64407 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
64408
64409         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
64410         stat-macros.h is now for our own macros, whereas stat_h is for
64411         macros in the <sys/stat.h> name space.
64412         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
64413         (STAT_MACROS_H): Remove.
64414         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
64415         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
64416         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
64417         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
64418         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
64419         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
64420         Move these macros to ...
64421         * lib/stat_.h: here.  Don't include stat-macros.h.
64422         * lib/canonicalize.c: Don't include stat-macros.h.
64423         * lib/chown.c: Likewise.
64424         * lib/euidaccess.c: Likewise.
64425         * lib/file-type.c: Likewise.
64426         * lib/filemode.c: Likewise.
64427         * lib/glob.c: Likewise.
64428         * lib/isapipe.c: Likewise.
64429         * lib/lchown.c: Likewise.
64430         * lib/lstat.c: Likewise.
64431         * lib/mkdir-p.c: Likewise.
64432         * lib/rmdir.c: Likewise.
64433         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
64434         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
64435         unless mkdir isn't declared, to speed up 'configure'.
64436         Always create sys/stat.h, since it's unlikely any real sys/stat.h
64437         would define all the S_* symbols.
64438         * modules/canonicalize (Depends-on):
64439         Depend on sys_stat, not stat-macros.
64440         * modules/chown: Likewise.
64441         * modules/euidaccess: Likewise.
64442         * modules/filemode: Likewise.
64443         * modules/file-type: Likewise.
64444         * modules/glob: Likewise.
64445         * modules/isapipe: Likewise.
64446         * modules/lchown: Likewise.
64447         * modules/lstat: Likewise.
64448         * modules/mkancesdirs: Likewise.
64449         * modules/rmdir: Likewise.
64450         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
64451         * modules/modechange: Likewise.
64452         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
64453         (configure.ac): Remove gl_STAT_MACROS.
64454         * modules/sys_stat (Depends-on): Remove stat-macros.
64455
64456 2006-10-27  Bruno Haible  <bruno@clisp.org>
64457
64458         * m4/signed.m4: Remove file.
64459         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
64460         invocation.
64461         * modules/vasnprintf (Files): Remove m4/signed.m4.
64462
64463 2006-10-27  Bruno Haible  <bruno@clisp.org>
64464
64465         Update to GNU gettext 0.16.
64466         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
64467         m4/inttypes-h.m4, m4/signed.m4.
64468         * m4/gettext.m4: Update to GNU gettext 0.16.
64469         * m4/intl.m4: New file, from GNU gettext.
64470         * m4/intldir.m4: New file, from GNU gettext.
64471         * config/srclist.txt: Update
64472
64473 2006-10-27  Eric Blake  <ebb9@byu.net>
64474
64475         * MODULES.html.sh: Document tempname.
64476         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
64477         dependencies.
64478         (Files): Move lib/tempname.c...
64479         * modules/tempname: ...to this new module.
64480         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
64481         (gl_PREREQ_TEMPNAME): Move...
64482         * m4/tempname.m4: ...to this new file.
64483         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
64484         * modules/sys_stat (Depends-on): Add stat-macros.
64485         * lib/stat_.h (includes): Pick up stat macros.
64486         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
64487         if stat macros are broken.
64488         * lib/tempname.c (includes): No need to include "stat-macros.h".
64489         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
64490         (direxists, __path_search) [!_LIBC]: Don't compile these in
64491         gnulib; the tmpdir module covers that.
64492         * lib/tempname.h: New file.
64493
64494 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
64495
64496         * COPYING: Explain how gnulib-tool converts licence headers.
64497         Almost all wording by Eric Blake.
64498
64499 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
64500
64501         * lib/mbchar.h (is_basic_table): Make read-only.
64502         * lib/mbchar.c (is_basic_table): Likewise.
64503         Reported by John Darrington.
64504
64505 2006-10-25  Bruno Haible  <bruno@clisp.org>
64506
64507         * lib/progname.h (set_program_name): Undefine before defining.
64508
64509 2006-10-25  Bruno Haible  <bruno@clisp.org>
64510
64511         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
64512         false for non-gcc C++ compilers.
64513         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
64514
64515 2006-10-24  Bruno Haible  <bruno@clisp.org>
64516
64517         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
64518         iconv implementations like Irix iconv.
64519
64520 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64521
64522         * modules/vararrays: New file.
64523         * m4/vararrays.m4: New file, taken from diffutils.
64524         * MODULES.html.sh: New module vararrays.
64525
64526 2006-10-24  Karl Berry  <karl@gnu.org>
64527
64528         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
64529         Don't call GNU Unix.
64530
64531 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64532
64533         * users.txt: Add Libtool.
64534
64535         Sync from Libtool:
64536
64537         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64538
64539         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
64540         to gnulib's policy of including config.h unconditionally.
64541
64542 2006-10-24  Bruno Haible  <bruno@clisp.org>
64543
64544         * modules/wcwidth (Files): Add m4/wint_t.m4.
64545         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
64546         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
64547
64548 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64549
64550         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
64551         to pacify GCC with some -W flags enabled.  Problem reported by
64552         Bruno Haible.
64553
64554 2006-10-24  Jim Meyering  <jim@meyering.net>
64555
64556         * MODULES.html.sh: Remove uinttostr.  It's not a module.
64557         Reported by Karl Berry.
64558
64559 2006-10-23  Bruno Haible  <bruno@clisp.org>
64560
64561         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
64562
64563 2006-10-24  Bruno Haible  <bruno@clisp.org>
64564
64565         * lib/gl_list.h: Use C comment style, not C++ comment style.
64566
64567 2006-10-23  Eric Blake  <ebb9@byu.net>
64568
64569         * lib/getaddrinfo.c (includes): Add missing include.
64570
64571 2006-10-23  Bruno Haible  <bruno@clisp.org>
64572             Paul Eggert  <eggert@cs.ucla.edu>
64573
64574         Ability to rename obstack_free.
64575         * lib/obstack.h (__obstack_free): New macro. Declare instead of
64576         obstack_free.
64577         (obstack_free): Invoke the __obstack_free macro.
64578         * lib/obstack.c (obstack_free): Use __obstack_free macro.
64579
64580 2006-10-23  Bruno Haible  <bruno@clisp.org>
64581             Paul Eggert  <eggert@cs.ucla.edu>
64582
64583         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
64584         __argc, __argv from the declaration. (They are defined as macros on
64585         mingw.)
64586
64587 2006-10-22  Bruno Haible  <bruno@clisp.org>
64588
64589         * doc/gnulib-intro.texi: New file.
64590         * doc/gnulib.texi: Include it.
64591
64592 2006-10-21  Bruno Haible  <bruno@clisp.org>
64593
64594         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
64595         "Introduction", "Miscellanous Notes", "Particular Modules".
64596
64597 2006-10-21  Bruno Haible  <bruno@clisp.org>
64598
64599         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64600         Change mostlyclean-local rule to avoid sh syntax error from bash
64601         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
64602
64603 2006-10-23  Jim Meyering  <jim@meyering.net>
64604
64605         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
64606         in place of snprintf.
64607
64608         * modules/inttostr (Files): Add lib/uinttostr.c.
64609         * lib/uinttostr.c (inttostr): New file/function.
64610         * lib/inttostr.h (uinttostr): Declare.
64611         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
64612         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
64613         Add uinttostr.
64614         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
64615
64616 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
64617
64618         * lib/canonicalize.c (ELOOP): Define if not already defined.
64619         Problem reported by Bruno Haible in
64620         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
64621
64622 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
64623
64624         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
64625         Problem reported by Perry Smith and Ville Laurikari.
64626
64627         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
64628         uses.
64629
64630 2006-10-19  Bruno Haible  <bruno@clisp.org>
64631
64632         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
64633         for mingw.
64634
64635 2006-10-19  Bruno Haible  <bruno@clisp.org>
64636
64637         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
64638         Needed for mingw.
64639
64640 2006-10-19  Bruno Haible  <bruno@clisp.org>
64641
64642         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
64643
64644 2006-10-19  Bruno Haible  <bruno@clisp.org>
64645
64646         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
64647         it.
64648
64649 2006-10-19  Bruno Haible  <bruno@clisp.org>
64650
64651         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
64652         invocation.
64653
64654 2006-10-19  Bruno Haible  <bruno@clisp.org>
64655
64656         * gnulib-tool (func_create_testdir): Don't include ftruncate and
64657         mountlist by default.
64658
64659 2006-10-16  Bruno Haible  <bruno@clisp.org>
64660
64661         * lib/c-strstr.c: Include c-strstr.h.
64662
64663 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64664
64665         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
64666         in a slash.
64667
64668 2006-10-18  Bruno Haible  <bruno@clisp.org>
64669
64670         * lib/lock.h [C++]: Wrap definitions in extern "C".
64671
64672 2006-10-18  Bruno Haible  <bruno@clisp.org>
64673
64674         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
64675         gl_LIBOBJS list.
64676
64677 2006-10-18  Bruno Haible  <bruno@clisp.org>
64678
64679         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
64680
64681 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
64682
64683         * lib/xstrtol.h: Include gettext.h.
64684         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
64685         Problem reported by Eric Blake.
64686         * modules/xstrtol (Depends-on): Add gettext-h.
64687
64688 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
64689
64690         * lib/strftime.c (advance): New macro.
64691         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
64692         incomplete type, so you can't add 0 to it.  Problem and patch
64693         reported by Eelco Dolstra for dietlibc.
64694
64695 2006-10-18  Jim Meyering  <jim@meyering.net>
64696
64697         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
64698         type for a local, and rename it: s/up/user_proc/.
64699
64700 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
64701
64702         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
64703         READ_UTMP_USER_PROCESS.
64704         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
64705
64706 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64707
64708         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
64709         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
64710
64711 2006-10-17  Eric Blake  <ebb9@byu.net>
64712
64713         * lib/sigprocmask.c (sigprocmask): Fix typo.
64714
64715         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
64716
64717         * modules/clean-temp (Makefile.am): Don't add to make output...
64718         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
64719         config.h.
64720
64721 2006-10-17  Bruno Haible  <bruno@clisp.org>
64722
64723         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
64724         differently if DEFAULT_TEXT_DOMAIN is set.
64725
64726 2006-10-16  Bruno Haible  <bruno@clisp.org>
64727
64728         * lib/clean-temp.c: Include fwriteerror.h.
64729
64730 2006-10-16  Bruno Haible  <bruno@clisp.org>
64731
64732         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
64733
64734 2006-10-16  Bruno Haible  <bruno@clisp.org>
64735
64736         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
64737         * lib/sigprocmask.h: Include <sys/types.h>.
64738         (sigset_t): Use the system's definition if present.
64739
64740 2006-10-17  Eric Blake  <ebb9@byu.net>
64741
64742         * lib/xvasprintf.c (includes): Assume config.h.
64743         * lib/xasprintf.c (includes): Likewise.
64744
64745 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64746
64747         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
64748         at least as wide as intmax_t.
64749
64750 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
64751
64752         (Imported from Automake.)
64753         * build-aux/gnupload: Update to version 1.1 of directive file.
64754
64755 2006-10-16  Eric Blake  <ebb9@byu.net>
64756
64757         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
64758         match Automake 1.10a.
64759
64760 2006-10-14  Bruno Haible  <bruno@clisp.org>
64761
64762         * modules/sigprocmask: New file.
64763         * lib/sigprocmask.h: New file.
64764         * lib/sigprocmask.c: New file.
64765         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
64766         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
64767         request sigprocmask.o.
64768         (gl_PREREQ_SIGPROCMASK): New macro.
64769         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
64770         (Depends-on): Add sigprocmask.
64771         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
64772         gt_SIGNALBLOCKING. Test for 'raise' only once.
64773         * lib/fatal-signal.c: Include sigprocmask.h.
64774         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
64775         unblock_fatal_signals): Define always.
64776         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64777         sigprocmask.
64778
64779 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64780
64781         Sync from Automake.
64782         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
64783         which incorrectly sets the mode of an existing destination
64784         directory.  In some cases the unpatched install-sh could do the
64785         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
64786         system.  We hope this is rare in practice, but it's clearly worth
64787         fixing.  Problem reported by Alex Unleashed in
64788         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
64789         Also, don't bother to check for -m bugs unless we're using -m;
64790         suggested by Stepan Kasal.
64791
64792 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64793
64794         Sync from Automake.
64795         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
64796         `-c' flag, so they appear at the same position as in %FASTDEP%
64797         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
64798         which ignores unknown options only after the first non-option.
64799         Bug report against M4 by Nelson H. F. Beebe.
64800
64801 2006-10-13  Jim Meyering  <jim@meyering.net>
64802
64803         Fix a bug in yesterday's change.
64804         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
64805         p->fts_statp->st_dev would be used uninitialized.
64806         Ensures that we always call fts_stat on the very first entry.
64807         Miklos Szeredi reported that find -xdev stopped working.
64808
64809 2006-10-12  Bruno Haible  <bruno@clisp.org>
64810
64811         * gnulib-tool (func_get_automake_snippet): Append an automatically
64812         computed EXTRA_DIST augmentation.
64813         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
64814         * modules/alloca-opt (Makefile.am): Likewise.
64815         * modules/allocsa (Makefile.am): Likewise.
64816         * modules/arcfour (Makefile.am): Likewise.
64817         * modules/arctwo (Makefile.am): Likewise.
64818         * modules/argmatch (Makefile.am): Likewise.
64819         * modules/argz (Makefile.am): Likewise.
64820         * modules/atexit (Makefile.am): Likewise.
64821         * modules/backupfile (Makefile.am): Likewise.
64822         * modules/byteswap (Makefile.am): Likewise.
64823         * modules/c-strtod (Makefile.am): Likewise.
64824         * modules/c-strtold (Makefile.am): Likewise.
64825         * modules/calloc (Makefile.am): Likewise.
64826         * modules/canon-host (Makefile.am): Likewise.
64827         * modules/canonicalize (Makefile.am): Likewise.
64828         * modules/chdir-long (Makefile.am): Likewise.
64829         * modules/chdir-safer (Makefile.am): Likewise.
64830         * modules/check-version (Makefile.am): Likewise.
64831         * modules/chown (Makefile.am): Likewise.
64832         * modules/cloexec (Makefile.am): Likewise.
64833         * modules/close-stream (Makefile.am): Likewise.
64834         * modules/closeout (Makefile.am): Likewise.
64835         * modules/crc (Makefile.am): Likewise.
64836         * modules/csharpexec (Makefile.am): Likewise.
64837         * modules/cycle-check (Makefile.am): Likewise.
64838         * modules/des (Makefile.am): Likewise.
64839         * modules/dev-ino (Makefile.am): Likewise.
64840         * modules/dirfd (Makefile.am): Likewise.
64841         * modules/dirname (Makefile.am): Likewise.
64842         * modules/dup2 (Makefile.am): Likewise.
64843         * modules/eealloc (Makefile.am): Likewise.
64844         * modules/error (Makefile.am): Likewise.
64845         * modules/euidaccess (Makefile.am): Likewise.
64846         * modules/exclude (Makefile.am): Likewise.
64847         * modules/exitfail (Makefile.am): Likewise.
64848         * modules/fcntl-safer (Makefile.am): Likewise.
64849         * modules/fcntl (Makefile.am): Likewise.
64850         * modules/file-type (Makefile.am): Likewise.
64851         * modules/fileblocks (Makefile.am): Likewise.
64852         * modules/filemode (Makefile.am): Likewise.
64853         * modules/filenamecat (Makefile.am): Likewise.
64854         * modules/fnmatch (Makefile.am): Likewise.
64855         * modules/fopen-safer (Makefile.am): Likewise.
64856         * modules/fpending (Makefile.am): Likewise.
64857         * modules/fprintftime (Makefile.am): Likewise.
64858         * modules/free (Makefile.am): Likewise.
64859         * modules/fsusage (Makefile.am): Likewise.
64860         * modules/ftruncate (Makefile.am): Likewise.
64861         * modules/fts (Makefile.am): Likewise.
64862         * modules/gc-arcfour (Makefile.am): Likewise.
64863         * modules/gc-des (Makefile.am): Likewise.
64864         * modules/gc-hmac-md5 (Makefile.am): Likewise.
64865         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
64866         * modules/gc-md4 (Makefile.am): Likewise.
64867         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
64868         * modules/gc-sha1 (Makefile.am): Likewise.
64869         * modules/gc (Makefile.am): Likewise.
64870         * modules/getaddrinfo (Makefile.am): Likewise.
64871         * modules/getcwd (Makefile.am): Likewise.
64872         * modules/getdelim (Makefile.am): Likewise.
64873         * modules/getdomainname (Makefile.am): Likewise.
64874         * modules/getgroups (Makefile.am): Likewise.
64875         * modules/gethostname (Makefile.am): Likewise.
64876         * modules/gethrxtime (Makefile.am): Likewise.
64877         * modules/getline (Makefile.am): Likewise.
64878         * modules/getloadavg (Makefile.am): Likewise.
64879         * modules/getlogin_r (Makefile.am): Likewise.
64880         * modules/getndelim2 (Makefile.am): Likewise.
64881         * modules/getopt (Makefile.am): Likewise.
64882         * modules/getpagesize (Makefile.am): Likewise.
64883         * modules/getpass-gnu (Makefile.am): Likewise.
64884         * modules/getpass (Makefile.am): Likewise.
64885         * modules/getsubopt (Makefile.am): Likewise.
64886         * modules/gettime (Makefile.am): Likewise.
64887         * modules/gettimeofday (Makefile.am): Likewise.
64888         * modules/getugroups (Makefile.am): Likewise.
64889         * modules/getusershell (Makefile.am): Likewise.
64890         * modules/glob (Makefile.am): Likewise.
64891         * modules/group-member (Makefile.am): Likewise.
64892         * modules/hard-locale (Makefile.am): Likewise.
64893         * modules/hash (Makefile.am): Likewise.
64894         * modules/hmac-md5 (Makefile.am): Likewise.
64895         * modules/hmac-sha1 (Makefile.am): Likewise.
64896         * modules/human (Makefile.am): Likewise.
64897         * modules/idcache (Makefile.am): Likewise.
64898         * modules/imaxabs (Makefile.am): Likewise.
64899         * modules/imaxdiv (Makefile.am): Likewise.
64900         * modules/inet_ntop (Makefile.am): Likewise.
64901         * modules/inet_pton (Makefile.am): Likewise.
64902         * modules/intprops (Makefile.am): Likewise.
64903         * modules/inttostr (Makefile.am): Likewise.
64904         * modules/inttypes (Makefile.am): Likewise.
64905         * modules/isapipe (Makefile.am): Likewise.
64906         * modules/javaversion (Makefile.am): Likewise.
64907         * modules/lchmod (Makefile.am): Likewise.
64908         * modules/lchown (Makefile.am): Likewise.
64909         * modules/localcharset (Makefile.am): Likewise.
64910         * modules/long-options (Makefile.am): Likewise.
64911         * modules/lstat (Makefile.am): Likewise.
64912         * modules/malloc (Makefile.am): Likewise.
64913         * modules/mathl (Makefile.am): Likewise.
64914         * modules/mbchar (Makefile.am): Likewise.
64915         * modules/md2 (Makefile.am): Likewise.
64916         * modules/md4 (Makefile.am): Likewise.
64917         * modules/md5 (Makefile.am): Likewise.
64918         * modules/memcasecmp (Makefile.am): Likewise.
64919         * modules/memchr (Makefile.am): Likewise.
64920         * modules/memcmp (Makefile.am): Likewise.
64921         * modules/memcoll (Makefile.am): Likewise.
64922         * modules/memcpy (Makefile.am): Likewise.
64923         * modules/memmem (Makefile.am): Likewise.
64924         * modules/memmove (Makefile.am): Likewise.
64925         * modules/mempcpy (Makefile.am): Likewise.
64926         * modules/memrchr (Makefile.am): Likewise.
64927         * modules/memset (Makefile.am): Likewise.
64928         * modules/memxor (Makefile.am): Likewise.
64929         * modules/mkancesdirs (Makefile.am): Likewise.
64930         * modules/mkdir-p (Makefile.am): Likewise.
64931         * modules/mkdir (Makefile.am): Likewise.
64932         * modules/mkdtemp (Makefile.am): Likewise.
64933         * modules/mkstemp (Makefile.am): Likewise.
64934         * modules/mktime (Makefile.am): Likewise.
64935         * modules/modechange (Makefile.am): Likewise.
64936         * modules/mountlist (Makefile.am): Likewise.
64937         * modules/nanosleep (Makefile.am): Likewise.
64938         * modules/obstack (Makefile.am): Likewise.
64939         * modules/openat (Makefile.am): Likewise.
64940         * modules/pagealign_alloc (Makefile.am): Likewise.
64941         * modules/pathmax (Makefile.am): Likewise.
64942         * modules/physmem (Makefile.am): Likewise.
64943         * modules/poll (Makefile.am): Likewise.
64944         * modules/posixtm (Makefile.am): Likewise.
64945         * modules/posixver (Makefile.am): Likewise.
64946         * modules/putenv (Makefile.am): Likewise.
64947         * modules/quote (Makefile.am): Likewise.
64948         * modules/quotearg (Makefile.am): Likewise.
64949         * modules/raise (Makefile.am): Likewise.
64950         * modules/read-file (Makefile.am): Likewise.
64951         * modules/readline (Makefile.am): Likewise.
64952         * modules/readlink (Makefile.am): Likewise.
64953         * modules/readtokens (Makefile.am): Likewise.
64954         * modules/readutmp (Makefile.am): Likewise.
64955         * modules/realloc (Makefile.am): Likewise.
64956         * modules/regex (Makefile.am): Likewise.
64957         * modules/rename-dest-slash (Makefile.am): Likewise.
64958         * modules/rename (Makefile.am): Likewise.
64959         * modules/rijndael (Makefile.am): Likewise.
64960         * modules/rmdir (Makefile.am): Likewise.
64961         * modules/rpmatch (Makefile.am): Likewise.
64962         * modules/safe-read (Makefile.am): Likewise.
64963         * modules/safe-write (Makefile.am): Likewise.
64964         * modules/same-inode (Makefile.am): Likewise.
64965         * modules/same (Makefile.am): Likewise.
64966         * modules/save-cwd (Makefile.am): Likewise.
64967         * modules/savedir (Makefile.am): Likewise.
64968         * modules/setenv (Makefile.am): Likewise.
64969         * modules/settime (Makefile.am): Likewise.
64970         * modules/sha1 (Makefile.am): Likewise.
64971         * modules/sig2str (Makefile.am): Likewise.
64972         * modules/snprintf (Makefile.am): Likewise.
64973         * modules/stat-macros (Makefile.am): Likewise.
64974         * modules/stat-time (Makefile.am): Likewise.
64975         * modules/stdbool (Makefile.am): Likewise.
64976         * modules/stdint (Makefile.am): Likewise.
64977         * modules/stdlib-safer (Makefile.am): Likewise.
64978         * modules/stpcpy (Makefile.am): Likewise.
64979         * modules/stpncpy (Makefile.am): Likewise.
64980         * modules/strcase (Makefile.am): Likewise.
64981         * modules/strcasestr (Makefile.am): Likewise.
64982         * modules/strchrnul (Makefile.am): Likewise.
64983         * modules/strcspn (Makefile.am): Likewise.
64984         * modules/strdup (Makefile.am): Likewise.
64985         * modules/strerror (Makefile.am): Likewise.
64986         * modules/strftime (Makefile.am): Likewise.
64987         * modules/strndup (Makefile.am): Likewise.
64988         * modules/strnlen (Makefile.am): Likewise.
64989         * modules/strpbrk (Makefile.am): Likewise.
64990         * modules/strsep (Makefile.am): Likewise.
64991         * modules/strstr (Makefile.am): Likewise.
64992         * modules/strtod (Makefile.am): Likewise.
64993         * modules/strtoimax (Makefile.am): Likewise.
64994         * modules/strtok_r (Makefile.am): Likewise.
64995         * modules/strtol (Makefile.am): Likewise.
64996         * modules/strtoll (Makefile.am): Likewise.
64997         * modules/strtoul (Makefile.am): Likewise.
64998         * modules/strtoull (Makefile.am): Likewise.
64999         * modules/strtoumax (Makefile.am): Likewise.
65000         * modules/strverscmp (Makefile.am): Likewise.
65001         * modules/sys_socket (Makefile.am): Likewise.
65002         * modules/sys_stat (Makefile.am): Likewise.
65003         * modules/sysexits (Makefile.am): Likewise.
65004         * modules/time_r (Makefile.am): Likewise.
65005         * modules/timegm (Makefile.am): Likewise.
65006         * modules/timespec (Makefile.am): Likewise.
65007         * modules/tmpfile-safer (Makefile.am): Likewise.
65008         * modules/trim (Makefile.am): Likewise.
65009         * modules/unistd-safer (Makefile.am): Likewise.
65010         * modules/unlinkdir (Makefile.am): Likewise.
65011         * modules/unlocked-io (Makefile.am): Likewise.
65012         * modules/userspec (Makefile.am): Likewise.
65013         * modules/utime (Makefile.am): Likewise.
65014         * modules/utimecmp (Makefile.am): Likewise.
65015         * modules/utimens (Makefile.am): Likewise.
65016         * modules/vasnprintf (Makefile.am): Likewise.
65017         * modules/vasprintf (Makefile.am): Likewise.
65018         * modules/vsnprintf (Makefile.am): Likewise.
65019         * modules/xalloc (Makefile.am): Likewise.
65020         * modules/xgetcwd (Makefile.am): Likewise.
65021         * modules/xnanosleep (Makefile.am): Likewise.
65022         * modules/xreadlink (Makefile.am): Likewise.
65023         * modules/xstrtod (Makefile.am): Likewise.
65024         * modules/xstrtol (Makefile.am): Likewise.
65025         * modules/xstrtold (Makefile.am): Likewise.
65026         * modules/yesno (Makefile.am): Likewise.
65027         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
65028
65029 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65030
65031         * modules/error (Makefile.am): Distribute files through
65032         EXTRA_DIST, not lib_SOURCES.
65033
65034 2006-10-12  Eric Blake  <ebb9@byu.net>
65035
65036         * modules/error (Makefile.am): Distribute files in /lib.
65037         * modules/obstack (Makefile.am): Likewise.
65038
65039 2006-10-12  Bruno Haible  <bruno@clisp.org>
65040
65041         * modules/acl (Makefile.am): Distribute all files in lib/ through
65042         EXTRA_DIST.
65043         * modules/arcfour (Makefile.am): Likewise.
65044         * modules/arctwo (Makefile.am): Likewise.
65045         * modules/argmatch (Makefile.am): Likewise.
65046         * modules/argz (Makefile.am): Likewise.
65047         * modules/atexit (Makefile.am): Likewise.
65048         * modules/backupfile (Makefile.am): Likewise.
65049         * modules/c-strtod (Makefile.am): Likewise.
65050         * modules/c-strtold (Makefile.am): Likewise.
65051         * modules/calloc (Makefile.am): Likewise.
65052         * modules/canon-host (Makefile.am): Likewise.
65053         * modules/canonicalize (Makefile.am): Likewise.
65054         * modules/chdir-long (Makefile.am): Likewise.
65055         * modules/chdir-safer (Makefile.am): Likewise.
65056         * modules/check-version (Makefile.am): Likewise.
65057         * modules/chown (Makefile.am): Likewise.
65058         * modules/cloexec (Makefile.am): Likewise.
65059         * modules/close-stream (Makefile.am): Likewise.
65060         * modules/closeout (Makefile.am): Likewise.
65061         * modules/crc (Makefile.am): Likewise.
65062         * modules/cycle-check (Makefile.am): Likewise.
65063         * modules/des (Makefile.am): Likewise.
65064         * modules/dirfd (Makefile.am): Likewise.
65065         * modules/dirname (Makefile.am): Likewise.
65066         * modules/dup2 (Makefile.am): Likewise.
65067         * modules/euidaccess (Makefile.am): Likewise.
65068         * modules/exclude (Makefile.am): Likewise.
65069         * modules/exitfail (Makefile.am): Likewise.
65070         * modules/fcntl-safer (Makefile.am): Likewise.
65071         * modules/file-type (Makefile.am): Likewise.
65072         * modules/fileblocks (Makefile.am): Likewise.
65073         * modules/filemode (Makefile.am): Likewise.
65074         * modules/filenamecat (Makefile.am): Likewise.
65075         * modules/fnmatch (Makefile.am): Likewise.
65076         * modules/fopen-safer (Makefile.am): Likewise.
65077         * modules/fpending (Makefile.am): Likewise.
65078         * modules/fprintftime (Makefile.am): Likewise.
65079         * modules/free (Makefile.am): Likewise.
65080         * modules/fsusage (Makefile.am): Likewise.
65081         * modules/ftruncate (Makefile.am): Likewise.
65082         * modules/fts (Makefile.am): Likewise.
65083         * modules/gc (Makefile.am): Likewise.
65084         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
65085         * modules/getaddrinfo (Makefile.am): Likewise.
65086         * modules/getcwd (Makefile.am): Likewise.
65087         * modules/getdelim (Makefile.am): Likewise.
65088         * modules/getdomainname (Makefile.am): Likewise.
65089         * modules/getgroups (Makefile.am): Likewise.
65090         * modules/gethostname (Makefile.am): Likewise.
65091         * modules/gethrxtime (Makefile.am): Likewise.
65092         * modules/getline (Makefile.am): Likewise.
65093         * modules/getloadavg (Makefile.am): Likewise.
65094         * modules/getlogin_r (Makefile.am): Likewise.
65095         * modules/getopt (Makefile.am): Likewise.
65096         * modules/getpass (Makefile.am): Likewise.
65097         * modules/getpass-gnu (Makefile.am): Likewise.
65098         * modules/getsubopt (Makefile.am): Likewise.
65099         * modules/gettime (Makefile.am): Likewise.
65100         * modules/gettimeofday (Makefile.am): Likewise.
65101         * modules/getugroups (Makefile.am): Likewise.
65102         * modules/getusershell (Makefile.am): Likewise.
65103         * modules/glob (Makefile.am): Likewise.
65104         * modules/group-member (Makefile.am): Likewise.
65105         * modules/hard-locale (Makefile.am): Likewise.
65106         * modules/hash (Makefile.am): Likewise.
65107         * modules/hmac-md5 (Makefile.am): Likewise.
65108         * modules/hmac-sha1 (Makefile.am): Likewise.
65109         * modules/human (Makefile.am): Likewise.
65110         * modules/idcache (Makefile.am): Likewise.
65111         * modules/imaxabs (Makefile.am): Likewise.
65112         * modules/imaxdiv (Makefile.am): Likewise.
65113         * modules/inet_ntop (Makefile.am): Likewise.
65114         * modules/inet_pton (Makefile.am): Likewise.
65115         * modules/inttostr (Makefile.am): Likewise.
65116         * modules/isapipe (Makefile.am): Likewise.
65117         * modules/lchown (Makefile.am): Likewise.
65118         * modules/long-options (Makefile.am): Likewise.
65119         * modules/lstat (Makefile.am): Likewise.
65120         * modules/malloc (Makefile.am): Likewise.
65121         * modules/mathl (Makefile.am): Likewise.
65122         * modules/mbchar (Makefile.am): Likewise.
65123         * modules/md2 (Makefile.am): Likewise.
65124         * modules/md4 (Makefile.am): Likewise.
65125         * modules/md5 (Makefile.am): Likewise.
65126         * modules/memcasecmp (Makefile.am): Likewise.
65127         * modules/memchr (Makefile.am): Likewise.
65128         * modules/memcmp (Makefile.am): Likewise.
65129         * modules/memcoll (Makefile.am): Likewise.
65130         * modules/memcpy (Makefile.am): Likewise.
65131         * modules/memmem (Makefile.am): Likewise.
65132         * modules/memmove (Makefile.am): Likewise.
65133         * modules/mempcpy (Makefile.am): Likewise.
65134         * modules/memrchr (Makefile.am): Likewise.
65135         * modules/memset (Makefile.am): Likewise.
65136         * modules/memxor (Makefile.am): Likewise.
65137         * modules/mkancesdirs (Makefile.am): Likewise.
65138         * modules/mkdir (Makefile.am): Likewise.
65139         * modules/mkdir-p (Makefile.am): Likewise.
65140         * modules/mkdtemp (Makefile.am): Likewise.
65141         * modules/mkstemp (Makefile.am): Likewise.
65142         * modules/mktime (Makefile.am): Likewise.
65143         * modules/modechange (Makefile.am): Likewise.
65144         * modules/mountlist (Makefile.am): Likewise.
65145         * modules/nanosleep (Makefile.am): Likewise.
65146         * modules/openat (Makefile.am): Likewise.
65147         * modules/pagealign_alloc (Makefile.am): Likewise.
65148         * modules/physmem (Makefile.am): Likewise.
65149         * modules/poll (Makefile.am): Likewise.
65150         * modules/posixtm (Makefile.am): Likewise.
65151         * modules/posixver (Makefile.am): Likewise.
65152         * modules/putenv (Makefile.am): Likewise.
65153         * modules/quote (Makefile.am): Likewise.
65154         * modules/quotearg (Makefile.am): Likewise.
65155         * modules/raise (Makefile.am): Likewise.
65156         * modules/read-file (Makefile.am): Likewise.
65157         * modules/readline (Makefile.am): Likewise.
65158         * modules/readlink (Makefile.am): Likewise.
65159         * modules/readtokens (Makefile.am): Likewise.
65160         * modules/readutmp (Makefile.am): Likewise.
65161         * modules/realloc (Makefile.am): Likewise.
65162         * modules/regex (Makefile.am): Likewise.
65163         * modules/rename (Makefile.am): Likewise.
65164         * modules/rename-dest-slash (Makefile.am): Likewise.
65165         * modules/rijndael (Makefile.am): Likewise.
65166         * modules/rmdir (Makefile.am): Likewise.
65167         * modules/rpmatch (Makefile.am): Likewise.
65168         * modules/safe-read (Makefile.am): Likewise.
65169         * modules/safe-write (Makefile.am): Likewise.
65170         * modules/same (Makefile.am): Likewise.
65171         * modules/save-cwd (Makefile.am): Likewise.
65172         * modules/savedir (Makefile.am): Likewise.
65173         * modules/setenv (Makefile.am): Likewise.
65174         * modules/settime (Makefile.am): Likewise.
65175         * modules/sha1 (Makefile.am): Likewise.
65176         * modules/sig2str (Makefile.am): Likewise.
65177         * modules/snprintf (Makefile.am): Likewise.
65178         * modules/stdlib-safer (Makefile.am): Likewise.
65179         * modules/stpcpy (Makefile.am): Likewise.
65180         * modules/stpncpy (Makefile.am): Likewise.
65181         * modules/strcase (Makefile.am): Likewise.
65182         * modules/strcasestr (Makefile.am): Likewise.
65183         * modules/strchrnul (Makefile.am): Likewise.
65184         * modules/strcspn (Makefile.am): Likewise.
65185         * modules/strdup (Makefile.am): Likewise.
65186         * modules/strerror (Makefile.am): Likewise.
65187         * modules/strftime (Makefile.am): Likewise.
65188         * modules/strndup (Makefile.am): Likewise.
65189         * modules/strnlen (Makefile.am): Likewise.
65190         * modules/strpbrk (Makefile.am): Likewise.
65191         * modules/strsep (Makefile.am): Likewise.
65192         * modules/strstr (Makefile.am): Likewise.
65193         * modules/strtod (Makefile.am): Likewise.
65194         * modules/strtoimax (Makefile.am): Likewise.
65195         * modules/strtok_r (Makefile.am): Likewise.
65196         * modules/strtol (Makefile.am): Likewise.
65197         * modules/strtoll (Makefile.am): Likewise.
65198         * modules/strtoul (Makefile.am): Likewise.
65199         * modules/strtoull (Makefile.am): Likewise.
65200         * modules/strtoumax (Makefile.am): Likewise.
65201         * modules/strverscmp (Makefile.am): Likewise.
65202         * modules/time_r (Makefile.am): Likewise.
65203         * modules/timegm (Makefile.am): Likewise.
65204         * modules/tmpfile-safer (Makefile.am): Likewise.
65205         * modules/unistd-safer (Makefile.am): Likewise.
65206         * modules/unlinkdir (Makefile.am): Likewise.
65207         * modules/userspec (Makefile.am): Likewise.
65208         * modules/utime (Makefile.am): Likewise.
65209         * modules/utimecmp (Makefile.am): Likewise.
65210         * modules/utimens (Makefile.am): Likewise.
65211         * modules/vasnprintf (Makefile.am): Likewise.
65212         * modules/vasprintf (Makefile.am): Likewise.
65213         * modules/vsnprintf (Makefile.am): Likewise.
65214         * modules/xalloc (Makefile.am): Likewise.
65215         * modules/xgetcwd (Makefile.am): Likewise.
65216         * modules/xnanosleep (Makefile.am): Likewise.
65217         * modules/xreadlink (Makefile.am): Likewise.
65218         * modules/xstrtod (Makefile.am): Likewise.
65219         * modules/xstrtol (Makefile.am): Likewise.
65220         * modules/xstrtold (Makefile.am): Likewise.
65221         * modules/yesno (Makefile.am): Likewise.
65222
65223 2006-10-12  Jim Meyering  <jim@meyering.net>
65224
65225         * m4/getloadavg.m4: Revert the change below.
65226
65227         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
65228         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
65229         fail with a symlink, which is what coreutils' ./bootstrap now
65230         creates by default.
65231
65232 2006-10-12  Bruno Haible  <bruno@clisp.org>
65233
65234         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
65235         mingw.
65236         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
65237         MSVC and mingw explicitly.
65238
65239 2006-10-11  Simon Josefsson  <jas@extundo.com>
65240             Bruno Haible  <bruno@clisp.org>
65241
65242         Add support for multiple gnulib-tool invocations in the scope of a
65243         single configure.ac file.
65244         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
65245         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
65246         with the same contents as the _LIBADD variable.
65247         (func_emit_initmacro_start, func_emit_initmacro_end,
65248         func_emit_initmacro_done): New functions.
65249         (func_import, func_create_testdir): Invoke them. Allow the identifiers
65250         gl_LIBOBJS and gl_LTLIBOBJS.
65251
65252 2006-10-11  Bruno Haible  <bruno@clisp.org>
65253
65254         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
65255         (func_create_testdir): Don't create po/Makefile.am, don't invoke
65256         autoreconf. Instead, invoke autopoint explicitly but move back the
65257         *.m4 files from gnulib.
65258
65259 2006-10-11  Bruno Haible  <bruno@clisp.org>
65260
65261         * gnulib-tool (func_usage): Make module names after --create-testdir
65262         optional.
65263         (func_create_testdir): If no module was specified, use nearly all
65264         modules.
65265
65266 2006-10-12  Jim Meyering  <jim@meyering.net>
65267
65268         Big performance improvement for fts-based tools that use FTS_NOSTAT.
65269         Avoid spurious inode-mismatch problems on non-POSIX file systems.
65270         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
65271         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
65272         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
65273         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
65274         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
65275         (fts_set_stat_required): New function.
65276         (fts_open): Defer the calls to fts_stat, if possible or requested.
65277         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
65278         into fts_stat itself.
65279         (fts_read): Perform any required (deferred) fts_stat call.
65280         (fts_build): Likewise, for the directory we're about to open and read.
65281         In the readdir loop, carefully decide whether each entry will require
65282         an eventual call to fts_stat, using dirent.d_type info if available.
65283         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
65284         a command line argument into this function.  Update all callers.
65285         Map a return value of FTS_DOT to FTS_D for a command line argument.
65286         * modules/fts (Depends-on): Add d-type.  Alphabetize.
65287         Thanks to Miklos Szeredi for his tenacity and for the initial
65288         bug report about "find" failing on a FUSE-based file system.
65289
65290         * lib/fts.c (fts_open): Use consistent indentation.
65291
65292 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65293
65294         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
65295         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
65296         reported by Jim Meyering.  All uses of cache variables renamed
65297         to match Autoconf's.
65298         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
65299         the other one.
65300
65301         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
65302         Fix misspelling in diagnostic.
65303
65304 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65305
65306         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
65307         defined.  Problem reported by Matthew Woehlke.
65308
65309         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
65310         Add support for Tandem NonStop R series.
65311         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
65312         Use new macro.
65313
65314         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
65315         (has_trailing_slash): Omit size arg; all callers changed.
65316         Omit 'inline', since it doesn't help performance and we'd
65317         need to configure it.
65318         Don't count //, ///, etc. as having a trailing slash.
65319         As a side effect, this removes a C99ism reported by Matthew Woehlke.
65320         (rpl_rename_dest_slash): On failure, use rename's errno rather
65321         than (in some cases) an incorrect or junk errno.
65322         Simplify code by removing need to compute length; this does
65323         cause it to make two passes instead of one over the file name,
65324         but it's worth it.
65325
65326         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
65327         change, since Autoconf's version may no longer be appropriate now
65328         that we are using CVS Autoconf's version.  Add support for Tandem.
65329
65330 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65331             Bruno Haible  <bruno@clisp.org>
65332
65333         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
65334         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
65335         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
65336         gl_AC_TYPE_LONG_LONG.
65337
65338         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
65339         instead of HAVE_LONG_LONG.
65340         * lib/printf-args.c (printf_fetchargs): Likewise.
65341         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
65342         * lib/vasnprintf.c (VASNPRINTF): Likewise.
65343         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
65344         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
65345         gl_AC_TYPE_LONG_LONG.
65346
65347 2006-10-11  Bruno Haible  <bruno@clisp.org>
65348
65349         * m4/longlong.m4: Add comments.
65350         * m4/ulonglong.m4: Likewise.
65351
65352 2006-10-10  Bruno Haible  <bruno@clisp.org>
65353
65354         Make it possible to #define stpcpy, strdup to aliases.
65355         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
65356         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
65357
65358 2006-10-10  Bruno Haible  <bruno@clisp.org>
65359
65360         Make it possible to #define gcd to an alias.
65361         * lib/gcd.c: Include config.h.
65362
65363 2006-10-10  Bruno Haible  <bruno@clisp.org>
65364
65365         Make it possible to #define c_isascii to an alias.
65366         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
65367         defined. Undefine the macros before defining them, to avoid gcc
65368         warnings.
65369         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
65370         define NO_C_CTYPE_MACROS early.
65371
65372 2006-10-10  Bruno Haible  <bruno@clisp.org>
65373
65374         Make it possible to #define set_program_name to an alias.
65375         * lib/progname.c: Don't undefine set_program_name; instead, undefine
65376         ENABLE_RELOCATABLE early.
65377
65378 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65379
65380         Port to Tandem NSK OSS, which has 64-bit signed int but at most
65381         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
65382         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
65383         More generally, don't assume that 64-bit signed int is available
65384         if unsigned int is, and vice versa.
65385         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
65386         unsigned symbols, not on their signed counterparts.
65387         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
65388         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
65389         (UINT64_C, UINTMAX_C):
65390         Likewise.
65391         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
65392         unsigned counterparts.
65393         (Have_long_long, Unsigned): New macros.
65394         (Int): Renamed from INT.
65395         (strtoimax): Use the new macros.
65396         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
65397         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
65398         * modules/inttypes (inttypes.h): Substitute
65399         HAVE_UNSIGNED_LONG_LONG_INT.
65400         * modules/stdint (stdint.h): Likewise.
65401         (Files): Add m4/ulonglong.m4.
65402
65403 2006-10-10  Bruno Haible  <bruno@clisp.org>
65404
65405         Fix a gcc -Wshadow warning.
65406         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
65407         to 'bucket'.
65408         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
65409         gl_linked_indexof_from_to): Likewise.
65410         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
65411         Likewise.
65412         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
65413         Likewise.
65414         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
65415         Reported by Eric Blake.
65416
65417 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
65418
65419         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
65420         for NetBSD.  Problem reported by Bruno Haible.
65421
65422 2006-10-09  Jim Meyering  <jim@meyering.net>
65423
65424         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
65425         Patch from Bruno Haible.
65426
65427 2006-10-09  Jim Meyering  <jim@meyering.net>
65428
65429         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
65430         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
65431         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
65432
65433 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65434
65435         Don't include <config.h> twice; this doesn't work in some cases,
65436         e.g., when config.h has "#define intmax_t long long int" and
65437         we include <config.h>, <inttypes.h>, <config.h> in that order.
65438         Problem reported by Matthew Woehlke in:
65439         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
65440         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
65441         * lib/fts-cycle.c: Don't include config.h.
65442         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
65443         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
65444         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
65445         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
65446         inttypes.h.
65447         * lib/xstrtoumax.c: Likewise.
65448         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
65449         __strtol and the like, so that this module is more like its siblings.
65450         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
65451         Remove; no longer needed now that we assume gnulib inttypes.h.
65452
65453 2006-10-08  Bruno Haible  <bruno@clisp.org>
65454
65455         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
65456         option.
65457
65458 2006-10-07  Jim Meyering  <jim@meyering.net>
65459
65460         * modules/inttypes (inttypes.h): Revert what seems to have been
65461         an inadvertent part of today's change: use "|", not "/" in the
65462         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
65463
65464 2006-10-07  Bruno Haible  <bruno@clisp.org>
65465
65466         * modules/sublist: New file.
65467
65468 2006-10-07  Bruno Haible  <bruno@clisp.org>
65469
65470         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
65471         * modules/argz (argz.h): Likewise.
65472         * modules/arpa_inet (arpa/inet.h): Likewise.
65473         * modules/byteswap (byteswap.h): Likewise.
65474         * modules/configmake (configmake.h): Likewise.
65475         * modules/fcntl (fcntl.h): Likewise.
65476         * modules/fnmatch (fnmatch.h): Likewise.
65477         * modules/getopt (getopt.h): Likewise.
65478         * modules/glob (glob.h): Likewise.
65479         * modules/inttypes (inttypes.h): Likewise.
65480         * modules/netinet_in (netinet/in.h): Likewise.
65481         * modules/poll (poll.h): Likewise.
65482         * modules/stdbool (stdbool.h): Likewise.
65483         * modules/stdint (stdint.h): Likewise.
65484         * modules/sys_select (sys/select.h): Likewise.
65485         * modules/sys_socket (sys/socket.h): Likewise.
65486         * modules/sys_stat (sys/stat.h): Likewise.
65487         * modules/sysexits (sysexits.h): Likewise.
65488         * modules/unistd (unistd.h): Likewise.
65489         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65490         Add a "DO NOT EDIT" comment to the generated file.
65491         (func_import): Likewise for gnulib-comp.m4.
65492
65493 2006-10-07  Bruno Haible  <bruno@clisp.org>
65494
65495         * lib/gl_sublist.h: New file.
65496         * lib/gl_sublist.c: New file.
65497
65498 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65499
65500         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
65501         name (relative to the original working directory) and the file
65502         name component (relative to the temporary working directory).  All
65503         callers changed.
65504         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
65505         * lib/mkdir-p.c (make_dir_parents): Likewise.
65506         * lib/mkdir-p.h (make_dir_parents): Likewise.
65507
65508 2006-10-06  Eric Blake  <ebb9@byu.net>
65509
65510         Define several macros for use by the clean-temp module.
65511         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
65512         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
65513         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
65514
65515         * lib/clean-temp.h (close_stream_temp): New declaration.
65516         * lib/clean-temp.c (includes): Pull in headers according to what
65517         other modules are in use.
65518         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
65519
65520 2006-10-06  Bruno Haible  <bruno@clisp.org>
65521
65522         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
65523         instead of fopen, fwriteerror.
65524
65525 2006-10-06  Bruno Haible  <bruno@clisp.org>
65526
65527         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
65528         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
65529         int.
65530         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
65531         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
65532         Return an error indicator.
65533         Suggested by Eric Blake.
65534
65535 2006-10-06  Bruno Haible  <bruno@clisp.org>
65536
65537         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
65538         Reported by Eric Blake.
65539
65540 2006-10-06  Bruno Haible  <bruno@clisp.org>
65541
65542         * modules/closeout (Description): Mention stderr too.
65543
65544 2006-10-06  Bruno Haible  <bruno@clisp.org>
65545         and Paul Eggert  <eggert@cs.ucla.edu>
65546
65547         * lib/closeout.c (close_stdout): Also close stderr.
65548         * lib/closeout.h: Update comment.
65549
65550 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65551
65552         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
65553         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
65554         * lib/dirchownmod.c: Include lchown.h.
65555         * lib/lchown.c: Don't include files that lchown.h now includes.
65556         Don't declare chown, since lchown.h now does that.
65557         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
65558         (lchown): Define to rpl_chown if lchown is declared but
65559         does not exist.  Declare using a prototype if lchown is not
65560         declared.  Add a copyright notice.
65561         * lib/mkstemp.h: Include <unistd.h>.
65562         * lib/openat.c: Include lchown.h.
65563
65564         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
65565         we now test for that separately.
65566         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
65567         rather than O_NOFOLLOW, when testing whether it's possible to
65568         avoid a race condition reliably.
65569         * lib/savewd.c (savewd_chdir): Likewise.
65570
65571         Remove macros that are no longer needed now that stdint.h is
65572         reliable.
65573         * lib/fsusage.c (UINTMAX_MAX): Remove.
65574         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
65575         * lib/utimecmp.c (SIZE_MAX): Remove.
65576
65577         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
65578
65579         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
65580         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
65581         O_NOATIME works.
65582
65583 2006-10-05  Bruno Haible  <bruno@clisp.org>
65584
65585         * lib/gl_list.h (gl_sortedlist_search_from_to,
65586         gl_sortedlist_indexof_from_to): New declarations.
65587         (gl_list_implementation): New fields sortedlist_search_from_to,
65588         sortedlist_indexof_from_to.
65589         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
65590         inline functions.
65591         * lib/gl_list.c (gl_sortedlist_search_from_to,
65592         gl_sortedlist_indexof_from_to): New functions.
65593         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
65594         function.
65595         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
65596         (gl_array_sortedlist_search_from_to): New function.
65597         (gl_array_list_implementation): Update.
65598         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
65599         function.
65600         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
65601         (gl_carray_sortedlist_search_from_to): New function.
65602         (gl_carray_list_implementation): Update.
65603         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
65604         gl_linked_sortedlist_indexof_from_to): New functions.
65605         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
65606         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
65607         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
65608         gl_tree_sortedlist_indexof_from_to): New functions.
65609         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
65610         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
65611         Update.
65612         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
65613         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
65614         Update.
65615
65616 2006-10-05  Bruno Haible  <bruno@clisp.org>
65617
65618         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
65619         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
65620         (struct gl_list_implementation): Add fields search_from_to,
65621         indexof_from_to. Remove fields search, indexof.
65622         (gl_list_search): Use the search_from_to method.
65623         (gl_list_search_from, gl_list_search_from_to): New functions.
65624         (gl_list_indexof): Use the indexof_from_to method.
65625         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
65626         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
65627         (gl_list_search_from, gl_list_search_from_to): New functions.
65628         (gl_list_indexof): Use the indexof_from_to method.
65629         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
65630         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
65631         gl_array_indexof. Add start_index, end_index arguments.
65632         (gl_array_search_from_to): Renamed from gl_array_search. Add
65633         start_index, end_index arguments.
65634         (gl_array_remove, gl_array_list_implementation): Update.
65635         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
65636         gl_carray_indexof. Add start_index, end_index arguments.
65637         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
65638         start_index, end_index arguments.
65639         (gl_carray_remove, gl_carray_list_implementation): Update.
65640         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
65641         gl_linked_search. Add start_index, end_index arguments.
65642         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
65643         start_index, end_index arguments.
65644         (gl_linked_remove): Update.
65645         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
65646         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
65647         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
65648         field to 'size_t'.
65649         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
65650         gl_tree_search. Add start_index, end_index arguments.
65651         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
65652         start_index, end_index arguments.
65653         (gl_tree_remove): Update.
65654         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
65655         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
65656         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
65657         function.
65658         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
65659         gl_tree_search. Add start_index, end_index arguments.
65660         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
65661         start_index, end_index arguments.
65662         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
65663         Update.
65664         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
65665
65666 2006-10-05  Bruno Haible  <bruno@clisp.org>
65667
65668         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
65669
65670         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
65671         fwriteerror_temp): New declarations.
65672         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
65673         (descriptors): New variable.
65674         (cleanup): First, close the descriptors.
65675         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
65676         fclose_temp, fwriteerror_temp): New functions.
65677
65678 2006-10-04  Jim Meyering  <jim@meyering.net>
65679
65680         * lib/fts.c (fts_open): Tiny comment change.
65681
65682 2006-10-04  Bruno Haible  <bruno@clisp.org>
65683
65684         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
65685         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
65686         gl_LOCK_BODY.
65687         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
65688         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
65689         gl_LOCK_EARLY_BODY.
65690         (gl_LOCK): Require gl_LOCK_BODY.
65691
65692 2006-10-04  Bruno Haible  <bruno@clisp.org>
65693
65694         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
65695         (gl_oset_search_atleast): New declaration.
65696         (struct gl_oset_implementation): Add field 'search_atleast'.
65697         (gl_oset_search_atleast): New inline function.
65698         * lib/gl_oset.c (gl_oset_search_atleast): New function.
65699         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
65700         (gl_array_oset_implementation): Update.
65701         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
65702         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
65703         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
65704
65705 2006-10-04  Bruno Haible  <bruno@clisp.org>
65706
65707         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
65708
65709 2006-10-03  Bruno Haible  <bruno@clisp.org>
65710
65711         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
65712         from gl_avltreehash_list_implementation.
65713
65714 2006-10-03  Bruno Haible  <bruno@clisp.org>
65715
65716         * lib/gl_oset.c (gl_oset_add): Fix return type.
65717
65718 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
65719
65720         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
65721
65722 2006-10-02  Eric Blake  <ebb9@byu.net>
65723
65724         * modules/strnlen (Depends-on): Add extensions.
65725
65726 2006-10-02  Eric Blake  <ebb9@byu.net>
65727
65728         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
65729         definition in 2.60+.
65730
65731 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
65732
65733         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
65734         checks.
65735
65736 2006-10-02  Bruno Haible  <bruno@clisp.org>
65737
65738         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
65739         to the AUTOMAKE_OPTIONS.
65740         Reported by Jim Meyering.
65741
65742 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65743
65744         Work around bug in Solaris 10 /proc file system:
65745         /proc/self/fd/NNN/.. isn't the parent directory of
65746         the directory whose file descriptor is NNN.  This needs to
65747         be worked around at run time, not compile time, since a
65748         program might be built on Solaris 8, where things work, and
65749         run on Solaris 10.
65750         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
65751         to use the following interface instead:
65752         (OPENAT_BUFFER_SIZE): New macro.
65753         (openat_proc_name): New function.
65754         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
65755         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
65756         Likewise.
65757         * lib/openat-proc.c: New file.
65758         * modules/openat (Files): Add lib/openat-proc.c.
65759         (Depends-on): Add same-inode, stdbool.
65760         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
65761
65762 2006-09-29  Bruno Haible  <bruno@clisp.org>
65763
65764         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
65765         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
65766         argument. Set stdout_closed before testing for ferror, not after.
65767         (fwriteerror, fwriteerror_no_ebadf): New functions.
65768
65769 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65770
65771         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
65772
65773 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
65774
65775         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
65776         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
65777
65778 2006-09-28  Jim Meyering  <jim@meyering.net>
65779
65780         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
65781         Include <unistd.h>.
65782
65783 2006-09-28  Bruno Haible  <bruno@clisp.org>
65784
65785         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
65786         * modules/linkedhash-list (Depends-on): Likewise.
65787         * modules/rbtreehash-list (Depends-on): Likewise.
65788
65789 2006-09-28  Bruno Haible  <bruno@clisp.org>
65790
65791         * lib/strndup.h: Simplify the redefinition of strndup.
65792         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
65793         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
65794
65795 2006-09-28  Bruno Haible  <bruno@clisp.org>
65796
65797         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
65798         * lib/gl_linkedhash_list.c: Likewise.
65799         * lib/gl_rbtreehash_list.c: Likewise.
65800
65801 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65802
65803         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
65804         getaddrinfo.
65805
65806         * lib/__fpending.h: Don't include <stdio_ext.h> unless
65807         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
65808         it causes <stdio_ext.h> to cause a compile-time error.
65809         Problem reported by Nelson H. F. Beebe.
65810         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
65811         of HAVE_DECL___PENDING.
65812
65813         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
65814         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
65815         declaration.
65816
65817 2006-09-27  Jim Meyering  <jim@meyering.net>
65818
65819         This file could end up with a definition for a function
65820         named __strndup, rather than rpl_strndup on a system with
65821         incomplete weak_alias support.
65822         * lib/strndup.c (strndup): Rename from __strndup.
65823         Remove #defines that used to map __strndup to strndup.
65824         Don't use K&R prototypes.
65825         Remove LIBC-related code, since this file is not sync'd with glibc.
65826         * lib/strndup.h: Revamp, accordingly.
65827         * m4/strndup.m4: Modernize.
65828
65829 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65830
65831         * modules/savewd (Depends-on): Add 'raise'.
65832         * lib/savewd.c: Include <signal.h>, for 'raise'.
65833
65834 2006-09-26  Jim Meyering  <jim@meyering.net>
65835
65836         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
65837         when we detect Darwin 8.7.0's acl_get_file bug.
65838         Rearrange to perform the new (below) run-test while $LIBS
65839         contains any acl-related library.  Set USE_ACL at the end.
65840         (gl_ACL_GET_FILE): New function.
65841
65842 2006-09-26  Eric Blake  <ebb9@byu.net>
65843
65844         * lib/verror.c: Include <config.h> unconditionally.
65845
65846 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
65847
65848         * modules/clock-time (Maintainer): Add self.
65849         * modules/getlogin_r (Depends-on): Add extensions.
65850
65851 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65852
65853         * modules/clock-time: New module.
65854         * modules/nanosleep (Depends-on): Add clock-time.
65855         * modules/gethrxtime (Depends-on): Likewise.
65856         * modules/gettime (Depends-on): Likewise.
65857         * modules/settime (Depends-on): Likewise.
65858
65859         * modules/fts-lgpl: Depend on openat.
65860         * modules/mkancesdirs: Depend on savewd.
65861         * modules/mkdir-p: Likewise.
65862
65863 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65864
65865         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
65866
65867         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
65868         `gl_have_arbitrary_file_name_length_limit' to
65869         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
65870         actually works between configure runs.
65871
65872 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65873             Bruno Haible  <bruno@clisp.org>
65874
65875         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
65876
65877 2006-09-25  Jim Meyering  <jim@meyering.net>
65878
65879         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
65880         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
65881
65882 2006-09-25  Eric Blake  <ebb9@byu.net>
65883
65884         * gnulib-tool (func_import, func_create_testdir): Fix typos in
65885         exec's in 2006-09-18 patch when shuffling fds.
65886
65887 2006-09-25  Bruno Haible  <bruno@clisp.org>
65888
65889         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
65890         Reported by Jim Meyering.
65891
65892 2006-09-24  Jim Meyering  <jim@meyering.net>
65893
65894         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
65895         compare a pointer against a literal "0".  That caused failures with
65896         at least HP-UX's hpcc.
65897
65898 2006-09-22  Simon Josefsson  <jas@extundo.com>
65899
65900         * modules/gc-sha1:
65901         * modules/gc-md4:
65902         * modules/gc-hmac-sha1:
65903         * modules/gc-hmac-md5:
65904         * modules/gc-des:
65905         * modules/gc-arcfour: Distribute more files.
65906
65907 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65908
65909         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
65910         (gl_linked_iterator_from_to): Initialize struct completely.
65911         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
65912         (gl_tree_iterator_from_to): Likewise
65913         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
65914         * lib/gl_array_list.c [lint] (gl_array_iterator)
65915         (gl_array_iterator_from_to): Likewise.
65916         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
65917         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
65918         (gl_carray_iterator_from_to): Likewise.
65919
65920         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
65921         * lib/md4.c (md4_process_block): Remove unused variable.
65922         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
65923         parentheses for clarity.
65924
65925 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65926
65927         * modules/bison-i18n (Depends-on): Add gettext.
65928
65929 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65930
65931         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
65932         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
65933         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
65934         also add missing comma that caused broken test.
65935         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
65936         stdlib.h, for `abort'.
65937         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
65938         variables.
65939         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
65940         include unistd.h if present, for `rmdir'.
65941         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
65942         variables.
65943         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
65944         in the process include standard headers for prototypes.
65945         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
65946         gets declared on GNU/Linux.
65947         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
65948         unistd.h, for `rmdir'.
65949         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
65950
65951         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
65952         always true.
65953         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
65954
65955         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
65956
65957 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65958
65959         * gnulib-tool (func_version): Create output all at once.  This
65960         may help avoid triggering unnecessary SIGPIPEs, and at any
65961         rate it doesn't hurt.
65962
65963 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65964             Bruno Haible  <bruno@clisp.org>
65965
65966         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
65967         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65968         * m4/signed.m4 (bh_C_SIGNED): Likewise.
65969
65970         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
65971         (gl_FUNC_VASPRINTF): Invoke it.
65972
65973 2006-09-22  Bruno Haible  <bruno@clisp.org>
65974
65975         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
65976         getloadavg.c as first argument.
65977
65978 2006-09-22  Bruno Haible  <bruno@clisp.org>
65979
65980         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
65981         at the beginning of the gl_INIT macro.
65982         * modules/getloadavg (configure.ac): Pass $gl_source_base to
65983         gl_GETLOADAVG.
65984
65985 2006-09-22  Bruno Haible  <bruno@clisp.org>
65986
65987         * gnulib-tool (func_create_megatestdir): Don't include the config-h
65988         module.
65989         Suggested by Ralf Wildenhues.
65990
65991 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65992
65993         Import this patch from libc:
65994
65995         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
65996
65997         * lib/regex_internal.c (re_string_reconstruct): Handle
65998         offset < pstr->valid_raw_len && pstr->offsets_needed case.
65999         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
66000         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
66001         re_string_context_at.
66002
66003         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
66004         now requires it.
66005         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
66006         gl_REGEX now does it for us.
66007         (gl_REGEX): Add test taken from
66008         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
66009
66010         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
66011         Check that large offsets work.  Modernize Autoconf usages.
66012         Prefer "yes" to mean a good thing rather than a bad.
66013         Don't put "#define mkstemp" in config.h, as this might interfere
66014         with standard system headers that "#define mkstemp mkstemp64".
66015
66016         * modules/mkstemp (Depends-on): Add extensions, so that
66017         mkstemp is visible on some platforms.
66018         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
66019         (Include): Change to "mkstemp.h" from <stdlib.h>.
66020         (Files): Add mkstemp.h.
66021
66022         * lib/mkstemp.h: New file, since some standard headers
66023         #define mkstemp.
66024         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
66025         Include "mkstemp.h".
66026         Make the _LIBC code resemble glibc original more,
66027         e.g., use K&R style.
66028         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
66029         (mkstemp): Remove, since mkstemp.h does this for us.
66030         * lib/stdlib--.h: Include mkstemp.h.
66031
66032         Import this patch from libc:
66033
66034         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66035
66036         * lib/tempname.c (__gen_tempname): Change attempts_min
66037         into a macro.  Use preprocessor to decide how to initialize
66038         attempts [Coverity CID 67].
66039
66040 2006-09-20  Bruno Haible  <bruno@clisp.org>
66041
66042         * lib/mkdtemp.c: Import from libc.
66043         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66044                 * sysdeps/posix/tempname.c (__gen_tempname): Change
66045                 attempts_min into a macro.  Use preprocessor to decide how to
66046                 initialize attempts [Coverity CID 67].
66047         2001-11-27  Paul Eggert  <eggert@twinsun.com>
66048                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
66049                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
66050
66051 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66052
66053         * gnulib-tool (func_exit): New function, to allow to pass the
66054         exit status portably through the trap.  Use everywhere.
66055         (--help, --version): Signal a write error.
66056         (trap): catch SIGPIPE, for write errors.
66057         Exit at the end of the trap, with the correct exit status.
66058
66059 2006-09-19  Karl Berry  <karl@gnu.org>
66060
66061         * doc/gnulib.texi: note about the license texinfo files.
66062
66063 2006-09-19  Eric Blake  <ebb9@byu.net>
66064
66065         * gnulib-tool: Avoid space-tab.
66066
66067 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
66068
66069         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
66070         that prevented coreutils 6.1 from building.  Problem reported
66071         by Petter Reinholdtsen.
66072
66073 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
66074
66075         * gnulib-tool (avoidlist): Fix typo that broke options like
66076         --avoid=lock that are used by coreutils bootstrap.
66077
66078 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
66079
66080         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
66081         more systematically.
66082
66083 2006-09-18  Jim Meyering  <jim@meyering.net>
66084
66085         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
66086
66087 2006-09-18  Bruno Haible  <bruno@clisp.org>
66088
66089         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
66090
66091 2006-09-18  Bruno Haible  <bruno@clisp.org>
66092
66093         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
66094         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
66095         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
66096         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
66097         * m4/gettext.m4: Require autoconf >= 2.52.
66098         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
66099         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
66100         of gl_cv_header_inttypes_h.
66101
66102 2006-09-18  Bruno Haible  <bruno@clisp.org>
66103
66104         * lib/javaversion.c: Include configmake.h.
66105
66106 2006-09-18  Bruno Haible  <bruno@clisp.org>
66107
66108         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
66109         avoid that the while loops be executed in a subshell.
66110
66111 2006-09-18  Bruno Haible  <bruno@clisp.org>
66112
66113         * MODULES.html.sh (func_module): Break long lines.
66114         Suggested by Bruce Korb <bkorb@gnu.org>.
66115
66116 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66117
66118         Speed up by a factor of 1.12.
66119         * gnulib-tool (nl): New variable.
66120         (func_import): Rewrite include directive extraction to only read each
66121         directive once.
66122
66123 2006-09-17  Bruno Haible  <bruno@clisp.org>
66124
66125         * modules/javaversion (Makefile.am): Remove DEFS setting.
66126         (Depends-on): Add configmake, for PKGDATADIR definition.
66127
66128 2006-09-17  Bruno Haible  <bruno@clisp.org>
66129
66130         * gnulib-tool (func_create_testdir): Rewrite all files at once.
66131
66132 2006-09-17  Bruno Haible  <bruno@clisp.org>
66133
66134         * gnulib-tool (func_append): New function, stolen from libtool.m4.
66135         (func_modules_transitive_closure, func_modules_add_dummy,
66136         func_modules_to_filelist, func_import, func_create_testdir,
66137         func_create_megatestdir, ...): Use it wherever possible.
66138         Suggested by Ralf Wildenhues.
66139
66140 2006-09-16  Karl Berry  <karl@gnu.org>
66141
66142         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
66143         to avoid sectioning errors.
66144         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
66145         [ifinfo]: blank line after @center-ed titles.
66146         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
66147         Spell FSF address consistently with others.
66148         (These changes approved by rms.)
66149
66150 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66151
66152         Speed up by a factor of 1.61.
66153         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
66154         already checked module names again.
66155
66156 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66157
66158         Speed up by a factor of 1.13.
66159         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
66160         for new_files, and the input to func_add_or_update.
66161
66162 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66163
66164         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
66165         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
66166
66167 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66168
66169         * modules/mkancesdirs (Depends-on): Add fcntl.
66170         * modules/savewd: New file.
66171         * MODULES.html.sh (File system functions): Add savewd.
66172
66173         * modules/configmake (Makefile.am): Add support for the
66174         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
66175
66176 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66177
66178         * m4/savewd.m4: New file.
66179
66180 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66181
66182         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
66183         (dirchownmod): New arg FD.  All callers changed.
66184         Use FD rather than opening the directory ourself, as opening is
66185         now the caller's responsibility.
66186         * lib/dirchownmod.h: Likewise.
66187         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
66188         hosts that require <sys/types.h> before <sys/stat.h>.  Include
66189         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
66190         (test_dir): Remove.
66191         (mkancesdirs): Return length of prefix of FILE that has already
66192         been made, or -2 if there is a child doing the work.  Redo
66193         algorithm so that it is O(N) rather than O(N**2).  Optimize away
66194         ".", and treat ".." specially since it might stray back into
66195         already-created areas.  Use a subprocess if necessary.  New arg
66196         WD; all users changed.  MAKE_DIR function should now return 1
66197         if it creates a directory that is not readable.  Return -2 if
66198         a child process is spun off.
66199         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
66200         Adjust signature to match code.
66201         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
66202         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
66203         all users changed.
66204         * lib/savewd.c, lib/savewd.h: New files.
66205
66206 2006-09-15  Jim Meyering  <jim@meyering.net>
66207
66208         * modules/rename-dest-slash: New module.
66209         * MODULES.html.sh (posix_compat): Add it here.
66210
66211         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
66212
66213 2006-09-15  Jim Meyering  <jim@meyering.net>
66214
66215         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
66216         file.
66217
66218         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
66219
66220 2006-09-15  Jim Meyering  <jim@meyering.net>
66221
66222         * lib/rename-dest-slash.c (has_trailing_slash): Use
66223         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
66224         (rpl_rename_dest_slash): Perform the cheaper trailing slash
66225         test before testing whether SRC is a directory.
66226         Suggestions from Bruno Haible.
66227
66228         Avoid a warning about an unused variable.
66229         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
66230         into the #ifdef block where it's used.
66231
66232         * lib/rename-dest-slash.c: New file.
66233
66234 2006-09-14  Bruno Haible  <bruno@clisp.org>
66235
66236         * lib/allocsa.c: Include <config.h> unconditionally.
66237         * lib/asnprintf.c: Likewise.
66238         * lib/asprintf.c: Likewise.
66239         * lib/c-strcasecmp.c: Likewise.
66240         * lib/c-strcasestr.c: Likewise.
66241         * lib/c-strncasecmp.c: Likewise.
66242         * lib/c-strstr.c: Likewise.
66243         * lib/classpath.c: Likewise.
66244         * lib/clean-temp.c: Likewise.
66245         * lib/concatpath.c: Likewise.
66246         * lib/copy-file.c: Likewise.
66247         * lib/csharpcomp.c: Likewise.
66248         * lib/csharpexec.c: Likewise.
66249         * lib/execute.c: Likewise.
66250         * lib/fatal-signal.c: Likewise.
66251         * lib/findprog.c: Likewise.
66252         * lib/fwriteerror.c: Likewise.
66253         * lib/gl_array_list.c: Likewise.
66254         * lib/gl_array_oset.c: Likewise.
66255         * lib/gl_avltree_list.c: Likewise.
66256         * lib/gl_avltree_oset.c: Likewise.
66257         * lib/gl_avltreehash_list.c: Likewise.
66258         * lib/gl_carray_list.c: Likewise.
66259         * lib/gl_linked_list.c: Likewise.
66260         * lib/gl_linkedhash_list.c: Likewise.
66261         * lib/gl_list.c: Likewise.
66262         * lib/gl_oset.c: Likewise.
66263         * lib/gl_rbtree_list.c: Likewise.
66264         * lib/gl_rbtree_oset.c: Likewise.
66265         * lib/gl_rbtreehash_list.c: Likewise.
66266         * lib/imaxabs.c: Likewise.
66267         * lib/imaxdiv.c: Likewise.
66268         * lib/javacomp.c: Likewise.
66269         * lib/javaexec.c: Likewise.
66270         * lib/javaversion.c: Likewise.
66271         * lib/linebreak.c: Likewise.
66272         * lib/localcharset.c: Likewise.
66273         * lib/lock.c: Likewise.
66274         * lib/mbchar.c: Likewise.
66275         * lib/mbswidth.c: Likewise.
66276         * lib/mkdtemp.c: Likewise.
66277         * lib/pipe.c: Likewise.
66278         * lib/printf-args.c: Likewise.
66279         * lib/printf-parse.c: Likewise.
66280         * lib/progname.c: Likewise.
66281         * lib/progreloc.c: Likewise.
66282         * lib/readlink.c: Likewise.
66283         * lib/sh-quote.c: Likewise.
66284         * lib/stpcpy.c: Likewise.
66285         * lib/stpncpy.c: Likewise.
66286         * lib/strcasecmp.c: Likewise.
66287         * lib/strcasestr.c: Likewise.
66288         * lib/strcspn.c: Likewise.
66289         * lib/striconv.c: Likewise.
66290         * lib/strncasecmp.c: Likewise.
66291         * lib/strnlen1.c: Likewise.
66292         * lib/strstr.c: Likewise.
66293         * lib/strtok_r.c: Likewise.
66294         * lib/tls.c: Likewise.
66295         * lib/tmpdir.c: Likewise.
66296         * lib/unicodeio.c: Likewise.
66297         * lib/unsetenv.c: Likewise.
66298         * lib/vasnprintf.c: Likewise.
66299         * lib/vasprintf.c: Likewise.
66300         * lib/wait-process.c: Likewise.
66301         * lib/xallocsa.c: Likewise.
66302         * lib/xsetenv.c: Likewise.
66303         * lib/xstriconv.c: Likewise.
66304
66305 2006-09-13  Simon Josefsson  <jas@extundo.com>
66306
66307         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
66308         that internally, suggested by Ralf Wildenhues
66309         <Ralf.Wildenhues@gmx.de>.
66310
66311 2006-09-13  Simon Josefsson  <jas@extundo.com>
66312
66313         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
66314         @LIBOBJS@.
66315         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66316
66317 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
66318
66319         * lib/_fpending.c: Include <config.h> unconditionally, since we no
66320         longer worry about uses that don't define HAVE_CONFIG_H.
66321         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
66322         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
66323         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
66324         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
66325         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
66326         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
66327         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
66328         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
66329         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
66330         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
66331         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
66332         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
66333         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
66334         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
66335         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
66336         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
66337         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
66338         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
66339         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
66340         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
66341         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
66342         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
66343         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
66344         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
66345         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
66346         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
66347         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
66348         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
66349         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
66350         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
66351         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
66352         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
66353         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
66354         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
66355         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
66356         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
66357         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
66358         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
66359         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
66360         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
66361         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
66362         Likewise.
66363
66364 2006-09-13  Eric Blake  <ebb9@byu.net>
66365
66366         * lib/getopt.c: Fix typo in last commit.
66367
66368 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66369
66370         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
66371         dgettext.
66372
66373 2006-09-12  Jim Meyering  <jim@meyering.net>
66374
66375         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
66376         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
66377         Reported by Nelson H. F. Beebe.
66378
66379 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66380
66381         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
66382         program_invocation_name and program_invocation_short_name are
66383         initialized.
66384         * lib/argp-namefrob.h: Move declarations of program_invocation_name
66385         and program_invocation_short_name to argp.h, so they are visible
66386         to user programs.
66387         * lib/argp.h: Likewise
66388
66389 2006-09-10  Bruno Haible  <bruno@clisp.org>
66390
66391         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
66392         m4/inttypes_h.m4, m4/uintmax_t.m4.
66393
66394 2006-09-10  Bruno Haible  <bruno@clisp.org>
66395
66396         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
66397         gl_AC_TYPE_UINTMAX_T.
66398
66399 2006-09-10  Bruno Haible  <bruno@clisp.org>
66400
66401         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
66402
66403 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66404
66405         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
66406         convention.  Text proposed by Bruno Haible.
66407         (struct argp_option): Document the use of N_() wrappers.
66408
66409         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
66410         '\v', and translate the two parts separately, instead of feeding
66411         the whole string to gettext.  This allows to exclude
66412         '\v' from the strings visible to the translator by writing doc
66413         strings as N_("..") "\v" N_("..").
66414
66415 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
66416
66417         * config/srclist.txt: Undo latest change; the bug was fixed.
66418
66419 2006-09-09  Bruno Haible  <bruno@clisp.org>
66420
66421         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
66422         assignments if building a library without libtool.
66423         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
66424         in func_emit_lib_Makefile_am.
66425         (func_import): When building a static library libfoo.a, arrange to
66426         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
66427         (func_create_testdir): Likewise.
66428         * modules/gc (configure.ac, Makefile.am): If building statically,
66429         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
66430         * modules/iconvme (configure.ac, Makefile.am): Likewise.
66431         * modules/striconv (configure.ac, Makefile.am): Likewise.
66432         Based on a suggestion by Ralf Wildenhues.
66433
66434 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66435
66436         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66437         Check for unistd.h too, since Autoconf doesn't assume POSIX.
66438         Also:
66439
66440         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66441         Add year_2050_test to catch glibc bug 2821
66442         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
66443
66444         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66445         Prefer #ifdef to #if.
66446
66447         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
66448         Return from 'main' instead of calling 'exit'.
66449
66450 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66451
66452         * lib/mktime.c (guess_time_tm): Fix bug where mktime
66453         returned the maximum time_t value rather than (time_t) -1.
66454         Problem originally reported by William Bardwell
66455         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
66456
66457         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
66458         Moved to here ...
66459         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
66460         ... from here.
66461
66462 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66463
66464         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
66465         2821 is fixed.
66466
66467 2006-09-08  Jim Meyering  <jim@meyering.net>
66468
66469         Don't make generated files read-only.  That would bother too many
66470         people.  However, do retain the ability to work when targets are
66471         read-only: remove the destination and temporary files before writing
66472         them (when generated via sed or echo), or by using the -f option for
66473         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
66474         * modules/alloca-opt, modules/argz, modules/arpa_inet:
66475         * modules/byteswap, modules/configmake, modules/fcntl:
66476         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
66477         * modules/localcharset, modules/netinet_in, modules/poll:
66478         * modules/stdbool, modules/stdint, modules/sys_select:
66479         * modules/sys_socket, modules/sys_stat, modules/sysexits:
66480
66481 2006-09-08  Jim Meyering  <jim@meyering.net>
66482
66483         Avoid new build failure on FreeBSD 6.0.
66484         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
66485         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
66486         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
66487
66488 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66489
66490         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
66491
66492 2006-09-07  Jim Meyering  <jim@meyering.net>
66493
66494         Fix global typo in last change: use chmod u-w, not chmod u-x.
66495         Spotted by Paul Eggert and Bruce Korb.
66496         * modules/alloca-opt, modules/argz, modules/arpa_inet:
66497         * modules/byteswap, modules/configmake, modules/fcntl:
66498         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
66499         * modules/localcharset, modules/netinet_in, modules/poll:
66500         * modules/stdbool, modules/stdint, modules/sys_select:
66501         * modules/sys_socket, modules/sys_stat, modules/sysexits:
66502
66503 2006-09-06  Jim Meyering  <jim@meyering.net>
66504
66505         Make generated files be read-only.
66506         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
66507         Ensure that each generated file is now read-only.
66508         * modules/argz: Likewise.
66509         * modules/arpa_inet: Likewise.
66510         * modules/byteswap: Likewise.
66511         * modules/configmake: Likewise.
66512         * modules/fcntl: Likewise.
66513         * modules/fnmatch: Likewise.
66514         * modules/getopt: Likewise.
66515         * modules/glob: Likewise.
66516         * modules/inttypes: Likewise.
66517         * modules/netinet_in: Likewise.
66518         * modules/poll: Likewise.
66519         * modules/stdbool: Likewise.
66520         * modules/stdint: Likewise.
66521         * modules/sys_select: Likewise.
66522         * modules/sys_socket: Likewise.
66523         * modules/sys_stat: Likewise.
66524         * modules/sysexits: Likewise.
66525         * modules/localcharset: Same as above, but continue using temporary
66526         file named "t-$@" (why different?) rather than the "$@-t" used
66527         everywhere else.
66528
66529         * modules/sysexits (Makefile.am): Replace literal occurrences
66530         of "sysexit.h" more readable, and more consistent, "$@".
66531
66532 2006-09-06  Bruno Haible  <bruno@clisp.org>
66533
66534         * modules/striconv: New file.
66535         * modules/xstriconv: New file.
66536         * MODULES.html.sh (Internationalization functions): Add striconv,
66537         xstriconv.
66538
66539 2006-09-06  Bruno Haible  <bruno@clisp.org>
66540
66541         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
66542         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
66543         not using libtool correctly.
66544
66545 2006-09-06  Bruno Haible  <bruno@clisp.org>
66546
66547         * lib/striconv.h: New file.
66548         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
66549         iconvstring.c.
66550         * lib/xstriconv.h: New file.
66551         * lib/xstriconv.c: New file.
66552
66553 2006-09-06  Bruno Haible  <bruno@clisp.org>
66554
66555         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66556         lib_..._LDFLAGS.
66557
66558 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66559
66560         * lib/argz_.h: Sync from Libtool.
66561
66562         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
66563                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66564
66565         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
66566
66567 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
66568
66569         * modules/trim: New file.
66570
66571 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
66572
66573         * lib/trim.h: New file.
66574         * lib/trim.c: New file.
66575
66576 2006-09-05  Bruno Haible  <bruno@clisp.org>
66577
66578         * MODULES.html.sh (String handling): Add trim.
66579
66580 2006-09-04  Karl Berry  <karl@gnu.org>
66581
66582         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
66583         until next release.
66584
66585 2006-09-03  Bruno Haible  <bruno@clisp.org>
66586
66587         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
66588         correctly.
66589
66590 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66591
66592         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
66593         not gl_GETLOADAVG.  Omit unneeded semicolons.
66594         Problems reported by Ralf Wildenhues in
66595         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
66596         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
66597         at the end, which is the usual gnulib style.
66598
66599         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
66600         of doing all the work ourselves.
66601         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
66602         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
66603
66604 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66605
66606         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
66607         Problem reported by Ralf Wildenhues in
66608         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
66609
66610         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
66611         HAVE_STRUCT_STATFS_F_FSTYPENAME.
66612
66613 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66614
66615         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
66616         yesterday's patch by changing test -n to test -z.
66617
66618 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66619
66620         * modules/getloadavg (Files): Add m4/getloadavg.m4.
66621         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
66622         the former is now obsolescent.
66623
66624         * modules/chdir-long (Depends-on): Add fcntl.
66625
66626 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66627
66628         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
66629         obsolescent, and programs should use gnulib instead.
66630         * m4/getloadavg.m4: New file, with contents taken from Autoconf
66631         but with prefixes changed.
66632
66633 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66634
66635         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
66636         or stdbool.h, because they might not exist while configuring.
66637
66638         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
66639         Don't include unistd.h or limits.h; not needed, since chdir-long.h
66640         does that for us.
66641         (O_DIRECTORY): Remove.
66642
66643 2006-08-31  Eric Blake  <ebb9@byu.net>
66644
66645         * gnulib-tool: Don't let emacs change spaces to TAB.
66646
66647 2006-08-31  Bruno Haible  <bruno@clisp.org>
66648
66649         * gnulib-tool: When calling func_import more than once, do it in a
66650         subshell.
66651         Reported by Eric Blake <ebb9@byu.net>.
66652
66653 2006-08-31  Bruno Haible  <bruno@clisp.org>
66654
66655         * gnulib-tool (nl): Remove variable.
66656         (sed_transform_lib_file): Use more robust test for config-h module.
66657         (func_import): Fix typo in 2006-08-25 patch.
66658
66659 2006-08-31  Bruno Haible  <bruno@clisp.org>
66660
66661         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
66662         specified, augment Makefile.am variables instead of assigning them.
66663
66664 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66665
66666         Work around a bug in both the Linux and SunOS 64-bit kernels:
66667         nanosleep mishandles sleeps for longer than 2**31 seconds.
66668         Problem reported by Frank v Waveren in
66669         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
66670         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
66671         Check for nanosleep bug.
66672         (LIB_NANOSLEEP): Append clock_gettime library if needed.
66673
66674 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66675
66676         Work around a bug in both the Linux and SunOS 64-bit kernels:
66677         nanosleep mishandles sleeps for longer than 2**31 seconds.
66678         Problem reported by Frank v Waveren in
66679         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
66680         * lib/nanosleep.c (BILLION): New constant.
66681         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
66682         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
66683         implementation.
66684
66685 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66686
66687         * modules/nanosleep (Depends-on): Add gettime.
66688
66689 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66690         and Simon Josefsson  <jas@extundo.com>
66691         and Oskar Liljeblad  <oskar@osk.mine.nu>
66692
66693         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
66694         * gnulib-tool (func_import): New license type 'unmodifiable license
66695         text'.
66696         * modules/fdl: Use it.  Longer description.
66697         * module/gpl, module/lgpl: New files.
66698
66699 2006-08-30  Jim Meyering  <jim@meyering.net>
66700
66701         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
66702         shadowing the parameter.
66703
66704 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66705
66706         Sync from Libtool:
66707
66708         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66709
66710         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
66711         sharing with gnulib.  Report by Eric Blake.
66712
66713 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66714
66715         * modules/isapipe: New file.
66716         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
66717
66718 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66719
66720         * modules/configmake (Makefile.am): Add a comment, and omit
66721         the CONFIGMAKE_ prefix from generated macro names.  Suggested
66722         by Bruno Haible.
66723
66724 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66725
66726         * m4/isapipe.m4: New file.
66727
66728 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66729
66730         * lib/isapipe.c, lib/isapipe.h: New files.
66731
66732 2006-08-29  Jim Meyering  <jim@meyering.net>
66733
66734         * modules/configmake (Makefile.am): Make configmake.h depend on
66735         Makefile.  Otherwise, a stale configmake.h could hang around.
66736
66737 2006-08-29  Eric Blake  <ebb9@byu.net>
66738
66739         * lib/error.c (error_at_line, print_errno_message): Match libc, after
66740         resolution of upstream bug 3044.
66741
66742 2006-08-29  Bruno Haible  <bruno@clisp.org>
66743
66744         * modules/localcharset (Depends-on): Add configmake.
66745         (Makefile.am): Remove setting of LIBDIR through DEFS.
66746
66747 2006-08-29  Bruno Haible  <bruno@clisp.org>
66748
66749         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
66750         defined.
66751
66752 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66753
66754         * modules/fcntl: New file.
66755         * modules/chdir-safer (Depends-on): Add fcntl.
66756         * modules/fts: Likewise.
66757         * modules/mkdir-p: Likewise.
66758
66759         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
66760         This undoes the most recent change, since we're now addressing the
66761         problem in a different way.
66762
66763         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
66764         into output, since the output might be called Makefile.am even
66765         if $makefile_name is something different.
66766         (func_import): Use $makefile_am rather than
66767         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
66768         empty.
66769
66770         * modules/inttypes (Files): Add m4/inttypes-h.m4.
66771
66772 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66773
66774         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
66775         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
66776         recent change to stdint.m4, since we're now addressing the problem in a
66777         different way.
66778
66779 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66780
66781         * m4/fcntl_h.m4: New file.
66782
66783 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66784
66785         * lib/fcntl_.h: New file.
66786         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
66787         the fcntl module.
66788         * lib/dirchownmod.c: Likewise.
66789         * lib/fts.c: Likewise.
66790
66791         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
66792         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
66793         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
66794         just before including <inttypes.h>, to avoid circular inclusion.
66795
66796 2006-08-28  Jim Meyering  <jim@meyering.net>
66797
66798         * doc/visibility.texi: Actually read and correct the grammar of the
66799         sentence affected by yesterday's change.
66800
66801 2006-08-28  Eric Blake  <ebb9@byu.net>
66802
66803         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
66804         needs wrapper.
66805
66806 2006-08-28  Eric Blake  <ebb9@byu.net>
66807
66808         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
66809
66810 2006-08-28  Eric Blake  <ebb9@byu.net>
66811
66812         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
66813
66814 2006-08-28  Bruno Haible  <bruno@clisp.org>
66815
66816         * modules/c-strstr: New file, from GNU gettext.
66817         * MODULES.html.sh (String handling): Add c-strstr.
66818
66819 2006-08-28  Bruno Haible  <bruno@clisp.org>
66820
66821         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
66822         macros.
66823         Reported by Eric Blake.
66824
66825 2006-08-28  Bruno Haible  <bruno@clisp.org>
66826
66827         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
66828         (VASNPRINTF): Return a string of length > INT_MAX without failing.
66829         * lib/vasprintf.c: Include errno.h, limits.h.
66830         (EOVERFLOW): New fallback definition.
66831         (vasprintf): Test here whether the string length is > INT_MAX.
66832         * lib/vsnprintf.c: Include errno.h, limits.h.
66833         (EOVERFLOW): New fallback definition.
66834         (vsnprintf): Fix bug when generated string was too long for the buffer.
66835         Test here whether the string length is > INT_MAX.
66836
66837 2006-08-28  Bruno Haible  <bruno@clisp.org>
66838
66839         * lib/inttypes_.h (SCNX*): Remove definitions.
66840         Reported by Eric Blake.
66841
66842 2006-08-28  Bruno Haible  <bruno@clisp.org>
66843
66844         * lib/c-strstr.h: New file, from GNU gettext.
66845         * lib/c-strstr.c: New file, from GNU gettext.
66846
66847 2006-08-28  Bruno Haible  <bruno@clisp.org>
66848
66849         * gnulib-tool: Reorder some statements.
66850
66851 2006-08-28  Bruno Haible  <bruno@clisp.org>
66852
66853         * gnulib-tool: New option --makefile-name.
66854         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
66855         $makefile_name.
66856         (func_import): Write $makefile_name to the cache file, and read it from
66857         there unless explicitly specified. Use $makefile_name as file name
66858         instead of Makefile.am. Adjust the recommendations accordingly.
66859
66860 2006-08-28  Bruno Haible  <bruno@clisp.org>
66861
66862         * gnulib-tool (func_verify_module): Check against misapplying patch.
66863
66864 2006-08-28  Bruno Haible  <bruno@clisp.org>
66865
66866         * gnulib-tool (func_relativize, func_relconcat): New functions.
66867         Give an error if --local-dir is given with --update.
66868         Remove trailing slashes from $local_gnulib_dir.
66869         (func_import): Store the relativized $local_gnulib_dir in
66870         gnulib-cache.m4, and read it from there if not specified explicitly.
66871
66872 2006-08-28  Bruno Haible  <bruno@clisp.org>
66873
66874         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
66875         is the current directory. Respect also $local_gnulib_dir.
66876
66877 2006-08-28  Bruno Haible  <bruno@clisp.org>
66878             Simon Josefsson  <jas@extundo.com>
66879
66880         BeOS portability.
66881         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
66882
66883 2006-08-27  Jim Meyering  <jim@meyering.net>
66884
66885         * doc/visibility.texi: Remove duplicate word: "pointer".
66886
66887 2006-08-26  Bruno Haible  <bruno@clisp.org>
66888
66889         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
66890         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
66891         (Makefile.am): Create inttypes.h from inttypes_.h.
66892         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
66893
66894         * modules/imaxabs: New file.
66895
66896         * modules/imaxdiv: New file.
66897
66898 2006-08-26  Bruno Haible  <bruno@clisp.org>
66899
66900         * m4/inttypes.m4: New file.
66901         * m4/_inttypes_h.m4: Remove file.
66902         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
66903         PRI_MACROS_BROKEN.
66904         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
66905
66906         * m4/imaxabs.m4: New file.
66907
66908         * m4/imaxdiv.m4: New file.
66909
66910 2006-08-26  Bruno Haible  <bruno@clisp.org>
66911
66912         * lib/inttypes_.h: New file.
66913         * lib/inttypes.h: Remove file.
66914         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
66915
66916         * lib/imaxabs.c: New file.
66917
66918         * lib/imaxdiv.c: New file.
66919
66920 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66921
66922         New config-h module, so that "make" output needn't be cluttered
66923         by -DHAVE_CONFIG_H.
66924         * MODULES.html.sh (Support for building libraries and executables):
66925         Add config-h.
66926         * modules/config-h: New file.
66927         * gnulib-tool (nl, sed_transform_lib_file): New vars.
66928         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
66929         the config-h module is used.
66930
66931         New configmake module, so that "make" output needn't be cluttered
66932         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
66933         * MODULES.html.sh (Support for building libraries and executables):
66934         Add configmake.
66935         * modules/configmake: New file.
66936
66937 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66938
66939         * m4/config-h.m4: New file.
66940
66941 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66942
66943         * config/srclist.txt: Add elisp-comp.
66944
66945 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66946
66947         * MODULES.html.sh (Support for building libraries and executables):
66948         Add elisp-comp.
66949         * build-aux/elisp-comp: New file.
66950         * modules/elisp-comp: New file.
66951
66952 2006-08-24  Bruno Haible  <bruno@clisp.org>
66953
66954         * gnulib-tool (func_create_testdir): Use non-default values of
66955         sourcebase and m4base.
66956
66957 2006-08-24  Bruno Haible  <bruno@clisp.org>
66958
66959         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
66960         HTML structure.
66961
66962 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66963
66964         * modules/openat (Depends-on): Add lchown.
66965
66966 2006-08-23  Bruno Haible  <bruno@clisp.org>
66967
66968         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
66969         of gl_LOCK_EARLY instead of gl_LOCK.
66970
66971 2006-08-23  Bruno Haible  <bruno@clisp.org>
66972
66973         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
66974         on OSF/1 to no.
66975         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
66976
66977 2006-08-23  Bruno Haible  <bruno@clisp.org>
66978
66979         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
66980         as unusable.
66981
66982         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
66983         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
66984         (gl_LOCK): New macro.
66985
66986 2006-08-22  Simon Josefsson  <jas@extundo.com>
66987
66988         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
66989         to md5 module.
66990
66991 2006-08-22  Simon Josefsson  <jas@extundo.com>
66992
66993         * MODULES.html.sh: Add "Support for maintaining and release
66994         projects".
66995
66996         * build-aux/gnupload: New file, from coreutils.
66997
66998 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66999
67000         Avoid the need for AC_LIBSOURCES in m4 macros.
67001         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
67002         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
67003         * modules/check-version (EXTRA_DIST): Add check-version.h.
67004         * modules/crc (EXTRA_DIST): Add crc.h.
67005         * modules/des (EXTRA_DIST): Add des.h.
67006         * modules/gc (EXTRA_DIST): Add gc.h.
67007         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
67008         * modules/getline (EXTRA_DIST): Add getline.h.
67009         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
67010         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
67011         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
67012         * modules/md2 (EXTRA_DIST): Add md2.h.
67013         * modules/md4 (EXTRA_DIST): Add md4.h.
67014         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
67015         * modules/read-file (EXTRA_DIST): Add read-file.h.
67016         * modules/readline (EXTRA_DIST): Add readline.h.
67017         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
67018         rijndael-api-fst.h.
67019
67020 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67021
67022         * m4/rijndael.m4 (gl_ARCFOUR):
67023         * m4/arctwo.m4 (gl_ARCTWO):
67024         * m4/check-version.m4 (gl_CHECK_VERSION):
67025         * m4/crc.m4 (gl_CRC):
67026         * m4/des.m4 (gl_DES):
67027         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
67028         * m4/gc.m4 (gl_GC):
67029         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
67030         * m4/getline.m4 (gl_FUNC_GETLINE):
67031         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
67032         * m4/hmac-md5.m4 (gl_HMAC_MD5):
67033         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
67034         * m4/md2.m4 (gl_MD2):
67035         * m4/md4.m4 (gl_MD4):
67036         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
67037         * m4/read-file.m4 (gl_FUNC_READ_FILE):
67038         * m4/readline.m4 (gl_FUNC_READLINE):
67039         * m4/rijndael.m4 (gl_RIJNDAEL):
67040         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
67041         to get the necessary .h files and whatnot.
67042
67043 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67044
67045         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
67046         gnulib rather than the other way around.
67047         * config/srclistvars.sh (COREUTILS): Remove.
67048
67049 2006-08-22  Jim Meyering  <jim@meyering.net>
67050
67051         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
67052
67053         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
67054
67055 2006-08-22  Eric Blake  <ebb9@byu.net>
67056
67057         * modules/regexprops-generic: New file.
67058         * MODULES.html.sh (Support for building documentation): List it.
67059
67060 2006-08-22  Eric Blake  <ebb9@byu.net>
67061
67062         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
67063         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
67064         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
67065         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
67066
67067 2006-08-22  Bruno Haible  <bruno@clisp.org>
67068
67069         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
67070         and lib_LTLIBRARIES like the other lib_* variables.
67071
67072 2006-08-22  Bruno Haible  <bruno@clisp.org>
67073
67074         * build-aux/x-to-1.in: New file, from GNU gettext.
67075
67076 2006-08-22  Bruno Haible  <bruno@clisp.org>
67077
67078         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
67079         <utmpx.h> exists.
67080
67081 2006-08-22  Bruno Haible  <bruno@clisp.org>
67082
67083         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
67084         <utmpx.h> exists.
67085
67086 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67087
67088         BeOS portability.
67089         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
67090         exist.
67091         Problem reported by Bruno Haible.
67092
67093 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67094
67095         Avoid the need for AC_LIBSOURCES in m4 macros.
67096         * modules/acl (EXTRA_DIST): Add acl.h.
67097         * modules/argmatch (Files): Add m4/argmatch.m4.
67098         (configure.ac): Add gl_ARGMATCH.
67099         (EXTRA_DIST): Renamed from lib_SOURCES, for
67100         consistency with the other modules.  Remove argmatch.c.
67101         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
67102         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
67103         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
67104         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
67105         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
67106         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
67107         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
67108         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
67109         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
67110         * modules/closeout (EXTRA_DIST): Add closeout.h.
67111         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
67112         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
67113         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
67114         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
67115         dirname.h; remove basename.c and stripslash.c.
67116         * modules/exclude (EXTRA_DIST): Add exclude.h.
67117         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
67118         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
67119         * modules/file-type (EXTRA_DIST): Add file-type.h.
67120         * modules/filemode (EXTRA_DIST): Add filemode.h.
67121         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
67122         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
67123         * modules/fpending (EXTRA_DIST): Add __fpending.h.
67124         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
67125         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
67126         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
67127         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
67128         * modules/getdate (EXTRA_DIST): Add getdate.c.
67129         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
67130         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
67131         * modules/getpass (EXTRA_DIST): Add getpass.h.
67132         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
67133         * modules/group-member (EXTRA_DIST): Add group-member.h.
67134         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
67135         * modules/hash (EXTRA_DIST): Add hash.h.
67136         * modules/human (EXTRA_DIST): Add human.h.
67137         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
67138         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
67139         * modules/lchown (EXTRA_DIST): Add lchown.h.
67140         * modules/long-options (EXTRA_DIST): Add long-options.h.
67141         * modules/lstat (EXTRA_DIST): Add lstat.h.
67142         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
67143         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
67144         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
67145         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
67146         * modules/memxor (EXTRA_DIST): Add memxor.h.
67147         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
67148         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
67149         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
67150         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
67151         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
67152         * modules/physmem (EXTRA_DIST): Add physmem.h.
67153         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
67154         * modules/posixver (EXTRA_DIST): Add posixver.h.
67155         * modules/quote (EXTRA_DIST): Add quote.h.
67156         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
67157         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
67158         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
67159         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
67160         regex_internal.h regexec.c.
67161         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
67162         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
67163         * modules/same (EXTRA_DIST): Add same.h.
67164         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
67165         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
67166         * modules/savedir (EXTRA_DIST): Add savedir.h.
67167         * modules/sha1 (EXTRA_DIST): Add sha1.h.
67168         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
67169         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
67170         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
67171         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
67172         * modules/strdup (EXTRA_DIST): Add strdup.h.
67173         * modules/strftime (EXTRA_DIST): Add strftime.h.
67174         * modules/strndup (EXTRA_DIST): Add strndup.h.
67175         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
67176         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
67177         * modules/time_r (EXTRA_DIST): Add time_r.h.
67178         * modules/timespec (EXTRA_DIST): Add timespec.h.
67179         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
67180         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
67181         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
67182         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
67183         * modules/userspec (EXTRA_DIST): Add userspec.h.
67184         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
67185         * modules/utimens (EXTRA_DIST): Add utimens.h.
67186         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
67187         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
67188         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
67189         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
67190         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
67191         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
67192         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
67193         * modules/yesno (EXTRA_DIST): Add yesno.h.
67194
67195 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67196
67197         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
67198
67199         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
67200         * m4/dev-ino.m4, same-inode.m4: Remove.
67201
67202         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
67203         * m4/acl.m4 (AC_FUNC_ACL):
67204         * m4/backupfile.m4 (gl_BACKUPFILE):
67205         * m4/c-strtod.m4 (gl_C99_STRTOLD):
67206         * m4/canon-host.m4 (gl_CANON_HOST):
67207         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67208         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
67209         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
67210         * m4/cloexec.m4 (gl_CLOEXEC):
67211         * m4/close-stream.m4 (gl_CLOSE_STREAM):
67212         * m4/closeout.m4 (gl_CLOSEOUT):
67213         * m4/dirfd.m4 (gl_FUNC_DIRFD):
67214         * m4/dirname.m4 (gl_DIRNAME):
67215         * m4/exclude.m4 (gl_EXCLUDE):
67216         * m4/exitfail.m4 (gl_EXITFAIL):
67217         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
67218         * m4/file-type.m4 (gl_FILE_TYPE):
67219         * m4/filemode.m4 (gl_FILEMODE):
67220         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
67221         * m4/fpending.m4 (gl_FUNC_FPENDING):
67222         * m4/fprintftime.m4 (gl_FPRINTFTIME):
67223         * m4/fts.m4 (gl_FUNC_FTS):
67224         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
67225         * m4/getdate.m4 (gl_GETDATE):
67226         * m4/gethrxtime.m4 (gl_GETHRXTIME):
67227         * m4/getpagesize.m4 (gl_GETPAGESIZE):
67228         * m4/getpass.m4 (gl_FUNC_GETPASS):
67229         * m4/gettime.m4 (gl_GETTIME):
67230         * m4/getugroups.m4 (gl_GETUGROUPS):
67231         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
67232         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
67233         * m4/hard-locale.m4 (gl_HARD_LOCALE):
67234         * m4/hash.m4 (gl_HASH):
67235         * m4/idcache.m4 (gl_IDCACHE):
67236         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
67237         * m4/lchown.m4 (gl_FUNC_LCHOWN):
67238         * m4/long-options.m4 (gl_LONG_OPTIONS):
67239         * m4/lstat.m4 (gl_FUNC_LSTAT):
67240         * m4/md5.m4 (gl_MD5):
67241         * m4/memcasecmp.m4 (gl_MEMCASECMP):
67242         * m4/memcoll.m4 (gl_MEMCOLL):
67243         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
67244         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
67245         * m4/memxor.m4 (gl_MEMXOR):
67246         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
67247         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
67248         * m4/modechange.m4 (gl_MODECHANGE):
67249         * m4/mountlist.m4 (gl_MOUNTLIST):
67250         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67251         * m4/openat.m4 (gl_FUNC_OPENAT):
67252         * m4/pathmax.m4 (gl_PATHMAX):
67253         * m4/physmem.m4 (gl_PHYSMEM):
67254         * m4/posixtm.m4 (gl_POSIXTM):
67255         * m4/posixver.m4 (gl_POSIXVER):
67256         * m4/quote.m4 (gl_QUOTE):
67257         * m4/quotearg.m4 (gl_QUOTEARG):
67258         * m4/readtokens.m4 (gl_READTOKENS):
67259         * m4/readutmp.m4 (gl_READUTMP):
67260         * m4/regex.m4 (gl_REGEX):
67261         * m4/safe-read.m4 (gl_SAFE_READ):
67262         * m4/safe-write.m4 (gl_SAFE_WRITE):
67263         * m4/same.m4 (gl_SAME):
67264         * m4/save-cwd.m4 (gl_SAVE_CWD):
67265         * m4/savedir.m4 (gl_SAVEDIR):
67266         * m4/settime.m4 (gl_SETTIME):
67267         * m4/sha1.m4 (gl_SHA1):
67268         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
67269         * m4/stat-macros.m4 (gl_STAT_MACROS):
67270         * m4/stat-time.m4 (gl_STAT_TIME):
67271         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
67272         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
67273         * m4/strdup.m4 (gl_FUNC_STRDUP):
67274         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
67275         * m4/strndup.m4 (gl_FUNC_STRNDUP):
67276         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
67277         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
67278         * m4/time_r.m4 (gl_TIME_R):
67279         * m4/timespec.m4 (gl_TIMESPEC):
67280         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
67281         * m4/unlinkdir.m4 (gl_UNLINKDIR):
67282         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
67283         * m4/userspec.m4 (gl_USERSPEC):
67284         * m4/utimecmp.m4 (gl_UTIMECMP):
67285         * m4/utimens.m4 (gl_UTIMENS):
67286         * m4/xalloc.m4 (gl_XALLOC):
67287         * m4/xgetcwd.m4 (gl_XGETCWD):
67288         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
67289         * m4/xreadlink.m4 (gl_XREADLINK):
67290         * m4/xstrtod.m4 (gl_XSTRTOD):
67291         * m4/yesno.m4 (gl_YESNO):
67292         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
67293         to get the necessary .h files and whatnot.
67294
67295 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
67296             Bruno Haible  <bruno@clisp.org>
67297
67298         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
67299         /bin/sh understanding of '!' conditional negation.
67300
67301 2006-08-21  Jim Meyering  <jim@meyering.net>
67302
67303         * modules/openat (Depends-on): Really alphabetize.
67304
67305         * modules/acl (Depends-on): Add error and quote.
67306
67307         * check-module (find_included_lib_files): Add at-func.c to the
67308         ok-to-include-more-than-once white list.
67309
67310         * modules/openat (Depends-on): Add lstat.  Alphabetize.
67311
67312 2006-08-21  Bruno Haible  <bruno@clisp.org>
67313
67314         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67315         Emit a pkgdata_DATA variable only if some snippets add contents to it.
67316         Reported by Martin Lambers <marlam@marlam.de>.
67317
67318 2006-08-21  Bruno Haible  <bruno@clisp.org>
67319
67320         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
67321         specify an installation location, don't emit a noinst_LIBRARIES or
67322         noinst_LTLIBRARIES assignment.
67323
67324 2006-08-21  Bruno Haible  <bruno@clisp.org>
67325
67326         BeOS portability.
67327         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
67328         BeOS has mbrtowc() but no <wctype.h>.
67329
67330 2006-08-21  Bruno Haible  <bruno@clisp.org>
67331
67332         BeOS portability.
67333         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
67334         exist.
67335
67336 2006-08-21  Bruno Haible  <bruno@clisp.org>
67337
67338         BeOS portability.
67339         * lib/mbchar.h: Include <wctype.h> only if it exists.
67340
67341 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67342
67343         Remove files that are no longer needed by their respective modules.
67344         * m4/obstack.m4: Remove.
67345         * m4/strerror_r.m4: Remove.
67346         * m4/uint32_t.m4: Remove.
67347         * m4/uintptr_t.m4: Remove.
67348         * m4/ullong_max.m4: Remove.
67349         * m4/xstrtoimax.m4: Remove.
67350         * m4/xstrtoumax.m4: Remove.
67351
67352         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
67353         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
67354         dependencies now capture this.
67355
67356         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
67357         Do not use AC_LIBSOURCES, since gnulib modules now do this.
67358         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
67359         * m4/human.m4 (gl_HUMAN): Likewise.
67360         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
67361         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
67362
67363         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
67364
67365         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
67366         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
67367         stdint.
67368         * m4/human.m4 (gl_HUMAN): Likewise.
67369         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
67370         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
67371         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
67372         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
67373         * m4/xstrtol (gl_XSTRTOL): Likewise.
67374
67375         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
67376         AC_TYPE_LONG_LONG_INT.
67377         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
67378         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
67379         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
67380         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
67381
67382         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
67383         on stdbool.
67384
67385         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
67386         (gl_PREREQ_XSTRTOUL): Remove.
67387
67388         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
67389
67390         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
67391         mode.
67392
67393 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67394
67395         Add and change modules to make it easier for coreutils to use
67396         gnulib-tool.
67397         * modules/backupfile (Files): Remove m4/d-ino.m4.
67398         (Depends-on): Add d-ino.
67399         * modules/cycle-check (Depends-on): Add stdint.
67400         (lib_SOURCES): Add cycle-check.h.
67401         * modules/d-ino: New module.
67402         * modules/d-type: New module.
67403         * modules/error (Files): Remove m4/strerror_r.m4.
67404         * modules/filemode (Files): Add m4/st_dm_mode.m4.
67405         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
67406         m4/inttypes_h.m4, m4/uintmax_t.m4.
67407         (Depends-on): Add stdint.
67408         (lib_SOURCES): Add fsusage.h.
67409         * modules/getcwd (Files): Remove d-ino.m4.
67410         (Depends-on): Add d-ino.
67411         * modules/getndelim2 (Depends-on): Add stdint.
67412         * modules/glob (Files): Remove m4/d-type.m4.
67413         (Depends-on): Add d-type.
67414         * modules/host-os: New module.
67415         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
67416         m4/inttypes_h.m4, m4/uintmax_t.m4.
67417         * Depends-on: Add stdint.
67418         (lib_SOURCES): Add human.h.
67419         * modules/inttostr (Files): Remove m4/intmax_t.m4,
67420         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
67421         m4/uintmax_t.m4, m4/ulonglong.m4.
67422         (Depends-on): Add stdint.
67423         (EXTRA_DIST): Add inttostr.h.
67424         * modules/lchmod: New module.
67425         * modules/link-follow: New module.
67426         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
67427         (Depends-on): Add lchmod.
67428         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
67429         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
67430         (Depends-on): Add stdint.
67431         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
67432         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
67433         (Depends-on): Add stdint.
67434         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
67435         * modules/perl: New module.
67436         * modules/regex (Depends-on): Add stdint.
67437         * modules/rmdir-errno: New module.
67438         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
67439         m4/intmax_t.m4.
67440         (Depends-on): Add stdint.
67441         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
67442         m4/uintmax_t.m4.
67443         (Depends-on): Add stdint.
67444         * modules/unlink-busy: New module.
67445         * modules/utimecmp (Depends-on): Add stdint.
67446         * modules/uptime: New module.
67447         * modules/winsz-ioctl: New module.
67448         * modules/winsz-termios: New module.
67449         * modules/xnanosleep (Depends-on): Add nanosleep.
67450         * modules/ullong_max: Remove.
67451         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
67452         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
67453         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
67454         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
67455         (Depends-on): Add inttypes.
67456         (lib_SOURCES): Add xstrtol.h.
67457         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
67458         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
67459         * MODULES.html.sh: Move 'assert' into the assert section.
67460         Move 'dummy' into the linking section.
67461         Remove ullong_max.
67462         Add section for compatibility checks for POSIX:2001 functions,
67463         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
67464         winsz-ioctl, and winsz-termios into it.
67465         Add lchmod.
67466         Add top-level Misc section and put host-os, perl, and uptime
67467         into it.
67468
67469 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67470
67471         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
67472         now assume the stdint module.  Do not include inttypes.h.
67473         * lib/fsusage.h: Likewise.
67474         * lib/getndelim2.c: Likewise.
67475         * lib/human.h: Likewise.
67476         * lib/inttostr.h: Likewise.
67477         * lib/obstack.c: Likewise.
67478         * lib/regex_internal.h: Likewise.
67479         * lib/tempname.c: Likewise.
67480         * lib/utimecmp.c: Likewise.
67481         * lib/xstrtol.h: Likewise.
67482
67483         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
67484
67485         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
67486         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
67487         * lib/xtime.h: Likewise.
67488
67489 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67490
67491         * modules/openat (Files): Add lib/fchmodat.c.
67492         Fixes problem reported by Jay Youngman.
67493
67494 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67495
67496         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
67497         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
67498
67499 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
67500             Bruno Haible  <bruno@clisp.org>
67501
67502         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
67503         and is a script that invokes bison. Tighten the code. Add comments.
67504
67505 2006-08-18  Jim Meyering  <jim@meyering.net>
67506
67507         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
67508         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
67509         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
67510         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
67511
67512 2006-08-18  Bruno Haible  <bruno@clisp.org>
67513
67514         * modules/bison-i18n: New file.
67515         * MODULES.html.sh (Internationalization functions): Add it.
67516
67517 2006-08-18  Bruno Haible  <bruno@clisp.org>
67518
67519         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
67520         sys/statvfs.h. When getmntinfo was found, check its declaration and
67521         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
67522
67523 2006-08-18  Bruno Haible  <bruno@clisp.org>
67524
67525         * m4/bison-i18n.m4: New file, from bison.
67526
67527 2006-08-18  Bruno Haible  <bruno@clisp.org>
67528
67529         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
67530         (ME_DUMMY): Treat "kernfs" as a dummy.
67531         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
67532
67533 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67534
67535         Update from coreutils.
67536
67537         2006-08-15  Jim Meyering  <jim@meyering.net>
67538
67539         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
67540
67541         2006-01-17  Jim Meyering  <jim@meyering.net>
67542
67543         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
67544
67545         2006-01-11  Jim Meyering  <jim@meyering.net>
67546
67547         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
67548         Check for the lchmod function.
67549
67550 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67551
67552         Update from coreutils.
67553
67554         * lib/__fpending.h: Add copyright notice.
67555         * lib/fprintftime.h: Likewise.
67556         * lib/savedir.c: Use (C) in copyright notice.
67557         * lib/savedir.h: Likewise.
67558
67559         2006-08-15  Jim Meyering  <jim@meyering.net>
67560
67561         * lib/at-func.c: New file, with the logic of all emulated at-functions.
67562         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
67563         in support of the EXPECTED_ERRNO macro.
67564         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
67565         definitions.  Instead, define the appropriate symbols and include
67566         "at-func.c".
67567         * lib/mkdirat.c (mkdirat): Likewise.
67568         * lib/fchmodat.c (fchmodat): Likewise.
67569         (ENOSYS): Remove definition.
67570         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
67571         it.  Don't include "unistd--.h" -- it wasn't ever used.
67572
67573         2006-01-17  Jim Meyering  <jim@meyering.net>
67574
67575         Rewrite fts.c not to change the current working directory,
67576         by using openat, fstatat, fdopendir, etc..
67577
67578         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
67579         (HAVE_OPENAT_SUPPORT): Define.
67580         [_LIBC] (fchdir): Don't undef or define; no longer used.
67581         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
67582         Now, this `function' always succeeds, and consumes its file descriptor
67583         parameter -- so callers must not close such FDs.  Update callers.
67584         (diropen_fd, opendirat, cwd_advance_fd): New functions.
67585         (diropen): Add parameter, SP.  Adjust all callers.
67586         Implement using diropen_fd, rather than open.
67587         (fts_open): Initialize new member, fts_cwd_fd.
67588         Remove fts_rft-setting code.
67589         (fts_close): Close fts_cwd_fd, if necessary.
67590         (__opendir2): Define in terms of opendir or opendirat,
67591         depending on whether the FST_NOCHDIR flag is set.
67592         (fts_build): Since fts_safe_changedir consumes its FD, and since
67593         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
67594         and close the dup'd file descriptor upon failure.
67595         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
67596         (fts_safe_changedir): Tweak semantics to reflect that this function
67597         now calls cwd_advance_fd and hence consumes its FD argument.
67598         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
67599         [struct FTS] (fts_rft): Remove now-unused member.
67600         [struct FTS] (fts_cycle.state): Improve comment.
67601
67602         * lib/openat.c (openat_needs_fchdir): New function.
67603         * lib/openat.h (openat_needs_fchdir): Declare it.
67604
67605 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
67606
67607         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
67608         Problem and fix reported by Pádraig Brady in
67609         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
67610
67611 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67612
67613         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
67614
67615 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67616
67617         * lib/memcoll.c (memcoll): Optimize for the common case where the
67618         arguments are bytewise equal.
67619
67620 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67621
67622         * doc/regexprops-generic.texi: Add a copyright notice.
67623
67624 2006-08-15  Bruno Haible  <bruno@clisp.org>
67625
67626         * modules/tmpdir (License): Change to LGPL.
67627
67628 2006-08-15  Bruno Haible  <bruno@clisp.org>
67629
67630         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
67631         module.
67632
67633 2006-08-14  Simon Josefsson  <jas@extundo.com>
67634
67635         * config/srclist.txt: Add gnupload.
67636
67637 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67638
67639         Change copyright notice from LGPL 2 to GPL 2, since that's the
67640         standard form used in the gnulib repository.
67641         * tests/test-lock.c: Likewise.
67642         * tests/test-stdint.c: Likewise.
67643         * tests/test-tls.c: Likewise.
67644
67645         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
67646         prelude-manager.  User shorter URLs for GNU projects, without '?'.
67647         Add copyright notice.
67648
67649         * check-module: Add copyright notice.  Output a copyright
67650         notice if "--version" is specified.
67651         * modules/COPYING: New file.
67652         * tests/test-getaddrinfo.c: Add copyright notice.
67653         * tests/test-verify.c: Likewise.
67654
67655 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67656
67657         Change copyright notice from LGPL 2 to GPL 2, since that's the
67658         standard form used in the gnulib repository.
67659         * lib/lock.c: LGPL -> GPL.
67660         * lib/lock.h: Likewise.
67661         * lib/strnlen1.c: Likewise.
67662         * lib/strnlen1.h: Likewise.
67663         * lib/tls.c: Likewise.
67664         * lib/tls.h: Likewise.
67665         * lib/tmpdir.c: Likewise.
67666
67667         * lib/TODO: Remove; this belongs only in coreutils.
67668
67669 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67670
67671         Add copyright notices to long-enough files that lack them, since
67672         otherwise the files aren't clearly free.  Use the same notice that
67673         getdate.texi already uses.
67674         * doc/alloca-opt.texi: Add copyright notice.
67675         * doc/alloca.texi: Likewise.
67676         * doc/ctime.texi: Likewise.
67677         * doc/functions.texi: Likewise.
67678         * doc/gcd.texi: Likewise.
67679         * doc/gnulib-tool.texi: Likewise.
67680         * doc/inet_ntoa.texi: Likewise.
67681         * doc/visibility.texi: Likewise.
67682
67683         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
67684         * doc/quote.texi: Add copyright notice.
67685
67686         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
67687         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
67688         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
67689         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
67690         is now obsolete, and give a pointer to the Sun list.
67691         Add copyright notice.
67692
67693 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67694
67695         * config/srclistvars.sh: Add copyright notice.
67696
67697 2006-08-14  Eric Blake  <ebb9@byu.net>
67698
67699         Import the following change from libc:
67700
67701         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
67702
67703         Upstream bug 2997.
67704         * lib/misc/error.c: Add space between program name and message if file
67705         name is missing.
67706
67707 2006-08-12  Karl Berry  <karl@gnu.org>
67708
67709         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
67710         remove, these originate in gnulib now.
67711
67712 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67713
67714         * doc/Makefile (standards.info standards.html standards.dvi):
67715         Also depend on make-stds.texi.
67716
67717 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67718
67719         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
67720         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
67721
67722         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
67723         in wchar_t.  Problem reported by Eric Blake.
67724
67725         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
67726         LEN is smaller than SIZE.  Suggested by Bruno Haible.
67727         Also, help the compiler to keep LEN in a register.
67728
67729 2006-08-11  Eric Blake  <ebb9@byu.net>
67730
67731         * users.txt: Sort.  Add tar.
67732
67733 2006-08-11  Bruno Haible  <bruno@clisp.org>
67734
67735         * users.txt: New file.
67736
67737 2006-08-11  Bruno Haible  <bruno@clisp.org>
67738
67739         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
67740         before <wchar.h>. Needed for OSF/1 and BSD/OS.
67741
67742 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67743
67744         * modules/snprintf (Depends-on): Remove minmax.
67745         (Maintainer): Add self and Bruno.
67746
67747 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67748
67749         * lib/.cppi-disable: Add snprintf.h, socket_.h.
67750         * lib/snprintf.c: Include <errno.h> and <limits.h>.
67751         (EOVERFLOW): Define if the system does not.
67752         Do not include "minmax.h"; it wasn't used.
67753         (snprintf): Don't assume size_t promotes to an unsigned type.
67754         Fix bug when generated string was too long for the buffer: the
67755         buffer's contents are supposed to be the initial prefix of the
67756         output.  Don't assume vasnprintf returns EOVERFLOW if the size
67757         exceeds INT_MAX; do the check ourselves.
67758
67759         Import the following changes from libc:
67760
67761         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
67762
67763         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
67764         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
67765         set wc to the byte which couldn't be converted.
67766         (re_string_reconstruct): Don't clear valid_raw_len before calling
67767         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
67768         tip_context using re_string_context_at.
67769
67770         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
67771
67772         * lib/posix/regex.h: g++ still cannot handled [restrict].
67773
67774         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
67775
67776         * lib/posix/regex.h: Remove special handling for VMS.
67777
67778 2006-08-10  Jim Meyering  <jim@meyering.net>
67779
67780         * modules/same-inode: New module.
67781         * modules/dev-ino: New module.
67782         * modules/cycle-check: Depend on these modules, rather than simply
67783         including their .h files.
67784         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
67785         required via m4/cycle-check.m4.
67786         * modules/same: Depend on new same-inode module, rather than
67787         including same-inode.h.
67788         * modules/chdir-safer: New file.
67789
67790         * modules/chown (Depends-on): Add stat-macros.
67791
67792 2006-08-10  Jim Meyering  <jim@meyering.net>
67793
67794         * m4/cycle-check.m4: New file.
67795         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
67796         * m4/dev-ino.m4, m4/same-inode.m4: New files.
67797
67798 2006-08-10  Eric Blake  <ebb9@byu.net>
67799
67800         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
67801         in from original proposal.
67802
67803 2006-08-10  Eric Blake  <ebb9@byu.net>
67804         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67805
67806         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
67807         namespace.
67808
67809 2006-08-10  Bruno Haible  <bruno@clisp.org>
67810
67811         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
67812         as well.
67813
67814 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67815
67816         Sync from coreutils.
67817
67818         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
67819
67820         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
67821         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
67822
67823 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67824
67825         * modules/restrict: Remove; no longer needed now that we assume
67826         Autoconf 2.59 or later.
67827         * MODULES.html.sh: Remove 'restrict'.
67828         * modules/argp (Depends-on): Remove 'restrict'.
67829         * modules/base64 (Depends-on): Likewise.
67830         * modules/gc (Depends-on): Likewise.
67831         * modules/getaddrinfo (Depends-on): Likewise.
67832         * modules/glob (Depends-on): Likewise.
67833         * modules/inet_ntop (Depends-on): Likewise.
67834         * modules/inet_pton (Depends-on): Likewise.
67835         * modules/memxor (Depends-on): Likewise.
67836         * modules/regex (Depends-on): Likewise.
67837         * modules/strtok_r (Depends-on): Likewise.
67838         * modules/time_r (Depends-on): Likewise.
67839
67840 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67841
67842         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
67843         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
67844         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67845         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
67846         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
67847         * m4/memxor.m4 (gl_MEMXOR): Likewise.
67848         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
67849         gl_C_RESTRICT replaced by AC_C_RESTRICT.
67850
67851         Merge from coreutils.
67852         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
67853         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
67854         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
67855         * m4/time_r.m4 (gl_TIME_R): Likewise.
67856
67857 2006-08-09  Karl Berry  <karl@gnu.org>
67858
67859         * config/srclist.txt: no more gettext-tools, per Bruno.
67860
67861 2006-08-08  Eric Blake  <ebb9@byu.net>
67862
67863         * modules/verror: New module.
67864         * MODULES.html.sh: Document it.
67865
67866 2006-08-08  Eric Blake  <ebb9@byu.net>
67867
67868         * lib/verror.h, lib/verror.c: New files.
67869
67870 2006-08-08  Eric Blake  <ebb9@byu.net>
67871
67872         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
67873         verror_at_line output complies with GNU Coding Standards even when
67874         file is NULL.
67875
67876 2006-08-07  Bruno Haible  <bruno@clisp.org>
67877
67878         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
67879         versions of AIX.
67880         Reported by Ralf Wildenhues.
67881
67882 2006-08-07  Bruno Haible  <bruno@clisp.org>
67883
67884         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
67885         in an AC_DEFUN. Needed so that the autoconf snippets can use
67886         AC_REQUIRE.
67887
67888 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67889
67890         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67891         Initialize pkgdata_DATA.
67892         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
67893         overriding it.
67894
67895 2006-08-06  Eric Blake  <ebb9@byu.net>
67896
67897         * lib/error.h: Fold in some upstream changes from glibc.
67898         * lib/error.c: Likewise.
67899
67900 2006-08-04  Bruno Haible  <bruno@clisp.org>
67901
67902         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67903         Make the mostlyclean-local rule depend on mostlyclean-generic.
67904         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
67905
67906 2006-07-31  Bruno Haible  <bruno@clisp.org>
67907
67908         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
67909         <stdlib.h>, <string.h>.
67910
67911 2006-07-30  Bruno Haible  <bruno@clisp.org>
67912
67913         * modules/readlink (License): Change to LGPL.
67914
67915 2006-07-30  Bruno Haible  <bruno@clisp.org>
67916
67917         * modules/javaversion (Makefile.am): Distribute javaversion.java and
67918         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
67919         set PKGDATADIR to point to it.
67920
67921 2006-07-30  Bruno Haible  <bruno@clisp.org>
67922
67923         * modules/csharpexec (configure.ac): Comment out macro invocation.
67924         * modules/javaexec (configure.ac): Likewise.
67925         * modules/javacomp-script (configure.ac): Likewise.
67926
67927         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
67928
67929 2006-07-30  Bruno Haible  <bruno@clisp.org>
67930
67931         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
67932         linked-list.
67933
67934 2006-07-30  Bruno Haible  <bruno@clisp.org>
67935
67936         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
67937
67938 2006-07-30  Bruno Haible  <bruno@clisp.org>
67939
67940         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67941         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
67942         get removed.
67943
67944 2006-07-29  Bruno Haible  <bruno@clisp.org>
67945
67946         Make it possible for gnulib-tool to work with locally modified or
67947         augmented gnulib repositories.
67948         * gnulib-tool (func_usage): Document --local-dir option.
67949         (local_gnulib_dir): New variable.
67950         Handle --local-dir option.
67951         (func_lookup_file): New function.
67952         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
67953         (func_get_description, func_get_filelist, func_get_description,
67954         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
67955         func_get_automake_snippet, func_get_include_directive,
67956         func_get_license, func_get_maintainer): Use func_lookup_file.
67957         (func_import, func_create_testdir): Use func_lookup_file.
67958
67959 2006-07-29  Bruno Haible  <bruno@clisp.org>
67960
67961         * modules/setenv (Depends-on): Add unistd.
67962
67963 2006-07-29  Bruno Haible  <bruno@clisp.org>
67964
67965         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
67966
67967 2006-07-29  Bruno Haible  <bruno@clisp.org>
67968
67969         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
67970
67971 2006-07-29  Bruno Haible  <bruno@clisp.org>
67972
67973         * gnulib-tool (import, update): If there is no Makefile.am, look at
67974         aclocal.m4, instead of bailing out.
67975
67976 2006-07-29  Bruno Haible  <bruno@clisp.org>
67977
67978         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
67979         Categorize the options by when they are useful.
67980
67981 2006-07-29  Bruno Haible  <bruno@clisp.org>
67982
67983         * gnulib-tool (func_usage): Document option --no-libtool.
67984         Handle option --no-libtool.
67985         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
67986         for changed semantics of $libtool variable.
67987         (func_import): Likewise. If libtool is not used, show this through
67988         an option --no-libtool.
67989         (func_create_testdir): Update.
67990
67991 2006-07-29  Bruno Haible  <bruno@clisp.org>
67992
67993         * gnulib-tool (func_import): Extend error message about missing
67994         --doc-base.
67995
67996 2006-07-29  Bruno Haible  <bruno@clisp.org>
67997
67998         * gnulib-tool (func_import): Don't create the $docbase directory if
67999         there is no file to store there.
68000
68001 2006-07-29  Bruno Haible  <bruno@clisp.org>
68002
68003         * gnulib-tool (autoconf_minversion): If a --dir option is given and
68004         relevant, look for configure.ac there, not in the current directory.
68005         Also use a simple search for AC_PREREQ, not "autoconf --trace".
68006
68007 2006-07-29  Bruno Haible  <bruno@clisp.org>
68008
68009         * gnulib-tool (SORT): New variable.
68010         (func_usage): Undocument --assume-autoconf option.
68011         Remove --assume-autoconf option handling.
68012         (autoconf_minversion): Determine from the contents of configure.ac.
68013         (func_import): Remove autoconf_minversion handling.
68014         Suggested by Eric Blake.
68015
68016 2006-07-29  Bruno Haible  <bruno@clisp.org>
68017
68018         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
68019
68020 2006-07-29  Bruno Haible  <bruno@clisp.org>
68021
68022         * config/srclist.txt (*setenv.[ch]): Remove rules.
68023
68024 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68025
68026         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
68027
68028 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68029
68030         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
68031         arpa/inet.h.
68032
68033 2006-07-28  Simon Josefsson  <jas@extundo.com>
68034
68035         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
68036         * modules/inet_pton (Depends-on): Likewise.
68037
68038 2006-07-28  Simon Josefsson  <jas@extundo.com>
68039
68040         * m4/netinet_in_h.m4: New file.
68041
68042 2006-07-28  Simon Josefsson  <jas@extundo.com>
68043
68044         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
68045         #include's.
68046
68047 2006-07-28  Simon Josefsson  <jas@extundo.com>
68048
68049         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
68050         #include's.
68051
68052 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
68053
68054         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
68055         setgid on directories only if they set these bits.
68056         * lib/modechange.h: Remove obsolete comment about masks.
68057
68058 2006-07-28  Eric Blake  <ebb9@byu.net>
68059
68060         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
68061         macro expansion.
68062
68063 2006-07-28  Bruno Haible  <bruno@clisp.org>
68064
68065         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
68066
68067 2006-07-28  Bruno Haible  <bruno@clisp.org>
68068
68069         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
68070
68071 2006-07-28  Bruno Haible  <bruno@clisp.org>
68072
68073         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
68074         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
68075         Define fallbacks.
68076         Avoids link error on FreeBSD 4.x.
68077         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68078
68079         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
68080         encoding.
68081         * lib/mbswidth.c (iswcntrl): Likewise.
68082
68083 2006-07-27  Bruno Haible  <bruno@clisp.org>
68084
68085         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
68086         test.
68087
68088 2006-07-27  Bruno Haible  <bruno@clisp.org>
68089
68090         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
68091         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
68092         defined.
68093
68094 2006-07-26  Eric Blake  <ebb9@byu.net>
68095
68096         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
68097
68098 2006-07-26  Eric Blake  <ebb9@byu.net>
68099
68100         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
68101         like mingw that lack mkstemp.
68102         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
68103         avoid compilation warning on mingw.
68104
68105 2006-07-26  Bruno Haible  <bruno@clisp.org>
68106
68107         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
68108         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
68109         INT_FAST*_MIN, INTPTR_MIN.
68110
68111 2006-07-25  Bruno Haible  <bruno@clisp.org>
68112
68113         * modules/version-etc (Depends-on): Add stdarg.
68114
68115 2006-07-25  Bruno Haible  <bruno@clisp.org>
68116
68117         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
68118         complex commands.
68119
68120 2006-07-25  Bruno Haible  <bruno@clisp.org>
68121
68122         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
68123         defined in <stdarg.h> or config.h.
68124
68125 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
68126
68127         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
68128         (gl_STDIO_SAFER): Remove.
68129
68130 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
68131
68132         * MODULES.html.sh (File stream based Input/Output):
68133         Add fopen-safer, tmpfile-safer; remove stdio-safer.
68134         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
68135         * modules/fopen-safer, modules/tmpfile-safer: New files.
68136         * modules/stdio-safer: Remove.
68137
68138 2006-07-24  Bruno Haible  <bruno@clisp.org>
68139
68140         * modules/tmpdir: New file.
68141         * MODULES.html.sh (File system functions): Add it.
68142
68143 2006-07-24  Bruno Haible  <bruno@clisp.org>
68144
68145         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
68146         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
68147
68148 2006-07-24  Bruno Haible  <bruno@clisp.org>
68149
68150         * modules/clean-temp: New file.
68151
68152 2006-07-24  Bruno Haible  <bruno@clisp.org>
68153
68154         * m4/tmpdir.m4: New file, from GNU gettext.
68155
68156 2006-07-24  Bruno Haible  <bruno@clisp.org>
68157
68158         * lib/tmpdir.h: New file, from GNU gettext.
68159         * lib/tmpdir.c: New file, from GNU gettext.
68160
68161 2006-07-24  Bruno Haible  <bruno@clisp.org>
68162
68163         * lib/clean-temp.h: New file, from GNU gettext.
68164         * lib/clean-temp.c: New file, from GNU gettext.
68165
68166 2006-07-23  Eric Blake  <ebb9@byu.net>
68167
68168         * modules/stdio-safer (Files): Add tmpfile-safer.c.
68169         (Depends-on): Add binary-io.
68170
68171 2006-07-23  Eric Blake  <ebb9@byu.net>
68172
68173         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
68174
68175 2006-07-23  Eric Blake  <ebb9@byu.net>
68176
68177         * lib/tmpfile-safer.c: New file.
68178         * lib/stdio-safer.h (fopen_safer): Add prototype.
68179         * lib/stdio--.h (tmpfile): Make safer.
68180
68181 2006-07-23  Bruno Haible  <bruno@clisp.org>
68182
68183         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
68184         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
68185         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
68186         gl_linked_remove_at): Use it.
68187
68188 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68189         and Simon Josefsson <jas@extundo.com>
68190
68191         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
68192
68193         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
68194
68195 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68196
68197         * modules/close-stream: New file.
68198         * modules/closeout (Description): Make it clear that it exits
68199         with a diagnostic on error.
68200         (Depends-on): Add close-stream.  Remove fpending, stdbool.
68201         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
68202
68203 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68204
68205         * m4/close-stream.m4: New file.
68206
68207 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68208
68209         * lib/close-stream.c, lib/close-stream.h: New files.
68210
68211 2006-07-22  Bruno Haible  <bruno@clisp.org>
68212
68213         Merge from GNU gettext 0.15.
68214
68215         2006-05-01  Bruno Haible  <bruno@clisp.org>
68216
68217                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
68218
68219         2006-07-22  Bruno Haible  <bruno@clisp.org>
68220
68221                 * modules/javaversion: New file.
68222                 * MODULES.html.sh (Java): Add javaversion.
68223
68224         2006-03-12  Bruno Haible  <bruno@clisp.org>
68225
68226                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
68227
68228         2005-12-04  Bruno Haible  <bruno@clisp.org>
68229
68230                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
68231                 (untested).
68232
68233         2006-06-21  Bruno Haible  <bruno@clisp.org>
68234
68235                 Avoid warnings from recent versions of mcs.
68236                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
68237                 -o, -L, -r any more. Use options documented since mcs-1.0
68238                 instead. Similarly for -g.
68239
68240         2005-12-04  Bruno Haible  <bruno@clisp.org>
68241
68242                 * build-aux/csharpcomp.sh.in: Suffix for resources is
68243                 .resources, not .resource.
68244
68245         2005-07-09  Bruno Haible  <bruno@clisp.org>
68246
68247                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
68248                 add a .dll suffix.
68249                 Reported by Mark Junker <mjscod@gmx.de>.
68250
68251         2006-07-22  Bruno Haible  <bruno@clisp.org>
68252
68253                 * modules/gettext: Upgrade to gettext-0.15.
68254                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
68255                 m4/visibility.m4.
68256                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
68257
68258 2006-07-22  Bruno Haible  <bruno@clisp.org>
68259
68260         Merge from GNU gettext 0.15.
68261
68262         2006-03-25  Bruno Haible  <bruno@clisp.org>
68263
68264                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
68265
68266         2006-07-21  Bruno Haible  <bruno@clisp.org>
68267
68268                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
68269                 "1.1".
68270
68271         2006-05-09  Bruno Haible  <bruno@clisp.org>
68272
68273                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
68274                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
68275                 for the conftestver execution.
68276
68277         2006-05-01  Bruno Haible  <bruno@clisp.org>
68278
68279                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
68280                 optional target-version argument. Verify that the compiler
68281                 groks source of the specified source-version, or add -source
68282                 option as necessary. Verify that the compiler produces
68283                 bytecode in the specified target-version, or add -target and
68284                 -source options as necessary. Make the result of the test
68285                 available as variable CONF_JAVAC. Also log error output in
68286                 config.log.
68287
68288         2006-03-11  Bruno Haible  <bruno@clisp.org>
68289
68290                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
68291
68292         2006-05-09  Bruno Haible  <bruno@clisp.org>
68293
68294                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
68295                 CLASSPATH_SEPARATOR to a semicolon.
68296
68297         2006-03-12  Bruno Haible  <bruno@clisp.org>
68298
68299                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
68300                 available as variable CONF_JAVA, for subsequent autoconf
68301                 tests. Also log error output in config.log.
68302
68303         2006-07-19  Bruno Haible  <bruno@clisp.org>
68304
68305                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
68306                 that getline works on glibc2 systems. Needed to avoid trouble
68307                 in relocatable.c.
68308                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
68309
68310         2005-12-04  Bruno Haible  <bruno@clisp.org>
68311
68312                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
68313                 launcher (untested).
68314
68315         2005-12-04  Bruno Haible  <bruno@clisp.org>
68316
68317                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
68318
68319         2006-07-22  Bruno Haible  <bruno@clisp.org>
68320
68321                 * gettext.m4: Update from GNU gettext-0.15.
68322                 * nls.m4: Likewise.
68323                 * po.m4: Likewise.
68324                 * inttypes-pri.m4: Likewise.
68325                 * inttypes-h.m4: Renamed from inttypes.m4.
68326                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
68327
68328 2006-07-22  Bruno Haible  <bruno@clisp.org>
68329
68330         Merge from GNU gettext 0.15.
68331
68332         2005-07-05  Bruno Haible  <bruno@clisp.org>
68333
68334                 * printf-args.c (printf_fetchargs): Work around broken
68335                 definition of wint_t on mingw.
68336
68337         2005-02-12  Bruno Haible  <bruno@clisp.org>
68338
68339                 * xallocsa.h: Add extern "C" for C++.
68340
68341         2006-05-17  Bruno Haible  <bruno@clisp.org>
68342
68343                 Cygwin portability.
68344                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
68345
68346         2006-04-30  Bruno Haible  <bruno@clisp.org>
68347
68348                 * progreloc.c: Include <mach-o/dyld.h> if available.
68349                 (find_executable): Use _NSGetExecutablePath when possible.
68350
68351         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68352
68353                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
68354                 function.
68355
68356         2005-12-29  Bruno Haible  <bruno@clisp.org>
68357
68358                 * progreloc.c (set_program_name_and_installdir): Fix
68359                 compilation error.
68360
68361         2005-12-04  Bruno Haible  <bruno@clisp.org>
68362
68363                 Cygwin portability.
68364                 * progreloc.c: Include <windows.h> also on Cygwin.
68365                 (find_executable): Add support for Cygwin.
68366                 (set_program_name_and_installdir): Handle also platforms with
68367                 nonempty EXEEXT.
68368
68369         2006-07-11  Bruno Haible  <bruno@clisp.org>
68370
68371                 * javacomp.c: Fix a comment.
68372                 Reported by Jim Meyering.
68373
68374         2006-04-30  Bruno Haible  <bruno@clisp.org>
68375
68376                 * javacomp.h (compile_java_class): Add source_version,
68377                 target_version arguments.
68378                 * javacomp.c: Rewritten to choose only a compiler that
68379                 respects the specified source_version and target_version.
68380
68381         2006-06-27  Bruno Haible  <bruno@clisp.org>
68382
68383                 Assume correct S_ISDIR macro.
68384                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
68385
68386         2006-07-22  Bruno Haible  <bruno@clisp.org>
68387
68388                 * javaversion.h: New file, from GNU gettext.
68389                 * javaversion.c: New file, from GNU gettext.
68390                 * javaversion.java: New file, from GNU gettext.
68391                 * javaversion.class: New file, from GNU gettext.
68392
68393         2006-05-17  Bruno Haible  <bruno@clisp.org>
68394
68395                 Cygwin portability.
68396                 * javaexec.c (execute_java_class): Test for jview program
68397                 also on Cygwin.
68398
68399         2006-04-09  Bruno Haible  <bruno@clisp.org>
68400
68401                 * fatal-signal.c: Don't include string.h.
68402                 (at_fatal_signal): Use a copying loop instead of memcpy.
68403
68404         2005-12-04  Bruno Haible  <bruno@clisp.org>
68405
68406                 * csharpexec.c: Add support for 'clix' launcher (untested).
68407                 (execute_csharp_using_sscli): New function.
68408                 (execute_csharp_program): Call it.
68409
68410         2006-06-21  Bruno Haible  <bruno@clisp.org>
68411
68412                 Avoid warnings from recent versions of mcs.
68413                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
68414                 -o, -L, -r any more. Use options documented since mcs-1.0
68415                 instead. Similarly for -g.
68416
68417         2005-07-09  Bruno Haible  <bruno@clisp.org>
68418
68419                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
68420                 add a .dll suffix.
68421                 Reported by Mark Junker <mjscod@gmx.de>.
68422
68423         2006-06-17  Bruno Haible  <bruno@clisp.org>
68424
68425                 * config.charset: Update for NetBSD 3.0.
68426
68427         2006-05-17  Bruno Haible  <bruno@clisp.org>
68428
68429                 Cygwin portability.
68430                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
68431
68432         2006-05-16  Bruno Haible  <bruno@clisp.org>
68433
68434                 * localcharset.c [CYGWIN]: Include <windows.h>.
68435                 (get_charset_aliases): For Cygwin, return the same CPxxx
68436                 aliases list as under WIN32.
68437                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
68438                 the environment variables. Fall back to GetACP().
68439
68440         2006-04-05  Bruno Haible  <bruno@clisp.org>
68441
68442                 * config.charset: Update Juan Manuel Guerrero's address.
68443
68444         2005-02-12  Bruno Haible  <bruno@clisp.org>
68445
68446                 * allocsa.h: Add extern "C" for C++.
68447
68448         2005-02-10  Bruno Haible  <bruno@clisp.org>
68449
68450                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
68451                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
68452
68453         2006-07-22  Bruno Haible  <bruno@clisp.org>
68454
68455                 * gettext.h: Update to GNU gettext-0.15.
68456
68457 2006-07-22  Bruno Haible  <bruno@clisp.org>
68458
68459         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
68460         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
68461         lib-prefix.m4, longdouble.m4, ssize_t.m4.
68462
68463 2006-07-21  Eric Blake  <ebb9@byu.net>
68464
68465         * modules/stdlib-safer: New file.
68466         * MODULES.html.sh (File stream based Input/Output): Add
68467         stdlib-safer.
68468
68469 2006-07-21  Eric Blake  <ebb9@byu.net>
68470
68471         * lib/stdlib-safer.h: New file from coreutils, required by
68472         stdlib--.h.
68473
68474 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
68475
68476         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
68477
68478 2006-07-20  Bruno Haible  <bruno@clisp.org>
68479
68480         * gnulib-tool: Recognize new option --assume-autoconf.
68481         (autoconf_minversion): New variable.
68482         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
68483
68484 2006-07-20  Bruno Haible  <bruno@clisp.org>
68485
68486         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
68487
68488 2006-07-19  Derek R. Price  <derek@ximbiot.com>
68489
68490         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
68491         Reindent and repaginate.
68492
68493 2006-07-19  Derek Price  <derek@ximbiot.com>
68494
68495         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
68496         Correct grammar.
68497
68498 2006-07-17  Bruno Haible  <bruno@clisp.org>
68499
68500         * modules/list: New file.
68501         * modules/array-list: New file.
68502         * modules/carray-list, modules/carray-list-tests: New files.
68503         * modules/linked-list, modules/linked-list-tests: New files.
68504         * modules/avltree-list, modules/avltree-list-tests: New files.
68505         * modules/rbtree-list, modules/rbtree-list-tests: New files.
68506         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
68507         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
68508         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
68509         * modules/oset: New file.
68510         * modules/array-oset: New file.
68511         * modules/avltree-oset, modules/avltree-oset-tests: New files.
68512         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
68513         * tests/test-carray_list.c: New file.
68514         * tests/test-linked_list.c: New file.
68515         * tests/test-avltree_list.c: New file.
68516         * tests/test-rbtree_list.c: New file.
68517         * tests/test-linkedhash_list.c: New file.
68518         * tests/test-avltreehash_list.c: New file.
68519         * tests/test-rbtreehash_list.c: New file.
68520         * tests/test-avltree_oset.c: New file.
68521         * tests/test-rbtree_oset.c: New file.
68522         * MODULES.html.sh (Container data structures): New section.
68523
68524 2006-07-17  Bruno Haible  <bruno@clisp.org>
68525
68526         * m4/gl_list.m4: New file.
68527
68528 2006-07-17  Bruno Haible  <bruno@clisp.org>
68529
68530         * lib/gl_list.h: New file.
68531         * lib/gl_list.c: New file.
68532         * lib/gl_array_list.h: New file.
68533         * lib/gl_array_list.c: New file.
68534         * lib/gl_carray_list.h: New file.
68535         * lib/gl_carray_list.c: New file.
68536         * lib/gl_linked_list.h: New file.
68537         * lib/gl_linked_list.c: New file.
68538         * lib/gl_anylinked_list1.h: New file.
68539         * lib/gl_anylinked_list2.h: New file.
68540         * lib/gl_avltree_list.h: New file.
68541         * lib/gl_avltree_list.c: New file.
68542         * lib/gl_anyavltree_list1.h: New file.
68543         * lib/gl_anyavltree_list2.h: New file.
68544         * lib/gl_rbtree_list.h: New file.
68545         * lib/gl_rbtree_list.c: New file.
68546         * lib/gl_anyrbtree_list1.h: New file.
68547         * lib/gl_anyrbtree_list2.h: New file.
68548         * lib/gl_anytree_list1.h: New file.
68549         * lib/gl_anytree_list2.h: New file.
68550         * lib/gl_linkedhash_list.h: New file.
68551         * lib/gl_linkedhash_list.c: New file.
68552         * lib/gl_anyhash_list1.h: New file.
68553         * lib/gl_anyhash_list2.h: New file.
68554         * lib/gl_avltreehash_list.h: New file.
68555         * lib/gl_avltreehash_list.c: New file.
68556         * lib/gl_rbtreehash_list.h: New file.
68557         * lib/gl_rbtreehash_list.c: New file.
68558         * lib/gl_anytreehash_list1.h: New file.
68559         * lib/gl_anytreehash_list2.h: New file.
68560
68561         * lib/gl_oset.h: New file.
68562         * lib/gl_oset.c: New file.
68563         * lib/gl_array_oset.h: New file.
68564         * lib/gl_array_oset.c: New file.
68565         * lib/gl_avltree_oset.h: New file.
68566         * lib/gl_avltree_oset.c: New file.
68567         * lib/gl_rbtree_oset.h: New file.
68568         * lib/gl_rbtree_oset.c: New file.
68569         * lib/gl_anytree_oset.h: New file.
68570
68571 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
68572
68573         * m4/mkancesdirs.m4: New file.
68574         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
68575         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
68576         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
68577         it.
68578
68579 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
68580
68581         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
68582         * lib/mkancesdirs.h: New files.
68583         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
68584         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
68585         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
68586         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
68587         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
68588         callers changed.  Revamp internals significantly, by not
68589         attempting to create directories that are temporarily more
68590         permissive than the final results.  Do not attempt to use
68591         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
68592         This removes some race conditions, fixes some bugs, and simplifies
68593         things.  Use new dirchownmod function to do owner and mode changes.
68594         * lib/mkdir-p.h: Likewise.
68595         * lib/modechange.c (octal_to_mode): New function.
68596         (struct mode_change): New member mentioned.
68597         (make_node_op_equals): New arg mentioned.  All callers changed.
68598         (mode_compile): Keep track of which mode bits the user has explicitly
68599         mentioned.
68600         (mode_adjust): New arg DIR, so that we implement the X op correctly.
68601         New arg PMODE_BITS, to keep track of which mode bits the user
68602         mentioned; it treats S_ISUID and S_ISGID speciall.
68603         All callers changed.
68604         * lib/modechange.h: Likewise.
68605
68606 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
68607
68608         * MODULES.html.sh: Add mkancestors.
68609         * modules/mkancesdirs: New module.
68610         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
68611         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
68612         The chdir-safer and afs files are now orphans; I'll remove them
68613         unless someone speaks up.
68614         Add lib/dirchownmod.c, lib/dirchownmod.h.
68615         (Depends-on): Remove alloca, chown, save-cwd, dirname.
68616         Add lchown, mkancesdirs.
68617         (Maintainer): Add self.
68618
68619 2006-07-15  Karl Berry  <karl@gnu.org>
68620
68621         * gnulib-tool: help message wording/arrangement.
68622
68623 2006-07-14  Simon Josefsson  <jas@extundo.com>
68624
68625         * doc/gnulib.texi (Libtool and Windows): New section.
68626
68627 2006-07-12  Simon Josefsson  <jas@extundo.com>
68628
68629         * modules/gendocs (License): Fix license, approved by Karl.
68630
68631 2006-07-12  Eric Blake  <ebb9@byu.net>
68632
68633         * MODULES.html.sh: Add gendocs.
68634
68635 2006-07-11  Eric Blake  <ebb9@byu.net>
68636
68637         * modules/fdl: New module, to install doc/fdl.texi.
68638         * MODULES.html.sh: Add new section for documentation modules.
68639         * gnulib-tool: Avoid space-tab.
68640         (--doc-base): New option, to manage files from doc.
68641
68642 2006-07-11  Eric Blake  <ebb9@byu.net>
68643
68644         * m4/absolute-header.m4: Fix comments to match recent change.
68645
68646 2006-07-11  Eric Blake  <ebb9@byu.net>
68647
68648         * gnulib-tool: List --doc-base before --tests-base.
68649
68650 2006-07-11  Derek R. Price  <derek@ximbiot.com>
68651
68652         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
68653
68654 2006-07-11  Bruno Haible  <bruno@clisp.org>
68655
68656         * README: Mention where to put documentation.
68657
68658 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68659
68660         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
68661
68662 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
68663
68664         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
68665         to stdint.m4.
68666
68667 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
68668
68669         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
68670         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
68671         "no/such/file/stdint.h" when there is no such file, so that
68672         the resulting C code can be parsed by dodgy compilers.
68673         Problems reported by Bob Proulx.
68674
68675 2006-07-10  Derek R. Price  <derek@ximbiot.com>
68676
68677         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
68678         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
68679         macros into the GNU _D_EXACT_NAMLEN.
68680         * lib/savedir.c:  Likewise.
68681         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
68682
68683 2006-07-10  Derek R. Price  <derek@ximbiot.com>
68684         and Paul Eggert  <eggert@cs.ucla.edu>
68685
68686         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
68687         * m4/savedir.m4:
68688         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
68689         macros into the GNU _D_EXACT_NAMLEN.
68690
68691 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68692
68693         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
68694         around the absolute name, to work around a problem with the HP-UX
68695         11.23 native C compiler, reported by Bob Proulx.
68696
68697 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68698
68699         * doc/maintain.texi, make-stds.texi: Sync from
68700         <http://savannah.gnu.org/projects/gnustandards>.
68701
68702 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68703
68704         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
68705
68706 2006-07-09  Jim Meyering  <jim@meyering.net>
68707
68708         * m4/glob.m4: Remove a doubled word in a comment.
68709
68710 2006-07-09  Jim Meyering  <jim@meyering.net>
68711
68712         * lib/argp-pv.c: Remove a doubled word in a comment.
68713         * lib/check-version.c (check_version): Likewise.
68714         * lib/javacomp.c (compile_java_class): Likewise.
68715
68716 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
68717
68718         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
68719         for the benefit of people using Autoconf 2.60.  If you want to
68720         support older Autoconf versions you can copy m4/onceonly_2_57.m4
68721         (or m4/onceonly.m4, if pre-2.57) manually.
68722
68723 2006-07-08  Jim Meyering  <jim@meyering.net>
68724
68725         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
68726         comment.
68727         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
68728         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
68729         comment.
68730
68731 2006-07-08  Jim Meyering  <jim@meyering.net>
68732
68733         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
68734
68735 2006-07-07  Simon Josefsson  <jas@extundo.com>
68736
68737         * tests/test-crc.c: Change expected crc value, the test vector
68738         were probably computed using the old broken crc.c?
68739
68740 2006-07-06  Simon Josefsson  <jas@extundo.com>
68741
68742         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
68743         now the canonical place for the M4 file).
68744
68745         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
68746         from the sys_socket dependency now.
68747
68748         * modules/inet_pton (Files): Ditto.
68749
68750         * modules/inet_ntop (Files): Ditto.
68751
68752 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68753
68754         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
68755         not gl_PREREQ_GETUSERSHELL.
68756
68757 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68758
68759         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
68760         with only one argument, for Autoconf 2.60.
68761         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
68762         expand to nothing, so add a shell command to avoid syntax error.
68763         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68764
68765 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68766
68767         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
68768
68769 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68770
68771         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
68772         no longer needed.  Check for isblank decl.
68773         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
68774         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
68775         of existence.
68776
68777 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68778
68779         * lib/getloadavg.c: Use __VMS, not VMS.
68780         * lib/getopt.c: Likewise.
68781         * lib/getpagesize.h: Likewise.
68782         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
68783         and probably does not work.
68784
68785 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68786
68787         * lib/.cppi-disable: Add wcwidth.
68788         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
68789         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
68790         (ISGRAPH): Remove.  All uses changed to isgraph.
68791         (FOLD) [!defined _LIBC]: Remove special case.
68792         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
68793         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
68794         HAVE_ISBLANK.
68795         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
68796         case.
68797
68798 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
68799
68800         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
68801         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
68802         brackets.  Other minor changes to suppress some compiler
68803         warnings.
68804
68805 2006-07-06  Derek R. Price  <derek@ximbiot.com>
68806         and Paul Eggert  <eggert@cs.ucla.edu>
68807
68808         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
68809         of invoking obsolescent AC_HEADER_DIRENT macro.
68810         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
68811         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
68812         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
68813         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
68814         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
68815         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68816         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
68817         * m4/readdir.m4: Remove; no longer needed.
68818
68819 2006-07-06  Derek R. Price  <derek@ximbiot.com>
68820         and Paul Eggert  <eggert@cs.ucla.edu>
68821
68822         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
68823         Don't worry about this obsolete case any more.
68824         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
68825         directories.
68826         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
68827         worry about this obsolete case any more.
68828         * lib/fts.c: Likewise.
68829         * lib/getcwd.c: Likewise.
68830         * lib/glob.h: Likewise.
68831         * lib/savedir.c: Likewise.
68832
68833 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68834
68835         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
68836         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
68837         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
68838         needed.
68839         All uses removed.
68840         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68841         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
68842         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
68843         needed.
68844         * m4/getdate.m4 (gl_GETDATE): Likewise.
68845         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
68846         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
68847         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
68848         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68849         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
68850         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68851         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
68852         needed.
68853
68854 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68855
68856         * lib/memcasecmp.c: Include <limits.h>.
68857         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
68858         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
68859         Don't assume isdigit succeeds only on '0' through '9'.
68860
68861 2006-07-05  Eric Blake  <ebb9@byu.net>
68862
68863         * modules/getaddrinfo (Depends-on): Add snprintf.
68864
68865 2006-07-05  Eric Blake  <ebb9@byu.net>
68866
68867         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
68868         to avoid 'header present but could not be compiled' on cygwin.
68869
68870 2006-07-05  Eric Blake  <ebb9@byu.net>
68871
68872         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
68873         missing from netdb.h.
68874         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
68875
68876 2006-07-05  Derek R. Price  <derek@ximbiot.com>
68877
68878         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
68879         no longer needed.
68880         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
68881         * m4/getdate.m4 (gl_GETDATE): Likewise.
68882         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
68883         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
68884         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
68885         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68886         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68887
68888 2006-07-05  Derek R. Price  <derek@ximbiot.com>
68889
68890         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
68891         All uses of is_space replaced by isspace.
68892         * lib/exit.h: Don't talk about STDC_HEADERS.
68893         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
68894         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
68895         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
68896         replaced by isprint etc.
68897         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
68898         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
68899         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
68900         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
68901         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
68902         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
68903
68904 2006-07-05  Bruno Haible  <bruno@clisp.org>
68905
68906         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
68907         the function exists, before testing against AIX.
68908         Reported by Martin Lambers <marlam@marlam.de>.
68909
68910 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
68911
68912         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
68913         From Mark D. Baushke.
68914
68915 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
68916
68917         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
68918         to the absolute name, not just one, to bypass Sun C 5.8's
68919         "warning: #include of /usr/include/... may be non-portable".
68920
68921 2006-07-04  Eric Blake  <ebb9@byu.net>
68922
68923         * modules/dirname-tests: New test module.
68924         * tests/test-dirname.c: New file, replacing dirname.c
68925         TEST_DIRNAME section that was recently deleted.
68926
68927 2006-07-04  Bruno Haible  <bruno@clisp.org>
68928
68929         Assume ANSI C header files and <ctype.h> functions.
68930         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
68931         (mbsnwidth): Use isprint, iscntrl instead.
68932
68933 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68934
68935         Merge from coreutils.
68936         * MODULES.html.sh: Add xstrtold.
68937         * modules/xstrtold: New file.
68938         * modules/cycle-check (Files): Add lib/same-inode.h.
68939         * modules/dirname (Files): Add m4/double-slash-root.m4.
68940         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
68941         * modules/mkdir-p (Files): Add lib/same-inode.h.
68942         * modules/same (Files): Add lib/same-inode.h.
68943
68944 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68945
68946         * m4/absolute-header.m4: Renamed from full-header-path.m4.
68947         This is to keep the terminology clean; POSIX talks about
68948         "absolute pathnames", not "full pathnames", but the GNU
68949         Coding Standards say to use "path" for something else;
68950         so use "absolute" to keep both sides happy.
68951         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
68952         Set gl_absolute_header, not gl_full_header_path.
68953         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
68954         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
68955         All uses changed.
68956
68957         Merge from coreutils.
68958
68959         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
68960
68961         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
68962         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
68963         want to require the building of c-strtod.o.
68964         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
68965         needs -lm directly.
68966         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
68967
68968         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68969
68970         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
68971         --as-needed option if available.  Problem reported by Albert Chin in
68972         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
68973         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
68974         cc merely issues a bunch of annoying warnings for --as-needed
68975         (this problem was reported by Bob Proulx).  Also, try linking with
68976         -lm to detect a bug in binutils 2.16 (this problem was reported
68977         by Ralf Wildenhues).
68978
68979         2006-06-18  Jim Meyering  <jim@meyering.net>
68980
68981         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
68982         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
68983         macro.
68984         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
68985         also check for glibc-2.4's abort-inducing bug.
68986
68987         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
68988         Low-probability clean-up should be to use rmdir to get rid of
68989         the just-created directory, not unlink.
68990
68991         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
68992         configure fail, and request a bug report to inform us about it.
68993         Add a comment that, barring reports to the contrary, in 2007 we'll
68994         assume ftruncate is universally available.
68995
68996         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
68997
68998         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
68999
69000         2006-03-12  Jim Meyering  <jim@meyering.net>
69001
69002         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
69003         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
69004         * m4/same.m4 (gl_SAME): Likewise.
69005         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
69006
69007         2006-03-11  Eric Blake  <ebb9@byu.net>
69008
69009         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
69010         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
69011         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
69012         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
69013
69014 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69015
69016         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
69017         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
69018         reported by Mark D. Baushke, one in
69019         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
69020
69021         Merge from coreutils.
69022
69023         * lib/.cppi-disable: Add stdint_.h.
69024         * lib/.cvsignore: Add stdint.h.
69025
69026         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69027
69028         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
69029         both double and long double versions.
69030         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
69031         * lib/xstrtold.c: New file.
69032         * lib/xstrtod.h (xstrtold): New decl.
69033
69034         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69035
69036         * lib/filemode.c (setst): Remove.
69037         (strmode): Rewrite to avoid setst.  This makes the code shorter,
69038         (arguably) clearer, and the generated code is a bit smaller on my
69039         Debian GNU/Linux stable x86 host.
69040
69041         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69042
69043         * lib/filemode.c: Include "filemode.h" first, to test the interface.
69044         Assume that filemode.h includes sys/types.h and sys/stat.h.
69045         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
69046         (ftypelet): Reorder to put common cases first, for efficiency.
69047         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
69048         to do 'M'.
69049         (strmode): Renamed from mode_string, and now stores 12 bytes instead
69050         of 10, for compatibility with FreeBSD.  All callers changed.
69051         (filemodestring): Now stores 12 bytes instead of 10, and sets file
69052         types that can't be deduced solely from st_mode.  First arg is now a
69053         const pointer.
69054         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
69055         (strmode): Renamed from mode_string.
69056         (filemodestring): New decl.
69057         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
69058         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
69059         needed.
69060         (S_ISPORT, S_ISWHT): New macros, if not already defined.
69061
69062         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
69063
69064         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
69065         fsusage.h now does that.  Include fsusage.h first, to test interface.
69066         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
69067         at most one method (the old code could have generated decls that
69068         didn't conform to C89, not that this was ever exercised).
69069         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
69070
69071         2006-03-19  Jim Meyering  <jim@meyering.net>
69072
69073         Work even in a chroot where d_ino values for entries in "/"
69074         don't match the stat.st_ino values for the same names.
69075         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
69076         number, iterate through all entries again, using lstat instead.
69077         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
69078         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
69079
69080         * lib/getcwd.c (__getcwd): Clarify a comment.
69081         Use memcpy in place of a call to strcpy.
69082
69083         2006-03-12  Jim Meyering  <jim@meyering.net>
69084
69085         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
69086         matches that of the current directory (which we're about to chdir ".."
69087         out of), then save the dev-ino of the parent, instead.
69088
69089         * lib/same-inode.h (SAME_INODE): New file/macro.
69090         * lib/chdir-safer.c (SAME_INODE): Remove definition.
69091         Include "same-inode.h", instead.
69092         * lib/same.c: Likewise.
69093         * lib/cycle-check.h: Include "same-inode.h".
69094         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
69095         * lib/cycle-check.c (SAME_INODE): Remove definition.
69096         * lib/root-dev-ino.h: Include "same-inode.h".
69097
69098         2006-03-11  Eric Blake  <ebb9@byu.net>
69099
69100         * lib/same.c (same_name): s/base_name/last_component/
69101         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
69102         * lib/filenamecat.c (file_name_concat): Likewise.
69103
69104         2006-03-11  Eric Blake  <ebb9@byu.net>,
69105                     Paul Eggert  <eggert@cs.ucla.edu>
69106
69107         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
69108         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
69109         drive prefix.
69110         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
69111         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
69112         (last_component): New method.
69113         * lib/dirname.c (dir_len): Determine when drive letters need a
69114         subsequent slash.  Preserve // when it is special.
69115         (dir_name): Don't append dot when drive letter is absolute.
69116         [TEST_DIRNAME]: Move into a full-blown gnulib test.
69117         * lib/basename.c (base_name): New semantics - malloc the result.
69118         Preserve // when it is special.  Preserve relative files that look
69119         like drive letters.
69120         (base_len): Preserve // when it is special.
69121         (last_component): New method, similar to old base_name semantics.
69122         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
69123         base_name.  Strip redundant slashes from ///.
69124
69125 2006-07-03  Jim Meyering  <jim@meyering.net>
69126
69127         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
69128         macro is used before the first cycle_check call.
69129
69130 2006-07-03  Eric Blake  <ebb9@byu.net>
69131
69132         * modules/dirname (Depends-on): Add xstrndup.
69133
69134 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69135
69136         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
69137         test cases, so that config.log is a bit easier to follow.
69138
69139 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69140
69141         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
69142         both are 64 bits, since this seems to be the tradition, and this
69143         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
69144         we ever run into a host that prefers long long to long in this
69145         case, we'll need another configure-time test.  Problem reported by
69146         Jim Meyering.
69147
69148 2006-07-02  Eric Blake  <ebb9@byu.net>
69149
69150         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
69151
69152 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69153
69154         * modules/inttypes (Depends-on): No longer depends on stdint.
69155         * modules/stdint (Description): Say more about assumptions.
69156         Say that the fast types might differ.  Say macros are used.
69157         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
69158         (Makefile.am): Revise list of substituted symbols to match
69159         new stdint.m4.
69160         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
69161         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
69162         * tests/test-stdint.c (verify_same_types)
69163         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
69164         the code conforms to C99/C89.
69165         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
69166         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
69167
69168 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69169
69170         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
69171         but fix a bug, by requiring at least 64 bits.
69172         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
69173         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
69174         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
69175         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
69176
69177         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
69178         changes.  Make 2.59 a prerequisite.  Check and substitute for
69179         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
69180         inttypes.h.  Do not use special include files; just use the
69181         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
69182         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
69183         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
69184         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
69185         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
69186         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
69187         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
69188         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
69189         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
69190         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
69191         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
69192         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
69193         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
69194         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
69195         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
69196         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
69197         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
69198         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
69199         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
69200         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
69201         WINT_MAX.  Check for C99 conformance more strictly, by detecting
69202         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
69203         not check for things that C99 does not require, e.g., int8_t.  If
69204         a test isn't needed unless <stdint.h> isn't working, and is
69205         unlikely to be needed for any other reason, then don't do it
69206         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
69207         size_t, since we assume C89 freestanding at least.  Do not check
69208         for sig_atomic_t, wchar_t, or wint_t, since the code now does
69209         the right thing even if the types are not defined.  Instead use:
69210         (gl_STDINT_TYPE_PROPERTIES): New macro.
69211         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
69212         testing whether <sys/types.h> clashes, as Autoconf does this for
69213         us now.  All uses removed.
69214         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
69215         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
69216         (gl_CHECK_TYPE_SAME):
69217         Remove; no longer needed.
69218         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
69219         exists, since we'll return 0 anyway in that case.
69220         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
69221
69222 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69223
69224         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
69225         possible collision with system files.
69226         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
69227         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
69228         WCHAR_MIN and WCHAR_MAX in this case.
69229         (<stddef.h>): Do not include; no longer needed.
69230         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
69231         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
69232         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
69233         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
69234         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
69235         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
69236         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
69237         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
69238         !defined(__c99))]: Include in this case too, since it's harmless
69239         now.
69240         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
69241         dangerous to do so.
69242         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
69243         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
69244         (_STDINT_MIN, _STDINT_MAX): New macros.
69245         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
69246         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
69247         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
69248         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
69249         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
69250         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
69251         macros, not typedefs; this simplifies things quite a bit.
69252         Use long int for all types narrower than int64_t.
69253         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
69254         Define in terms of long long int or int64_t or long int,
69255         not int64_t or int32_t.  This saves some compile-time testing.
69256         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
69257         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
69258         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
69259         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
69260         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
69261         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
69262         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
69263         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
69264         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
69265         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
69266         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
69267         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
69268         undef any previous version and define our own version, for
69269         simplicity and consistency with the new macros for types.
69270         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
69271         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
69272         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
69273         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
69274         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
69275         @WINT_T_SUFFIX@ to keep things simple here.
69276         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
69277         Simplify by assuming typical 8/16/32/64 host, since we're
69278         already doing that elsewhere anyway.
69279         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
69280         and assume long long int is 64 bits if available.  This
69281         speeds up 'configure'.
69282
69283 2006-07-01  Eric Blake  <ebb9@byu.net>
69284
69285         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
69286         Reported by Andreas Buening.
69287
69288 2006-07-01  Eric Blake  <ebb9@byu.net>
69289
69290         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
69291
69292 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
69293
69294         * lib/getaddrinfo.c: fixed typo
69295
69296 2006-06-29  Jim Meyering  <jim@meyering.net>
69297
69298         * modules/strftime (Maintainer): Add my name, since with the
69299         FPRINTFTIME changes strftime.c has forked from glibc.
69300
69301 2006-06-29  Eric Blake  <ebb9@byu.net>
69302
69303         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
69304
69305 2006-06-29  Eric Blake  <ebb9@byu.net>
69306
69307         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
69308
69309 2006-06-29  Eric Blake  <ebb9@byu.net>
69310
69311         * lib/stat_.h: New file.
69312
69313 2006-06-29  Eric Blake  <ebb9@byu.net>
69314
69315         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
69316         unused static function.
69317
69318 2006-06-29  Eric Blake  <ebb9@byu.net>
69319
69320         * doc/functions.texi (Function Portability): Document missing lstat
69321         on mingw.
69322
69323 2006-06-29  Eric Blake  <ebb9@byu.net>
69324
69325         * MODULES.html.sh: Add sys_stat.
69326         * modules/sys_stat: New module.
69327         * modules/mkstemp (Depends-on): Add sys_stat.
69328
69329 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69330
69331         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
69332
69333 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69334
69335         * m4/c-bs-a.m4: Removed.
69336
69337 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69338
69339         * lib/strftime.c: Assume strftime() exists.
69340
69341 2006-06-29  Derek Price  <derek@ximbiot.com>
69342
69343         * modules/c-bs-a: Removed - \a is C89.
69344         * MODULES.html.sh: Remove c-bs-a.
69345
69346 2006-06-29  Bruno Haible  <bruno@clisp.org>
69347
69348         * modules/wcwidth (License): Change to LGPL.
69349
69350 2006-06-28  Simon Josefsson  <jas@extundo.com>
69351
69352         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
69353         on _WIN32.
69354
69355         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
69356         getnameinfo.
69357
69358 2006-06-28  Simon Josefsson  <jas@extundo.com>
69359
69360         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
69361
69362 2006-06-28  Simon Josefsson  <jas@extundo.com>
69363
69364         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
69365         functions there.  It will succeed on Windows XP, but on Windows
69366         2000 and (presumably) earlier, it will fail, and use the internal
69367         re-implementation.
69368         (use_win32_p): New function.
69369         (getaddrinfo): Use strtoul on servname, to support numeric ports.
69370         Support AI_NUMERICSERV to disable getservbyname.
69371         (getnameinfo): New function, only supports
69372         NI_NUMERICHOST|NI_NUMERICSERV for now.
69373
69374         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
69375         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
69376         getnameinfo.
69377
69378 2006-06-28  Eric Blake  <ebb9@byu.net>
69379
69380         * modules/wcwidth: New file.
69381         * modules/mbchar (Depends-on): Add wcwidth.
69382         * modules/mbswidth (Depends-on): Add wcwidth.
69383         * MODULES.html.sh: Add wcwidth.
69384
69385 2006-06-28  Eric Blake  <ebb9@byu.net>
69386
69387         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
69388         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
69389
69390 2006-06-28  Eric Blake  <ebb9@byu.net>
69391
69392         * lib/xvasprintf.h: Fix comments.
69393
69394 2006-06-28  Eric Blake  <ebb9@byu.net>
69395
69396         * lib/mbchar.h (wcwidth): Include wcwidth.h.
69397         * lib/mbswidth.c (wcwidth): Move from here...
69398         * lib/wcwidth.h: ...to this new file.
69399
69400 2006-06-28  Derek R. Price  <derek@ximbiot.com>
69401
69402         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
69403
69404         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
69405         it's obsolete.
69406         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
69407
69408 2006-06-28  Derek R. Price  <derek@ximbiot.com>
69409
69410         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
69411         Autoconf 2.60 says this stuff was obsolete.
69412
69413 2006-06-28  Bruno Haible  <bruno@clisp.org>
69414
69415         * modules/wcwidth (Files): Add m4/wchar_t.m4.
69416
69417 2006-06-28  Bruno Haible  <bruno@clisp.org>
69418
69419         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
69420         gt_TYPE_WCHAR_T.
69421
69422 2006-06-28  Bruno Haible  <bruno@clisp.org>
69423
69424         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
69425         declaration for wcwidth.
69426         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
69427
69428 2006-06-28  Bruno Haible  <bruno@clisp.org>
69429
69430         * lib/mkdtemp.c [MINGW]: Include <io.h>.
69431         (mkdir): Define using _mkdir.
69432
69433 2006-06-28  Bruno Haible  <bruno@clisp.org>
69434
69435         * lib/getaddrinfo.h: Fix POSIX URL.
69436         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
69437         _WIN32.
69438         (use_win32_p): Make static.
69439         (getaddrinfo): Reject service name if it is empty or does not consist
69440         solely of decimal digits, or if its value is > 65535.
69441         (getnameinfo): Remove useless casts.
69442
69443 2006-06-27  Simon Josefsson  <jas@extundo.com>
69444
69445         * modules/sys_select: New file, suggested by Bruno Haible, Paul
69446         Eggert and Martin Lambers.
69447
69448 2006-06-27  Simon Josefsson  <jas@extundo.com>
69449
69450         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
69451         Eggert and Martin Lambers.
69452
69453 2006-06-27  Bruno Haible  <bruno@clisp.org>
69454
69455         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
69456         result to 0, not to empty.
69457         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
69458
69459 2006-06-27  Bruno Haible  <bruno@clisp.org>
69460
69461         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
69462
69463 2006-06-26  Simon Josefsson  <jas@extundo.com>
69464
69465         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
69466         present.
69467
69468 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
69469
69470         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
69471         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
69472         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
69473
69474 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
69475
69476         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
69477
69478 2006-06-26  Bruno Haible  <bruno@clisp.org>
69479
69480         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
69481
69482 2006-06-26  Bruno Haible  <bruno@clisp.org>
69483
69484         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
69485
69486 2006-06-26  Bruno Haible  <bruno@clisp.org>
69487
69488         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
69489         SGI C compiler in pre-C99 mode.
69490         Suggested by Mark D. Baushke and Larry Jones.
69491
69492 2006-06-26  Bruno Haible  <bruno@clisp.org>
69493
69494         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
69495         WCHAR_MAX.
69496         Reported by Mark D. Baushke and Larry Jones.
69497
69498 2006-06-26  Bruno Haible  <bruno@clisp.org>
69499
69500         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
69501         in pre-C99 mode.
69502         Suggested by Mark D. Baushke and Larry Jones.
69503
69504 2006-06-23  Simon Josefsson  <jas@extundo.com>
69505             Bruno Haible  <bruno@clisp.org>
69506
69507         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
69508         Emit mostlyclean-local rule.
69509         (func_emit_tests_Makefile_am): Likewise.
69510         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
69511
69512 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
69513
69514         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
69515
69516 2006-06-23  Bruno Haible  <bruno@clisp.org>
69517
69518         * tests/test-stdint.c: Update to match ISO C 99 Technical
69519         Corrigendum 1.
69520
69521 2006-06-23  Bruno Haible  <bruno@clisp.org>
69522
69523         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
69524
69525 2006-06-23  Bruno Haible  <bruno@clisp.org>
69526
69527         * lib/stdint_.h: Treat IRIX like OpenBSD.
69528
69529 2006-06-23  Bruno Haible  <bruno@clisp.org>
69530
69531         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
69532         ISO C 99 Technical Corrigendum 1.
69533
69534 2006-06-22  Simon Josefsson  <jas@extundo.com>
69535
69536         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
69537         MinGW.
69538
69539 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69540
69541         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
69542         needed.  Some compiler complained about some of them.  Problem reported
69543         by Larry Jones in
69544         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
69545
69546 2006-06-21  Simon Josefsson  <jas@extundo.com>
69547
69548         * tests/test-getaddrinfo.c: New file.
69549
69550         * modules/getaddrinfo-tests: New file.
69551
69552         * MODULES.html.sh: Add inet_pton.
69553
69554         * modules/inet_pton: New file.
69555
69556 2006-06-21  Simon Josefsson  <jas@extundo.com>
69557
69558         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
69559         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
69560         of using the (limited) gnulib implementation on Windows XP.
69561
69562         * m4/inet_pton.m4: New file.
69563
69564 2006-06-21  Simon Josefsson  <jas@extundo.com>
69565
69566         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
69567         variable.
69568
69569         * lib/socket_.h: Don't define WINVER.
69570
69571         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
69572         slightly modified to work in gnulib.
69573
69574 2006-06-21  Simon Josefsson  <jas@extundo.com>
69575
69576         * doc/gnulib.texi (Windows sockets): Add.
69577
69578 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
69579
69580         * lib/read-file.c (fread_file): Start with buffer allocation of
69581         0 bytes rather than 1 byte; this simplifies the code.
69582         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
69583         code to free buffer and save/restore errno.
69584         (internal_read_file): Remove unused local.
69585
69586 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
69587
69588         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
69589         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
69590         Problem reported by Denis Excoffier in
69591         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
69592
69593 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69594
69595         * modules/sys_socket, modules/socklen: Include sys/types since
69596         FreeBSD 4.x's sys/socket.h needs it.
69597
69598 2006-06-19  Simon Josefsson  <jas@extundo.com>
69599
69600         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
69601
69602 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
69603
69604         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
69605
69606 2006-06-19  Bruno Haible  <bruno@clisp.org>
69607
69608         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
69609         and FULL_PATH_INTTYPES_H in angle brackets.
69610         Reported by Mark D. Baushke <mdb@gnu.org>.
69611
69612 2006-06-17  Eric Blake  <ebb9@byu.net>
69613
69614         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
69615         errno.
69616
69617 2006-06-17  Bruno Haible  <bruno@clisp.org>
69618
69619         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
69620         <sys/inttypes.h>.
69621
69622 2006-06-17  Bruno Haible  <bruno@clisp.org>
69623
69624         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
69625         whether errno is declared. Assume <errno.h> declares errno.
69626
69627 2006-06-17  Bruno Haible  <bruno@clisp.org>
69628
69629         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
69630
69631 2006-06-17  Bruno Haible  <bruno@clisp.org>
69632
69633         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
69634         problem on Solaris 2.5.1.
69635
69636 2006-06-16  Eric Blake  <ebb9@byu.net>
69637
69638         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
69639         * lib/unicodeio.c [!defined errno]: Likewise.
69640         * lib/strtol.c [!defined errno]: Likewise.
69641         * lib/strtod.c [!defined errno]: Likewise.
69642
69643 2006-06-15  Eric Blake  <ebb9@byu.net>
69644
69645         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
69646
69647 2006-06-15  Eric Blake  <ebb9@byu.net>
69648
69649         * config/srclist.txt (ssize_t.m4): Lose sync.
69650
69651 2006-06-15  Bruno Haible  <bruno@clisp.org>
69652
69653         * modules/stdint (Files): Include m4/full-header-path.m4,
69654         m4/size_max.m4, m4/wchar_t.m4.
69655         (Makefile.am): Many more substitutions.
69656         * modules/stdint-tests: New file.
69657         * tests/test-stdint.c: New file.
69658
69659 2006-06-15  Bruno Haible  <bruno@clisp.org>
69660
69661         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
69662         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
69663         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
69664         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
69665         gl_CHECK_TYPE_SAME): New macros.
69666
69667 2006-06-15  Bruno Haible  <bruno@clisp.org>
69668
69669         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
69670
69671 2006-06-15  Bruno Haible  <bruno@clisp.org>
69672
69673         * lib/stdint_.h: Rewritten to be fully auto-configured.
69674         Fixes bug on HP-UX/IA64.
69675
69676 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
69677
69678         * lib/getdate.y (__attribute__): Don't define if already defined.
69679         Problem reported by Larry Jones.
69680         * lib/utimens.c (__attribute__): Likewise.
69681
69682 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
69683
69684         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
69685         reported by Andreas Schwab.
69686
69687 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69688             Bruno Haible  <bruno@clisp.org>
69689
69690         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
69691         check for the declaration of strnlen and a run test that exposes the
69692         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
69693         rpl_strndup.
69694
69695 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69696             Bruno Haible  <bruno@clisp.org>
69697
69698         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
69699
69700 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69701
69702         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
69703         compile test, for Tru64 4.0D.
69704
69705 2006-05-28  Karl Berry  <karl@gnu.org>
69706
69707         * config/srclist.txt (printf-args.c): lose sync.
69708
69709 2006-05-26  Martin Lambers  <marlam@marlam.de>
69710
69711         * lib/getpass.c: Updates the test for the native W32 API, and adds
69712         missing includes, thus fixing compilation warnings.
69713
69714 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
69715
69716         * lib/exclude.c (exclude_fnmatch): New function.
69717         (excluded_file_name): Call exclude_fnmatch.
69718         * lib/exclude.h (excluded_file_name): New prototype
69719
69720 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
69721
69722         * lib/tempname.c (small_open, large_open): New macros.
69723         (__open, __open64) [!_LIBC]: Remove.
69724         (__gen_tempname): Use small_open and large_open instead of __open
69725         and __open64.  This fixes a portability bug on HP-UX 11.11i
69726         reported by Simon Wing-Tang in
69727         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
69728
69729 2006-05-24  Bruno Haible  <bruno@clisp.org>
69730
69731         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
69732         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
69733         Reported by Thorsten Maerz <torte@netztorte.de> via
69734         Aaron Stone <aaron@serendipity.cx>.
69735
69736 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69737
69738         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
69739         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
69740         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
69741         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
69742         not really conditional on the cache.
69743         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
69744
69745 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69746
69747         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
69748         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
69749         (my_usleep): Don't mishandle maximum value.
69750
69751 2006-05-19  Jim Meyering  <jim@meyering.net>
69752
69753         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
69754
69755 2006-05-17  Bruno Haible  <bruno@clisp.org>
69756
69757         Cygwin portability.
69758         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
69759
69760 2006-05-17  Bruno Haible  <bruno@clisp.org>
69761
69762         * lib/stdint_.h: Fix recognition of Cygwin.
69763
69764 2006-05-15  Bruno Haible  <bruno@clisp.org>
69765
69766         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
69767         on libtool patch by Ralf Wildenhues.
69768
69769 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69770
69771         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
69772         test for C99 conformance; (bool) 0.5 is an integer constant
69773         expression, but (bool) -0.5 is not.  Problem reported by Fedor
69774         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
69775
69776 2006-05-11  Simon Josefsson  <jas@extundo.com>
69777
69778         * m4/xvasprintf.m4: Fix obvious typo.
69779
69780 2006-05-11  Jim Meyering  <jim@meyering.net>
69781
69782         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
69783         James Lemley.
69784
69785 2006-05-10  Simon Josefsson  <jas@extundo.com>
69786
69787         * lib/md4.c: Typo fix, update copyright years.
69788         (K1, K2): Don't use L because it turn computations into 64-bit on
69789         64-bit platforms.
69790
69791 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
69792
69793         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
69794         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
69795         unwanted sign propagation, e.g., on hosts with 64-bit int.
69796         There still are some problems with reeelly weird theoretical hosts
69797         (e.g., 33-bit int) but it's not worth worrying about now.
69798         * lib/sha1.c (rol): Likewise.
69799         (K1, K2, K3, K4): Remove unnecessary L suffix.
69800
69801 2006-05-10  Bruno Haible  <bruno@clisp.org>
69802
69803         * lib/des.c: Cast to avoid warnings.
69804
69805 2006-05-09  Bruno Haible  <bruno@clisp.org>
69806
69807         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
69808         (Depends-on): Depend also on xsize, stdarg.
69809         (configure.ac): Add gl_XVASPRINTF.
69810
69811 2006-05-09  Bruno Haible  <bruno@clisp.org>
69812
69813         * m4/xvasprintf.m4: New file.
69814
69815 2006-05-09  Bruno Haible  <bruno@clisp.org>
69816
69817         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
69818         (EOVERFLOW): Define fallback value.
69819         (xstrcat): New function.
69820         (xvasprintf): Recognize the special case of a string concatenation.
69821
69822 2006-05-08  Eric Blake  <ebb9@byu.net>
69823
69824         * gnulib-tool (func_version): Base copyright year on CVS date.
69825         (func_emit_copyright_notice): New function.
69826         (func_emit_lib_Makefile_am): Use it.
69827         (func_emit_tests_Makefile_am): Likewise.
69828         (func_import): Likewise.
69829
69830 2006-05-08  Bruno Haible  <bruno@clisp.org>
69831
69832         * modules/stdarg: New file.
69833         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
69834
69835 2006-05-08  Bruno Haible  <bruno@clisp.org>
69836
69837         * m4/stdarg.m4: New file, from GNU gettext.
69838
69839 2006-05-08  Bruno Haible  <bruno@clisp.org>
69840
69841         * config/srclist.txt (build-aux/config.rpath): different from latest
69842         release.
69843
69844 2006-05-08  Bruno Haible  <bruno@clisp.org>
69845
69846         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
69847
69848 2006-05-05  Jim Meyering  <jim@meyering.net>
69849
69850         * m4/warning.m4: New file, derived from bison's file by the same name.
69851
69852 2006-05-03  Bruno Haible  <bruno@clisp.org>
69853
69854         * lib/stdint_.h: Shorter URL.
69855         * lib/inttypes.h: Likewise.
69856
69857 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69858
69859         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
69860
69861 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69862
69863         * lib/verify.h: Document the internals better.  Most of this change
69864         was written by Bruno Haible.
69865
69866 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69867
69868         * doc/verify.texi: New file, partly based on a proposal by
69869         Bruno Haible.
69870
69871 2006-05-02  Bruno Haible  <bruno@clisp.org>
69872
69873         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
69874         test from here...
69875         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
69876
69877 2006-04-29  Bruno Haible  <bruno@clisp.org>
69878
69879         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
69880         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
69881
69882 2006-04-29  Bruno Haible  <bruno@clisp.org>
69883
69884         * gnulib-tool: Make --update option actually work.
69885
69886 2006-04-29  Bruno Haible  <bruno@clisp.org>
69887
69888         * doc/gcd.texi: New file.
69889         * doc/gnulib.texi: Include it.
69890
69891 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
69892
69893         * lib/getdate.y (get_date): When adding relative date, start with the
69894         initial time, not with the result of the first mktime call.
69895
69896 2006-04-25  Bruno Haible  <bruno@clisp.org>
69897
69898         * gnulib-tool (func_import): Output the include directives in three
69899         blocks, sorted separately.
69900         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69901
69902 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
69903
69904         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
69905         to define main with arguments, for C++.  Reported by Eric Blake.
69906         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
69907         Prefer 'int main ()' to 'int main (void)', for C++.
69908         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
69909         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
69910         for 'main', for C99 and C++.
69911
69912 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
69913
69914         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
69915         Don't assume that exit status -1 is valid.
69916         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69917         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
69918         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
69919         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
69920         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
69921         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
69922         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
69923         functions can be used without declaring them, or that you can
69924         exit with status -1.
69925         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
69926
69927 2006-04-24  Karl Berry  <karl@gnu.org>
69928
69929         * config/srclist.txt (longdouble.m4): sync lost.
69930
69931 2006-04-24  Eric Blake  <ebb9@byu.net>
69932
69933         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
69934
69935 2006-04-24  Bruno Haible  <bruno@clisp.org>
69936
69937         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
69938         poll() implementation in AIX.
69939         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69940
69941 2006-04-24  Bruno Haible  <bruno@clisp.org>
69942
69943         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
69944         assigned exactly once.
69945
69946 2006-04-23  Claudio Fontana  <claudio@gnu.org>
69947             Bruno Haible  <bruno@clisp.org>
69948
69949         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
69950         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
69951         for AM_CPPFLAGS.
69952
69953 2006-04-23  Bruno Haible  <bruno@clisp.org>
69954
69955         * modules/copy-file: Depend on unistd.
69956         * modules/execute: Likewise.
69957         * modules/fatal-signal: Likewise.
69958         * modules/findprog: Likewise.
69959         * modules/mkdtemp : Likewise.
69960         * modules/pipe: Likewise.
69961         * modules/wait-process: Likewise.
69962
69963 2006-04-23  Bruno Haible  <bruno@clisp.org>
69964
69965         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
69966         condition was already detected.
69967         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69968
69969 2006-04-23  Bruno Haible  <bruno@clisp.org>
69970
69971         * lib/copy-file.c: Include <unistd.h> unconditionally.
69972         * lib/execute.c: Likewise.
69973         * lib/fatal-signal.c: Likewise.
69974         * lib/findprog.c: Likewise.
69975         * lib/mkdtemp.c: Likewise.
69976         * lib/pipe.h: Likewise.
69977         * lib/pipe.c: Likewise.
69978         * lib/wait-process.h: Likewise.
69979
69980 2006-04-23  Bruno Haible  <bruno@clisp.org>
69981
69982         * gnulib-tool (func_usage): Fix --import description. Document
69983         --update.
69984         (func_import): Create temporary file in a temporary directory, if
69985         --dry-run is specified. Silence errors from 'grep' when there are no
69986         m4 files in $m4dir.
69987         (func_create_testdir): Silence errors from 'grep' when there are no
69988         m4 files in $m4dir.
69989         Reported by Karl Berry <karl@freefriends.org>.
69990
69991 2006-04-20  Bruno Haible  <bruno@clisp.org>
69992
69993         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
69994         one argument, so that the code will be portable to Autoconf 2.60.
69995         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
69996         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
69997         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
69998
69999 2006-04-19  Derek Price  <derek@ximbiot.com>
70000             Eric Blake  <ebb9@byu.net>
70001
70002         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
70003         rather than "/full/path.h".  Update comment to match.  Shorten &
70004         generalize m4_translit call via AS_TR_CPP.
70005
70006 2006-04-19  Derek Price  <derek@ximbiot.com>
70007             Eric Blake  <ebb9@byu.net>
70008
70009         * lib/inttypes.h: Correct grammar in comment.
70010
70011 2006-04-18  Derek Price  <derek@ximbiot.com>
70012             Paul Eggert  <eggert@cs.ucla.edu>
70013
70014         * modules/inttypes: New file.
70015         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
70016
70017 2006-04-18  Derek Price  <derek@ximbiot.com>
70018             Paul Eggert  <eggert@cs.ucla.edu>
70019
70020         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
70021         New files.
70022
70023 2006-04-18  Derek Price  <derek@ximbiot.com>
70024             Paul Eggert  <eggert@cs.ucla.edu>
70025
70026         * lib/inttypes.h: New file.
70027         * lib/strtoimax.c: Assume <inttypes.h>.
70028
70029 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
70030
70031         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
70032         isn't mounted.  Problem reported by Kir Kolyshkin.
70033
70034 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70035
70036         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
70037         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
70038         Derek R. Price.
70039         * lib/regex.h (RE_DUP_MAX): Update comment to match current
70040         implementation.
70041
70042 2006-04-12  Eric Blake  <ebb9@byu.net>
70043
70044         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
70045         is now done automatically by the corresponding Autoconf macro.
70046
70047 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
70048
70049         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
70050         time_r.h.
70051
70052 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70053
70054         Merge regex changes from libc, removing some of our
70055         POSIX-conformance changes that were rejected and redoing them in a
70056         less-intrusive way.
70057
70058         * lib/regcomp.c (re_compile_internal, init_dfa):
70059         Length arg is now size_t, not Idx.  All uses changed.
70060         (peek_token): Forward decl now says internal_function.
70061         (__re_error_msgid, __re_error_msgid_idx):
70062         Now static rather than extern with attribute_hidden.
70063         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
70064         For some reason libc prefers K&R style defns for external functions.
70065         (regerror) [!defined _LIBC]: Likewise.
70066         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
70067         (seek_collating_symbol_entry, lookup_collation_sequence_value):
70068         (build_range_exp, build_collating_symbol):
70069         Use K&R-style defn.
70070         (re_compile_fastmap): Use '\0' to memset, not 0.
70071         (utf8_sb_map): Make the calculations more obvious.
70072         (init_dfa, parse_bracket_exp, build_charclass_op):
70073         Call calloc and cast result, as glibc does.
70074         (init_word_char, fetch_token, peek_token, peek_token_bracket):
70075         (build_range_exp, build_collating_symbol):
70076         Now internal functions.
70077
70078         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
70079
70080         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
70081         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
70082         Don't depend on VMS; depend on __VMS instead, for POSIX
70083         namespace cleanness.
70084         (regoff_t): Define to ssize_t, not long int.
70085
70086         Remove the REG_ macros named below.  Instead, make the old names
70087         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
70088         __USE_GNU_REGEX.
70089         (REG_BACKSLASH_ESCAPE_IN_LISTS):
70090         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
70091         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
70092         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
70093         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
70094         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
70095         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
70096         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
70097         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
70098         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
70099         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
70100         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
70101         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
70102         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
70103         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
70104         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
70105         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
70106         (REG_NREGS):
70107         Remove.  All uses replaced by the old RE_* names.
70108         (RE_BACKSLASH_ESCAPE_IN_LISTS):
70109         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
70110         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
70111         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
70112         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
70113         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
70114         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
70115         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
70116         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
70117         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
70118         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
70119         Don't bother having these macros be independent of each others'
70120         values, since they no longer exist in the POSIX name space.
70121
70122         Rename the following member names back to their old names,
70123         unless !__USE_GNU_REGEX.  All uses changed back.
70124         (buffer): Renamed from re_buffer.
70125         (allocated): Renamed from re_allocated.
70126         (used): Renamed from re_used.
70127         (syntax): Renamed from re_syntax.
70128         (fastmap): Renamed from re_fastmap.
70129         (translate): Renamed from re_translate.
70130         (can_be_null): Renamed from re_can_be_null.
70131         (regs_allocated): Renamed from re_regs_allocated.
70132         (fastmap_accurate): Renamed from re_fastmap_accurate.
70133         (no_sub): Renamed from re_no_sub.
70134         (not_bol): Renamed from re_not_bol.
70135         (not_eol): Renamed from re_not_eol.
70136         (newline_anchor): Renamed from re_newline_anchor.
70137         (num_regs): Renamed from rm_num_regs.
70138         (start): Renamed from rm_start.
70139         (end): Renamed from rm_end.
70140
70141         (free_state): Move up a bit.
70142
70143         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
70144         #define to be empty.
70145         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
70146         when that is what is intended.
70147         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
70148         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
70149         (MAX): New macro.
70150         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
70151         All uses changed back to re_malloc, etc.  It's now the caller's
70152         responsibility to check for overflow; all callers changed.
70153         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
70154         (re_x2nrealloc): Remove.
70155         (free_state): Remove decl.
70156
70157         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
70158         (re_set_registers, re_exec):
70159         Use K&R-style defn.
70160
70161         2006-01-31  Roland McGrath  <roland@redhat.com>
70162
70163         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
70164         Reported by Mike Frysinger <vapier@gentoo.org>.
70165
70166         2006-01-15  Andreas Jaeger  <aj@suse.de>
70167
70168         [BZ #1950]
70169         * lib/regex_internal.c (re_string_reconstruct): Adjust for
70170         build_wcs_upper_buffer change.
70171         (build_wcs_upper_buffer): Change return type.
70172
70173         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
70174
70175         * lib/regex_internal.h: Include <stdint.h> if available.
70176
70177         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
70178
70179         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
70180
70181         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70182
70183         * lib/regcomp.c: Adjust for changed secondary hash function.
70184
70185         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
70186
70187         * lib/regex.h: Pretty printing.
70188         Clean up namespace a bit.
70189
70190         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
70191
70192         * lib/regexec.c (update_cur_sifted_state, check_arrival,
70193         check_arrival_add_next_nodes): Avoid using uninitialized variable.
70194
70195         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70196                     Ulrich Drepper  <drepper@redhat.com>
70197
70198         [BZ #1302]
70199         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
70200         changed.
70201         (bitset_word_t): Renamed from bitset_word.  All uses changed.
70202
70203         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
70204
70205         [BZ #281]
70206         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
70207         * lib/regcomp.c: Remove unnecessary uses of
70208         unsigned RE_TRANSLATE_TYPE.
70209         * lib/regex_internal.h: Likewise.
70210         * lib/regex_internal.c: Likewise.
70211         * lib/regexec.c: Likewise.
70212         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
70213
70214         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
70215
70216         * lib/regexec.c (find_recover_state): Remove unnecessary
70217         initialization.
70218         (transit_state_bkref): Make DFA a const pointer.
70219         (get_subexp): Likewise.
70220         (check_arrival): Likewise.
70221         (update_cur_sifted_state): Likewise.
70222         (re_search_internal): Likewise.
70223         (prune_impossible_nodes): Likewise.
70224         (acquire_init_state_context): Likewise.
70225         (proceed_next_node): Likewise.
70226         (set_regs): Likewise.
70227         (free_fail_stack_return): Likewise.
70228         (check_arrival_expand_ecl): Mark DFA parameter as const.
70229         (check_arrival_expand_ecl_sub): Likewise.
70230         (check_subexp_limits): Likewise.
70231         (sub_epsilon_src_nodes):  Likewise.
70232         (add_epsilon_src_nodes):  Likewise.
70233         (merge_state_array): Likewise.
70234         (update_regs): Likewise.
70235         (build_trtable): Likewise.
70236         (sift_states_backward): Mark MCTX parameter as const.
70237         (build_sifted_states): Likewise.
70238         (update_cur_sifted_state): Likewise.
70239         (sift_states_mkref): Likewise.
70240         (check_arrival_expand_ecl): Mark eclosure as const.
70241         (check_dst_limits_calc_pos_1): Likewise.
70242         * lib/regex_internal.h (re_match_context_t): Make dfa a const
70243         pointer.
70244
70245         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
70246
70247         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
70248         (transit_state_sb): Likewise.
70249         (transit_state_mb): Likewise.
70250         (sift_states_iter_mb): Likewise.
70251         (check_arrival_add_next_nodes): Likewise.
70252         (check_node_accept_bytes): Change first parameter to pointer-to-const.
70253         [_LIBC] (re_search_2_stub): Use mempcpy.
70254
70255         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
70256         mbrtowc for very simple UTF-8 case.
70257
70258         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
70259         a pointer-to-const.
70260         (re_acquire_state_context): Likewise.
70261         * lib/regex_internal.h: Adjust prototypes.
70262
70263         * lib/regex.c: Prevent using C++ compilers.
70264
70265         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
70266         (re_acquire_state_context): Likewise.
70267
70268 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70269
70270         * modules/regex (Depends-on): Add ssize_t.
70271
70272 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70273
70274         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
70275         translation table.
70276
70277 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70278
70279         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
70280
70281 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
70282             Bruno Haible  <bruno@clisp.org>
70283
70284         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
70285         <sys/types.h> and <inttypes.h>.
70286
70287 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70288
70289         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
70290         `__error_t_defined', so argp.h will not typedef the former.
70291
70292 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
70293
70294         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
70295         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
70296         glibc names.  Even if glibc is changed to conform to POSIX, the
70297         traditional names will be available anyway, since regex depends on
70298         the extensions module.  Also, fix a longstanding typo in the
70299         implementation of Spencer ERE test #75 from grep 2.3.  Problems
70300         reported by Emanuele Giaquinta.  Also, change sense of cached
70301         variable, so that the message makes sense.
70302
70303 2006-03-24  Simon Josefsson  <jas@extundo.com>
70304
70305         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
70306         including some doc fixes.
70307         (base64_encode_alloc): Fix +1 bug on allocation failures.
70308
70309 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70310
70311         * lib/base64.c (base64_encode): Do not read past end of array with
70312         unsanitized input on systems with CHAR_BIT > 8.
70313
70314 2006-03-24  Eric Blake  <ebb9@byu.net>
70315
70316         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
70317
70318 2006-03-22  Karl Berry  <karl@gnu.org>
70319
70320         * config/srclist.txt (*setenv.[ch]): get from coreutils.
70321         * config/srclistvars.sh (COREUTILS): new var.
70322
70323 2006-03-17  Jim Meyering  <jim@meyering.net>
70324
70325         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
70326         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
70327
70328 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
70329
70330         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
70331         no longer needs it.  Instead, check that regoff_t is as least
70332         as wide as ptrdiff_t.
70333
70334         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
70335         so that our regex.h stays compatible with the installed regex.
70336         This is helpful for installers who configure --without-included-regex.
70337         Problem reported by Emanuele Giaquinta.
70338
70339 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
70340
70341         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
70342         Typedef to long int, not to off_, as POSIX will likely change
70343         in that direction.
70344
70345 2006-03-15  Eric Blake  <ebb9@byu.net>
70346
70347         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
70348
70349 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
70350
70351         * lib/argp-help.c (validate_uparams): Fix typo
70352         * lib/argp-parse.c (argp_default_options): Consistently begin help
70353         messages with a lowercase letter.
70354
70355 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
70356
70357         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
70358         overrun buffers and shouldn't be used (much as gets shouldn't be
70359         used).
70360         * lib/time_r.c (asctime_r, ctime_r): Likewise.
70361
70362 2006-03-08  Simon Josefsson  <jas@extundo.com>
70363
70364         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
70365         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70366
70367 2006-03-08  Simon Josefsson  <jas@extundo.com>
70368
70369         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
70370         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70371
70372 2006-03-08  Simon Josefsson  <jas@extundo.com>
70373
70374         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
70375         signal that configure disabled the device.
70376
70377 2006-03-08  Simon Josefsson  <jas@extundo.com>
70378
70379         * build-aux/maint.mk: Fix refresh-po, to handle no translated
70380         languages.
70381
70382 2006-03-07  Simon Josefsson  <jas@extundo.com>
70383
70384         * modules/getopt (Depends-on): Add unistd.
70385
70386         * modules/unistd: New file.
70387
70388 2006-03-07  Simon Josefsson  <jas@extundo.com>
70389
70390         * modules/gc-random: New file.
70391
70392 2006-03-07  Simon Josefsson  <jas@extundo.com>
70393
70394         * m4/unistd_h.m4: New file.
70395
70396 2006-03-07  Simon Josefsson  <jas@extundo.com>
70397
70398         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
70399         test to be side-effect free by storing the result in the cache
70400         variable gl_cv_lib_readline, and moving the assignment of
70401         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
70402         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70403
70404 2006-03-07  Simon Josefsson  <jas@extundo.com>
70405
70406         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
70407         error on missing devices (the functions will return an error).
70408
70409         * m4/gc.m4: Move random stuff to gc-random.m4
70410
70411 2006-03-07  Simon Josefsson  <jas@extundo.com>
70412
70413         * lib/unistd_.h: New file.
70414
70415 2006-03-07  Simon Josefsson  <jas@extundo.com>
70416
70417         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
70418
70419 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
70420
70421         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
70422         Problem reported by Juan Manuel Guerrero.
70423
70424 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
70425
70426         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
70427         the unistd module.
70428         * lib/getlogin_r.c: Likewise.
70429         * lib/getlogin_r.h: Likewise.
70430         * lib/glob.c: Likewise.
70431         * lib/pagealign_alloc.c: Likewise.
70432         * lib/unistd_.h: Remove; no longer needed.
70433
70434 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
70435
70436         * MODULES.html.sh (Support for systems lacking POSIX:2001):
70437         Add unistd.
70438         * modules/c-stack (Depends-on): Add unistd.
70439         * modules/getlogin_r: Likewise.
70440         * modules/glob: Likewise.
70441         * modules/pagealign_alloc: Likewise.
70442         * modules/unistd (Files): Remove lib/unistd_.h.
70443         (EXTRA_DIST): Remove.
70444         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
70445         need unistd_.h.
70446         (MOSTLYCLEANFILES): Remove unistd.h-t.
70447
70448 2006-03-03  Simon Josefsson  <jas@extundo.com>
70449
70450         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
70451
70452 2006-03-03  Simon Josefsson  <jas@extundo.com>
70453
70454         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
70455         libidn and bison.
70456
70457 2006-03-03  Simon Josefsson  <jas@extundo.com>
70458
70459         * build-aux/maint.mk: Add indent target.
70460
70461 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
70462
70463         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
70464         our replacement poll.h in any case, to avoid a differing
70465         declaration from a system header.  Seen on AIX.
70466
70467 2006-03-01  Simon Josefsson  <jas@extundo.com>
70468
70469         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
70470         <kasal@ucw.cz>.
70471
70472 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70473
70474         * modules/gettime (Depends-on): Add extensions module.
70475         * modules/nanosleep (Depends-on): Likewise.
70476         * modules/settime (Depends-on): Likewise.
70477
70478 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70479
70480         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
70481         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
70482         pedantically.
70483         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70484         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
70485
70486         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
70487         not "==".  Reported by Ralf Wildenhues.
70488
70489 2006-03-01  Karl Berry  <karl@gnu.org>
70490
70491         * doc/Copyright/request-*: new files, synced from gnuorg.
70492
70493 2006-03-01  Karl Berry  <karl@gnu.org>
70494
70495         * config/srclist.txt (Copyright/*): new entries.
70496
70497 2006-02-28  Simon Josefsson  <jas@extundo.com>
70498
70499         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
70500
70501 2006-02-27  Simon Josefsson  <jas@extundo.com>
70502
70503         * lib/base64.h: Indent #define's.  From Jim Meyering
70504         <jim@meyering.net>.
70505
70506 2006-02-27  Jim Meyering  <jim@meyering.net>
70507
70508         Revert the change of 2006-02-24, so these files can continue
70509         to be sync'd from gettext.
70510         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
70511         of `config.h'.
70512
70513 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
70514
70515         * modules/intprops: New file.
70516         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
70517         Add intprops.
70518         * modules/getloadavg (Files): Remove lib/intprops.h.
70519         (Depends-on): Add intprops.
70520         * modules/human: Likewise.
70521         * modules/inttostr: Likewise.
70522         * modules/openat: Likewise.
70523         * modules/sig2str: Likewise.
70524         * modules/userspec: Likewise.
70525         * modules/utimecmp: Likewise.
70526         * modules/xnanosleep: Likewise.
70527         * modules/xstrtol: Likewise.
70528
70529 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
70530
70531         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
70532         * modules/lock-tests (TESTS): Use $(EXEEXT).
70533         * modules/tls-tests: Likewise.
70534         * modules/argp-tests: Likewise.
70535         (check_PROGRAMS): New var, replacing...
70536         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
70537
70538 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70539
70540         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
70541         `config.h'.
70542
70543 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
70544
70545         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
70546
70547 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70548
70549         Sync from coreutils.
70550         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
70551         gl_CHDIR_SAFER.
70552
70553 2006-02-22  Jim Meyering  <jim@meyering.net>
70554
70555         Sync from coreutils.
70556         * m4/chdir-safer.m4: New file.
70557
70558 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
70559
70560         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
70561         AT_FDCWD exceeds INT_MAX.
70562         * lib/openat.h (AT_FDCWD): Likewise.
70563
70564 2006-02-17  Eric Blake  <address@hidden>
70565
70566         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
70567
70568 2006-02-16  Simon Josefsson  <jas@extundo.com>
70569
70570         * modules/getaddrinfo (Depends-on): Add sys_socket.
70571
70572 2006-02-15  Simon Josefsson  <jas@extundo.com>
70573
70574         * build-aux/maint.mk: Add dsyntax-check rule.
70575
70576 2006-02-15  Eric Blake  <ebb9@byu.net>
70577
70578         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
70579         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
70580         'present but cannot compile' warnings on cygwin.
70581         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
70582         use ws2tcpip.h if sys/socket.h works.
70583         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
70584         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
70585
70586 2006-02-14  Simon Josefsson  <jas@extundo.com>
70587
70588         * modules/maintainer-makefile (Files): Rename.
70589
70590         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
70591         and (the local) Makefile.cfg to maint-cfg.mk.
70592
70593         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
70594         to the latter.
70595
70596         * modules/maintainer-makefile: New module.
70597
70598         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
70599         severaly stripped to make it possible to build it up from scratch
70600         with reliable tests.
70601
70602         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
70603         fixes to permit overriding the default actions when configure and
70604         makefile are not available.
70605
70606 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
70607
70608         Sync from coreutils.
70609         * modules/lstat (Depends-on): Don't depend on xalloc.
70610         (License): Change from GPL to LGPL, since this is now simply a
70611         replacement for a libc function.
70612
70613 2006-02-14  Jim Meyering  <jim@meyering.net>
70614
70615         Sync from coreutils.
70616
70617         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
70618         failure on deficient systems, and simplify gnulib lgpl dependencies.
70619         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
70620         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
70621
70622         * lib/xalloc-die.c: Remove unused definition of N_.
70623
70624 2006-02-14  Jim Meyering  <jim@meyering.net>
70625
70626         Sync from coreutils.
70627         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
70628         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
70629         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
70630         double-quote uses of that variable, to accommodate the rare case in
70631         which getmntent is available in none of the libraries checked.  This
70632         happens at least on FreeBSD 5.0.
70633
70634 2006-02-13  Simon Josefsson  <jas@extundo.com>
70635
70636         * gnulib-tool (Usage): Fix --import, from
70637         karl@freefriends.org (Karl Berry).
70638
70639 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
70640
70641         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
70642
70643 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
70644
70645         * lib/argp-namefrob.h: Restore changes accidentally lost during the
70646         "autoupdate" on 2005-12-12.
70647
70648 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
70649
70650         * modules/closeout (Depends-on): Remove atexit.
70651
70652 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
70653
70654         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
70655         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
70656
70657 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
70658
70659         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
70660         __EXTENSIONS__ if this causes compilation to fail.  Problem
70661         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
70662         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
70663
70664 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
70665
70666         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
70667         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
70668         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
70669         All uses changed.
70670
70671 2006-01-26  Simon Josefsson  <jas@extundo.com>
70672
70673         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
70674         prototype is visible on mingw32.
70675
70676         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
70677         for mingw32.
70678
70679         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
70680         mingw32).
70681
70682 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70683
70684         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
70685         attempt to open for write; this always fails, at least on POSIX
70686         hosts.  This reinstates the 2006-01-09 change, which was
70687         inadvertently removed.
70688
70689 2006-01-26  Bruno Haible  <bruno@clisp.org>
70690
70691         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
70692         Reported by Paul Eggert.
70693
70694 2006-01-26  Bruno Haible  <bruno@clisp.org>
70695             Paul Eggert  <eggert@cs.ucla.edu>
70696
70697         * lib/stdbool_.h (_Bool)
70698         [(! (defined __cplusplus || defined __BEOS__)
70699           && !defined __GNUC__
70700           && !(defined __HP_cc || defined __xlc__
70701                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
70702                || defined __sgi))]:
70703         #define to signed char in these cases too; this simplifies
70704         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
70705         etc., separately) and makes it more conservative.
70706
70707 2006-01-25  Simon Josefsson  <jas@extundo.com>
70708
70709         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
70710         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
70711         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
70712
70713 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
70714
70715         * lib/argp-namefrob.h: Bugfix. Remove stray #
70716
70717 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
70718
70719         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
70720         so that we test the test.
70721         Check for yet another HP-UX cc bug involving *bool |= bool.
70722
70723 2006-01-25  Karl Berry  <karl@gnu.org>
70724
70725         * config/srclist.txt (vasnprintf.c): sync lost.
70726
70727 2006-01-25  Jim Meyering  <jim@meyering.net>
70728
70729         Sync from the stable (b5) branch of coreutils:
70730
70731         * lib/fts.c (fts_children): Don't let close() clobber errno from
70732         failed fchdir().
70733
70734         * lib/fts.c (fts_stat): When following a symlink-to-directory,
70735         don't necessarily interpret stat-fails+lstat-succeeds as indicating
70736         a dangling symlink.  That can also happen at least for ELOOP.
70737         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
70738         FYI, this bug predates the inclusion of fts.c in coreutils.
70739
70740         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
70741         in their own block, so pre-c99 compilers don't object.
70742
70743         Avoid the double-free (first in fts_read, second in fts_close) that
70744         would occur when an `active' directory is made inaccessible (e.g.,
70745         via chmod a-x) during a traversal.
70746         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
70747         before returning.  Reproduce this failure by
70748         mkdir -p a/b; cd a; chmod a-x . b
70749         Reported by Stavros Passas.
70750
70751 2006-01-25  Jim Meyering  <jim@meyering.net>
70752
70753         * lib/fileblocks.c: Remove more useless parentheses.
70754         * lib/readutmp.h: Likewise.
70755
70756 2006-01-25  Bruno Haible  <bruno@clisp.org>
70757
70758         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
70759         warnings.
70760         Reported by Paul Eggert.
70761
70762 2006-01-25  Bruno Haible  <bruno@clisp.org>
70763
70764         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
70765         rid of a trap command. For Solaris sh.
70766         Reported by Mark D. Baushke <mdb@gnu.org>.
70767
70768 2006-01-24  Simon Josefsson  <jas@extundo.com>
70769
70770         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
70771         Bruno.
70772
70773 2006-01-24  Karl Berry  <karl@gnu.org>
70774
70775         * config/srclist.txt (argp-namefrob.h): sync lost.
70776
70777 2006-01-24  Jim Meyering  <jim@meyering.net>
70778
70779         * modules/openat (Files): Add lib/intprops.h.
70780         From Mark D. Baushke.
70781
70782 2006-01-24  Jim Meyering  <jim@meyering.net>
70783
70784         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
70785         Reported by Mark D. Baushke.
70786
70787 2006-01-24  Jim Meyering  <jim@meyering.net>
70788
70789         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
70790
70791 2006-01-24  Bruno Haible  <bruno@clisp.org>
70792
70793         * modules/strnlen (Maintainer): Change from glibc to all.
70794
70795 2006-01-24  Bruno Haible  <bruno@clisp.org>
70796
70797         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
70798         Patch by Paul Eggert.
70799
70800 2006-01-24  Bruno Haible  <bruno@clisp.org>
70801
70802         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
70803         already has it.
70804         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
70805         2005-11-26.
70806
70807         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
70808         'signed char' to avoid problems with the built-in _Bool type.
70809         Reported by Paul Eggert on 2005-11-26.
70810
70811 2006-01-24  Bruno Haible  <bruno@clisp.org>
70812
70813         * gnulib-tool (func_import): Avoid constructing complicated sed
70814         expressions inside backquote.
70815         Report and solution by Mark D. Baushke <mdb@gnu.org>.
70816
70817 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
70818
70819         These changes imported from libc.
70820         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
70821         test and two separate function calls.
70822         * lib/strndup.c (__strndup): Add libc_hidden_def.
70823
70824 2006-01-23  Simon Josefsson  <jas@extundo.com>
70825
70826         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
70827         Remove the test_*_SOURCES variable: automake infers it by default.
70828         * modules/tls-tests: Likewise.
70829
70830 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70831
70832         Work around porting bugs reported by Dieter in
70833         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
70834         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
70835         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
70836         Include "getopt.h" first, to check interface.
70837         (getenv): Declare only if defined HAVE_DECL_GETENV &&
70838         !HAVE_DECL_GETENV.
70839         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
70840         (__strndup): Revert to K&R-style function dfns, the glibc style.
70841         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
70842         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
70843         Include strnlen.h first, to get prototype properly.
70844         (strnlen): Renamed from __strnlen.
70845         Remove weak alias.
70846
70847 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70848
70849         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
70850
70851 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70852
70853         * config/srclist.txt: Adjust to reflect glibc reorganization.
70854         This affects only comments.
70855
70856 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70857
70858          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
70859          Reported by Bruce Korb <bkorb@gnu.org>.
70860
70861 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70862
70863         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
70864         to pacify gcc -Wswitch-default.
70865
70866 2006-01-22  Bruno Haible  <bruno@clisp.org>
70867
70868         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
70869         temporary buffer for sprintf, take into account the precision also
70870         for 'd', 'i', 'u', 'o', 'x', 'X'.
70871
70872 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
70873
70874         * modules/argp-tests: New module
70875         * tests/test-argp.c: New file
70876         * tests/test-argp-2.sh: New file
70877
70878 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
70879
70880         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
70881         (__argp_base_name): Removed
70882         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
70883         typo.
70884         (__argp_base_name): Provide macro definition or extern declaration
70885         depending on the configuration
70886
70887 2006-01-20  Simon Josefsson  <jas@extundo.com>
70888
70889         * modules/inet_ntop (Depends-on): Depend on sys_socket.
70890
70891 2006-01-20  Simon Josefsson  <jas@extundo.com>
70892
70893         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
70894
70895 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70896
70897         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
70898         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
70899         Suggested by Bruno Haible.
70900
70901 2006-01-20  Karl Berry  <karl@gnu.org>
70902
70903         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
70904         until changes propagate, I guess.
70905
70906 2006-01-19  Simon Josefsson  <jas@extundo.com>
70907
70908         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
70909
70910 2006-01-19  Simon Josefsson  <jas@extundo.com>
70911
70912         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
70913
70914 2006-01-19  Simon Josefsson  <jas@extundo.com>
70915
70916         * gnulib-tool: Set check_PROGRAMS.
70917
70918         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
70919         modules/des-tests, modules/gc-arcfour-tests,
70920         modules/gc-arctwo-tests, modules/gc-des-tests,
70921         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
70922         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
70923         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
70924         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
70925         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
70926         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
70927         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
70928         test_*_SOURCES.
70929
70930 2006-01-18  Simon Josefsson  <jas@extundo.com>
70931
70932         * modules/socklen (Depends-on): Depend on sys_socket.
70933
70934 2006-01-18  Simon Josefsson  <jas@extundo.com>
70935
70936         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
70937         modules/des-tests, modules/gc-arcfour-tests,
70938         modules/gc-arctwo-tests, modules/gc-des-tests,
70939         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
70940         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
70941         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
70942         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
70943         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
70944         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
70945         $(EXEEXT) to automake TESTS variable, for mingw32.
70946
70947 2006-01-17  Simon Josefsson  <jas@extundo.com>
70948
70949         * modules/socklen (Include): Need sys/socket.h.
70950
70951 2006-01-17  Bruno Haible  <bruno@clisp.org>
70952
70953         * modules/ssize_t (Include): Add <sys/types.h>.
70954
70955 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
70956
70957         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
70958         it's not portable and it doesn't work with cross-compiles.
70959         Problem reported by Bruno Haible.  Fix missing-$ typo in
70960         'test "gl_cv_ignore_unused_libraries" ...' that prevented
70961         -zignore from being used with Sun's C compiler.
70962
70963 2006-01-12  Simon Josefsson  <jas@extundo.com>
70964
70965         * lib/base64.c: Fix warning, reported by Bruno Haible
70966         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
70967
70968 2006-01-12  Bruno Haible  <bruno@clisp.org>
70969
70970         * modules/ldd: New file.
70971         * build-aux/ldd.sh.in: New file.
70972         * MODULES.html.sh (Support for building libraries and executables): Add
70973         ldd.
70974
70975 2006-01-12  Bruno Haible  <bruno@clisp.org>
70976
70977         * m4/ldd.m4: New file.
70978
70979 2006-01-12  Bruno Haible  <bruno@clisp.org>
70980
70981         * gnulib-tool (func_import, func_create_testdir): Don't go into an
70982         endless loop while replacing $auxdir with build-aux.
70983
70984 2006-01-11  Simon Josefsson  <jas@extundo.com>
70985
70986         * lib/stdint_.h (SIZE_MAX): Add missing (.
70987
70988 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
70989
70990         Sync from coreutils.
70991         * lib/md5.c: Fix commentary typos.
70992         (alignof, UNALIGNED_P): No need for a GCC-specific version.
70993         * lib/md5.h (__attribute__): Remove; unused.
70994         * lib/sha1.c: Fix commentary to match md5 better.
70995         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
70996         so that we don't need to worry about alignment.  All uses changed.
70997         This merges the 2005-10-28 md5 change into sha1.
70998
70999 2006-01-11  Jim Meyering  <jim@meyering.net>
71000
71001         Sync from coreutils.
71002         * lib/md5.c (OP): Fix spacing.
71003
71004 2006-01-11  Bruno Haible  <bruno@clisp.org>
71005
71006         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71007         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
71008         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
71009
71010 2006-01-11  Bruno Haible  <bruno@clisp.org>
71011
71012         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71013         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
71014         the "early" section as well.
71015
71016 2006-01-11  Bruno Haible  <bruno@clisp.org>
71017
71018         Avoid "ar: no archive members specified" error on MacOS X.
71019         * gnulib-tool (func_modules_add_dummy): New function.
71020         (func_import, func_create_testdir): Invoke it.
71021
71022 2006-01-11  Bruno Haible  <bruno@clisp.org>
71023
71024         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
71025         with $auxdir in AC_CONFIG_FILES statements.
71026
71027 2006-01-11  Bruno Haible  <bruno@clisp.org>
71028
71029         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71030         Initialize also noinst_HEADERS to empty.
71031
71032 2006-01-11  Bruno Haible  <bruno@clisp.org>
71033
71034         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
71035         variables.
71036         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
71037         autoreconf.
71038
71039 2006-01-11  Bruno Haible  <bruno@clisp.org>
71040
71041         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
71042         overridable by the user.
71043         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71044
71045 2006-01-10  Simon Josefsson  <jas@extundo.com>
71046
71047         * modules/sys_socket: New file.
71048
71049 2006-01-10  Simon Josefsson  <jas@extundo.com>
71050
71051         * m4/sys_socket_h.m4: New file.
71052
71053 2006-01-10  Simon Josefsson  <jas@extundo.com>
71054
71055         * lib/socket_.h: New file.
71056
71057 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71058
71059         * modules/readutmp (Maintainer): Add myself.
71060
71061 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71062
71063         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
71064         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
71065         People who are still concerned with buggy memcmp implementations
71066         can invoke gl_FUNC_MEMCMP themselves.
71067
71068 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71069
71070         * lib/regex_internal.h (BITSET_WORD_BITS):
71071         Work around a bug in 64-bit PGC (before version 6.1-2), where the
71072         preprocessor mishandles large unsigned values as if they were signed.
71073         Problem reported by Claudio Fontana in
71074         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
71075
71076 2006-01-10  Jim Meyering  <jim@meyering.net>
71077
71078         Avoid the double-free (first in fts_read, second in fts_close) that
71079         would occur when an `active' directory is made inaccessible (e.g.,
71080         via chmod a-x) during a traversal.
71081         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
71082         before returning.  Reproduce this failure by
71083         mkdir -p a/b; cd a; chmod a-x . b
71084         Reported by Stavros Passas.
71085
71086         Sync from coreutils.
71087         * lib/sha1.c: Tweak grammar in a comment.
71088
71089 2006-01-10  Jim Meyering  <jim@meyering.net>
71090
71091         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
71092         Patch by Joerg Sonnenberger.
71093
71094 2006-01-10  Bruno Haible  <bruno@clisp.org>
71095
71096         * modules/readutmp: Depend on module free.
71097         * modules/strtok_r: Depend on module restrict.
71098
71099 2006-01-10  Bruno Haible  <bruno@clisp.org>
71100
71101         * modules/gettext (configure.ac): Add an invocation of
71102         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
71103
71104 2006-01-10  Bruno Haible  <bruno@clisp.org>
71105
71106         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
71107         Reported by Werner Lemberg <wl@gnu.org>.
71108
71109 2006-01-10  Bruno Haible  <bruno@clisp.org>
71110
71111         * lib/localcharset.c: Update from GNU gettext.
71112
71113 2006-01-10  Bruno Haible  <bruno@clisp.org>
71114
71115         * lib/argp.h (__const): Remove macro. Use const instead.
71116         * lib/argp-fmtstream.h (__const): Likewise.
71117         * lib/glob_.h (__const): Remove macro.
71118         * lib/glob-libc.h: Use const instead of __const.
71119
71120 2006-01-10  Bruno Haible  <bruno@clisp.org>
71121
71122         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
71123         variable.
71124         Needed to avoid an automake error regarding the 'gettext' module.
71125
71126 2006-01-09  Simon Josefsson  <jas@extundo.com>
71127
71128         * modules/inet_ntop (Depends-on): Add restrict.
71129
71130 2006-01-09  Simon Josefsson  <jas@extundo.com>
71131
71132         * modules/gc-rijndael-tests (License): Put under LGPL.
71133
71134         * modules/gc-des-tests (License): Likewise.
71135
71136         * modules/gc-arcfour-tests (License): Likewise.
71137
71138         * modules/gc-arctwo-tests (License): Likewise.
71139
71140         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
71141
71142         * modules/gc-hmac-sha1-tests (Files): Likewise.
71143
71144         * modules/gc-hmac-md5-tests (License): Likewise.
71145
71146         * modules/gc-sha1-tests (License): Likewise.
71147
71148         * modules/gc-md5-tests (License): Likewise.
71149
71150         * modules/gc-md4-tests (License): Likewise.
71151
71152         * modules/gc-md2-tests (License): Likewise.
71153
71154         * modules/gc-tests (License): Likewise.
71155
71156         * modules/des-tests (License): Likewise.
71157
71158         * modules/md4-tests (License): Likewise.
71159
71160         * modules/md2-tests (License): Likewise.
71161
71162 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71163
71164         Sync from coreutils:
71165
71166         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
71167         * modules/lib-ignore: New file.
71168         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
71169         chdir-safer.m4, lchmod.m4.
71170         * modules/openat: Add mkdirat.c, openat-priv.h.
71171
71172 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71173
71174         Sync from coreutils.
71175         * m4/lib-ignore.m4: New file.
71176         * m4/lchmod.m4: New file.
71177
71178 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71179
71180         Sync from coreutils.
71181         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
71182         for write access: POSIX says that must fail.
71183         * lib/fts.c (diropen): Likewise.
71184         * lib/save-cwd.c (save_cwd): Likewise.
71185         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
71186         well, for minor improvements on hosts that lack O_DIRECTORY.
71187         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
71188         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
71189         Fall back on chown if open failed with EACCES.
71190
71191         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
71192         Report an error at compile-time if only a 1-second nominal clock
71193         resolution is found.
71194
71195         * lib/lchmod.h: New file.
71196         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
71197         (make_dir_parents): Use lchown rather than chown, and
71198         lchmod rather than chmod.
71199
71200         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
71201         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
71202         "proc" reported by n0dalus.
71203
71204         * lib/mountlist.c: Include <limits.h>.
71205         (dev_from_mount_options)
71206         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
71207         New function.  It no longer assumes "dev=" has the System V meaning
71208         on Linux (since it doesn't).  It also parses "dev=" more carefully.
71209         (read_file_system_list)
71210         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
71211         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
71212         dev= in that case.
71213
71214         * lib/posixtm.h (PDS_PRE_2000): New macro.
71215         * lib/posixtm.c (year): Arg is now syntax_bits rather than
71216         allow_century.  All usages changed.  Reject dates outside the range
71217         1969-1999 if PDS_PRE_2000 is used.
71218
71219 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71220
71221         Sync from coreutils.
71222         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
71223         (Time of day items): Mention the possibility of leap seconds.
71224         Problem reported by Dr. David Alan Gilbert.
71225
71226 2006-01-09  Jim Meyering  <jim@meyering.net>
71227
71228         Sync from coreutils.
71229
71230         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
71231
71232         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
71233
71234         * lib/modechange.c (mode_compile): Reject an invalid mode string
71235         that starts with an octal digit.  From Andreas Gruenbacher.
71236
71237         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
71238         and dup to open_safer and dup_safer, respectively.
71239         (openat_permissive): Fix typo in comment.
71240
71241         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
71242         "gettext.h"; either no longer needed or are guaranteed by openat.h.
71243         (_): Remove; no longer needed.
71244         (openat): Renamed from rpl_openat; no need for rpl_openat
71245         since openat.h renames openat for us.
71246         Replace most of the body with a call to openat_permissive,
71247         to avoid duplicate code.
71248         Port to (probably hypothetical) environments were mode_t is
71249         wider than int.
71250         (openat_permissive): Require mode arg, so that we can check
71251         types better.  Put it just after flags.  Change cwd failure
71252         indicator from pointer-to-bool to pointer-to-errno-value.
71253         All callers changed.
71254         Invoke openat_save_fail and/or openat_restore_fail if
71255         cwd_errno is null, so that openat can call us.
71256         (openat_permissive, fdopendir, fstatat, unlinkat):
71257         Simplify errno handling to avoid some duplicate code,
71258         as it's OK to set errno on success.
71259         * lib/openat.h: Revamp code so that function macros depend on
71260         __OPENAT_PREFIX only, not also on AT_FDCWD.
71261         (openat_ro): Remove.  Caller changed to use openat_permissive.
71262         (openat_permissive): Now a macro, if not a function.
71263         (openat_restore_fail, openat_save_fail): Now always functions,
71264         since mkdirat needs them even if __OPENAT_PREFIX is defined.
71265
71266         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
71267         and openat.c.
71268         * lib/mkdirat.c: Include openat-priv.h.
71269         Remove definitions of macros defined therein.
71270         * lib/openat.c: Likewise.
71271
71272         * lib/mkdirat.c (mkdirat): New file and function.
71273         * lib/openat.h (mkdirat): Declare.
71274
71275         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
71276
71277         * lib/openat.h (openat_permissive): Declare.
71278         (openat_ro): Define.
71279
71280         * lib/openat.c (EXPECTED_ERRNO): New macro.
71281         (openat_permissive): New function -- used in remove.c rewrite.
71282         (all functions): Set errno just before returning, only if there
71283         was an actual failure.
71284         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
71285
71286         Emulate openat-family functions using Linux's procfs, if possible.
71287         Idea and some code based on Ulrich Drepper's glibc changes.
71288
71289         * lib/openat.c: (BUILD_PROC_NAME): New macro.
71290         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
71291         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
71292         before falling back on save_cwd and restore_cwd.
71293         (fdopendir, fstatat, unlinkat): Likewise.
71294
71295         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
71296         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
71297
71298         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
71299         as second argument to va_arg.  Otherwise, some versions of gcc
71300         warn that `if this code is reached, the program will abort'.
71301
71302 2006-01-09  Jim Meyering  <jim@meyering.net>
71303
71304         Sync from coreutils.
71305         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
71306         Require openat-priv.h.
71307
71308 2006-01-09  Bruno Haible  <bruno@clisp.org>
71309
71310         * modules/strnlen (Include): Use strnlen.h.
71311
71312 2006-01-09  Bruno Haible  <bruno@clisp.org>
71313
71314         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
71315
71316 2006-01-09  Bruno Haible  <bruno@clisp.org>
71317
71318         * lib/sysexit_.h (EX_OK): New macro.
71319         Suggested by Martin Lambers <marlam@marlam.de>.
71320
71321 2006-01-09  Bruno Haible  <bruno@clisp.org>
71322
71323         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
71324         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
71325
71326 2006-01-09  Bruno Haible  <bruno@clisp.org>
71327
71328         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
71329         numbers.
71330
71331 2006-01-09  Bruno Haible  <bruno@clisp.org>
71332
71333         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
71334         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
71335         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
71336         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
71337
71338 2006-01-09  Bruno Haible  <bruno@clisp.org>
71339
71340         * build-aux/javacomp.sh.in: New file, moved from lib/.
71341         * modules/javacomp-script (Files): Update.
71342         (configure.ac): Add AC_CONFIG_FILES invocation.
71343         (EXTRA_DIST): Remove variable.
71344
71345         * build-aux/javaexec.sh.in: New file, moved from lib/.
71346         * modules/javaexec (Files): Update.
71347         (configure.ac): Add AC_CONFIG_FILES invocation.
71348         (EXTRA_DIST): Remove javaexec.sh.in.
71349
71350         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
71351         * modules/csharpcomp-script (Files): Update.
71352         (configure.ac): Add AC_CONFIG_FILES invocation.
71353         (EXTRA_DIST): Remove variable.
71354
71355         * build-aux/csharpexec.sh.in: New file, moved from lib/.
71356         * modules/csharpexec (Files): Update.
71357         (configure.ac): Add AC_CONFIG_FILES invocation.
71358         (EXTRA_DIST): Remove csharpexec.sh.in.
71359
71360 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
71361
71362         Sync from coreutils.
71363
71364         Add POSIX ACL support
71365         * lib/acl.h (copy_acl, set_acl): Add declarations.
71366         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
71367         systems other than Linux.
71368         (chmod_or_fchmod): New function: use fchmod when possible,
71369         and chmod otherwise.
71370         (file_has_acl): Add a POSIX ACL implementation, with a
71371         Linux-specific subcase.
71372         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
71373         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
71374         acls are unsupported.
71375         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
71376         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
71377         are unsupported.
71378
71379 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
71380
71381         Sync from coreutils.
71382         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
71383
71384 2006-01-07  Bruno Haible  <bruno@clisp.org>
71385
71386         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
71387         gl_EARLY.
71388
71389 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71390
71391         * lib/strftime.c (tzname): Don't declare if it is already #defined.
71392         Problem reported for Mingw by Mark Junker.
71393
71394 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71395
71396         * README: Gnulib normally doesn't generate a tarball.
71397
71398 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
71399
71400         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
71401         long int, not int, for nanosecond counts, so that people who are
71402         used to POSIX struct timespec won't be surprised.  Reported by Jim
71403         Meyering.
71404
71405 2005-12-28  Bruno Haible  <bruno@clisp.org>
71406
71407         * build-aux/config.rpath: Update from GNU gettext.
71408
71409 2005-12-16  Jim Meyering  <jim@meyering.net>
71410
71411         * modules/fprintftime: New module.
71412         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
71413
71414 2005-12-16  Jim Meyering  <jim@meyering.net>
71415
71416         * m4/fprintftime.m4: New file.
71417
71418 2005-12-16  Jim Meyering  <jim@meyering.net>
71419
71420         * lib/fprintftime.c, lib/fprintftime.h: New files.
71421
71422 2005-12-15  Simon Josefsson  <jas@extundo.com>
71423
71424         * modules/socklen (configure.ac): Fix M4 macro name, to align with
71425         new m4/socklen.m4.
71426
71427 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
71428
71429         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
71430         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
71431
71432 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
71433
71434         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
71435         * lib/argp-help.c (fill_in_uparams): Check if the constructed
71436         struct uparams is valid. Fall back to the default values if it is
71437         not.
71438
71439 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71440
71441         * modules/argp (Files): Add argp-pin.c
71442         (Depends-on): dirname
71443         (lib_SOURCES): Add argp-pin.c
71444
71445 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71446
71447         * m4/argp.m4:  Check if program_invocation_name and
71448         program_invocation_short_name are declared and define appropriate
71449         macros if they are not.
71450
71451 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71452
71453         * lib/argp-help.c (__argp_base_name): New function
71454         (__argp_short_program_name): Rewrite using __argp_base_name
71455         * lib/argp-namefrob.h: Define program_invocation_name and
71456         program_invocation_short_name if requested
71457         (__argp_base_name): Add prototype
71458         * lib/argp-parse.c (argp_def): Use gettext wrappers
71459         (argp_default_parser): Use __argp_base_name
71460         * lib/argp-pin.c: New file. Defines program_invocation_name and
71461         program_invocation_short_name on systems that lack them.
71462
71463 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71464
71465         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
71466         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
71467         porting problem reported by Georg Schwarz in
71468         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
71469
71470 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71471
71472         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
71473         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
71474         porting problem reported by Georg Schwarz in
71475         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
71476
71477 2005-12-05  Bruno Haible  <bruno@clisp.org>
71478
71479         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
71480         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
71481         Reported by Mark Junker <mjscod@gmx.de>.
71482
71483 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
71484
71485         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
71486         Use implementation from Albert Chin, with some
71487         comments/corrections by Stepan Kasal and myself.
71488
71489 2005-12-02  Bruno Haible  <bruno@clisp.org>
71490
71491         * gnulib-tool (func_import): Accept GPLed build tool modules when
71492         --lgpl is given.
71493         * modules/csharpcomp-script: New file.
71494         * modules/csharpcomp: Depend on it.
71495         * modules/javacomp-script: New file.
71496         * modules/javacomp: Depend on it.
71497         Suggested by Simon Josefsson.
71498
71499 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
71500
71501         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
71502         statement, to work around an HP-UX 10.20 compiler bug reported by
71503         Peter O'Gorman.
71504
71505 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
71506
71507         * modules/savedir (Depends-on): Add openat.
71508
71509 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
71510
71511         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
71512         (uintmax_t) [defined uintmax_t]: Do not declare.
71513         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
71514         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
71515         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
71516         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
71517         sake of portability to weird hosts that C allows (though we don't
71518         know of any practical examples).
71519
71520         * lib/savedir.h (fdsavedir): New decl.
71521         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
71522         contains most of the former guts of savedir.
71523         (savedir): Use savedirstream.
71524         Include "openat.h".
71525
71526 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71527
71528         * modules/obstack (Files): Add m4/ulonglong.m4.
71529         Problem reported by Davide Angelocola.
71530
71531 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
71532
71533         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
71534         coreutils no longer futzes with rounding modes.
71535
71536 2005-11-14  Jim Meyering  <jim@meyering.net>
71537
71538         * lib/mkstemp-safer.c: Include <config.h>, required for possible
71539         replacement of mkstemp.
71540
71541 2005-11-10  Simon Josefsson  <jas@extundo.com>
71542
71543         * lib/readline.c: Remove EOL.
71544
71545 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71546
71547         * modules/gethrxtime (Depends-on): Add gettime.
71548
71549 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71550
71551         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
71552         or gettimeofday; no longer needed.
71553
71554 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71555
71556         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
71557         time business.
71558         (gethrxtime) [! (HAVE_NANOUPTIME
71559         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
71560         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
71561         our own approximation.
71562
71563 2005-11-08  Eric Blake  <ebb9@byu.net>
71564
71565         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
71566
71567 2005-11-08  Eric Blake  <ebb9@byu.net>
71568
71569         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
71570
71571 2005-11-04  Bruno Haible  <bruno@clisp.org>
71572
71573         * gnulib-tool: Implement --update mode.
71574
71575 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71576
71577         Fix porting problem reported by Theodoros V. Kalamatianos.
71578         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
71579         Don't assume that futimes failing means we must fail.
71580
71581 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71582
71583         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
71584         variables to suggest the intended function of the PATH_MAX check.
71585
71586 2005-10-30  Kean Johnston  <jkj@sco.com>
71587
71588         Trivial changes to support SCO systems.
71589         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
71590         as PATH_MAX.
71591         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
71592         where __ptr is null when no I/O is pending.
71593
71594 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71595
71596         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
71597         leave errno alone.  Problem reported by Dmitry V. Levin.
71598
71599 2005-10-28  Simon Josefsson  <jas@extundo.com>
71600
71601         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
71602         Test more.
71603
71604         * tests/test-gc-md2.c, tests/test-md2.c: New files.
71605
71606         * modules/md2, modules/md2-tests: New files.
71607
71608 2005-10-28  Simon Josefsson  <jas@extundo.com>
71609
71610         * m4/inet_ntop.m4: More tests.
71611
71612         * m4/gc-md2.m4, md2.m4: New file.
71613
71614 2005-10-28  Simon Josefsson  <jas@extundo.com>
71615
71616         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
71617         "restrict" keywords, as per POSIX.  Protect the function
71618         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
71619         Don't use K&R prototypes.  Check the sprintf return values.
71620         Re-define EAFNOSUPPORT if not present.  Indent.
71621
71622         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
71623         suggested by Bruno Haible <bruno@clisp.org>.
71624
71625         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
71626
71627         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
71628
71629         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
71630         libgcrypt).
71631
71632         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
71633
71634         * lib/md2.h, lib/md2.c: New files.
71635
71636 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
71637
71638         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
71639         errno alone.  Problem reported by Frederic Jolliton.
71640
71641 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71642
71643         * modules/verify (License): Change from GPL to LGPL.  This is a
71644         tiny module and there are apparently near-equivalents that are
71645         under the BSD license.
71646
71647 2005-10-24  Simon Josefsson  <jas@extundo.com>
71648
71649         * modules/sha1: Relicense to LGPL.
71650
71651 2005-10-24  Simon Josefsson  <jas@extundo.com>
71652
71653         * lib/md4.h: Shrink buffer size, now that we changed the type.
71654
71655 2005-10-23  Simon Josefsson  <jas@extundo.com>
71656
71657         * gnulib-tool (func_import): Fix --tests-base.
71658
71659 2005-10-22  Simon Josefsson  <jas@extundo.com>
71660
71661         * modules/arcfour (Depends-on): Need stdint.
71662
71663 2005-10-22  Simon Josefsson  <jas@extundo.com>
71664
71665         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
71666         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
71667
71668 2005-10-22  Simon Josefsson  <jas@extundo.com>
71669
71670         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
71671         suggested by Bruno Haible <bruno@clisp.org>.
71672
71673 2005-10-22  Simon Josefsson  <jas@extundo.com>
71674
71675         * lib/crc.h: Include stddef.h, for size_t.
71676
71677 2005-10-22  Simon Josefsson  <jas@extundo.com>
71678
71679         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
71680         arcfour_context struct (simplify test vector testing in GNU
71681         Shishi).
71682
71683 2005-10-21  Simon Josefsson  <jas@extundo.com>
71684
71685         * modules/des, modules/des-tests: New files.
71686
71687         * modules/gc-des, modules/gc-des-tests: New files.
71688
71689         * tests/test-des.c, tests/test-gc-des.c: New file.
71690
71691 2005-10-21  Simon Josefsson  <jas@extundo.com>
71692
71693         * modules/arctwo, modules/arctwo-tests: New files.
71694
71695         * tests/test-arctwo.c: New file.
71696
71697         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
71698
71699         * tests/test-gc-arctwo.c: New file.
71700
71701 2005-10-21  Simon Josefsson  <jas@extundo.com>
71702
71703         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
71704         Bruno Haible <bruno@clisp.org>.
71705
71706         * m4/gc-des.m4: New file.
71707
71708 2005-10-21  Simon Josefsson  <jas@extundo.com>
71709
71710         * m4/arctwo.m4: New file.
71711
71712         * m4/gc-arctwo.m4: New file.
71713
71714 2005-10-21  Simon Josefsson  <jas@extundo.com>
71715
71716         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
71717         block.
71718
71719 2005-10-21  Simon Josefsson  <jas@extundo.com>
71720
71721         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
71722         <bruno@clisp.org>.
71723
71724         * lib/hmac-sha1.c (hmac_sha1): Likewise.
71725
71726         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
71727         Bruno Haible <bruno@clisp.org>.
71728
71729         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
71730         <bruno@clisp.org>.
71731
71732 2005-10-21  Simon Josefsson  <jas@extundo.com>
71733
71734         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
71735
71736 2005-10-21  Simon Josefsson  <jas@extundo.com>
71737
71738         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
71739
71740 2005-10-21  Simon Josefsson  <jas@extundo.com>
71741
71742         * lib/des.h, lib/des.c: New files.
71743
71744         * lib/gc-gnulib.c: Support DES.c
71745
71746 2005-10-21  Simon Josefsson  <jas@extundo.com>
71747
71748         * lib/arctwo.h, lib/arctwo.c: New files.
71749
71750         * lib/gc-gnulib.c: Support ARCTWO.
71751
71752 2005-10-21  Simon Josefsson  <jas@extundo.com>
71753
71754         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
71755         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71756
71757 2005-10-21  Simon Josefsson  <jas@extundo.com>
71758
71759         * gnulib-tool (func_import, func_create_testdir): Define automake
71760         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
71761         Makefile.am snippet),
71762         suggested by Bruno Haible <bruno@clisp.org>.
71763
71764         * modules/gc (Makefile.am): Use it.
71765
71766 2005-10-21  Bruno Haible  <bruno@clisp.org>
71767
71768         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
71769         patch.
71770
71771 2005-10-19  Simon Josefsson  <jas@extundo.com>
71772
71773         * tests/test-gc-rijndael.c: New file.
71774
71775         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
71776
71777 2005-10-19  Simon Josefsson  <jas@extundo.com>
71778
71779         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
71780         interface too.
71781
71782 2005-10-19  Simon Josefsson  <jas@extundo.com>
71783
71784         * tests/test-gc-arcfour.c: New file.
71785
71786         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
71787
71788 2005-10-19  Simon Josefsson  <jas@extundo.com>
71789
71790         * modules/gc-md4, modules/gc-md4-tests: New file.
71791
71792         * tests/test-gc-md4.c: New file.
71793
71794 2005-10-19  Simon Josefsson  <jas@extundo.com>
71795
71796         * m4/gc-md4.m4: New file.
71797
71798 2005-10-19  Simon Josefsson  <jas@extundo.com>
71799
71800         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
71801         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
71802         <kasal@ucw.cz>.
71803
71804 2005-10-19  Simon Josefsson  <jas@extundo.com>
71805
71806         * m4/gc-arcfour.m4: New file.
71807
71808         * m4/gc-rijndael.m4: New file.
71809
71810 2005-10-19  Simon Josefsson  <jas@extundo.com>
71811
71812         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
71813
71814 2005-10-19  Simon Josefsson  <jas@extundo.com>
71815
71816         * lib/gc-gnulib.c: Support ARCFOUR.
71817
71818 2005-10-19  Simon Josefsson  <jas@extundo.com>
71819
71820         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
71821         support.
71822
71823         * lib/gc.h: Add ECB enum type.
71824
71825         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
71826
71827 2005-10-18  Simon Josefsson  <jas@extundo.com>
71828
71829         * tests/test-md5.c: New file.
71830
71831         * modules/md5-tests: New file.
71832
71833 2005-10-18  Simon Josefsson  <jas@extundo.com>
71834
71835         * tests/test-md4.c: New file.
71836
71837         * modules/md4, modules/md4-tests: New files.
71838
71839 2005-10-18  Simon Josefsson  <jas@extundo.com>
71840
71841         * m4/md4.m4: New file.
71842
71843 2005-10-18  Simon Josefsson  <jas@extundo.com>
71844
71845         * lib/md4.h, lib/md4.c: New files, based on md5.?.
71846
71847 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
71848
71849         * gnulib-tool (func_create_testdir): Omit the second check whether
71850         BUILT_SOURCES in nonempty.
71851
71852 2005-10-17  Simon Josefsson  <jas@extundo.com>
71853
71854         * tests/test-rijndael.c: New file.
71855
71856 2005-10-17  Simon Josefsson  <jas@extundo.com>
71857
71858         * modules/sha1: Depend on stdint instead of md5.
71859
71860         * modules/md5: Depend on stdint, remove uint32_t.
71861
71862 2005-10-17  Simon Josefsson  <jas@extundo.com>
71863
71864         * modules/gc-sha1-tests: New file.
71865
71866         * tests/test-gc-sha1.c: New file.
71867
71868 2005-10-17  Simon Josefsson  <jas@extundo.com>
71869
71870         * m4/md5.m4: Remove call to uint32_t.m4.
71871
71872 2005-10-17  Simon Josefsson  <jas@extundo.com>
71873
71874         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
71875
71876         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
71877         md5.h.
71878
71879         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
71880
71881         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
71882
71883 2005-10-17  Simon Josefsson  <jas@extundo.com>
71884
71885         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
71886
71887 2005-10-17  Simon Josefsson  <jas@extundo.com>
71888
71889         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
71890
71891 2005-10-17  Simon Josefsson  <jas@extundo.com>
71892
71893         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
71894
71895         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
71896
71897 2005-10-17  Bruno Haible  <bruno@clisp.org>
71898
71899         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
71900         that it can also be used in a test.
71901
71902 2005-10-16  Bruno Haible  <bruno@clisp.org>
71903
71904         * gnulib-tool (func_emit_tests_Makefile_am): Also define
71905         TESTS_ENVIRONMENT, so that individual tests can augment it.
71906
71907         * gnulib-tool (func_create_testdir): Use an intermediate target for
71908         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
71909         macros, like $(ALLOCA_H), which cannot be passed through the command
71910         line.
71911
71912 2005-10-15  Simon Josefsson  <jas@extundo.com>
71913
71914         * modules/rijndael-tests: New file.
71915
71916         * modules/rijndael: New file.
71917
71918 2005-10-15  Simon Josefsson  <jas@extundo.com>
71919
71920         * m4/rijndael.m4: New file.
71921
71922 2005-10-15  Simon Josefsson  <jas@extundo.com>
71923
71924         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
71925
71926         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
71927
71928 2005-10-14  Simon Josefsson  <jas@extundo.com>
71929
71930         * tests/test-arcfour.c: New file.
71931
71932         * modules/arcfour, modules/arcfour-tests: New files.
71933
71934 2005-10-14  Simon Josefsson  <jas@extundo.com>
71935
71936         * m4/arcfour.m4: New file.
71937
71938 2005-10-14  Simon Josefsson  <jas@extundo.com>
71939
71940         * lib/arcfour.h, lib/arcfour.c: New files.
71941
71942 2005-10-14  Roland McGrath  <roland@redhat.com>
71943
71944         Import from libc.  [BZ #1331]
71945         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
71946         macro argument.
71947         Reported by Matej Vela <vela@debian.org>.
71948
71949 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71950
71951         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
71952         include <wchar.h>; no longer needed.
71953
71954 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71955
71956         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
71957
71958 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
71959         and  Ulrich Drepper  <drepper@redhat.com>
71960
71961         Import from libc.
71962         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
71963         instead of inline stream orientation test and two separate
71964         function calls.  Pay no attention to USE_IN_LIBIO.
71965
71966 2005-10-13  Simon Josefsson  <jas@extundo.com>
71967
71968         * modules/gc-hmac-md5-tests: New file.
71969
71970         * tests/test-gc-hmac-sha1.c: New file.
71971
71972         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
71973
71974         * modules/gc-hmac-md5-tests: New file.
71975
71976         * tests/test-gc-md5.c: New file.
71977
71978         * modules/gc-md5-tests: New file.
71979
71980 2005-10-13  Simon Josefsson  <jas@extundo.com>
71981
71982         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
71983         Move memory allocation outside of loop.
71984
71985 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
71986
71987         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
71988         intermediate directory is in a read-only file system.  Problem
71989         reported by Eric Blake.
71990
71991 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
71992
71993         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
71994
71995 2005-10-12  Simon Josefsson  <jas@extundo.com>
71996
71997         * tests/test-hmac-sha1.c: New file.
71998
71999         * modules/hmac-sha1-tests: New file.
72000
72001         * modules/hmac-sha1: New file.
72002
72003 2005-10-12  Simon Josefsson  <jas@extundo.com>
72004
72005         * modules/gc-sha1: New file.
72006
72007 2005-10-12  Simon Josefsson  <jas@extundo.com>
72008
72009         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
72010
72011         * tests/test-gc-pbkdf2-sha1.c: New file.
72012
72013 2005-10-12  Simon Josefsson  <jas@extundo.com>
72014
72015         * modules/gc-md5, modules/gc-hmac-md5: New files.
72016
72017         * modules/gc (Files): Remove md5, memxor and hmac files.
72018
72019 2005-10-12  Simon Josefsson  <jas@extundo.com>
72020
72021         * m4/gc-pbkdf2-sha1.m4: New file.
72022
72023         * m4/gc-hmac-sha1.m4: New file.
72024
72025         * m4/gc-sha1: New file.
72026
72027         * m4/hmac-sha1.m4: New file.
72028
72029 2005-10-12  Simon Josefsson  <jas@extundo.com>
72030
72031         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
72032
72033         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
72034
72035 2005-10-12  Simon Josefsson  <jas@extundo.com>
72036
72037         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
72038         suggested by Bruno Haible <bruno@clisp.org>.
72039
72040 2005-10-12  Simon Josefsson  <jas@extundo.com>
72041
72042         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
72043
72044 2005-10-12  Simon Josefsson  <jas@extundo.com>
72045
72046         * lib/gc-pbkdf2-sha1.c: New file.
72047
72048         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
72049
72050 2005-10-12  Simon Josefsson  <jas@extundo.com>
72051
72052         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
72053
72054         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
72055
72056 2005-10-12  Simon Josefsson  <jas@extundo.com>
72057
72058         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
72059         GC_USE_HMAC_MD5, respectively.
72060
72061         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
72062         (gc_md5): Fix typo.
72063
72064         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
72065
72066         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
72067
72068         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
72069
72070 2005-10-12  Bruno Haible  <bruno@clisp.org>
72071
72072         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
72073         Reported by Stepan Kasal <kasal@ucw.cz>.
72074
72075 2005-10-11  Simon Josefsson  <jas@extundo.com>
72076
72077         * tests/test-crc.c: New file.
72078
72079         * modules/crc, modules/crc-tests: New files.
72080
72081 2005-10-11  Simon Josefsson  <jas@extundo.com>
72082
72083         * m4/crc.m4: New file.
72084
72085 2005-10-11  Simon Josefsson  <jas@extundo.com>
72086
72087         * lib/gc.h: Add gc_hash and gc_hash_buffer.
72088
72089         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
72090
72091         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
72092
72093 2005-10-11  Simon Josefsson  <jas@extundo.com>
72094
72095         * lib/crc.h, lib/crc.c: New files.
72096
72097         * lib/gc.h (gc_hash_buffer): Add doc.
72098
72099 2005-10-11  Bruno Haible  <bruno@clisp.org>
72100
72101         * modules/c-strcasestr: New file.
72102         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
72103
72104 2005-10-11  Bruno Haible  <bruno@clisp.org>
72105
72106         * modules/c-strcase: New file.
72107         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
72108
72109 2005-10-11  Bruno Haible  <bruno@clisp.org>
72110
72111         * lib/strcasecmp.c: Include limits.h.
72112         (strcasecmp): Avoid integer overflow on exotic platforms.
72113         * lib/strncasecmp.c: Include limits.h.
72114         (strncasecmp): Avoid integer overflow on exotic platforms.
72115         Reported by Paul Eggert.
72116
72117 2005-10-11  Bruno Haible  <bruno@clisp.org>
72118
72119         * lib/c-strcasestr.h: New file, from GNU gettext.
72120         * lib/c-strcasestr.c: New file, from GNU gettext.
72121
72122 2005-10-11  Bruno Haible  <bruno@clisp.org>
72123
72124         * lib/c-strcase.h: New file, from GNU gettext.
72125         * lib/c-strcasecmp.c: New file, from GNU gettext.
72126         * lib/c-strncasecmp.c: New file, from GNU gettext.
72127
72128 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72129
72130         * modules/mempcpy (License): GPL -> LGPL.
72131         * modules/strchrnul (License): Likewise.
72132         * modules/sysexits (License): Likewise.
72133
72134 2005-10-08  Simon Josefsson  <jas@extundo.com>
72135
72136         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
72137
72138 2005-10-07  Simon Josefsson  <jas@extundo.com>
72139
72140         * m4/memxor.m4: Remove gl_C_RESTRICT call.
72141
72142 2005-10-06  Simon Josefsson  <jas@extundo.com>
72143
72144         * tests/test-hmac-md5.c: New file.
72145
72146         * modules/hmac-md5-tests: New file.
72147
72148         * modules/hmac-md5: New file.
72149
72150 2005-10-06  Simon Josefsson  <jas@extundo.com>
72151
72152         * m4/hmac-md5.m4: New file.
72153
72154         * m4/memxor.m4: Require gl_C_RESTRICT.
72155
72156 2005-10-06  Simon Josefsson  <jas@extundo.com>
72157
72158         * lib/memxor.c (memxor): Avoid casts and warnings.
72159
72160 2005-10-06  Simon Josefsson  <jas@extundo.com>
72161
72162         * lib/hmac-md5.c: New file.
72163
72164         * lib/hmac.h: New file.
72165
72166 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72167
72168         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
72169         promotes to int, not unsigned int, to catch the AIX 5.3
72170         compiler bug.
72171
72172 2005-10-05  Simon Josefsson  <jas@extundo.com>
72173
72174         * modules/memxor: New file.
72175
72176         * modules/iconv (Files): Move config.rpath to havelib, it is used
72177         there.
72178
72179         * modules/havelib (Files): Add config.rpath.
72180
72181 2005-10-05  Simon Josefsson  <jas@extundo.com>
72182
72183         * m4/memxor.m4: New file.
72184
72185 2005-10-05  Simon Josefsson  <jas@extundo.com>
72186
72187         * lib/memxor.c (memxor): Fix compiler error.
72188
72189         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
72190         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
72191
72192         * lib/memxor.h, lib/memxor.c: New files.
72193
72194         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
72195         we assume all systems have it, suggested by Jim Meyering
72196         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
72197         any systems lack sys/socket.h; mingw32 is known to lack it, but we
72198         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
72199         same reasons.
72200
72201 2005-10-05  Simon Josefsson  <jas@extundo.com>
72202
72203         * config/srclist.txt: Add glibc bug 1423 for md5.h.
72204
72205 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72206
72207         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
72208         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
72209         needed, since the source code now assumes these .h files.
72210
72211 2005-10-05  Derek Price  <derek@ximbiot.com>
72212
72213         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
72214
72215 2005-10-05  Bruno Haible  <bruno@clisp.org>
72216
72217         * modules/stdint (License): Change to LGPL.
72218
72219 2005-10-04  Simon Josefsson  <jas@extundo.com>
72220
72221         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
72222         D. Baushke" <mdb@gnu.org>.
72223
72224 2005-10-04  Bruno Haible  <bruno@clisp.org>
72225
72226         * lib/verify.h (verify_true): Provide alternative definition for C++.
72227
72228 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
72229
72230         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
72231         (SSIZE_MAX): New macro, if not already defined.
72232         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
72233         than 2 GiB.
72234
72235 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72236
72237         Sync from coreutils.
72238         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
72239         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
72240         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
72241         ULLONG_MAX doesn't work with 2.7.2.1.
72242
72243 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72244
72245         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
72246         From Ben Pfaff.
72247
72248         * modules/exclude (Depends-on): Depend on verify.
72249         * modules/strtoimax (Depends-on): Likewise.
72250         * modules/utimecmp (Depends-on): Likewise.
72251
72252 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72253
72254         * lib/exclude.c: Include verify.h.
72255         (verify): Remove.  All callers changed to use verify.h's version.
72256         * lib/strtoimax.c: Likewise.
72257         * lib/utimecmp.c: Likewis.e
72258
72259         Sync from coreutils.
72260         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
72261         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
72262         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
72263         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
72264         bother returning ENOSYS if settimeofday or stime fails; just let
72265         them return whatever errno they want to return.
72266         * lib/utimens.c: Include unistd.h, for dup2.
72267         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
72268         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
72269
72270 2005-10-02  Jim Meyering  <jim@meyering.net>
72271
72272         Sync from coreutils.
72273         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
72274         from glibc-2.2.5 that fails for read-only files.
72275
72276 2005-10-02  Jim Meyering  <jim@meyering.net>
72277
72278         Sync from coreutils.
72279         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
72280         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
72281         `#if HAVE_CONFIG_H'.
72282         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
72283         Remove AT_FDCWD test.
72284         Do not consume the fd unless successful.
72285         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
72286         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
72287         block, so that we don't even try to compile it if settimeofday is
72288         available.  This works around a compilation failure on OSF1 V5.1,
72289         due to stime requiring a `long int*' while tv_sec is `int'.
72290
72291 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
72292
72293         Sync from coreutils.
72294         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
72295         against `yes', rather than just testing for nonempty.
72296
72297 2005-10-01  Simon Josefsson  <jas@extundo.com>
72298
72299         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
72300         and Darwin.
72301
72302         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
72303         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
72304         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
72305         freeaddrinfo and gai_strerror are declared by the POSIX headers.
72306         Check if struct addrinfo is declared.
72307
72308 2005-10-01  Simon Josefsson  <jas@extundo.com>
72309
72310         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
72311         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
72312         AI_* and EAI_* definitions.  Protect function declarations.
72313
72314 2005-10-01  Jim Meyering  <jim@meyering.net>
72315
72316         Sync from coreutils.
72317
72318         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
72319         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
72320         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
72321         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
72322         in the inet and nsl libraries.  Required on Solaris 5.7.
72323
72324 2005-10-01  Jim Meyering  <jim@meyering.net>
72325
72326         Sync from coreutils.
72327         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
72328         in the inet and nsl libraries.  Required on Solaris 5.7.
72329
72330 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
72331
72332         * lib/getdelim.c (getdelim): Remove unused variables.
72333
72334 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72335
72336         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
72337         so that the code works even with ancient cpp.  Portability problem
72338         with GCC 2.7.2.1 reported by Thomas M.Ott.
72339
72340 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72341
72342         * modules/regex (Depends-on): Add strcase.
72343
72344         * modules/gethostname (Licence): Change from GPL to LGPL, since
72345         gethostname.c is a trivial implementation of a standard library
72346         function.
72347         * modules/poll (License): Change from GPL to LGPL, since it's
72348         derived from LGPL code.
72349
72350 2005-09-27  Jim Meyering  <jim@meyering.net>
72351
72352         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
72353         HAVE_CONFIG_H.
72354
72355         * lib/intprops.h (signed_type_or_expr__): Define.
72356         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
72357         for unsigned types.
72358
72359 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72360
72361         * lib/verify.h (verify_expr): Remove, replacing with:
72362         (verify_true): New macro that returns true instead of void.
72363         (verify_type__): Remove.
72364         (verify): Use verify_true rather than verify_type__.
72365
72366 2005-09-26  Bruno Haible  <bruno@clisp.org>
72367
72368         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
72369         is necessary.
72370         (lib_SOURCES): Remove mbchar.c.
72371         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
72372         (Files): Add m4/mbrtowc.m4.
72373         * modules/mbiter: Likewise.
72374         * modules/mbuiter: Likewise.
72375
72376 2005-09-26  Bruno Haible  <bruno@clisp.org>
72377
72378         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
72379         compile mbchar.c if they are not both present.
72380         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
72381         * m4/mbiter.m4 (gl_MBITER): Likewise.
72382         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
72383         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
72384         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
72385
72386 2005-09-25  Jim Meyering  <jim@meyering.net>
72387
72388         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
72389         also uses socklen_t.
72390
72391 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
72392
72393         * lib/utimens.c (ENOSYS): Define if not already defined.
72394         (futimens): Support having a null PATH if the file descriptor
72395         is nonnegative.
72396
72397         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
72398         Remove.
72399         (__attribute): Define to empty unless GCC 3.1 or later.
72400         This works around a core dump on OpenBSD 3.4, which has GCC
72401         2.95.3, which dumps core when given __attribute__(()).  It also
72402         simplifies other tests, since we really don't want to bother with
72403         worrying about which ancient version of GCC supported what.
72404         Original problem reported by Yoann Vandoorselaere, with part of
72405         the fix suggested by Derek Price.
72406
72407 2005-09-24  Jim Meyering  <jim@meyering.net>
72408
72409         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
72410         so we can once again use a positive bitfield width of 1 -- now we
72411         don't have to explain why we were using a bitfield width of 2.
72412
72413 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
72414
72415         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
72416         and similarly for the other external symbols.  Problem reported
72417         by James Gallager.
72418
72419         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
72420         bug reported by Jim Meyering.
72421
72422         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
72423         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
72424         not needed, since socklen is a prerequisite module.
72425
72426 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
72427
72428         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
72429         Problem reported by Eric Blake.
72430         (getaddrinfo): Initialize se so that it's not garbage.
72431         Redo internal storage allocation so that it doesn't make unportable
72432         assumptions about alignment.
72433         Fix a memory leak.
72434
72435         * lib/utimens.c (futimens): Use futimesat if available.
72436         Prefer it to futimes since it doesn't have the futimes bug.
72437
72438         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
72439         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
72440         Instead, declare a function that returns a pointer to an array,
72441         and use verify_type__ to declare the size of the array.
72442         Problem and germ of a solution reported by Bruno Haible.
72443         (verify_type__): Use 2, not 1, for bitfield size, to avoid
72444         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
72445
72446 2005-09-23  Jim Meyering  <jim@meyering.net>
72447
72448         Sync from coreutils.
72449         Correct build failure (socklen_t not defined) on at least
72450         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
72451         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
72452
72453 2005-09-23  Jim Meyering  <jim@meyering.net>
72454
72455         * modules/getaddrinfo (Depends-on): Add socklen.
72456
72457 2005-09-23  Bruno Haible  <bruno@clisp.org>
72458
72459         * tests/test-verify.c: New file.
72460
72461 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72462
72463         Sync from coreutils.
72464
72465         * modules/argmatch (Depends-on): Add verify.
72466         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
72467         unistd-safer.
72468         * modules/save-cwd (Depends-on): Likewise.
72469
72470         * modules/openat (Files): Add lib/openat-die.c.
72471         (Depends-on): Remove error, exitfail.
72472         Add dirname.
72473
72474         * modules/verify: New file.
72475         * MODULES.html.sh (Diagnostics <assert.h>): New section,
72476         with "verify" module.
72477
72478 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72479
72480         Sync from coreutils.
72481
72482         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
72483         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
72484         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
72485         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
72486         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
72487         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
72488         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
72489         Don't bother checking for string.h, stdlib.h, unistd.h.
72490         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
72491         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
72492         module's job.
72493         * m4/jm-macros.m4 (gl_MACROS): Likewise.
72494         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
72495
72496         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
72497         (gl_GETDATE): Use it.
72498
72499         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
72500
72501 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72502
72503         Sync from coreutils.
72504
72505         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
72506         stat-time.h.
72507         * lib/argmatch.h: Include verify.h
72508         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
72509         (ARGMATCH_ASSERT): Remove; unused.
72510         * lib/canonicalize.c: Assume STDC_HEADERS.
72511         * lib/exclude.c: Include "strcase.h".
72512         * lib/regex_internal.h [!defined _LIBC]: Likewise.
72513         * lib/getusershell.c: Include stdio--.h rather than stdio.h
72514         and stdio-safer.h.
72515         (getusershell): Call fopen, not fopen_safer.
72516         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
72517         Do not include unistd-safer.h.
72518         (save_cwd): Don't call fd_safer; no longer needed
72519         now that we include fcntl--.h.
72520
72521         * lib/getdate.y (relative_time): New type.
72522         (RELATIVE_TIME_0): New constant.
72523         (parser_control): Use relative_time instead of doing it ourselves.
72524         (%union): Add new relative_time rel member.
72525         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
72526         Now typeless.
72527         (relunit, relunit_snumber): Now of type rel.
72528         (zone, rel, relunit, get_date): Adjust to above changes.
72529
72530         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
72531         Do not include unistd-safer.h.
72532         (getloadavg): Don't call fd_safer; no longer needed
72533         now that we include fcntl--.h.
72534
72535         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
72536         (make_dir_parents): Treat ENOSYS like EEXIST.
72537
72538         Improve quality of diagnostics on restore_cwd failure.
72539         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
72540         (make_dir_parents): Last arg is now int * (for errno), not bool *.
72541         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
72542         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
72543         each time through the loop.  Do not diagnose restore_cwd failure;
72544         that is the caller's job (and perhaps the caller does not care).
72545
72546         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
72547         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
72548         If the file already exists but is not a directory, don't bother
72549         to try to make its parents.
72550         Close potential file descriptor leak if we can't chdir("/") (!).
72551         Don't always return true if chdir($PWD) fails; return true only
72552         if the requested action was done successfully (except for the
72553         chdir($PWD)).
72554         Don't log final directory unless we actually made it.
72555         Refactor to avoid duplicate code to fix up permissions.
72556         Don't attempt to fix up parent permissions if chdir($PWD) fails.
72557
72558         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
72559         to make it a bit faster and (I hope) clearer.
72560         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
72561         Fix bug in formats like %2N.
72562
72563         * lib/verify.h: New file.
72564
72565 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72566
72567         Sync from coreutils.
72568         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
72569
72570 2005-09-22  Jim Meyering  <jim@meyering.net>
72571
72572         Sync from coreutils.
72573
72574         * m4/lstat.m4 (gl_FUNC_LSTAT):
72575         Use AC_LIBSOURCES to require lstat.c and lstat.h.
72576         Remove obsolete comment.
72577         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
72578         * m4/xstrtod.m4: Likewise.
72579
72580         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
72581
72582 2005-09-22  Jim Meyering  <jim@meyering.net>
72583
72584         Sync from coreutils.
72585
72586         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
72587
72588         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
72589         the .tm_year member, since otherwise gcc-4.0 would now warn about
72590         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
72591
72592         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
72593         order to avoid an unsuppressible warning from gcc on 64-bit systems.
72594
72595         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
72596         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
72597         when run in a time zone for which daylight savings time is in effect
72598         for the starting date.
72599
72600         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
72601         stop us from restricting permissions of just-created absolute-named
72602         directories.
72603         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
72604         to restore initial working directory.
72605         * lib/mkdir-p.c (make_dir_parents): New parameter:
72606         different_working_dir, to tell caller if/when we change the working
72607         directory and are unable to return to the initial one.
72608         * lib/mkdir-p.h (make_dir_parents): Update prototype.
72609         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
72610         `return false'.  This fixes a bug introduced on 2004-07-30.
72611
72612         * lib/openat.c (fdopendir): Be sure to close the supplied
72613         file descriptor before returning.  This makes our replacement
72614         implementation a little closer to Solaris's, where fdopendir
72615         ties the file descriptor to the returned DIR* pointer.
72616         * lib/openat.c (unlinkat): New function.
72617         * lib/openat.h (unlinkat): Add prototype.
72618         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
72619         (openat_restore_fail): Rename from openat_restore_die.
72620         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
72621
72622         Provide an alternative to exiting immediately upon save_cwd or
72623         restore_cwd failure.  Now, an application can arrange e.g.,
72624         to perform a longjump in that case.
72625         * lib/openat.c: Include dirname.h.
72626         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
72627         (rpl_openat, fdopendir, fstatat): Call openat_save_die
72628         and openat_restore_die rather than calling error directly.
72629         Don't include "error.h" or "exitfail.h"; they're no longer needed.
72630
72631         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
72632         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
72633         define.
72634
72635         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
72636         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
72637                             int utc, int nanoseconds);
72638         Background:
72639         date should not have to allocate a megabyte of virtual memory to
72640         handle a format argument like +%1048575T.  When implemented with
72641         strftime, it must allocate such a buffer, use strftime to fill it
72642         in, print it, then free it.
72643         With fprintftime, it simply prints everything and exits.
72644         With no need for memory allocation, that's one fewer way to fail.
72645         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
72646         optional field width, not before, so we accept %9:z, not %:9z.
72647         (my_strftime): Be sure to use L_('x') for literals.
72648
72649         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
72650         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
72651         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
72652         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
72653         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
72654         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
72655         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
72656         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
72657         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
72658         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
72659         * lib/xgethostname.c, lib/xreadlink.c:
72660         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
72661
72662         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
72663         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
72664         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
72665         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
72666         and don't include <sys/file.h>).
72667
72668 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
72669
72670         Sync from coreutils.
72671
72672         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
72673         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
72674         [!LDAV_DONE]: Avoid unused variable warning.
72675
72676 2005-09-21  Bruno Haible  <bruno@clisp.org>
72677
72678         * lib/unicodeio.h (unicode_to_mb): New declaration.
72679
72680 2005-09-20  Derek Price  <derek@ximbiot.com>
72681
72682         * lib/getaddrinfo.c: Don't include <netdb.h> included from
72683         getaddrinfo.h.
72684
72685 2005-09-20  Bruno Haible  <bruno@clisp.org>
72686
72687         * gnulib-tool: Remove trailing slashes from the values specified for
72688         --source-base, --m4-base, --tests-base, --aux-dir.
72689         Suggested by Simon Josefsson <jas@extundo.com>.
72690
72691 2005-09-20  Bruno Haible  <bruno@clisp.org>
72692
72693         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
72694         func_modules_to_filelist, func_import, func_create_testdir): Make all
72695         sorting results locale-independent, so that gnulib-cache.m4 doesn't
72696         change when gnulib-tool is invoked in a different locale.
72697
72698 2005-09-19  Simon Josefsson  <jas@extundo.com>
72699
72700         * m4/socklen.m4: Fix typo.
72701
72702 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72703
72704         Use a consistent style for including <config.h>.
72705         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
72706         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
72707         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
72708         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
72709         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
72710         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
72711         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
72712         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
72713         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
72714         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
72715         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
72716         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
72717         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
72718         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
72719         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
72720         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
72721         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
72722         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
72723         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
72724         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
72725         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
72726         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
72727         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
72728         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
72729         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
72730         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
72731         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
72732         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
72733         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
72734         lib/xstrtoumax.c, lib/yesno.c:
72735         Standardize inclusion of config.h.
72736         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
72737         lib/inttostr.h:  Removed inclusion of config.h from header files.
72738         * lib/inttostr.c:  Adjusted in-tree users.
72739         * lib/timespec.h: Remove superfluous warning to include config.h.
72740         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
72741         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
72742         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
72743         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
72744         config.h with HAVE_CONFIG_H.
72745
72746 2005-09-19  Jim Meyering  <jim@meyering.net>
72747
72748         * modules/pathmax (License): Change to LGPL.
72749
72750 2005-09-19  Derek Price  <derek@ximbiot.com>
72751
72752         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
72753
72754 2005-09-19  Bruno Haible  <bruno@clisp.org>
72755
72756         * gnulib-tool (import): Provide default for --tests-base.
72757
72758 2005-09-19  Bruno Haible  <bruno@clisp.org>
72759
72760         * doc/quote.texi: New file, extracted from gnulib.texi.
72761         * doc/ctime.texi: New file, extracted from gnulib.texi.
72762         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
72763         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
72764         * doc/gnulib.texi: Include them.
72765
72766 2005-09-18  Bruno Haible  <bruno@clisp.org>
72767
72768         Portability fix.
72769         * gnulib-tool (func_readlink): New function.
72770         (func_ln_if_changed): Use it.
72771
72772 2005-09-18  Bruno Haible  <bruno@clisp.org>
72773
72774         * gnulib-tool: Support --with-tests also with --import.
72775         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
72776         (func_import): Use variables $testsbase and $inctests. Emit a
72777         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
72778         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
72779         SUBDIRS += $testsdir.
72780         (func_create_testdir): Update.
72781
72782 2005-09-18  Bruno Haible  <bruno@clisp.org>
72783
72784         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
72785         instead of $dry_run.
72786         (func_cp_if_changed, func_mv_if_changed): Remove functions.
72787         (func_ln_if_changed): Don't handle dry-run here.
72788         (func_import): In dry-run mode, detect more precisely which actions
72789         would be performed, and don't use "...ing" verbs.
72790
72791 2005-09-18  Bruno Haible  <bruno@clisp.org>
72792
72793         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
72794         (func_import): Use join on two temporary files instead of three nested
72795         loops, in order to determine which files are new or old.
72796
72797 2005-09-18  Bruno Haible  <bruno@clisp.org>
72798
72799         * gnulib-tool (func_import): Comment out code that spits out the
72800         new files with --dry-run.
72801
72802 2005-09-18  Bruno Haible  <bruno@clisp.org>
72803
72804         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
72805
72806 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72807
72808         * lib/stat-time.h: New file.
72809         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
72810         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
72811         in a different way.
72812         (timespec_cmp): New function.
72813         * lib/utimecmp.c: Include stat-time.h.
72814         (SYSCALL_RESOLUTION): Depend on whether various struct stat
72815         members exist, not on the obsolescent ST_MTIM_NSEC.
72816         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
72817
72818 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72819
72820         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
72821
72822 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72823
72824         * MODULES.html.sh (File system functions): Add stat-time.
72825         * modules/stat-time: New file.
72826         * modules/timespec (Files): Remove m4/st_mtim.m4; this
72827         is now done in a different way, by the stat-time module.
72828         * modules/utimecmp (Depends-on): Add stat-time.
72829
72830 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72831
72832         * m4/st_mtim.m4: Remove.  Superseded by...
72833         * m4/stat-time.m4: New file.
72834         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
72835         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
72836
72837 2005-09-15  Derek Price  <derek@ximbiot.com>
72838
72839         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
72840
72841 2005-09-15  Derek Price  <derek@ximbiot.com>
72842
72843         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
72844         * lib/regex_internal.c: Ditto, using this...
72845         (__GNUC_PREREQ): ...new macro.
72846         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
72847         using...
72848         (__GNUC_PREREQ): ...this new macro.
72849
72850         * lib/strstr.h: Include string.h. Define strstr as a macro here.
72851
72852 2005-09-15  Derek Price  <derek@ximbiot.com>
72853             Paul Eggert  <eggert@cs.ucla.edu>
72854
72855         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
72856         changes, consolidating in...
72857         * lib/regex_internal.h: ...this file.
72858
72859 2005-09-13  Jim Meyering  <jim@meyering.net>
72860
72861         * lib/canon-host.c: Filter through gnu indent and reword comments
72862         slightly.
72863         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
72864
72865 2005-09-13  Derek Price  <derek@ximbiot.com>
72866
72867         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
72868         failure.
72869         Reported by Jim Meyering  <jim@meyering.net>.
72870
72871 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72872
72873         * lib/base64.c: Typo.
72874         (base64_encode): Put b64str in initialized data section.
72875
72876 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
72877
72878         Merge glibc and coreutils changes into gnulib, plus a few
72879         extra fixes.
72880         * lib/md5.c: Use #error rather than a string.
72881         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
72882         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
72883         (__attribute__): Define to empty for non recent-GCC.
72884         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
72885         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
72886         Renamed from their non-__ counterparts, with new macros replacing
72887         them if not _LIBC.  Add __THROW attribute.
72888         (rol): Remove.
72889         (struct md5_ctx): Align buffer if using GCC.
72890         * lib/sha1.h (struct sha1_ctx): Likewise.
72891         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
72892         The old name was backwards.
72893         (NOTSWAP): Remove; not used.
72894         (rol): New macro, moved here from md5.h.
72895         (sha1_process_block): Remove a FIXME that doesn't make sense.
72896
72897 2005-09-12  Derek Price  <derek@ximbiot.com>
72898
72899         Return usable errors from canon-host.
72900         * lib/canon-host.h: New file.
72901         * lib/canon-host.c (canon_host): Wrap...
72902         (canon_host_r): ...this new function, which now relies exclusively on
72903         getaddrinfo.
72904         (ch_strerror): New function.
72905         (last_cherror): New global.
72906         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
72907         interface.
72908         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
72909         void *.
72910         (freeaddrinfo): Free ai->ai_canonname when set.
72911
72912 2005-09-12  Derek Price  <derek@ximbiot.com>
72913
72914         Make canon-host require getaddrinfo.
72915         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
72916         AC_LIBSOURCE canon-host.h.  Call...
72917         (gl_PREREQ_CANON_HOST): ...this new function, which requires
72918         gl_GETADDRINFO.
72919         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
72920
72921 2005-09-12  Derek Price  <derek@ximbiot.com>
72922
72923         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
72924         LGPL.
72925         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
72926
72927 2005-09-12  Derek Price  <derek@ximbiot.com>
72928
72929         * lib/gai_strerror.c: Include config.h when available.  Include
72930         getaddrinfo.h before other headers to test interface.
72931         Reported by Larry Jones <lawrence.jones@ugs.com>.
72932
72933 2005-09-12  Derek Price  <derek@ximbiot.com>
72934             Paul Eggert  <eggert@cs.ucla.edu>
72935
72936         * modules/glob (Files): Add glob-libc.h.
72937
72938 2005-09-12  Derek Price  <derek@ximbiot.com>
72939             Paul Eggert  <eggert@cs.ucla.edu>
72940
72941         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
72942         glob_.h, glob-libc.h.
72943         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
72944
72945 2005-09-12  Derek Price  <derek@ximbiot.com>
72946             Paul Eggert  <eggert@cs.ucla.edu>
72947
72948         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
72949         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
72950         protecting things that should be done only in gnulib contexts.
72951         * lib/glob_.h: New file, containing only the glob things needed for
72952         gnulib.
72953         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
72954         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
72955         (glob, globfree, glob_pattern_p): Now defined simply in terms of
72956         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
72957         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
72958         and to respect the namespace rules better.
72959
72960 2005-09-08  Simon Josefsson  <jas@extundo.com>
72961
72962         * modules/socklen: New file.
72963
72964 2005-09-08  Simon Josefsson  <jas@extundo.com>
72965
72966         * m4/socklen.m4: New file.
72967
72968 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72969
72970         * modules/utimens (Files): Add m4/utimbuf.m4, since
72971         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
72972         Reported by Sergey Poznyakoff.
72973
72974 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72975
72976         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
72977         definitions, since that's the preferred style in glibc.
72978         Fix a minor spacing issue, and update copyright notice to match
72979         glibc's.
72980
72981 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72982
72983         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
72984
72985 2005-09-06  Simon Josefsson  <jas@extundo.com>
72986
72987         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
72988         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
72989
72990 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72991
72992         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
72993         warning.
72994
72995 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72996
72997         * config/srclist.txt: Add glibc bug 1302.
72998
72999 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
73000
73001         Change bitset word type from unsigned int to unsigned long int,
73002         as this has better performance on typical 64-bit hosts.
73003         Port bitset code to hosts with unusual word sizes.
73004         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
73005         (build_collating_symbol):
73006         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
73007         argument is a bitset.  This is merely a style issue, but it makes
73008         it clearer that an entire array is expected.
73009         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
73010         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
73011         Port to the case where bitset_word is not the same as unsigned int.
73012         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
73013         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
73014         Likewise.
73015         * lib/regexec.c (check_dst_limits_calc_pos_1,
73016         check_subexp_matching_top):
73017         (build_trtable, group_nodes_into_DFAstates):
73018         Likewise.
73019         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
73020         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
73021         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
73022         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
73023         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
73024         * lib/regcomp.c (optimize_subexps, lower_subexp):
73025         Work even if bitset_word has holes in its bitwise representation.
73026         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
73027         * lib/regexec.c (check_dst_limits_calc_pos_1,
73028         check_subexp_matching_top):
73029         Likewise.
73030         * lib/regex_internal.c (re_string_reconstruct):
73031         Don't assume UCHAR_MAX == 255.
73032         * lib/regex_internal.h (bitset_set_all): Likewise.
73033         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
73034         All uses changed.
73035         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
73036         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
73037         All uses changed.
73038         (BITSET_WORD_MAX): New macro.
73039         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
73040         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
73041         (bitset_empty, bitset_copy):
73042         Prefer sizeof (bitset) to multiplying it out ourselves.
73043         (bitset_not_merge): Remove; unused.
73044         (bitset_contain): Return bool, not unsigned int with one bit on.
73045         All callers changed.
73046         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
73047         alignment than re_node_set; do this by defining a new internal
73048         type struct dests_alloc and using it to allocate memory.
73049
73050 2005-09-05  Bruno Haible  <bruno@clisp.org>
73051
73052         * gnulib-tool (func_import): Fix comparison in handling of symbolic
73053         links.
73054
73055 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
73056
73057         * modules/size_max (Makefile.am): Add size_max.h
73058
73059 2005-09-04  Derek Price  <derek@ximbiot.com>
73060
73061         * gnulib-tool (func_import): Fix reversed $symbolic logic.
73062
73063 2005-09-03  Simon Josefsson  <jas@extundo.com>
73064
73065         * gnulib-tool: Fix typo.
73066
73067 2005-09-03  Simon Josefsson  <jas@extundo.com>
73068
73069         * config/srclist.txt: Add glibc bug 1293.
73070
73071 2005-09-03  Derek Price  <derek@ximbiot.com>
73072
73073         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
73074         From Larry Jones <lawrence.jones@ugs.com>.
73075
73076 2005-09-02  Simon Josefsson  <jas@extundo.com>
73077
73078         * modules/socklen: New file.
73079
73080 2005-09-02  Simon Josefsson  <jas@extundo.com>
73081
73082         * modules/havelib: New module.
73083
73084         * modules/gettext, modules/iconv, modules/lock, modules/readline:
73085         Use havelib.
73086
73087 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
73088
73089         Check for arithmetic overflow when calculating sizes, to prevent
73090         some buffer-overflow issues.  These patches are conservative, in the
73091         sense that when I couldn't determine whether an overflow was possible,
73092         I inserted a run-time check.
73093         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
73094         macros.
73095         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
73096         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
73097         (re_xnrealloc, re_x2nrealloc): New inline functions.
73098         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
73099         parse_bracket_exp):
73100         (build_equiv_class, build_charclass): Check for arithmetic overflow
73101         in size expression calculations.
73102         * lib/regex_internal.c (re_string_realloc_buffers):
73103         (build_wcs_upper_buffer, re_node_set_add_intersect):
73104         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
73105         (re_dfa_add_node, register_state): Likewise.
73106         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
73107         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
73108         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
73109         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
73110
73111 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
73112
73113         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
73114         m4/ulonglong.m4.  Problem reported by Martin Lambers.
73115
73116 2005-09-02  Bruno Haible  <bruno@clisp.org>
73117
73118         Support for lib vs. lib64 distinction on biarch platforms.
73119         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
73120         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
73121         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
73122
73123 2005-09-02  Bruno Haible  <bruno@clisp.org>
73124
73125         * gnulib-tool (import): In the other first-use case, provide defaults
73126         as well.
73127
73128 2005-09-02  Bruno Haible  <bruno@clisp.org>
73129
73130         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
73131         patches not yet found in the latest gettext release.
73132
73133 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73134
73135         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
73136         to avoid a collision with bits/local_lim.h in glibc.
73137         All uses changed.  Problem reported by Dmitry V. Levin in
73138         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
73139
73140         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
73141         bugs in int versus size_t comparisons.
73142         (re_string_context_at): Fix bug where the code assumed that
73143         Idx is signed.
73144
73145         Use bool where appropriate.
73146         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
73147         All callers changed.
73148         (calc_eclosure_iter): Likewise, for ROOT arg.
73149         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
73150         (build_charclass_op): Likewise, for NON_MATCH arg.
73151         * lib/regex_internal.c (re_string_allocate, re_string_construct):
73152         (re_string_construct_common): Likewise, for ICASE arg.
73153         * lib/regexec.c (re_search_2_stub, re_search_stub):
73154         Likewise, for RET_LEN arg.
73155         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
73156         (set_regs): Likewise, for FL_BACKTRACK arg.
73157         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
73158         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
73159         (calc_eclosure_iter, parse_bracket_exp):
73160         Use bool for internal variables that are booleans.
73161         * lib/regexec.c (re_search_internal, check_matching,
73162         proceed_next_node):
73163         (set_regs, build_sifted_states, sift_states_bkref):
73164         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
73165         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
73166         (find_collation_sequence_value):
73167         Likewise.
73168         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
73169         (re_node_set_compare):
73170         Return bool, not int. All callers changed.
73171         * lib/regexec.c (check_halt_node_context, check_dst_limits):
73172         (build_trtable, check_node_accept): Likewise.
73173         * lib/regex_internal.h: Include stdbool.h.
73174
73175         Fix bugs uncovered when converting to bool.
73176         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
73177         failure instead of charging ahead blindly.
73178         * lib/regex_internal.c (register_state): Likewise.
73179         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
73180         for freeing internal storage.
73181         (group_nodes_into_DFA_states): Use unsigned int, not int, for
73182         bitset pieces used as boolean, to avoid undefined behavior
73183         on hosts that do int overflow checking.
73184
73185 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73186
73187         * config/srclist.txt: Add glibc bugs 1285-1287.
73188
73189 2005-09-01  Jim Meyering  <jim@meyering.net>
73190
73191         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
73192         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
73193         Require gl_STAT_MACROS, too.
73194
73195 2005-09-01  Bruno Haible  <bruno@clisp.org>
73196
73197         * gnulib-tool (import): In the first-use case, provide defaults.
73198
73199 2005-09-01  Bruno Haible  <bruno@clisp.org>
73200
73201         * gnulib-tool (func_import): Remove the .tmp files.
73202
73203 2005-09-01  Bruno Haible  <bruno@clisp.org>
73204
73205         * gnulib-tool (func_import): Fix handling of symbolic links.
73206
73207 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73208
73209         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
73210         old glibc regex code mishandles strings longer than 2**31 bytes.
73211         This patch fixes this when the regex code is used in gnulib
73212         (i.e., outside glibc).
73213
73214         This patch should not affect the use of the regex code inside
73215         glibc.  No doubt this problem also needs to be handled for glibc
73216         as well, but the result will be an incompatible change to the
73217         glibc ABI, and the old ABI will have to be supported too.  That
73218         can be the the subject for another patch.
73219
73220         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
73221         governing whether the rest of this patch is active.  By default,
73222         the macro is disabled and the patch has no effect.
73223         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
73224         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
73225         (struct re_pattern_buffer, re_search, re_search_2, re_match):
73226         (re_match_2, re_set_registers): Use the new types.
73227         * lib/regex_internal.h (Idx, re_hashval_t): New types.
73228         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
73229         New macros.
73230         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
73231         (re_string_context_at, bin_tree_t, re_dfastate_t):
73232         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
73233         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
73234         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
73235         (re_string_char_size_at, re_string_wchar_at):
73236         (re_string_elem_size_at):
73237         Use the new types and macros to port to 64-bit hosts.
73238         Use unsigned types for internal values, so that the code
73239         mostly works even for arrays larger than SSIZE_MAX.
73240         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
73241         (search_duplicated_node, calc_eclosure_iter, fetch_number):
73242         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
73243         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
73244         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
73245         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
73246         (calc_inveclosure, parse_dup_op, build_range_exp):
73247         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
73248         (fetch_number, create_token_tree, mark_opt_subexp):
73249         Likewise.
73250         * lib/regex_internal.c (re_string_construct_common,
73251         create_ci_newstate):
73252         (create_cd_newstate, re_string_allocate, re_string_construct):
73253         (re_string_realloc_buffers, build_wcs_upper_buffer):
73254         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
73255         (re_string_reconstruct, re_string_peek_byte_case):
73256         (re_string_fetch_byte_case, re_string_context_at):
73257         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
73258         (re_node_set_init_copy, re_node_set_add_intersect):
73259         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73260         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73261         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
73262         (re_acquire_state, re_acquire_state_context, register_state):
73263         Likewise.
73264         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
73265         search_cur_bkref_entry):
73266         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
73267         (re_search_internal, re_search_2_stub, re_search_stub)
73268         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
73269         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
73270         (update_cur_sifted_state, check_dst_limits):
73271         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
73272         (check_subexp_limits, sift_states_bkref, merge_state_array):
73273         (check_subexp_matching_top, get_subexp, get_subexp_sub):
73274         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
73275         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
73276         (expand_bkref_cache, check_node_accept_bytes):
73277         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
73278         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
73279         (acquire_init_state_context, check_halt_node_context):
73280         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
73281         (sift_states_backward, clean_state_log_if_needed):
73282         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
73283         (find_recover_state, transit_state_sb, transit_state_mb):
73284         (transit_state_bkref, build_trtable, match_ctx_clean):
73285         Likewise.
73286         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
73287         to work around an assumption that REG_MISSING is negative.
73288
73289         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
73290         (seek_collating_symbol_entry) [defined _LIBC]:
73291         (lookup_collation_sequence_value) [defined _LIBC]:
73292         (build_range_exp, build_collating_symbol) [defined _LIBC]:
73293         Use prototypes rather than old-style function definitions.
73294         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
73295         (transit_state_sb) [0]:
73296         (find_collation_sequence_value) [defined _LIBC]: Likewise.
73297
73298         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
73299         rm_eo.
73300
73301         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
73302         (optimize_subexps, lower_subexp):
73303         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
73304         since the signed shift might overflow.  Use 1u<<31 instead.
73305         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
73306         Likewise.
73307         * lib/regexec.c (check_dst_limits_calc_pos_1,
73308         check_subexp_matching_top): Likewise.
73309
73310         * lib/regcomp.c (optimize_subexps, lower_subexp):
73311         Use CHAR_BIT rather than 8, for clarity.
73312         * lib/regexec.c (check_dst_limits_calc_pos_1):
73313         (check_subexp_matching_top): Likewise.
73314         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
73315         have to worry about portability issues when shifting it left.
73316         Remove no-longer-needed test for table_size > 0.
73317         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
73318         in a word, as the resulting behavior is undefined.
73319         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
73320         in one case, a <= should have been an <, and in another case the
73321         whole test was missing.
73322         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
73323         the standard name CHAR_BIT.
73324         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
73325         this is not true on one's complement and signed-magnitude hosts.
73326
73327         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
73328         next_last_offset.
73329         (struct re_dfa_t): Remove unused member states_alloc.
73330         * lib/regcomp.c (init_dfa): Don't initialize unused members.
73331
73332 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73333
73334         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
73335         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
73336         and large-file glibc and in 32-bit large-file Solaris.
73337
73338 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73339
73340         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
73341         lengths fit in regoff_t; this isn't true if regoff_t is the same
73342         width as size_t.
73343         * lib/regex.c (re_search_internal): 5th arg is LAST_START
73344         (= START + RANGE) instead of RANGE.  This avoids overflow
73345         problems when regoff_t is the same width as size_t.
73346         All callers changed.
73347         (re_search_2_stub): Check for overflow when adding the
73348         sizes of the two strings.
73349         (re_search_stub): Check for overflow when adding START
73350         to RANGE; if it occurs, substitute the extreme value.
73351
73352 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73353
73354         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
73355
73356 2005-08-31  Jim Meyering  <jim@meyering.net>
73357
73358         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
73359         a pointer-to-const.
73360         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
73361         (register_state): Likewise.
73362         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
73363         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
73364         (group_nodes_into_DFAstates): Likewise.
73365
73366 2005-08-31  Jim Meyering  <jim@meyering.net>
73367
73368         * check-module: Add a FIXME comment.
73369
73370 2005-08-31  Eric Blake  <ebb9@byu.net>
73371
73372         * modules/unistd-safer (Files): Add unistd--.h.
73373         * modules/stdio-safer (Files): Add stdio--.h.
73374
73375 2005-08-31  Derek Price  <derek@ximbiot.com>
73376
73377         * lib/getdelim.c (getdelim): Return EOF on EOF.
73378         Reported by Larry Jones <lawrence.jones@ugs.com>.
73379
73380 2005-08-31  Bruno Haible  <bruno@clisp.org>
73381
73382         Avoid unnecessary diffs in the generated lib/Makefile.am.
73383         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
73384         the generated files.
73385         (func_import): Don't set cmd.
73386
73387 2005-08-31  Bruno Haible  <bruno@clisp.org>
73388
73389         * lib/strstr.c: Include <stddef.h>, for NULL.
73390         * lib/strcasestr.c: Likewise.
73391         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73392
73393 2005-08-31  Bruno Haible  <bruno@clisp.org>
73394
73395         * gnulib-tool: New option --macro-prefix.
73396         (func_import): Use macro_prefix.
73397         (import): Handle option --macro-prefix.
73398
73399 2005-08-31  Bruno Haible  <bruno@clisp.org>
73400
73401         * gnulib-tool (import): Rename most ac_* variables to cached_*.
73402         Also use new variables cached_lgpl, cached_libtool.
73403
73404 2005-08-31  Bruno Haible  <bruno@clisp.org>
73405
73406         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
73407         always instantiating them.
73408
73409 2005-08-31  Bruno Haible  <bruno@clisp.org>
73410
73411         * gnulib-tool (func_import): Read the previous cached settings
73412         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
73413         earlier added by gnulib but are now dropped. Warn when a gnulib file
73414         overwrites a non-gnulib file.
73415
73416 2005-08-31  Bruno Haible  <bruno@clisp.org>
73417
73418         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
73419         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
73420         projects that don't keep autogenerated files in CVS. Put into
73421         actioncmd only the specified modules, not the transitive closure.
73422
73423 2005-08-31  Bruno Haible  <bruno@clisp.org>
73424
73425         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
73426         Create directories that shall be filled.
73427         (import): Don't look for gl_* macros in configure.ac. Recurse across
73428         all directories containing a gnulib-cache.m4 files, if meaningful.
73429
73430 2005-08-31  Bruno Haible  <bruno@clisp.org>
73431
73432         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
73433         (import): Set seen_libtool when we see gl_LIBTOOL.
73434
73435 2005-08-31  Bruno Haible  <bruno@clisp.org>
73436
73437         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
73438         declaration macro definitions from generated gnulib.m4.
73439
73440 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
73441
73442         * lib/iconvme.h: Add prototype for iconv_alloc.
73443
73444 2005-08-29  Simon Josefsson  <jas@extundo.com>
73445
73446         * lib/iconvme.c: Fix errno.
73447
73448 2005-08-29  Bruno Haible  <bruno@clisp.org>
73449
73450         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
73451         that it works when the directory contains spaces.
73452
73453 2005-08-29  Bruno Haible  <bruno@clisp.org>
73454
73455         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
73456
73457 2005-08-29  Bruno Haible  <bruno@clisp.org>
73458
73459         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
73460         Emit more advice.
73461
73462 2005-08-29  Bruno Haible  <bruno@clisp.org>
73463         and Stepan Kasal  <kasal@ucw.cz>
73464
73465         * check-module: If more parameters are given, check each of them
73466         separately; add more exceptions, as noted by Jim Meyering.
73467         (check_module): New procedure.
73468         (%exempt_header): Now contains all exceptions.
73469
73470 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
73471
73472         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
73473
73474 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
73475
73476         * lib/iconvme.c: Split iconv_string into iconv_alloc.
73477
73478 2005-08-28  Bruno Haible  <bruno@clisp.org>
73479
73480         * m4/gnulib-tool.m4: New file.
73481
73482 2005-08-27  Jim Meyering  <jim@meyering.net>
73483
73484         * modules/unistd-safer (Files): Add pipe-safer.c.
73485         * modules/fcntl-safer (Files): Add creat-safer.c.
73486
73487 2005-08-27  Jim Meyering  <jim@meyering.net>
73488
73489         * m4/stdlib-safer.m4: New file.  From coreutils.
73490         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
73491         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
73492         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
73493         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
73494         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
73495
73496 2005-08-27  Jim Meyering  <jim@meyering.net>
73497
73498         * lib/fopen-safer.c: Merge minor changes from coreutils.
73499         * lib/dup-safer.c: Likewise.
73500         * lib/fd-safer.c: Likewise.
73501
73502         Merge from coreutils.
73503         * lib/stdio--.h: New file.
73504         * lib/stdlib--.h: New file.
73505         * lib/mkstemp-safer.c: New file.
73506
73507         GNU tar needs these.
73508         * lib/pipe-safer.c: New file.
73509         * lib/creat-safer.c: New file.
73510         * lib/fcntl--.h (creat): Define to creat_safer.
73511         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
73512         * lib/unistd--.h (pipe): Define to pipe_safer.
73513         * lib/unistd-safer.h: Declare pipe_safer.
73514
73515 2005-08-26  Simon Josefsson  <jas@extundo.com>
73516
73517         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
73518         Haible <bruno@clisp.org>.
73519
73520 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
73521
73522         * lib/regex_internal.h: Remove all references to
73523         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
73524         or better.
73525         (bitset_not, bitset_merge, bitset_not_merge):
73526         (bitset_mask, re_string_allocate, re_string_construct):
73527         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
73528         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
73529         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
73530         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
73531         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73532         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73533         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
73534         (re_acquire_state_context):
73535         Remove unnecessary forward decls.
73536         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
73537         Put __attribute at function definition,
73538         now that the function decl has been removed.
73539         * lib/regex_internal.c (re_string_peek_byte_case):
73540         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
73541         Likewise.
73542
73543 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
73544
73545         * m4/regex.m4: Add AC_PREREQ(2.50).
73546         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
73547
73548 2005-08-25  Simon Josefsson  <jas@extundo.com>
73549
73550         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
73551         __fsetlocking.
73552
73553 2005-08-25  Simon Josefsson  <jas@extundo.com>
73554
73555         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
73556         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
73557         GLIBC specific code.
73558
73559 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73560
73561         Make regex safe for g++.  This fixes one real bug (an "err"
73562         that should have been "*err").  g++ problem reported by
73563         Sam Steingold.
73564         * lib/regex_internal.h (re_calloc): New macro, consistent with
73565         re_malloc etc.  All callers of calloc changed to use re_calloc.
73566         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
73567         not int.  All callers changed.
73568         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
73569         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
73570         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
73571         (find_recover_state): Change "err" to "*err"; this fixes what
73572         appears to be a real bug.
73573         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
73574         versus int.
73575
73576 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73577
73578         * modules/regex (Depends-on): Add malloc, since the code
73579         assumes that !malloc(0) means failure.
73580
73581 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73582
73583         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
73584
73585         alloca modernization/simplification for regex.
73586         * lib/regex.c: Remove portability cruft for alloca.  This no longer
73587         needs to be at the start of the file, and can be moved into
73588         regex_internal.h and simplified.
73589         * lib/regex_internal.h: Include <alloca.h>.
73590         (__libc_use_alloca) [!defined _LIBC]: New macro.
73591         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
73592         now works outside glibc.
73593
73594 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73595
73596         * config/srclist.txt: Add glibc bugs 1241, 1245.
73597
73598 2005-08-25  Jim Meyering  <jim@meyering.net>
73599
73600         * lib/open-safer.c: Include <config.h>.
73601         Otherwise, we'd lose LARGEFILE support in any file using
73602         e.g. "fcntl--.h"
73603
73604 2005-08-25  Bruno Haible  <bruno@clisp.org>
73605
73606         * m4/minmax.m4: Require autoconf 2.52.
73607         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
73608         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
73609         alternatives of translit over the alphabet.
73610         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
73611
73612 2005-08-24  Simon Josefsson  <jas@extundo.com>
73613
73614         * tests/test-getpass.c: New file.
73615
73616 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73617
73618         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
73619         for GNU regex features.
73620
73621 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73622
73623         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
73624         * lib/regex.h (regerror): Likewise.
73625
73626         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
73627         requires this.  (The code never needed it.)
73628
73629         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
73630         All uses of recently-renamed identifiers changed to use the new,
73631         POSIX-compliant names.  The code will build and run just fine
73632         without these changes, but it's better to eat our own dog food
73633         and use the standard-conforming names.
73634
73635         * lib/regex.h: Fix a multitude of POSIX name space violations.
73636         These changes have an effect only for programs that define
73637         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
73638         do not change anything for programs compiled in the normal way.
73639         Also, there is no effect on the ABI.
73640
73641         (_REGEX_SOURCE): New macro.
73642         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
73643         defined and _GNU_SOURCE is not; this fixes a name space violation.
73644
73645         Rename the following macros to obey POSIX requirements.
73646         The old names are still visible as macros if _REGEX_SOURCE is defined.
73647         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
73648         RE_BACKSLASH_ESCAPE_IN_LISTS.
73649         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
73650         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
73651         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
73652         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
73653         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
73654         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
73655         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
73656         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
73657         (REG_INTERVALS): renamed from RE_INTERVALS.
73658         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
73659         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
73660         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
73661         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
73662         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
73663         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
73664         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
73665         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
73666         RE_UNMATCHED_RIGHT_PAREN_ORD.
73667         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
73668         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
73669         (REG_DEBUG): renamed from RE_DEBUG.
73670         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
73671         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
73672         unusual, since we can't clash with the POSIX REG_ICASE.
73673         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
73674         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
73675         (REG_NO_SUB): renamed from RE_NO_SUB.
73676         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
73677         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
73678         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
73679         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
73680         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
73681         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
73682         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
73683         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
73684         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
73685         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
73686         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
73687         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
73688         RE_SYNTAX_POSIX_MINIMAL_BASIC.
73689         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
73690         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
73691         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
73692         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
73693         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
73694         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
73695         (REG_FIXED): Renamed from REGS_FIXED.
73696         (REG_NREGS): Renamed from RE_NREGS.
73697
73698         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
73699         of other REG_* macros, since POSIX says the user is allowed to
73700         #undef these macros selectively.
73701
73702         (reg_errcode_t): Update comment stating what other tables need
73703         to be consistent.
73704
73705         Rename the following enum values to obey POSIX requirements.
73706         The old names are still visible as macros.
73707         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
73708         is not defined, since GNU is supposed to be a superset of POSIX as
73709         much as possible, and since we want reg_errcode_t to be a signed
73710         type for implementation consistency.
73711         (_REG_NOERROR): Renamed from REG_NOERROR.
73712         (_REG_NOMATCH): Renamed from REG_NOMATCH.
73713         (_REG_BADPAT): Renamed from REG_BADPAT.
73714         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
73715         (_REG_ECTYPE): Renamed from REG_ECTYPE.
73716         (_REG_EESCAPE): Renamed from REG_EESCAPE.
73717         (_REG_ESUBREG): Renamed from REG_ESUBREG.
73718         (_REG_EBRACK): Renamed from REG_EBRACK.
73719         (_REG_EPAREN): Renamed from REG_EPAREN.
73720         (_REG_EBRACE): Renamed from REG_EBRACE.
73721         (_REG_BADBR): Renamed from REG_BADBR.
73722         (_REG_ERANGE): Renamed from REG_ERANGE.
73723         (_REG_ESPACE): Renamed from REG_ESPACE.
73724         (_REG_BADRPT): Renamed from REG_BADRPT.
73725         (_REG_EEND): Renamed from REG_EEND.
73726         (_REG_ESIZE): Renamed from REG_ESIZE.
73727         (_REG_ERPAREN): Renamed from REG_ERPAREN.
73728         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
73729         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
73730         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
73731         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
73732
73733         (_REG_RE_NAME, _REG_RM_NAME): New macros.
73734         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
73735         changed.  But support the old name if the new one is not defined
73736         and if _REGEX_SOURCE.
73737
73738         Change the following member names in struct re_pattern_buffer.
73739         The old names are still supported if !_REGEX_SOURCE.
73740         The new names are always supported, regardless of _REGEX_SOURCE.
73741         (re_buffer): Renamed from buffer.
73742         (re_allocated): Renamed from allocated.
73743         (re_used): Renamed from used.
73744         (re_syntax): Renamed from syntax.
73745         (re_fastmap): Renamed from fastmap.
73746         (re_translate): Renamed from translate.
73747         (re_can_be_null): Renamed from can_be_null.
73748         (re_regs_allocated): Renamed from regs_allocated.
73749         (re_fastmap_accurate): Renamed from fastmap_accurate.
73750         (re_no_sub): Renamed from no_sub.
73751         (re_not_bol): Renamed from not_bol.
73752         (re_not_eol): Renamed from not_eol.
73753         (re_newline_anchor): Renamed from newline_anchor.
73754
73755         Change the following member names in struct re_registers.
73756         The old names are still supported if !_REGEX_SOURCE.
73757         The new names are always supported, regardless of _REGEX_SOURCE.
73758         (rm_num_regs): Renamed from num_regs.
73759         (rm_start): Renamed from start.
73760         (rm_end): Renamed from end.
73761
73762         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
73763         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
73764         Prepend __ to parameter names.
73765
73766         Undo yesterday's changes.
73767
73768 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73769
73770         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
73771         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
73772         lib/regex.c.
73773
73774 2005-08-24  Jim Meyering  <jim@meyering.net>
73775
73776         Sync from coreutils.
73777         * m4/fcntl-safer.m4: New file.
73778
73779         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
73780         and object files for this module.
73781
73782 2005-08-24  Jim Meyering  <jim@meyering.net>
73783
73784         Sync from coreutils.
73785         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
73786
73787 2005-08-24  Jim Meyering  <jim@meyering.net>
73788
73789         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
73790         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
73791
73792 2005-08-24  Jim Meyering  <jim@meyering.net>
73793
73794         * modules/fcntl-safer: New module.
73795         * modules/fts (Depends-on): Add fcntl-safer.
73796         * MODULES.html.sh (File descriptor based Input/Output):
73797         Add fcntl-safer.
73798
73799 2005-08-24  Bruno Haible  <bruno@clisp.org>
73800
73801         Support for unit test modules.
73802         * modules/README: Mention tests modules.
73803         * modules/TEMPLATE-TESTS: New file.
73804         * gnulib-tool: New options --extract-tests-module, --with-tests and
73805         --tests-base (unused for the moment).
73806         (testsbase, inctests): New variables.
73807         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
73808         (func_verify_module): Exclude TEMPLATE-TESTS.
73809         (func_verify_nontests_module, func_verify_tests_module): New functions.
73810         (func_get_dependencies): Add implicit dependency for tests modules.
73811         (func_get_tests_module): New function.
73812         (func_modules_transitive_closure): When --with-tests was specified,
73813         include the unit tests as well, unless explicitly avoided.
73814         (func_emit_lib_Makefile_am): Ignore the tests modules here.
73815         (func_emit_tests_Makefile_am): New function.
73816         (func_create_testdir): When --with-tests was specified, emit a
73817         tests/ directory.
73818         * MODULES.html.sh (Future developments): Update.
73819
73820 2005-08-24  Bruno Haible  <bruno@clisp.org>
73821
73822         * modules/tls-tests: New file.
73823         * tests/test-tls.c: New file, from GNU gettext.
73824
73825 2005-08-24  Bruno Haible  <bruno@clisp.org>
73826
73827         * modules/lock-tests: New file.
73828         * tests/test-lock.c: New file, from GNU gettext.
73829
73830 2005-08-24  Bruno Haible  <bruno@clisp.org>
73831
73832         * lib/lock.h: Add multiple inclusion guard.
73833         * lib/tls.h: Add multiple inclusion guard.
73834
73835 2005-08-24  Bruno Haible  <bruno@clisp.org>
73836
73837         * gnulib-tool: Add support for the --aux-dir option to
73838         --create-testdir, --create-megatestdir, --test, --megatest.
73839         (func_create_testdir, func_create_megatestdir): Optionally emit a
73840         AC_CONFIG_AUX_DIR directive.
73841         (create-testdir, create-megatestdir, test, megatest): Provide a
73842         default value for $auxdir.
73843
73844 2005-08-24  Bruno Haible  <bruno@clisp.org>
73845
73846         * gnulib-tool (import): Use compound statement instead of subshell
73847         where possible.
73848
73849 2005-08-24  Bruno Haible  <bruno@clisp.org>
73850
73851         * gnulib-tool (import): Change --aux-dir default to "build-aux".
73852
73853 2005-08-24  Bruno Haible  <bruno@clisp.org>
73854
73855         * gnulib-tool (func_version): Update.
73856
73857 2005-08-24  Bruno Haible  <bruno@clisp.org>
73858
73859         * gnulib-tool (func_import, func_create_testdir,
73860         func_create_megatestdir): Quote all autoconf macro arguments.
73861
73862 2005-08-24  Bruno Haible  <bruno@clisp.org>
73863
73864         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
73865         option --force, because --force causes the aclocal.m4 of each
73866         subdirectory to be newer than the corresponding config.h.in.
73867
73868 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73869
73870         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
73871         All contents moved to gl_REGEX.
73872         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
73873         assume that it does.
73874
73875 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73876
73877         * lib/regex.h (REG_NOSYS)
73878         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
73879         Define, since POSIX requires it as of 2001.
73880         (_REG_ENOSYS)
73881         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
73882         New private symbol, used to keep the enum signed in all cases.
73883         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
73884         Youngman in
73885         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
73886
73887         * lib/regex_internal.c (re_string_skip_chars, register_state):
73888         (calc_state_hash):
73889         Remove forward decls; no longer needed now that we use prototypes.
73890         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
73891         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
73892         (clean_state_log_if_needed): Likewise.
73893
73894 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73895
73896         * config/srclist.txt: Add glibc bugs 1231-1233.
73897
73898 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73899
73900         Fix problems reported by Sam Steingold in
73901         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
73902         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
73903         assumed that reg_errcode_t is a signed type, which is not
73904         necessarily true if _XOPEN_SOURCE is not defined.
73905         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
73906         since some compilers warn about it otherwise.
73907
73908 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73909
73910         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
73911         (init_word_char, create_initial_state, duplicate_node_closure):
73912         (fetch_token, peek_token_bracket, build_range_exp):
73913         (build_collating_symbol): Remove forward decls; no longer needed
73914         now that we use prototypes.
73915
73916         * lib/regcomp.c:
73917         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
73918         (re_compile_fastmap_iter, regcomp, regerror, regfree):
73919         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
73920         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
73921         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
73922         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
73923         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
73924         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
73925         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
73926         (build_range_exp, build_collating_symbol, parse_bracket_exp):
73927         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
73928         (build_charclass, build_charclass_op, fetch_number, create_tree):
73929         (create_token_tree, mark_opt_subexp, duplicate_tree):
73930         Use prototypes rather than old-style definitions.
73931
73932         * lib/regex_internal.c:
73933         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
73934         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
73935         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
73936         (re_string_reconstruct, re_string_peek_byte_case):
73937         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
73938         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
73939         (re_node_set_init_copy, re_node_set_add_intersect):
73940         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73941         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73942         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
73943         (re_acquire_state, re_acquire_state_context, register_state):
73944         (create_ci_newstate, create_cd_newstate, free_state):
73945         Likewise.
73946         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
73947         re_search_2):
73948         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
73949         (re_search_internal, prune_impossible_nodes):
73950         (acquire_init_state_context, check_matching, static):
73951         (check_halt_node_context, check_halt_state_context, proceed_next_node):
73952         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
73953         (update_regs, sift_states_backward, build_sifted_states):
73954         (clean_state_log_if_needed, merge_state_array):
73955         (update_cur_sifted_state, add_epsilon_src_nodes):
73956         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
73957         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
73958         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
73959         (find_recover_state, check_subexp_matching_top, transit_state_mb):
73960         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
73961         (check_arrival, check_arrival_add_next_nodes):
73962         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
73963         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
73964         (check_node_accept_bytes, check_node_accept, extend_buffers):
73965         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
73966         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
73967         (sift_ctx_init):
73968         Likewise.
73969
73970         * lib/regex_internal.h:
73971         (re_string_allocate, re_string_construct, re_string_reconstruct):
73972         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
73973         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
73974         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
73975         (re_string_context_at, re_string_peek_byte_case):
73976         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
73977         is defined, since we now use prototypes always.
73978
73979         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
73980         C89 or better.  All uses removed.
73981
73982 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73983
73984         * config/srclist.txt: Add glibc bugs 1220-1227.
73985
73986 2005-08-20  Jim Meyering  <jim@meyering.net>
73987
73988         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
73989         of unused local, dfa.
73990
73991 2005-08-20  Bruno Haible  <bruno@clisp.org>
73992
73993         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
73994
73995 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73996
73997         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
73998         (re_node_set_insert_last, re_dfa_add_node):
73999         Rename local variables to avoid GCC shadowing warnings.
74000
74001 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74002
74003         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
74004         [defined lint]: Suppress bogus uninitialized-variable warnings.
74005
74006         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
74007         and let the caller return REG_ESPACE if out of space.  This
74008         removes an uninitialied-variable warning with GCC 4.0.1, and also
74009         avoids taking the address of a local variable.  All callers
74010         changed.
74011
74012 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74013
74014         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
74015         $LIBCSRC/posix/regexec.c.
74016         Add glibc bug 1217 for regcomp.c.
74017
74018 2005-08-19  Jim Meyering  <jim@meyering.net>
74019
74020         * lib/regexec.c (proceed_next_node): Redo local variables to
74021         avoid GCC shadowing warnings.
74022
74023 2005-08-18  Bruno Haible  <bruno@clisp.org>
74024
74025         * lib/strstr.c (strstr): Fix return value in multibyte case.
74026         * lib/strcasestr.c (strcasestr): Likewise.
74027
74028 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74029
74030         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
74031
74032 2005-08-17  Jim Meyering  <jim@meyering.net>
74033
74034         Make the %s format (seconds since the epoch) work for a negative
74035         number and when used with a zero-padded field width, e.g. %015s.
74036
74037         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
74038         label so that it precedes the code to set `digits'.  Otherwise,
74039         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
74040         print `00-22'.  Now, it prints `-0022', as it should.
74041
74042 2005-08-17  Bruno Haible  <bruno@clisp.org>
74043
74044         * modules/strstr (Files): Add m4/mbrtowc.m4.
74045         (Depends-on): Add mbuiter.
74046
74047 2005-08-17  Bruno Haible  <bruno@clisp.org>
74048
74049         * modules/strcasestr: New file.
74050         * MODULES.html.sh (String handling, based on ANSI C 89): Add
74051         strcasestr.
74052
74053 2005-08-17  Bruno Haible  <bruno@clisp.org>
74054
74055         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
74056
74057 2005-08-17  Bruno Haible  <bruno@clisp.org>
74058
74059         * modules/mbuiter: New file.
74060         * MODULES.html.sh (Extended multibyte and wide character utilities):
74061         Add mbuiter.
74062
74063 2005-08-17  Bruno Haible  <bruno@clisp.org>
74064
74065         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
74066         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
74067
74068 2005-08-17  Bruno Haible  <bruno@clisp.org>
74069
74070         * m4/strcasestr.m4: New file.
74071
74072 2005-08-17  Bruno Haible  <bruno@clisp.org>
74073
74074         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
74075         * lib/strstr.c: Completely rewritten, with multibyte locale support.
74076
74077 2005-08-17  Bruno Haible  <bruno@clisp.org>
74078
74079         * lib/strcasestr.h: New file.
74080         * lib/strcasestr.c: New file.
74081
74082 2005-08-17  Bruno Haible  <bruno@clisp.org>
74083
74084         * lib/strcasecmp.c: Use mbuiter.h.
74085
74086 2005-08-17  Bruno Haible  <bruno@clisp.org>
74087
74088         * lib/mbuiter.h: New file.
74089
74090 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74091
74092         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
74093         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
74094         and gl_GETOPT are both invoked via different paths (as happens
74095         with GNU tar CVS because it uses both argp and getopt), the former
74096         wins.
74097
74098 2005-08-16  Bruno Haible  <bruno@clisp.org>
74099
74100         * modules/tls: New file.
74101         * MODULES.html.sh (Multithreading): Add tls.
74102
74103 2005-08-16  Bruno Haible  <bruno@clisp.org>
74104
74105         * modules/strnlen1: New file.
74106         * MODULES.html.sh (String handling): Add strnlen1.
74107
74108 2005-08-16  Bruno Haible  <bruno@clisp.org>
74109
74110         * modules/strcase (Files): Add m4/mbrtowc.m4.
74111         (Depends-on): Add strnlen1, mbchar.
74112
74113 2005-08-16  Bruno Haible  <bruno@clisp.org>
74114
74115         * modules/mbiter: New file.
74116         * MODULES.html.sh (Extended multibyte and wide character utilities):
74117         Add mbiter.
74118
74119 2005-08-16  Bruno Haible  <bruno@clisp.org>
74120
74121         * modules/mbfile: New file.
74122         * MODULES.html.sh (Extended multibyte and wide character utilities):
74123         Add mbfile.
74124
74125 2005-08-16  Bruno Haible  <bruno@clisp.org>
74126
74127         * modules/mbchar: New file.
74128         * MODULES.html.sh (Extended multibyte and wide character utilities):
74129         New section.
74130
74131 2005-08-16  Bruno Haible  <bruno@clisp.org>
74132
74133         * m4/tls.m4: New file, from GNU gettext.
74134
74135 2005-08-16  Bruno Haible  <bruno@clisp.org>
74136
74137         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
74138         always.
74139         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
74140
74141 2005-08-16  Bruno Haible  <bruno@clisp.org>
74142
74143         * m4/mbiter.m4: New file.
74144
74145 2005-08-16  Bruno Haible  <bruno@clisp.org>
74146
74147         * m4/mbfile.m4: New file.
74148
74149 2005-08-16  Bruno Haible  <bruno@clisp.org>
74150
74151         * m4/mbchar.m4: New file.
74152
74153 2005-08-16  Bruno Haible  <bruno@clisp.org>
74154
74155         * lib/tls.h: New file, from GNU gettext.
74156         * lib/tls.c: New file, from GNU gettext.
74157
74158 2005-08-16  Bruno Haible  <bruno@clisp.org>
74159
74160         * lib/strnlen1.h: New file.
74161         * lib/strnlen1.c: New file.
74162
74163 2005-08-16  Bruno Haible  <bruno@clisp.org>
74164
74165         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
74166         (mbi_init): Update.
74167         (mbi_avail, mbi_advance): Let the iteration end before the terminating
74168         NUL byte, not after it.
74169
74170 2005-08-16  Bruno Haible  <bruno@clisp.org>
74171
74172         * lib/strcase.h (strcasecmp): Add note in comments.
74173         * lib/strncasecmp.c: Use code from strcasecmp.c.
74174         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
74175         (strcasecmp): Work correctly in multibyte locales.
74176
74177 2005-08-16  Bruno Haible  <bruno@clisp.org>
74178
74179         * lib/mbiter.h: New file.
74180
74181 2005-08-16  Bruno Haible  <bruno@clisp.org>
74182
74183         * lib/mbfile.h: New file.
74184
74185 2005-08-16  Bruno Haible  <bruno@clisp.org>
74186
74187         * lib/mbchar.h: New file.
74188         * lib/mbchar.c: New file.
74189
74190 2005-08-16  Bruno Haible  <bruno@clisp.org>
74191
74192         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
74193         the valid ones. Makes the comparison operations transitive:
74194         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
74195         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
74196
74197 2005-08-15  Simon Josefsson  <jas@extundo.com>
74198
74199         * modules/ssize_t (License): Change to 'unlimited'.
74200
74201         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
74202
74203 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74204
74205         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
74206         Add comments for each pending glibc patch.
74207
74208 2005-08-15  Bruno Haible  <bruno@clisp.org>
74209
74210         * lib/regex.h (__restrict_arr): Don't define to __restrict if
74211         __cplusplus is defined.
74212
74213 2005-08-14  Jim Meyering  <jim@meyering.net>
74214
74215         Sync from coreutils.
74216
74217         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
74218         Use the hash-table-based cycle-detection code not just when
74219         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
74220         Reported by James Youngman in
74221         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
74222         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
74223         FTS_TIGHT_CYCLE_CHECK.
74224         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
74225         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
74226         once again.
74227         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
74228         * lib/fts.c (fd_safer): Remove decl.
74229         Include fcntl--.h rather than unistd-safer.h
74230         (fts_safe_changedir): Don't call fd_safer; no longer needed
74231         now that we include fcntl--.h.
74232
74233 2005-08-12  Simon Josefsson  <jas@extundo.com>
74234
74235         * modules/getndelim2: Use ssize_t module.
74236         * modules/getnline: Likewise.
74237         * modules/safe-read: Likewise.
74238         * modules/xreadlink: Likewise.
74239
74240         * modules/ssize_t: New file.
74241
74242 2005-08-12  Simon Josefsson  <jas@extundo.com>
74243
74244         * m4/readline.m4: Look for termcap, curses or ncurses if required.
74245
74246 2005-08-12  Simon Josefsson  <jas@extundo.com>
74247
74248         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74249         ssize_t.
74250
74251 2005-08-12  Simon Josefsson  <jas@extundo.com>
74252
74253         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
74254         readline, getdelim and check_version.
74255         (Support for systems lacking ISO C 99: Sizes of integer types):
74256         Add size_max.
74257
74258 2005-08-12  Bruno Haible  <bruno@clisp.org>
74259
74260         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
74261
74262 2005-08-11  Simon Josefsson  <jas@extundo.com>
74263
74264         * modules/readline: New file.
74265
74266         * modules/strnlen (Files): Add strnlen.h.
74267
74268 2005-08-11  Simon Josefsson  <jas@extundo.com>
74269
74270         * m4/readline.m4: New file.
74271
74272 2005-08-11  Simon Josefsson  <jas@extundo.com>
74273
74274         * lib/readline.h, readline.c: New file.
74275
74276 2005-08-11  Simon Josefsson  <jas@extundo.com>
74277
74278         * doc/gnulib.texi (Initial import, Finishing touches): Mention
74279         gl_AVOID.
74280
74281 2005-08-11  Bruno Haible  <bruno@clisp.org>
74282
74283         * lib/strnlen.h (strnlen): Change parameter name to match comment.
74284
74285 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
74286
74287         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
74288
74289 2005-08-10  Simon Josefsson  <jas@extundo.com>
74290
74291         * tests/test-iconvme.c: New file.
74292
74293 2005-08-10  Simon Josefsson  <jas@extundo.com>
74294
74295         * m4/strnlen.m4: New file.
74296
74297         * m4/strndup.m4: Don't check for strnlen declaration, done in
74298         strnlen.m4.
74299
74300 2005-08-10  Simon Josefsson  <jas@extundo.com>
74301
74302         * lib/strndup.c: Use strnlen.h.
74303
74304         * lib/strnlen.h: New file.
74305
74306 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74307
74308         * README: Typos.
74309
74310 2005-08-02  Simon Josefsson  <jas@extundo.com>
74311
74312         * modules/readline: New file.
74313
74314 2005-08-02  Simon Josefsson  <jas@extundo.com>
74315
74316         * modules/getdelim: New file.
74317
74318         * modules/getline: Rewrite, don't use getndelim2.
74319
74320 2005-08-02  Simon Josefsson  <jas@extundo.com>
74321
74322         * m4/getline.m4: Separate out getdelim stuff into separate module.
74323
74324         * m4/getdelim.m4: New file.
74325
74326 2005-08-02  Simon Josefsson  <jas@extundo.com>
74327
74328         * lib/getline.h, getline.c: Rewrite.
74329
74330         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
74331
74332 2005-07-31  Bruno Haible  <bruno@clisp.org>
74333
74334         * lib/lock.h (gl_lock_initializer): New macro.
74335         (gl_lock_define_initialized): Use it.
74336         (gl_rwlock_initializer): New macro.
74337         (gl_rwlock_define_initialized): Use it.
74338         (gl_recursive_lock_initializer): New macro.
74339         (gl_recursive_lock_define_initialized): Use it.
74340
74341 2005-07-30  Karl Berry  <karl@gnu.org>
74342
74343         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
74344         Report from Ben Pfaff, regarding getopt.
74345
74346 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
74347
74348         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
74349         normal way.
74350         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
74351         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
74352         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
74353         (gl_GETOPT): Use the new macros.  Most of the implementation
74354         is moved to the new macros.  This is for programs like Emacs
74355         that don't want all the functionality of gl_GETOPT.
74356
74357 2005-07-26  Bruno Haible  <bruno@clisp.org>
74358
74359         * m4/lock.m4: Update from GNU gettext.
74360
74361 2005-07-26  Bruno Haible  <bruno@clisp.org>
74362
74363         * lib/lock.h: Update from GNU gettext.
74364         * lib/lock.c: Update from GNU gettext.
74365
74366 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
74367
74368         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
74369         obsolescent AC_TRY_RUN.  Include the default includes files, for
74370         'exit'.
74371
74372 2005-07-24  Bruno Haible  <bruno@clisp.org>
74373
74374         * modules/visibility: New file.
74375         * MODULES.html.sh (Misc): Add visibility.
74376
74377 2005-07-24  Bruno Haible  <bruno@clisp.org>
74378
74379         * m4/visibility.m4: New file.
74380
74381 2005-07-24  Bruno Haible  <bruno@clisp.org>
74382
74383         * doc/visibility.texi: New file.
74384
74385 2005-07-22  Bruno Haible  <bruno@clisp.org>
74386
74387         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
74388         $(ALLOCA_H), redundant through BUILT_SOURCES.
74389         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
74390         redundant through BUILT_SOURCES.
74391         * modules/byteswap (Makefile.am): Remove explicit dependency on
74392         $(BYTESWAP_H), redundant through BUILT_SOURCES.
74393         * modules/fnmatch (Makefile.am): Remove explicit dependency on
74394         $(FNMATCH_H), redundant through BUILT_SOURCES.
74395         * modules/getopt (Makefile.am): Remove explicit dependency on
74396         $(GETOPT_H), redundant through BUILT_SOURCES.
74397         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
74398         redundant through BUILT_SOURCES.
74399         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
74400         redundant through BUILT_SOURCES.
74401         * modules/stdbool (Makefile.am): Remove explicit dependency on
74402         $(STDBOOL_H), redundant through BUILT_SOURCES.
74403         * modules/stdint (Makefile.am): Remove explicit dependency on
74404         $(STDINT_H), redundant through BUILT_SOURCES.
74405         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
74406         Remove explicit dependency on $(SYSEXITS_H).
74407         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
74408
74409 2005-07-18  Simon Josefsson  <jas@extundo.com>
74410
74411         * lib/check-version.c (check_version): Accept identical versions too.
74412
74413 2005-07-18  Bruno Haible  <bruno@clisp.org>
74414
74415         * modules/lock: New file.
74416         * MODULES.html.sh (Multithreading): New section.
74417
74418 2005-07-18  Bruno Haible  <bruno@clisp.org>
74419
74420         * m4/lock.m4: New file, from GNU gettext.
74421
74422 2005-07-18  Bruno Haible  <bruno@clisp.org>
74423
74424         * lib/lock.h: New file, from GNU gettext.
74425         * lib/lock.c: New file, from GNU gettext.
74426
74427 2005-07-18  Bruno Haible  <bruno@clisp.org>
74428
74429         * lib/lock.h (gl_once_t): New type.
74430         (gl_once_define, gl_once): New macros.
74431         * lib/lock.c (fresh_once): New variable.
74432         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
74433         functions.
74434
74435 2005-07-16  Simon Josefsson  <jas@extundo.com>
74436
74437         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
74438         workaround, suggested by Bruno.
74439
74440 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
74441
74442         * modules/xalloc (Depends-on): Add xalloc-die.
74443         * modules/xvasprintf (Depends-on): Add xalloc-die.
74444
74445 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
74446
74447         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
74448         with a minor change.
74449
74450 2005-07-15  Bruno Haible  <bruno@clisp.org>
74451
74452         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
74453         When using lib/poll.c, define poll as rpl_poll.
74454
74455 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
74456
74457         * modules/argp (Depends-on): Remove unlocked-io.
74458
74459 2005-07-14  Derek Price  <derek@ximbiot.com>
74460
74461         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
74462         for glob symlink bug.
74463
74464 2005-07-14  Bruno Haible  <bruno@clisp.org>
74465
74466         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
74467         Instead, test for *_unlocked function declarations directly.
74468
74469 2005-07-11  Simon Josefsson  <jas@extundo.com>
74470
74471         * modules/size_max: New file.
74472
74473         * modules/xsize: Depend on size_max module for size_max.m4.
74474
74475 2005-07-11  Simon Josefsson  <jas@extundo.com>
74476
74477         * lib/size_max.h: New file.
74478
74479 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
74480
74481         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
74482         copyright symbol and the year.
74483         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
74484         (version_etc_va): Use parameterized copyright notice.
74485         Reword to conform to the current GNU coding standards.
74486
74487 2005-07-11  Karl Berry  <karl@gnu.org>
74488
74489         * doc/gnulib.texi (Quoting): new node.
74490         (Initial import): more info, from Patrice.
74491
74492 2005-07-11  Bruno Haible  <bruno@clisp.org>
74493
74494         * gnulib-tool (func_usage): Document option --avoid.
74495         (Command line options): Handle --avoid.
74496         (func_acceptable): New function.
74497         (func_modules_transitive_closure): Use it.
74498
74499 2005-07-11  Bruno Haible  <bruno@clisp.org>
74500
74501         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
74502         Reported by Jim Meyering.
74503
74504 2005-07-10  Bruno Haible  <bruno@clisp.org>
74505
74506         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
74507         Needed when size_t is smaller than 'unsigned int'.
74508         Reported by Paul Eggert.
74509
74510 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74511
74512         * modules/argp (Depends-on): Add unlocked-io
74513
74514 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74515
74516         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
74517         block of defines.
74518
74519 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
74520
74521         * config/srclist.txt: Comment out regcomp.c, since we have a porting
74522         fix now.
74523
74524 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
74525         and Paul Eggert  <eggert@cs.ucla.edu>
74526
74527         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
74528         in wint_t, not wchar_t.  Remove now-unnecessary cast.
74529
74530 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74531
74532         * modules/regex (Files): Add lib/regex_internal.c,
74533         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
74534         (Depends-on): Add extensions.
74535         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
74536
74537 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74538
74539         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
74540         pathconf.
74541         * m4/same.m4 (gl_SAME): Likewise.
74542         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
74543
74544         * m4/regex.m4: Adjust to new libc regex implementation.
74545         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
74546         all the .c and .h parts of (the new) regex.
74547         Quote the m4 stuff better.
74548         Check for RE_ICASE bug of old gnulib.
74549         Check for REG_STARTEND of recent libc.
74550         Rename local variables from jm_* to gl_*.
74551         Quote operand of "test -f".
74552         Say "recent enough" version of libc, not "version 2".
74553         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
74554         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
74555         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
74556         Remove check for btowc, isascii.
74557         Require AM_LANGINFO_CODESET.
74558
74559 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74560
74561         * lib/regex.c, regex.h: Sync from libc.
74562         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
74563         * lib/regexec.c:
74564         New files, synced from libc, except that regex_internal.h
74565         currently has a small porting fix.
74566
74567 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74568
74569         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
74570         regex_internal.c, regexec.c.
74571         Add regex_internal.h too, but as a comment, since the libc version
74572         is currently broken in gnulib mode.
74573
74574 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
74575
74576         Support programs like Emacs that use gnulib but not gettext.
74577         * MODULES.html.sh (Internationalization functions): Add gettext-h.
74578         * modules/gettext-h: New file.
74579         * modules/gettext (Files): Remove lib/gettext.h.
74580         (Depends-on): Add gettext-h.
74581         (Makefile.am): Remove lib_SOURCES.
74582         * modules/argmatch, modules/c-stack, modules/closeout:
74583         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
74584         * modules/execute, modules/file-type, modules/getaddrinfo:
74585         * modules/getopt, modules/human, modules/javacomp:
74586         * modules/javaexec, modules/mkdir-p, modules/obstack:
74587         * modules/openat, modules/pagealign_alloc, modules/pipe:
74588         * modules/quotearg, modules/regex, modules/rpmatch:
74589         * modules/unicodeio, modules/userspec, modules/version-etc:
74590         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
74591         * modules/xsetenv:
74592         Depend on gettext-h, not gettext.
74593
74594 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
74595
74596         * gnulib-tool (func_import): Add support for 'public domain' license.
74597         * modules/alloca, modules/atexit, modules/memmove:
74598         Now public domain, not GPL.
74599         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
74600         * modules/realloc, modules/strerror, modules/strtod:
74601         Now LGPL, not GPL.
74602
74603 2005-07-05  Bruno Haible  <bruno@clisp.org>
74604
74605         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
74606         autoconf CVS. Needed for mingw.
74607
74608 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74609
74610         Remove the dependency of the strftime module on the tzset module.
74611         * modules/strftime (Depends-on): Remove dependency on tzset.
74612
74613 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74614
74615         Remove the dependency of the strftime module on the tzset module.
74616         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
74617         gl_FUNC_TZSET_CLOBBER.
74618
74619 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74620
74621         Remove the dependency of the strftime module on the tzset module.
74622         * lib/strftime.c (my_strftime)
74623         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
74624         Copy the input structure, to work around some of the bug with
74625         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
74626         Solaris releases, you should also use the tzset module, but we won't
74627         require it as a dependency any more since we don't want LGPLed code
74628         to depend on GPLed code.
74629
74630 2005-07-02  Jim Meyering  <jim@meyering.net>
74631
74632         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
74633         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
74634         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
74635         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
74636
74637 2005-07-02  Jim Meyering  <jim@meyering.net>
74638
74639         * lib/backupfile.c (backup_args): Change a `0' to NULL.
74640
74641 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74642
74643         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
74644         declares only 'struct timespec;' (!).
74645
74646 2005-07-01  Jim Meyering  <jim@meyering.net>
74647
74648         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
74649         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
74650         * lib/save-cwd.c, tempname.c:
74651         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74652         and don't include <sys/file.h>).
74653
74654 2005-06-29  Jim Meyering  <jim@meyering.net>
74655
74656         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
74657         type name.  Use the variable name instead.
74658         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
74659         Likewise.
74660
74661 2005-06-28  Simon Josefsson  <jas@extundo.com>
74662
74663         * modules/check-version (Files): Add check-version.m4.
74664
74665 2005-06-28  Simon Josefsson  <jas@extundo.com>
74666
74667         * m4/check-version.m4: New file, suggested by Jim Meyering
74668         <jim@meyering.net>.
74669
74670 2005-06-28  Simon Josefsson  <jas@extundo.com>
74671
74672         * lib/check-version.h, lib/check-version.c: New files.
74673
74674 2005-06-28  Simon Josefsson  <jas@extundo.com>
74675
74676         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
74677         collision with global variable.  Better indentation.  Don't
74678         increment buffer pointer beyond buffer end.  Based on comments
74679         from Paul Eggert <eggert@cs.ucla.edu>.
74680
74681         * lib/base64.h: Indent.
74682
74683 2005-06-28  Simon Josefsson  <jas@extundo.com>
74684
74685         * doc/gnulib.texi (Library version handling): New section.
74686
74687 2005-06-28  Jim Meyering  <jim@meyering.net>
74688
74689         * check-module (find_included_lib_files): Hard-code another
74690         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
74691         but modules/fts-lgpl (correctly) does not list those files.
74692
74693         * modules/canonicalize (Files): Add lib/pathmax.h.
74694
74695 2005-06-25  Simon Josefsson  <jas@extundo.com>
74696
74697         * modules/check-version: New file.
74698
74699 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
74700
74701         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
74702         initializer of struct addrinfo, as an indication that we don't
74703         care how many members the structure has.
74704
74705 2005-06-24  Derek Price  <derek@ximbiot.com>
74706         and Bruno Haible  <bruno@clisp.org>
74707
74708         Remove stat module & update lstat.
74709         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
74710         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74711         * m4/stat.m4: Remove this file.
74712
74713 2005-06-24  Derek Price  <derek@ximbiot.com>
74714         and Bruno Haible  <bruno@clisp.org>
74715
74716         Remove stat module & update lstat.
74717         * lib/stat.c: Remove this file...
74718         (slash_aware_lstat): ...moving this content and its support...
74719         * lib/lstat.c (rpl_lstat): ...into here.
74720         * lib/lstat.h: New file.
74721
74722 2005-06-24  Derek Price  <derek@ximbiot.com>
74723         and Bruno Haible  <bruno@clisp.org>
74724
74725         Remove stat module & update lstat.
74726         * config/srclist.txt (libc sources): Remove stat.
74727
74728 2005-06-24  Derek Price  <derek@ximbiot.com>
74729         and Bruno Haible  <bruno@clisp.org>
74730
74731         Remove stat module & update lstat.
74732         * MODULES.html.sh (stat): Remove.
74733         * MODULES.html: Regenerated.
74734         * modules/lstat (Description): Correct function name.
74735         (Files): Add "lstat.h".
74736         (Depends-on): Remove stat, add xalloc, stat-macros.
74737         * modules/stat: Remove this file.
74738         (Include): Add "lstat.h", remove <sys/stat.h>.
74739
74740 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
74741
74742         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
74743         (ranged_convert): Don't save conversion in a temporary struct.
74744         This causes a warning with GCC 4.0.0, and anyway in the typical
74745         case it's not worth the extra 100 bytes or so of code.
74746         (ranged_convert, __mktime_internal): When calling a function via a
74747         pointer P, use P () rather than (*P) (), as we now assume C89 or
74748         better.
74749
74750 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74751
74752         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
74753         "who -r" failed to give output.  Problem reported by Tim Waugh.
74754
74755         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
74756         (xcalloc): Use it to avoid needless tests.
74757         Problem reported by Jim Meyering.
74758
74759 2005-06-20  Derek Price  <derek@ximbiot.com>
74760
74761         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
74762         unnecessary for Autoconfs > 2.59c.
74763
74764 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74765
74766         * lib/argp.h (__option_is_short): Check upper limit of
74767         __key. Isprint() requires its argument to have the value
74768         of an unsigned char or EOF.
74769
74770 2005-06-16  Jim Meyering  <jim@meyering.net>
74771
74772         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
74773         when either N or S is zero.
74774
74775 2005-06-16  Derek Price  <derek@ximbiot.com>
74776
74777         * m4/bison.m4: Declare YACC & YFLAGS precious.
74778
74779 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
74780
74781         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
74782         multibyte string or pattern, fall back on unibyte matching.
74783         Problem reported by James Youngman.
74784
74785 2005-06-08  Bruno Haible  <bruno@clisp.org>
74786
74787         * modules/csharpcomp: New file.
74788         * MODULES.html.sh (C#): Add csharpcomp.
74789
74790 2005-06-08  Bruno Haible  <bruno@clisp.org>
74791
74792         * m4/csharpcomp.m4: New file, from GNU gettext.
74793
74794 2005-06-08  Bruno Haible  <bruno@clisp.org>
74795
74796         * lib/csharpcomp.h: New file, from GNU gettext.
74797         * lib/csharpcomp.c: New file, from GNU gettext.
74798         * lib/csharpcomp.sh.in: New file, from GNU gettext.
74799
74800 2005-06-08  Bruno Haible  <bruno@clisp.org>
74801
74802         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
74803         warning on mingw.
74804
74805 2005-06-07  Derek Price  <derek@ximbiot.com>
74806
74807         Sync from CVS.
74808         * lib/glob_.h: Indent nested #ifdef.
74809
74810 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74811
74812         Sync from coreutils.
74813         Use "file name" when talking about file names, instead of "filename"
74814         or "path", as per the GNU coding standards.
74815         * lib/mkdir-p.c: Renamed from makepath.c.
74816         (make_dir_parents): Renamed from make_path.  All callers changed.
74817         * lib/mkdir-p.h: Likewise.  All includers changed.
74818         * lib/filenamecat.c: Renamed from path-concat.c.
74819         (file_name_concat): Renamed from path_concat.  All callers changed.
74820         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
74821         * lib/filenamecat.h: Likewise.  All includers changed.
74822         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
74823         in comments or local variable names.
74824         * lib/basename.c: Likewise.
74825         * lib/canonicalize.c, canonicalize.h: Likewise.
74826         * lib/dirname.c, dirname.h: Likewise.
74827         * lib/euidaccess.c: Likewise.
74828         * lib/exclude.c: Likewise
74829         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
74830         * lib/fsusage.c, fsuage.h: Likewise.
74831         * lib/fts.c, fts_.h: Likewise.
74832         * lib/getcwd.c: Likewise.
74833         * lib/getloadavg.c: Likewise.
74834         * lib/mkstemp.c: Likewise.
74835         * lib/mountlist.c, mountlist.h: Likewise.
74836         * lib/openat.c, openat.h: Likewise.
74837         * lib/readlink-stub.c: Likewise.
74838         * lib/readutmp.c, readutmp.h: Likewise.
74839         * lib/rename.c: Likewise.
74840         * lib/rmdir.c: Likewise.
74841         * lib/same.c: Likewise.
74842         * lib/savedir.c: Likewise.
74843         * lib/stripslash.c: Likewise.
74844         * lib/tempname.c: Likewise.
74845         * lib/xreadlink.c: Likewise.
74846         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
74847         All uses changed.
74848         * lib/exclude.h: Likewise.
74849
74850         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
74851         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74852         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
74853         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74854         * lib/pathmax.h: Include <limits.h> unconditionally, since other
74855         files have been getting away with it for years (MORE/BSD 4.3
74856         is extinct now).
74857         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
74858         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74859
74860         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
74861         Define to 256, not 255, as per modern POSIX.
74862
74863 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74864
74865         Sync from coreutils.
74866         Use "file name" when talking about file names, instead of "filename"
74867         or "path", as per the GNU coding standards.
74868         * MODULES.html.sh: mkdir-p renamed from makepath.
74869         filenamecat renamed from path-concat.
74870         * modules/filenamecat: Renamed from modules/path-concat.
74871         (Files): filenamecat.h and filenamecat.c renamed from
74872         path-concat.h and path-concat.c.
74873         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
74874         (Include): filenamecat.h, not path-concat.h.
74875         * modules/mkdir-p: Renamed from modules/makepath.
74876         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
74877         makepath.c.
74878         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
74879         (Include): mkdir-p.h, not makepath.h.
74880
74881 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74882
74883         Sync from coreutils.
74884         * m4/mkdir-p.m4: Renamed from makepath.m4.
74885         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
74886         Rename files from makepath.c to mkdir-p.c, and from
74887         makepath.h to mkdir-p.h.
74888         * m4/filenamecat.m4: Renamed from path-concat.m4.
74889         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
74890         Rename files from path-concat.c to filenamecat.c,
74891         and from path-concat.h to filenamecat.h.
74892         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
74893         "file name" in local variables or comments.
74894         * m4/rename.m4: Likewise.
74895
74896 2005-06-01  Bruno Haible  <bruno@clisp.org>
74897
74898         * modules/csharpexec: New file.
74899         * MODULES.html.sh (C#): New section.
74900
74901 2005-06-01  Bruno Haible  <bruno@clisp.org>
74902
74903         * m4/csharp.m4: New file, from GNU gettext.
74904         * m4/csharpexec.m4: New file, from GNU gettext.
74905
74906 2005-06-01  Bruno Haible  <bruno@clisp.org>
74907
74908         * lib/csharpexec.h: New file, from GNU gettext.
74909         * lib/csharpexec.c: New file, from GNU gettext.
74910         * lib/csharpexec.sh.in: New file, from GNU gettext.
74911
74912 2005-05-31  Derek Price  <derek@ximbiot.com>
74913             Paul Eggert  <eggert@cs.ucla.edu>
74914
74915         Sync from cvs.
74916         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
74917
74918 2005-05-31  Derek Price  <derek@ximbiot.com>
74919             Paul Eggert  <eggert@cs.ucla.edu>
74920
74921         Sync from cvs.
74922         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
74923
74924 2005-05-29  Derek Price  <derek@ximbiot.com>
74925
74926         * config/srclist.txt (glob_.h, glob.c): Add these files.
74927
74928 2005-05-29  Derek Price  <derek@ximbiot.com>
74929
74930         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
74931         * modules/glob: New file.
74932         * modules/getlogin_r: Add link to POSIX spec in description.
74933
74934 2005-05-29  Derek Price  <derek@ximbiot.com>
74935             Paul Eggert  <eggert@cs.ucla.edu>
74936
74937         * m4/glob.m4: New file.
74938
74939 2005-05-29  Derek Price  <derek@ximbiot.com>
74940             Paul Eggert  <eggert@cs.ucla.edu>
74941
74942         * lib/glob_.h, lib/glob.c: New files.
74943
74944 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74945
74946         * modules/fts (Files): Remove m4/inttypes-pri.m4.
74947         * modules/fts-lgpl (Depends-on): Remove gettext.
74948
74949 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74950
74951         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
74952         and don't require gt_INTTYPES_PRI.
74953
74954 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74955
74956         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
74957
74958         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
74959         the configuration hassle isn't worth it.
74960         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
74961         (LONGEST_MODIFIER, PRIuMAX): Remove.
74962
74963 2005-05-27  Bruno Haible  <bruno@clisp.org>
74964
74965         * lib/getlogin_r.h: Remove second include of <stddef.h>.
74966
74967 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
74968
74969         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
74970         _POSIX_PTHREAD_SEMANTICS for Solaris.
74971
74972 2005-05-25  Derek Price  <derek@ximbiot.com>
74973
74974         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
74975
74976 2005-05-25  Derek Price  <derek@ximbiot.com>
74977             Paul Eggert  <eggert@cs.ucla.edu>
74978
74979         * modules/getlogin_r, m4/getlogin_r.m4: New files.
74980         * lib/getlogin_r.c, getlogin_r.h: New files.
74981
74982 2005-05-25  Bruno Haible  <bruno@clisp.org>
74983             Derek Price  <derek@ximbiot.com>
74984
74985         * lib/getlogin_r.h: Simplify API documentation.
74986
74987 2005-05-23  Derek Price  <derek@ximbiot.com>
74988
74989         * modules/minmax (Files): Add m4/minmax.m4.
74990         (configure.ac): Add gl_MINMAX.
74991
74992 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
74993
74994         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
74995         so that unistd-safer.h (GPL'ed code) need not be included.
74996
74997 2005-05-22  Bruno Haible  <bruno@clisp.org>
74998
74999         * m4/minmax.m4: New file.
75000         Based on a patch by Derek Price <derek@ximbiot.com>.
75001
75002 2005-05-22  Bruno Haible  <bruno@clisp.org>
75003
75004         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
75005         (INT64_MIN): Fix definition.
75006         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
75007
75008         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
75009         NEED_SIGNED_INT_TYPES.
75010
75011         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
75012         HAVE_SYSTEM_INTTYPES.
75013
75014 2005-05-22  Bruno Haible  <bruno@clisp.org>
75015
75016         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
75017         Also include <sys/param.h> if it defines MIN, MAX.
75018         Based on a patch by Derek Price <derek@ximbiot.com>.
75019
75020 2005-05-21  Jim Meyering  <jim@meyering.net>
75021
75022         * modules/fts (Files): Add m4/inttypes-pri.m4.
75023         (Depends-on): Add lstat and remove gettext.  Alphabetize.
75024
75025 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75026
75027         New fts module.
75028         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
75029         (setup_dir, free_dir): New functions.
75030         (enter_dir, leave_dir): Define trivial
75031         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
75032         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
75033         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
75034         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
75035         Move to fts-cycle.c.
75036         (fts_open): Use setup_dir.
75037         (fts_close): Use free_dir.
75038         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
75039         This adds a label and some gotos, but the alternatives were messier.
75040         Check for memory allocation failure when entering a dir.
75041         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
75042         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
75043         (FTS): New member fts_cycle, that is a union that contains the
75044         old active_dir_ht and cycle_state.  All uses changed to mention
75045         fts_cycle.ht and fts_cycle.state.
75046         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
75047         fts.c, with the following changes:
75048         (setup_dir, free_dir): New functions.
75049         (enter_dir): Now returns bool.  Return true if successful, false
75050         if memory exhausted.  All callers changed.
75051         Do not bother partly cleaning up on
75052         memory allocation failure; that is free_dir's job.
75053         However, free ad if hash_insert fails, to avoid memory leak.
75054         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
75055         fts->fts_options to see which union member to use.
75056
75057 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75058
75059         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
75060         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
75061
75062 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75063
75064         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
75065
75066 2005-05-20  Jim Meyering  <jim@meyering.net>
75067
75068         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
75069         Now a macro, to pacify GCC.
75070
75071 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
75072
75073         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
75074         of -1.
75075
75076 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
75077
75078         * lib/chown.c (rpl_chown): Return -1 on failure.
75079
75080 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
75081
75082         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
75083         Don't check for stddef.h.
75084         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
75085         don't use its results.
75086         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
75087         since we include them unconditionally.  Don't require
75088         AM_STDBOOL_H, since stdbool is a prerequisite.
75089         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
75090         since we assume C89 or better.
75091         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
75092         as we don't use their results.
75093         Don't check for fchdir, memmove, memset, strrchr, as we use
75094         them unconditionally.
75095         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
75096         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
75097
75098 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
75099
75100         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
75101         Include <stddef.h> unconditionally, since we assume C89 now.
75102         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
75103         * lib/fts.c: Include fts_.h first, to check interface.
75104         Do not include intprops.h; no longer needed.
75105         Include cycle-check.h and hash.h, since fts_.h no longer does.
75106         Remove unnecessary casts of closedir to void.
75107         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
75108         decide whether to decrement nlinks.
75109         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
75110         (FTS): Use struct hash_table * instead of Hash_table, so that
75111         we no longer need to include hash.h here.
75112
75113 2005-05-18  Jim Meyering  <jim@meyering.net>
75114
75115         * modules/dirfd (License): Change to LGPL.  Most of the code
75116         is already in the public domain.
75117
75118 2005-05-18  Jim Meyering  <jim@meyering.net>
75119
75120         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
75121         Reported by Yoann Vandoorselaere.
75122
75123 2005-05-17  Jim Meyering  <jim@meyering.net>
75124
75125         * m4/fts.m4: New file, from coreutils.
75126
75127 2005-05-17  Jim Meyering  <jim@meyering.net>
75128
75129         * lib/fts.c, lib/fts_.h: New files, from coreutils.
75130
75131 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75132
75133         Sync from coreutils.
75134         * m4/unlinkdir.m4: New file.
75135
75136 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75137
75138         Sync from coreutils.
75139         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
75140         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
75141         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
75142         White space changes only.
75143         * lib/makepath.c (make_path): Port to hosts where leading "//" is
75144         special.
75145         * lib/yesno.c: Include getline.h, not ctype.h.
75146         (yesno): Don't remove leading white space; POSIX doesn't allow it.
75147         Use getline to remove arbitrary restriction on response length.
75148
75149 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75150
75151         * config/srclist-update: Spell out "Street" in FSF postal
75152         mail address; this is the style the FSF seems to prefer.
75153
75154         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
75155         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
75156         this updates FSF postal mail address.
75157
75158         Sync from coreutils.
75159         * modules/unlinkdir: New file.
75160         * modules/yesno (Depends-on): Add getline.
75161         * MODULES.html.sh (File system functions): Add unlinkdir.
75162
75163 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75164
75165         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
75166         lib/strsep.h:
75167         Change the initial comment to refer to GPL, not LGPL.
75168         gnulib-tool will change it to LGPL as needed.
75169
75170         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
75171         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
75172         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
75173         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
75174         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
75175         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
75176         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
75177         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
75178         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
75179         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
75180         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
75181         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
75182         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
75183         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
75184         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
75185         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
75186         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
75187         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
75188         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
75189         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
75190         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
75191         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
75192         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
75193         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
75194         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
75195         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
75196         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
75197         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
75198         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
75199         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
75200         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
75201         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
75202         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
75203         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
75204         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
75205         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
75206         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
75207         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
75208         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
75209         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
75210         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
75211         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
75212         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
75213         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
75214         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
75215         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
75216         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
75217         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
75218         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
75219         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
75220         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
75221         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
75222         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
75223         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
75224         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
75225         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
75226         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
75227         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
75228         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
75229         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
75230         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
75231         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
75232         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
75233         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
75234         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
75235         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
75236         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
75237         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
75238         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
75239         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
75240         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
75241         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
75242         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
75243         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
75244         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
75245         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
75246         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
75247         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
75248         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
75249         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
75250         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
75251         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
75252         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
75253         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
75254         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
75255         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
75256         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
75257         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
75258         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
75259         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
75260         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
75261         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
75262         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
75263         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
75264         lib/yesno.c, lib/yesno.h:
75265         Update FSF postal mail address.
75266
75267 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75268
75269         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
75270         tests/test-memmem.c, tests/test-stpncpy.c:
75271         Update FSF postal mail address.
75272
75273 2005-05-13  Bruno Haible  <bruno@clisp.org>
75274
75275         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
75276         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
75277         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
75278         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
75279         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
75280         Add support for 64-bit integers in the MSVC compiler.
75281
75282 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75283
75284         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
75285
75286 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
75287
75288         * gnulib-tool (func_import): Sort and uniquify recommended includes.
75289
75290 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
75291
75292         * doc/getdate.texi (General date syntax): Don't say that date
75293         date --iso-8601=ns generates acceptable dates; it doesn't yet.
75294         Problem reported by Nic Ferrier.
75295
75296 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75297
75298         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
75299         specified in ai_socktype. Fix invalid ai_protocol
75300         check. ai_protocol is usually set to 0 or depending on
75301         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
75302         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
75303         ai_socktype / ai_protocol in the returned addrinfo structure.
75304
75305 2005-05-10  Simon Josefsson  <jas@extundo.com>
75306
75307         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
75308         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75309
75310 2005-05-10  Karl Berry  <karl@gnu.org>
75311
75312         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
75313         (from http://www.gnu.org/licenses).
75314         * doc/COPYING.LIB: also rename to COPYING.LESSER.
75315         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
75316         fdl.texi suffices.
75317
75318 2005-05-10  Karl Berry  <karl@gnu.org>
75319
75320         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
75321         (COPYING.DOC): remove.
75322
75323         * config/srclist-update: new FSF address.
75324
75325 2005-05-10  Derek Price  <derek@ximbiot.com>
75326
75327         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
75328         possible.
75329
75330 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75331             Bruno Haible  <bruno@clisp.org>
75332
75333         * modules/inet_ntop: New file.
75334         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75335         inet_ntop.
75336
75337 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75338             Bruno Haible  <bruno@clisp.org>
75339
75340         * m4/inet_ntop.m4: New file.
75341
75342 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75343             Bruno Haible  <bruno@clisp.org>
75344
75345         * lib/inet_ntop.h: New file.
75346         * lib/inet_ntop.c: New file, from glibc with modifications.
75347
75348 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
75349
75350         * modules/time_r (License): Change to LGPL.
75351         * modules/extensions (License): Change to LGPL.  Actually,
75352         the license is more permissive than that, but currently gnulib-tool
75353         doesn't know how to handle more-permissive licenses.
75354
75355         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
75356         Problem reported by Dave Love.
75357
75358 2005-05-08  Jim Meyering  <jim@meyering.net>
75359
75360         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
75361         blank.
75362
75363 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
75364
75365         * modules/argmatch (Depends-on): Add stdbool.
75366         * modules/backupfile (Depends-on): Likewise.
75367         * modules/chdir-long (Depends-on): Likewise.
75368         * modules/closeout (Depends-on): Likewise.
75369         * modules/cycle-check (Depends-on): Likewise.
75370         * modules/dirname (Depends-on): Likewise.
75371         * modules/fnmatch (Depends-on): Likewise.
75372         * modules/fsusage (Depends-on): Likewise.
75373         * modules/fwriteerror (Depends-on): Likewise.
75374         * modules/getcwd (Depends-on): Likewise.
75375         * modules/getloadavg (Depends-on): Likewise.
75376         * modules/hard-locale (Depends-on): Likewise.
75377         * modules/makepath (Depends-on): Likewise.
75378         * modules/mountlist (Depends-on): Likewise.
75379         * modules/nanosleep (Depends-on): Likewise.
75380         * modules/posixtm (Depends-on): Likewise.
75381         * modules/quotearg (Depends-on): Likewise.
75382         * modules/readtokens (Depends-on): Likewise.
75383         * modules/readtokens0 (Depends-on): Likewise.
75384         * modules/readutmp (Depends-on): Likewise.
75385         * modules/save-cwd (Depends-on): Likewise.
75386         * modules/strftime (Depends-on): Likewise.
75387         * modules/userspec (Depends-on): Likewise.
75388         * modules/utimecmp (Depends-on): Likewise.
75389         * modules/xgetcwd (Depends-on): Likewise.
75390         * modules/xnanosleep (Depends-on): Likewise.
75391         * modules/xstrtod (Depends-on): Likewise.
75392         * modules/yesno (Depends-on): Likewise.
75393
75394 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
75395
75396         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
75397         needless checks.
75398
75399 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75400
75401         Merge from coreutils.  Among other things,
75402         add bulletproofing for cases where stdin, stdout, or stderr are closed.
75403         * lib/fd-safer.c: New file.
75404         * lib/fcntl-safer.h, open-safer.c: Remove.
75405         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
75406         * lib/dup-safer.c: Include unistd-safer.h first.
75407         Don't include errno.h.
75408         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
75409         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
75410         * lib/file-type.c: Rely on file-type.h change.
75411         * lib/getloadavg.c: Include unistd-safer.h.
75412         (getloadavg): Use safer open.
75413         * lib/getusershell.c: Include "stdio-safer.h".
75414         (getusershell): Use safer fopen.
75415         * lib/long-options.c (long_options): Use NULL rather than 0.
75416         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
75417         'free'.
75418         * lib/modechange.c: Likewise.
75419         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
75420         (MODE_DONE): New constant.
75421         (struct mode_change): Remove 'next' member.
75422         (make_node_op_equals): New function; like the old one of the
75423         same name, except it allocates an array.
75424         (mode_compile, mode_create_from_ref): Use it.
75425         (mode_compile): Allocate result as an array, not a linked list.
75426         Parse octal string ourself, so that we catch mistakes like "+0".
75427         (mode_adjust): Arg is an array, not a linked list.
75428         * lib/modechange.c: Include stat-macros.h, xalloc.h.
75429         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
75430         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
75431         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
75432         Remove.  This is now stat-macros.h's job.
75433         (talloc): Remove.  All callers replaced by xalloc, so that
75434         our invokers don't have to worry about reporting memory failures.
75435         (make_node_op_equals): Remove.
75436         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
75437         New constants.
75438         (struct mode_change): Moved here from modechange.h.
75439         (mode_append_entry): Remove.
75440         (mode_compile): Remove MASKED_OPS arg, since it encouraged
75441         apps to have incorrect behavior.  Use simpler algorithm for head
75442         and tail.  Don't futz with umask; that's now the job of mode_adjust.
75443         Detect more invalid usages rather than having somewhat-random behavior.
75444         Don't insert an "a=" action, as that leads to incorrect behavior.
75445         (mode_compile, mode_create_from_ref): Return NULL on error instead
75446         of an enum, since now there's only one way to have an error.  All
75447         callers changed.
75448         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
75449         at the correct time.  Simplify calculation of "+u" and its ilk.
75450         Don't mishandle "+X".
75451         (mode_free): Remove "register" and localize decls.
75452         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
75453         (struct mode_change): Move to modechange.c; callers don't
75454         need to see this stuff.
75455         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
75456         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
75457         (mode_change, mode_adjust): Reflect the new signatures noted above.
75458         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
75459         that might redefine system include files.
75460         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
75461         (my_usleep): Use NULL rather than (void *) 0.
75462         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
75463         Use siginterrupt to specify that system calls should be interrupted.
75464         (rpl_nanosleep): Move initialization of suspended closer to call of
75465         my_usleep.
75466         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
75467         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
75468         (desirable_utmp_entry): New function.
75469         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
75470         using x2nrealloc, to simplify logic.
75471         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
75472         size calculation.  Do not assume utmp file is a regular file.
75473         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
75474         (READ_UTMP_CHECK_PIDS): New constant.
75475         * lib/save-cwd.c: Include unistd-safer.h.
75476         (save_cwd): Use fd_safer.
75477         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
75478         [!_LIBC] Include "stat-macros.h" instead.
75479         * lib/unistd-safer.h (fd_safer): New decl.
75480
75481 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75482
75483         * modules/getloadavg (Depends-on): Add unistd-safer.
75484         * modules/getusershell (Depends-on): Add stdio-safer.
75485         * modules/lstat (Depends-on): Remove xalloc.
75486         * modules/mkstemp (Depends-on): Add stat-macros.
75487         * modules/modechange (Depends-on): Remove xstrtol.
75488         Add stat-macros, xalloc.
75489         * modules/save-cwd (Depends-on): Add unistd-safer.
75490         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
75491         * modules/unistd-safer (Files): Add lib/fd-safer.c
75492         (Makefile.am): Remove lib_SOURCES.
75493
75494         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
75495         Remove fcntl-safer; unistd-safer supersedes it.
75496
75497 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75498
75499         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
75500         AC_HEADER_STAT.
75501         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
75502         (gl_PREREQ_CHOWN): Remove.
75503         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
75504         it.  Don't require AC_HEADER_STAT.
75505         (gl_PREREQ_LSTAT): Remove.
75506         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
75507         Don't require AC_HEADER_STAT.
75508         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
75509         (gl_PREREQ_RMDIR): Remove.
75510         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
75511         mention stat-macros.h or AC_HEADER_STAT, since we'll make
75512         the stat-macros module a prerequisite.
75513         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
75514         * m4/filemode.m4 (gl_FILEMODE): Likewise.
75515         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
75516         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
75517         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
75518         variable names.
75519         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
75520         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
75521         variable prefixes.
75522         * m4/fcntl-safer.m4: Remove.
75523         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
75524         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
75525         Invoke gl_PREREQ_FD_SAFER.
75526         (gl_PREREQ_FD_SAFER): New macro.
75527         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
75528         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
75529         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
75530         Remove duplicate call to AC_LIBOBJ(readutmp).
75531         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
75532
75533         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
75534         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
75535
75536 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75537
75538         * MODULES.html.sh (Misc): Add byteswap.
75539
75540 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75541
75542         * modules/getcwd (Depends-on): Add extensions.
75543         * modules/openat (Depends-on): Likewise.
75544
75545 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75546
75547         * modules/byteswap: New file.
75548
75549 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75550
75551         * m4/byteswap.m4: New file.
75552
75553 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75554
75555         * lib/byteswap_.h: New file.
75556
75557 2005-04-25  Karl Berry  <karl@gnu.org>
75558
75559         * m4/gettext.m4: Update from GNU gettext 0.14.4.
75560
75561 2005-04-25  Albert Chin  <china@thewrittenword.com>
75562
75563         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
75564         Toolkit C bug.
75565
75566 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
75567
75568         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
75569         (func_ln_if_changed): Remove forcibly for no error message
75570         in case file does not exist.
75571
75572 2005-04-19  Simon Josefsson  <jas@extundo.com>
75573
75574         * gnulib-tool (Options): Make --symlink mean --symbolic.
75575
75576 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
75577
75578         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
75579
75580 2005-04-16  Simon Josefsson  <jas@extundo.com>
75581
75582         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
75583
75584 2005-04-15  Simon Josefsson  <jas@extundo.com>
75585
75586         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
75587
75588 2005-04-15  Simon Josefsson  <jas@extundo.com>
75589
75590         * gnulib-tool: Rename --symlink to --symbolic.
75591
75592 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
75593
75594         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
75595         symbolic links to files instead of copying/moving.  Add --aux-dir,
75596         specifying directory relative --dir where auxiliary build tools
75597         are placed.
75598
75599 2005-04-14  Bruno Haible  <bruno@clisp.org>
75600
75601         * modules/allocsa (License): Change to LGPL.
75602         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
75603
75604 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
75605
75606         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
75607         that "UTC +1 second" continues to work.  Problem reported
75608         by Dmitry V. Levin.
75609         (relunit_snumber): New rule.
75610         (relunit): Use it.
75611
75612 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
75613
75614         * lib/getdate.y (universal_time_zone_table): New constant.
75615         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
75616         universal_time_zone_table.
75617         (lookup_zone): Prefer universal_time_zone_table to
75618         local_time_zone_table, so that "GMT" time stamps are allowed in
75619         London during the summer.  Problem reported by Ian Abbott.
75620
75621 2005-04-12  Jim Meyering  <jim@meyering.net>
75622
75623         * lib/human.c (humblock): Set *options even when returning due to
75624         xstrtoumax conversion failure.  Thanks to a used-uninitialized
75625         warning from gcc-4.
75626
75627 2005-04-09  Jim Meyering  <jim@meyering.net>
75628
75629         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
75630         -Wuninitialized: initialize tm0.tm_year.
75631
75632 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
75633
75634         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
75635         count, since there's no maximum.  All uses changed.
75636         Add member dsts_seen.
75637         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
75638         not being INT_MAX.
75639         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
75640         Use pc_rels_seen to decide whther a date is absolute.
75641
75642         * lib/getdate.y (number): Don't overwrite year.
75643         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
75644         check.
75645
75646 2005-04-02  Simon Josefsson  <jas@extundo.com>
75647
75648         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
75649         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
75650
75651 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
75652
75653         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
75654         where no absolute path name can be longer than PATH_MAX.
75655
75656 2005-03-27  Jim Meyering  <jim@meyering.net>
75657
75658         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
75659
75660 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
75661
75662         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
75663         "one's complement" -> "ones' complement" in comment, as per Knuth.
75664         "value of type" -> "type or expression" in comment.
75665         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
75666
75667 2005-03-26  Jim Meyering  <jim@meyering.net>
75668
75669         Comment nits.
75670         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
75671         Correct typos: s/or/of/.
75672
75673 2005-03-26  Jim Meyering  <jim@meyering.net>
75674
75675         * modules/check-include-files: Move to ../ and rename to...
75676         * check-module: ...this.
75677
75678 2005-03-25  Jim Meyering  <jim@meyering.net>
75679
75680         * modules/xvasprintf (Files): Add xalloc.h.
75681
75682 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
75683
75684         * modules/gettext (Files): config/config.rpath ->
75685         build-aux/config.rpath
75686         * modules/iconv (Files): Likewise.
75687         Problem reported by Oskar Liljeblad.
75688
75689 2005-03-23  Jim Meyering  <jim@meyering.net>
75690
75691         * modules/check-include-files: New script to check for
75692         missing dependencies, multiple includes, etc.
75693
75694         * modules/c-strtold (Depends-on): Add xalloc.
75695         * modules/c-strtod (Depends-on): Add xalloc.
75696         * modules/hash (Depends-on): Add xalloc.
75697         (Files): Remove lib/xalloc.h.
75698
75699         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
75700         * modules/userspec (Files): Add lib/inttostr.h.
75701
75702 2005-03-23  Jim Meyering  <jim@meyering.net>
75703
75704         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
75705
75706 2005-03-22  Jim Meyering  <jim@meyering.net>
75707
75708         * modules/stat-macros: New module.
75709         * modules/canonicalize, modules/euidaccess, modules/file-type,
75710         * modules/filemode, modules/lchown, modules/makepath,
75711         * modules/rmdir, modules/stat: Depend on new stat-macros module
75712         rather than listing lib/stat-macros.h manually.
75713         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
75714
75715 2005-03-22  Jim Meyering  <jim@meyering.net>
75716
75717         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
75718
75719 2005-03-22  Bruno Haible  <bruno@clisp.org>
75720
75721         * config/srclist.txt: Replace target directory 'config' with
75722         'build-aux'.
75723         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
75724         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
75725         ../build-aux/.
75726
75727 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
75728
75729         * modules/chdir-long (Depends-on): Add mempcpy.
75730
75731         * modules/acl, modules/backupfile, modules/c-strtod,
75732         modules/c-strtold, modules/canon-host, modules/canonicalize,
75733         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
75734         modules/exclude, modules/exitfail, modules/file-type,
75735         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
75736         modules/getdate, modules/getline, modules/getpagesize,
75737         modules/getpass, modules/getugroups, modules/group-member,
75738         modules/hard-locale, modules/hash, modules/human, modules/idcache,
75739         modules/inttostr, modules/long-options, modules/makepath,
75740         modules/md5, modules/memcasecmp, modules/memcoll,
75741         modules/modechange, modules/mountlist, modules/path-concat,
75742         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
75743         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
75744         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
75745         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
75746         modules/strftime, modules/strndup, modules/strverscmp,
75747         modules/timespec, modules/unlocked-io, modules/userspec,
75748         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
75749         modules/yesno:
75750         Remove lib_SOURCES line from Makefile.am section, as this is now
75751         done automatically by the corresponding Autoconf macro.
75752
75753 2005-03-21  Jim Meyering  <jim@meyering.net>
75754
75755         Changes imported from coreutils.
75756
75757         * lib/cycle-check.c: Don't include xalloc.h.
75758
75759         * lib/path-concat.c: Don't include assert.h.
75760         (path_concat): Remove assertion that would have triggered
75761         for ABASE starting with more than one slash.
75762         Reported by Andreas Schwab.
75763
75764         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
75765         properly when ABASE is an absolute file name.
75766         Correct the description of this function.
75767         Include <assert.h>.
75768         Add an assertion and a test driver.
75769         This fixes a bug introduced on 2004-07-02.
75770         Andreas Schwab reported the resulting failure of cp --parents:
75771         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
75772
75773 2005-03-21  Jim Meyering  <jim@meyering.net>
75774
75775         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
75776         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
75777
75778 2005-03-21  Jim Meyering  <jim@meyering.net>
75779         and  Paul Eggert  <eggert@cs.ucla.edu>
75780
75781         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
75782         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
75783         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
75784         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
75785         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
75786         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
75787         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
75788         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
75789         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
75790         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
75791         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
75792         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
75793         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
75794         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
75795         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
75796         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
75797         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
75798         for these modules.
75799
75800 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
75801
75802         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
75803         (which shouldn't happen), generate nothing instead of returning 0
75804         immediately, so that nstrftime (NULL, ...) doesn't return 0.
75805
75806 2005-03-16  Bruno Haible  <bruno@clisp.org>
75807
75808         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
75809         HAVE_LONGLONG_64BIT.
75810
75811 2005-03-16  Bruno Haible  <bruno@clisp.org>
75812
75813         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
75814         HAVE_LONGLONG_64BIT.
75815
75816 2005-03-16  Bruno Haible  <bruno@clisp.org>
75817
75818         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
75819         HAVE_LONGLONG_64BIT.
75820
75821 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
75822
75823         * lib/strftime.c (my_strftime): Prepend space to format so that we can
75824         reliably distinguish strftime failure from empty output on POSIX
75825         hosts.
75826
75827 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
75828
75829         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
75830         (iconv_string): Don't guess a size-zero buffer, as that might cause
75831         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
75832         result would be 'too large', where 'too large' is (heuristically)
75833         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
75834         overflow concerns.  This will prevent some unwanted malloc failures
75835         when the inputs are very large.
75836
75837 2005-03-15  Karl Berry  <karl@gnu.org>
75838
75839         * config/srclist.txt (config.rpath): from gettext.
75840         * config/config.rpath: update.
75841
75842 2005-03-15  Bruno Haible  <bruno@clisp.org>
75843
75844         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
75845         to 'negate'.
75846
75847         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
75848         variable.
75849
75850         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
75851         results.
75852
75853 2005-03-14  Simon Josefsson  <jas@extundo.com>
75854
75855         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
75856         <fx@gnu.org>.
75857
75858 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
75859
75860         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
75861         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
75862         intprops.h.
75863         * lib/strtol.c: Likewise.
75864
75865 2005-03-14  Jim Meyering  <jim@meyering.net>
75866
75867         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
75868         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
75869         to be nonzero so that we (and caller) can detect the difference
75870         between a valid zero-length expansion and an error return, even
75871         when the underlying strftime fails before writing anything into
75872         that location.
75873
75874 2005-03-14  Bruno Haible  <bruno@clisp.org>
75875
75876         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
75877         Update from GNU gettext 0.14.3.
75878
75879 2005-03-10  Jim Meyering  <jim@meyering.net>
75880
75881         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
75882
75883 2005-03-10  Jim Meyering  <jim@meyering.net>
75884
75885         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
75886         so that this module works on systems without fchdir.
75887
75888 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
75889
75890         Factor int-properties macros into a single file, except for
75891         glibc-related files.
75892         * lib/intprops.h: New file.
75893         * lib/getloadavg.c: Include it instead of limits.h.
75894         (INT_STRLEN_BOUND): Remove.
75895         * lib/human.c: Include intprops.h.
75896         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
75897         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
75898         302/1000.
75899         * lib/inttostr.h: Include intprops.h instead of limits.h.
75900         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
75901         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
75902         for consistency with intprops.h.
75903         (time_t_is_integer, twos_complement_arithmetic): Use them.
75904         * lib/sig2str.h: Include <signal.h>, intprops.h.
75905         (INT_STRLEN_BOUND): Remove.
75906         * lib/strftime.c (TYPE_SIGNED): Remove.
75907         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
75908         * lib/strtol.c: Adjust comments to match intprops.h.
75909         * lib/userspec.c: Include intprops.h.
75910         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
75911         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
75912         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
75913         instead of rolling our own expressions.
75914         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
75915
75916         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
75917         instead of int.
75918         (my_strftime): Do not mishandle years close to INT_MAX, by doing
75919         the right thing even if adding 1900 would overflow.  Similarly
75920         for tm_mon + 1 and tm_yday + 1.
75921         Make %Y always equivalent to %C%y, and similarly for %G and %g.
75922         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
75923         (DO_SIGNED_NUMBER): New macro.
75924         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
75925
75926 2005-03-07  Bruno Haible  <bruno@clisp.org>
75927
75928         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
75929
75930 2005-03-07  Bruno Haible  <bruno@clisp.org>
75931
75932         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
75933
75934 2005-03-04  Derek R. Price  <derek@ximbiot.com>
75935
75936         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
75937         (func_import): Only replace files via --import when they have actually
75938         changed.
75939
75940 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75941
75942         * m4/mmap-anon.m4: New file.
75943         * m4/pagealign_alloc.m4: New file.
75944
75945 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75946             Bruno Haible  <bruno@clisp.org>
75947
75948         * modules/pagealign_alloc: New file.
75949         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
75950
75951 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75952             Bruno Haible  <bruno@clisp.org>
75953
75954         * lib/pagealign_alloc.h: New file.
75955         * lib/pagealign_alloc.c: New file.
75956
75957 2005-03-03  Bruno Haible  <bruno@clisp.org>
75958
75959         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
75960         Use an all-permissive copyright notice, recommended by RMS.
75961
75962 2005-03-02  Bruno Haible  <bruno@clisp.org>
75963
75964         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
75965         of AIX, the replacement has to be done only after <string.h> is
75966         included, therefore not in config.h. stpncpy.h does the replacement,
75967         and stpncpy.c uses it.
75968
75969 2005-03-02  Bruno Haible  <bruno@clisp.org>
75970
75971         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
75972         stpncpy.c uses it.
75973
75974 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75975
75976         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
75977         The workaround isn't strictly needed for POSIX conformance, and
75978         it's too much of a pain to configure and maintain.  We'll ask
75979         people to fix their kernels instead.
75980         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
75981         (NANOSLEEP_BUG_WORKAROUND): Remove.
75982         (xnanosleep): Remove the workaround.
75983
75984 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75985
75986         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
75987         Reported by Derek Price.
75988         (Include): Add "timespec.h".
75989
75990         * modules/xnanosleep (Depends-on): Remove gethrxtime.
75991
75992 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75993
75994         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
75995         to detect nanosleep bug.
75996
75997 2005-03-01  Bruno Haible  <bruno@clisp.org>
75998
75999         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
76000
76001 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
76002
76003         * modules/gethrxtime: New file.
76004         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
76005         (Depends-on): Add gethrxtime.
76006         (configure.ac): Add gl_XNANOSLEEP.
76007         (Makefile.am): Remove lib_SOURCES line.
76008
76009 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76010
76011         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
76012         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
76013
76014 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76015
76016         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
76017         * lib/timespec.h (gettime): Return void, since it always
76018         succeeds now.  All uses changed.
76019         * lib/gettime.c (gettime): Likewise.
76020         [HAVE_NANOTIME]: Prefer nanotime.
76021         Assume gettimeofday succeeds, as POSIX requires.
76022         Assime time () succeeds, since other code already does.
76023         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
76024         (timespec_subtract): Remove.
76025         (NANOSLEEP_BUG_WORKAROUND): New constant.
76026         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
76027         things considerably.  Use it only on GNU/Linux hosts, since the
76028         workaround shouldn't be needed elsewhere.
76029
76030 2005-02-24  Bruno Haible  <bruno@clisp.org>
76031
76032         * modules/gettext (Files): Add m4/glibc2.m4.
76033
76034 2005-02-24  Bruno Haible  <bruno@clisp.org>
76035
76036         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
76037         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
76038         * m4/progtest.m4:
76039         Update from GNU gettext 0.14.2.
76040         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
76041
76042 2005-02-24  Bruno Haible  <bruno@clisp.org>
76043
76044         * lib/localcharset.c: Update from GNU gettext 0.14.2.
76045         * lib/config.charset: Update from GNU gettext 0.14.2.
76046
76047 2005-02-24  Bruno Haible  <bruno@clisp.org>
76048
76049         * lib/gettext.h: Update from GNU gettext 0.14.2.
76050
76051 2005-02-23  Simon Josefsson  <jas@extundo.com>
76052
76053         * m4/iconvme.m4: New file.
76054
76055 2005-02-23  Jim Meyering  <jim@meyering.net>
76056
76057         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
76058         change.
76059         Thanks to Bruno Haible for catching it.
76060
76061 2005-02-22  Simon Josefsson  <jas@extundo.com>
76062
76063         * modules/iconvme: New file.
76064
76065         * MODULES.html.sh: Add iconvme.
76066
76067 2005-02-22  Simon Josefsson  <jas@extundo.com>
76068
76069         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
76070
76071 2005-02-22  Simon Josefsson  <jas@extundo.com>
76072
76073         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
76074
76075 2005-02-22  Jim Meyering  <jim@meyering.net>
76076
76077         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
76078         s/ifndef/ifdef/.
76079
76080 2005-02-20  Neil Conway  <neilc@samurai.com>
76081
76082         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
76083         returned by OSX/Darwin if the specified buffer is not large
76084         enough for the hostname.
76085
76086 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76087
76088         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
76089         pass it to _help, otherwise the latter coredumps trying to
76090         dereference state.root_argp.
76091
76092 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76093
76094         * modules/chdir-long (Depends-on): Add memrchr.
76095         * modules/memrchr (Files): Add lib/memrchr.h.
76096         (Include): "memrchr.h".
76097
76098 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76099
76100         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
76101
76102 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76103
76104         * lib/memrchr.h: New file.
76105         * lib/chdir-long.c: Include it.
76106         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
76107         Don't bother including stddef.h.
76108
76109 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
76110
76111         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
76112         inclusion.
76113         Include <sys/types.h>, for dev_t.
76114         (ME_DUMMY, ME_REMOTE): Move from here....
76115         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
76116         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
76117         Dmitry V. Levin.
76118         Include mountlist.h first, to test the interface.
76119
76120 2005-01-29  Bruno Haible  <bruno@clisp.org>
76121
76122         * lib/progname.c (program_name): Initialize.
76123         Needed when linking statically on MacOS X.
76124
76125 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
76126
76127         Sync from coreutils.
76128         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
76129         (Depends-on): Add c-strtod.
76130         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
76131
76132 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
76133
76134         Sync from coreutils.
76135         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
76136
76137         Remove files that are specific to coreutils.
76138         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
76139
76140 2005-01-28  Bruno Haible  <bruno@clisp.org>
76141
76142         * modules/javacomp: New file.
76143         * MODULES.html.sh (Java): Add javacomp.
76144
76145 2005-01-28  Bruno Haible  <bruno@clisp.org>
76146
76147         * m4/javacomp.m4: New file, from GNU gettext.
76148
76149 2005-01-28  Bruno Haible  <bruno@clisp.org>
76150
76151         * lib/javacomp.sh.in: New file, from GNU gettext.
76152         * lib/javacomp.h: New file, from GNU gettext.
76153         * lib/javacomp.c: New file, from GNU gettext.
76154
76155 2005-01-26  Simon Josefsson  <jas@extundo.com>
76156
76157         * lib/gai_strerror.c: Use GPL in header.
76158
76159 2005-01-26  Bruno Haible  <bruno@clisp.org>
76160
76161         * modules/javaexec: New file.
76162         * MODULES.html.sh (Java): Add javaexec.
76163
76164 2005-01-26  Bruno Haible  <bruno@clisp.org>
76165
76166         * m4/javaexec.m4: New file, from GNU gettext.
76167
76168 2005-01-26  Bruno Haible  <bruno@clisp.org>
76169
76170         * lib/javaexec.sh.in: New file, from GNU gettext.
76171         * lib/javaexec.h: New file, from GNU gettext.
76172         * lib/javaexec.c: New file, from GNU gettext.
76173
76174 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76175
76176         * modules/lchown (Depends-on): Remove lchown.h
76177
76178 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76179
76180         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
76181         must be defined if the header file was not found, in order
76182         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
76183
76184 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76185
76186         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
76187         initializers for struct pentry_state.
76188         (__argp_error): Check return value of __asprintf
76189         (__argp_failure): Translate error message
76190
76191         * lib/argp-parse.c: Removed braces around the expansion of N_()
76192
76193 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
76194
76195         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
76196         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
76197         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
76198         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
76199         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
76200         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
76201         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
76202         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
76203         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
76204         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
76205         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
76206         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
76207         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
76208         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
76209         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
76210         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
76211         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
76212         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
76213         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
76214         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
76215         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
76216         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
76217         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
76218         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
76219         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
76220         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
76221         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
76222         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
76223         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
76224         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
76225         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
76226         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
76227         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
76228         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
76229         xstrtol.m4, xstrtoumax.m4, yesno.m4:
76230         Use an all-permissive copyright notice, recommended by RMS.
76231
76232 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
76233
76234         * modules/chdir-long (Depends-on): Remove mempcpy.
76235
76236 2005-01-21  Jim Meyering  <jim@meyering.net>
76237
76238         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
76239         same value as for Solaris 9.
76240
76241         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
76242         component length.  This included changing the parameter to be
76243         of type `char *' rather than `char const *'.
76244         * lib/chdir-long.h (chdir_long): Update prototype.
76245
76246         * lib/openat.c (fdopendir, fstatat): New functions.
76247         * lib/openat.h: Include headers required for use of DIR and struct
76248         stat.
76249         [AT_SYMLINK_NOFOLLOW]: Define.
76250         (fdopendir, fstatat): Add prototypes.
76251
76252 2005-01-21  Bruno Haible  <bruno@clisp.org>
76253
76254         * modules/classpath: New file.
76255         * MODULES.html.sh (Java): Add classpath.
76256
76257 2005-01-21  Bruno Haible  <bruno@clisp.org>
76258
76259         * lib/classpath.h: New file, from GNU gettext.
76260         * lib/classpath.c: New file, from GNU gettext.
76261
76262 2005-01-20  Simon Josefsson  <jas@extundo.com>
76263
76264         * modules/version-etc-fsf: New file.
76265
76266 2005-01-20  Simon Josefsson  <jas@extundo.com>
76267
76268         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
76269         * lib/version-etc.c: Remove version_etc_copyright.
76270         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
76271         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
76272
76273 2005-01-20  Simon Josefsson  <jas@extundo.com>
76274
76275         * lib/base64.h (isbase64): Add.
76276
76277         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
76278         using a unsigned prototype, don't inline.
76279         (base64_decode): Use it.
76280
76281 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76282
76283         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
76284         it.
76285
76286 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76287
76288         * lib/save-cwd.c (save_cwd): Remove code to support the case
76289         where fchdir is missing or flaky.
76290
76291 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76292
76293         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
76294
76295 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
76296
76297         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
76298         AC_LIBSOURCES now does this.
76299         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
76300         with new ullong_max module.
76301
76302 2005-01-19  Bruno Haible  <bruno@clisp.org>
76303
76304         * modules/sh-quote: New file.
76305         * MODULES.html.sh (Executing programs): Add sh-quote.
76306
76307 2005-01-19  Bruno Haible  <bruno@clisp.org>
76308
76309         * lib/sh-quote.h: New file, from GNU gettext.
76310         * lib/sh-quote.c: New file, from GNU gettext.
76311
76312 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76313
76314         Merge from coreutils.
76315         * m4/ullong_max.m4: New file.
76316         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
76317         (gl_MACROS): Assume localeconv exists.
76318
76319 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76320
76321         Merge changes from coreutils, as described below in several
76322         changelogs dated today.
76323
76324         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
76325         (O_DIRECTORY): Remove; not needed here, since "." must be
76326         a directory.  All uses removed.
76327         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
76328         universal on Suns, and we also need to test for IRIX.
76329         Revamp code to use 'if' rather than '#if'.
76330         Avoid unnecessary comparison of cwd->desc to 0.
76331
76332         * lib/utimens.c (futimens): Robustify the previous patch, by checking
76333         for known valid error numbers rather than observed invalid ones.
76334
76335 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76336
76337         * modules/ullong_max: New file.
76338
76339         * modules/chdir-long, modules/openat: New files.
76340         * modules/save-cwd (Depends-on): Depend on chdir-long.
76341         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
76342
76343 2005-01-18  Jim Meyering  <jim@meyering.net>
76344
76345         Merge from coreutils.
76346         * m4/chdir-long.m4, m4/openat.m4: New files.
76347         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
76348         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
76349         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
76350         is sane and DOES follow symlinks.  Besides, testing 20 different
76351         systems found no broken chown implementations.
76352         Prompted by a change in rsync's copy of this macro.
76353         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
76354
76355         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
76356
76357         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
76358         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
76359         NULL-means-set-to-current-time semantics.
76360         Remove temporary file immediately, rather than waiting
76361         for configure's at-exit trap code to do it.
76362
76363 2005-01-18  Jim Meyering  <jim@meyering.net>
76364
76365         * lib/version-etc.c (version_etc_copyright): Update copyright date.
76366
76367         * lib/utimens.c (futimens): Account for the fact that futimes
76368         can also fail with errno == ENOSYS or errno == ENOENT.
76369         Patch from Dmitry V. Levin.
76370
76371         Change the name of the robust chdir function from chdir to chdir_long.
76372         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
76373         (restore_cwd): Use chdir_long, not chdir.
76374         * lib/chdir-long.c: Renamed from chdir.c.
76375         * lib/chdir-long.h: Renamed from chdir.h.
76376         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
76377         Hurd.
76378
76379 2005-01-18  Bruno Haible  <bruno@clisp.org>
76380
76381         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
76382         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
76383         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
76384         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
76385         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
76386         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
76387         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
76388         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
76389         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
76390         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
76391         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
76392         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
76393         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
76394         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
76395         Use an all-permissive copyright notice, recommended by RMS.
76396
76397 2005-01-18  Bob Proulx  <bob@proulx.com>
76398
76399         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
76400         simplify offsetof() macro construct to avoid compile failure with
76401         native HP-UX 11.0 ANSI C compiler.
76402
76403 2005-01-17  Bruno Haible  <bruno@clisp.org>
76404
76405         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
76406         redundant because stpncpy.m4 takes care of it.
76407
76408 2005-01-17  Bruno Haible  <bruno@clisp.org>
76409
76410         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
76411
76412 2005-01-17  Bruno Haible  <bruno@clisp.org>
76413
76414         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
76415         used.
76416
76417 2005-01-17  Bruno Haible  <bruno@clisp.org>
76418
76419         * lib/fwriteerror.h (fwriteerror): Change specification to include
76420         fclose.
76421         * lib/fwriteerror.c: Include <stdbool.h>.
76422         (fwriteerror): At the end, close the file stream. Record whether
76423         stdout was already closed.
76424
76425 2005-01-17  Bruno Haible  <bruno@clisp.org>
76426
76427         * lib/execute.c (environ): Declare if needed.
76428         * lib/pipe.c (environ): Likewise.
76429         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
76430
76431 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76432
76433         * modules/argp: Depend on vsnprintf
76434
76435 2005-01-10  Jim Meyering  <jim@meyering.net>
76436
76437         * modules/closeout (Depends-on): Add atexit.
76438
76439 2005-01-06  Bruno Haible  <bruno@clisp.org>
76440
76441         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
76442
76443 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76444
76445         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
76446         definitions to be after all include files, to avoid collisions.
76447         Problem reported by Bob Proulx.
76448
76449 2005-01-04  Jim Meyering  <jim@meyering.net>
76450
76451         Changes imported from coreutils.
76452         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
76453         as the mkstemp template, use a temporary directory and an
76454         8.3-friendly template to avoid trouble on systems like DJGPP.
76455         Reported by Juan M. Guerrero via Stepan Kasal.
76456         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
76457         close. Remove the temporary directory right away, rather than waiting
76458         for configure's at-exit trap code to do it.
76459         Suggestion from Stepan Kasal.
76460
76461 2005-01-01  Simon Josefsson  <jas@extundo.com>
76462
76463         * gnulib-tool: Print #include directives when --import'ing.
76464
76465 2004-12-28  Simon Josefsson  <jas@extundo.com>
76466
76467         * tests/test-base64.c: Include required header files.  Remove
76468         unused variables.
76469
76470 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76471
76472         * modules/error (Depends-on): Remove gettext.
76473
76474 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76475
76476         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
76477         not needed.  This removes a dependency on the gettext module.
76478         [defined _LIBC]: Do not include <libintl.h>; not needed.
76479
76480 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
76481
76482         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
76483         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
76484
76485 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
76486
76487         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
76488         HAVE_DECL_STRTOLD.
76489
76490 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76491
76492         * modules/getdate (Depends-on): Remove alloca-opt.
76493
76494 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76495
76496         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
76497
76498 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76499
76500         * lib/argp-parse.c: Include <stddef.h>.
76501         (alignof, alignto): New macros.
76502         (parser_init): Don't assume that void * is aligned sufficiently
76503         for struct option.
76504
76505         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
76506         need to extend the stack.
76507         (YYINITDEPTH): New macro, so that the initial stack isn't overly
76508         large.
76509
76510 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76511
76512         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
76513
76514 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
76515
76516         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
76517         (2004-10-24) change.  Apparently this was a false alarm.
76518
76519         * modules/getdate: Depend on alloca-opt, not alloca.
76520
76521 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
76522
76523         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
76524         Remove now-obsolete comment about AIX.
76525         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
76526         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
76527         (YYMAXDEPTH): New macro.
76528
76529 2004-12-18  Simon Josefsson  <jas@extundo.com>
76530
76531         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
76532
76533 2004-12-18  Bruno Haible  <bruno@clisp.org>
76534
76535         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
76536
76537 2004-12-18  Bruno Haible  <bruno@clisp.org>
76538
76539         * lib/fatal-signal.c (fatal_signals): Make non-const.
76540         (init_fatal_signals): New function.
76541         (uninstall_handlers, install_handlers): Ignore signals that were set to
76542         SIG_IGN.
76543         (at_fatal_signal): Call init_fatal_signals.
76544         (init_fatal_signal_set): Likewise. Ignore signals that were set to
76545         SIG_IGN.
76546         Reported by Paul Eggert.
76547
76548 2004-12-18  Bruno Haible  <bruno@clisp.org>
76549
76550         * doc/alloca.texi: New file.
76551         * doc/alloca-opt.texi: New file.
76552
76553 2004-12-17  Jim Meyering  <jim@meyering.net>
76554
76555         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
76556         Otherwise, install-sh could exit with improper exit status when
76557         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
76558
76559 2004-12-16  Simon Josefsson  <jas@extundo.com>
76560
76561         * tests/test-base64.c: Add license.
76562
76563 2004-12-15  Stepan Kasal  <address@hidden>
76564
76565         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
76566
76567 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
76568
76569         * modules/getcwd (Files): Add m4/d-ino.m4.
76570         Suggested by Mark D. Baushke.
76571
76572 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
76573
76574         * lib/getdate.y (textint): New member "negative".
76575         (time_zone_hhmm): New function.
76576         Expect 14 shift-reduce conflicts, not 13.
76577         (o_colon_minutes): New rule.
76578         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
76579         (yylex): Set the "negative" member of signed numbers.
76580
76581 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
76582
76583         * doc/getdate.texi (Time of day items, Time zone items):
76584         Describe new formats +00:00, UTC+00:00.
76585
76586 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76587
76588         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
76589         spurious "-l"s.  Problem reported by Stepan Kasal.
76590
76591 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
76592
76593         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
76594         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
76595
76596 2004-12-04  Simon Josefsson  <jas@extundo.com>
76597
76598         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
76599         Vandoorselaere <yoann@prelude-ids.org>.
76600
76601 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
76602
76603         Changes imported from coreutils.
76604         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
76605         exist.
76606         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
76607
76608 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
76609
76610         Changes imported from coreutils.
76611         * lib/hard-locale.c: Assume <locale.h> exists.
76612         Include "strdup.h".
76613         (GLIBC_VERSION): New macro.
76614         (hard_locale): Assume setlocale exists.
76615         Rewrite to avoid #ifdef.
76616         Use strdup rather than malloc + strcpy.
76617         * lib/human.c: Assume <locale.h> exists.
76618         (human_readable): Assume localeconv exists.
76619
76620 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
76621
76622         * modules/hard-locale (Depends-on): Add strdup.
76623
76624 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
76625
76626         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
76627         convert T2, not T.  (Imported from libc.)
76628
76629 2004-11-30  Simon Josefsson  <jas@extundo.com>
76630
76631         * modules/restrict (License): Change to LGPL.
76632
76633 2004-11-30  Simon Josefsson  <jas@extundo.com>
76634
76635         * m4/restrict.m4: Add copyright and copying conditions.
76636
76637 2004-11-30  Simon Josefsson  <jas@extundo.com>
76638
76639         * m4/base64.m4: New file.
76640
76641 2004-11-30  Simon Josefsson  <jas@extundo.com>
76642
76643         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
76644         base64.
76645
76646         * tests/test-base64.c: New file.
76647
76648         * modules/base64: New file.
76649
76650 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
76651
76652         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
76653         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
76654
76655         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
76656
76657 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
76658
76659         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
76660         (__getcwd.c): Don't restore errno; glibc doesn't.
76661         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
76662         first, falling back to our code only if its results look suspicious.
76663         Ensure that the resulting buffer is only as large as necessary.
76664
76665         * lib/readutmp.c: Include readutmp.h first.
76666         Include <errno.h>, since readutmp.h no longer does that.
76667         * lib/readutmp.h: Don't include <errno.h>,
76668         <sys/param.h>, <time.h>; not needed to establish interface.
76669         (errno): Remove decl.
76670         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
76671         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
76672         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
76673
76674 2004-11-28  Simon Josefsson  <jas@extundo.com>
76675
76676         * lib/base64.h, base64.c: New file.
76677
76678 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76679
76680         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
76681
76682 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76683
76684         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
76685         (Depends-on): Remove pathmax, same.  Add mempcpy.
76686         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
76687         (Makefile.am): Append getcwd.h to lib_SOURCES.
76688         (Include): Add getcwd.h.
76689         (Maintainer): Change from Jim Meyering to "all, glibc",
76690         since getdate now uses intended-for-glibc code.
76691         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
76692         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
76693
76694 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76695
76696         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
76697         HP's ANSI C compiler.
76698         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
76699         Declaring int functions causes warnings on some modern systems and
76700         shouldn't be needed to compile on ancient ones.
76701         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
76702         defined.
76703
76704         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
76705         with the following changes.
76706         (__set_errno): Parenthesize properly.
76707         Include <stdbool.h>.
76708         (MIN, MAX, MATCHING_INO): New macros.
76709         (__getcwd): Define with prototype, not K&R form.
76710         Use heuristics to allocate default buffer on stack if possible.
76711         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
76712         behavior, and to avoid the PATH_MAX limit when computing
76713         ../../../../...
76714         Use MATCHING_INO to compare inode number to file.
76715         Check for arithmetic overflow in size calculations.
76716         Fix bug in reallocation of dot array that caused getcwd to fail
76717         on directories nested deeper than 75.
76718         Be more careful about saving errno on error.
76719         Do not use realloc; use only free+malloc, as this is a bit
76720         more flexible and avoids a needless copy operation.
76721         Do not inspect st_dev and st_ino for symbolic links; POSIX
76722         doesn't specify the latter.
76723         Check for closedir errors.
76724         Avoid needless casts.
76725         Use "#ifdef weak_alias" around weak_alias, to be like other
76726         glibc code.
76727         The following changes to getcwd.c have effect only when used in
76728         gnulib; they have no effect inside glibc proper.
76729         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
76730         as alloca isn't used.
76731         (alloca, __alloca): Likewise.
76732         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
76733         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76734         unconditionally, as gnulib assumes C89 or better.
76735         Do not include <sys/param.h>.
76736         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
76737         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
76738         better.
76739         (NULL) [!defined NULL]: Remove; we assume C89 or better.
76740         Include <dirent.h> in a way that is compatible with modern Autoconf.
76741         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
76742         New macros, if not already defined.
76743         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
76744         Use "_LIBC", not "defined _LIBC", for consistency.
76745         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
76746         a mempcpy module.
76747         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
76748         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
76749         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
76750         credit only to Jim Meyering and adjust the copyright dates.
76751         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
76752         <stdlib.h>, <unistd.h>, "pathmax.h".
76753         Instead, include "xgetcwd.h" (first) and "getcwd.h".
76754         (INITIAL_BUFFER_SIZE): Remove.
76755         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
76756
76757 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76758
76759         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
76760         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
76761         Use the _ONCE methods, for efficiency.
76762         Check for fcntl.h.  In test program, include <errno.h>
76763         and <fcntl.h> if available.  Remove old K&R cruft from
76764         test program.  Check for common errors in GNU/Linux,
76765         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
76766         don't do AC_LIBOBJ, as that's getcwd.m4's job.
76767         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
76768         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
76769         name accordingly.
76770         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
76771         accommodate new getcwd.c.
76772         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
76773         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
76774         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
76775         that's all we need now.
76776
76777 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76778
76779         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
76780         argp-parse.c depends on getopt internals, that means we should
76781         always use our getopt, to be on the safe side.
76782         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
76783         order not to spoil the result of an eventual previous invocation
76784         of gl_GETOPT_SUBSTITUTE.
76785
76786 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76787
76788         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
76789         redefinition warnings. To avoid them, include the defines
76790         in `#if !defined __need_getopt ... #endif'. The only place
76791         where __getopt_argv_const is used is in definitions
76792         of getopt_long and getopt_long_only below, which are as well
76793         protected by `#ifndef __need_getopt'.
76794         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
76795         __need_getopt after including <stdio.h> and <unistd.h> These
76796         headers might have defined it.
76797
76798 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
76799
76800         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
76801
76802 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
76803
76804         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
76805         (futimens): New function, which uses futimes if available.
76806         (futimens, utimens): Support timespec==NULL, with same semantics
76807         as utime and utimens.
76808         * lib/utimens.h (futimens): New decl.
76809
76810 2004-11-23  Jim Meyering  <jim@meyering.net>
76811
76812         * lib/getopt_.h: Remove trailing blanks.
76813
76814 2004-11-23  Jim Meyering  <jim@meyering.net>
76815
76816         * lib/__fpending.c: Add comment.
76817
76818 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
76819
76820         * modules/canonicalize (Depends-on): Add xreadlink.
76821         Problem reported by James Youngman.
76822
76823 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76824
76825         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
76826         New macros.
76827         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
76828         optopt): Use them instead of invoking ## directly; otherwise, the
76829         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
76830
76831 2004-11-19  Bruno Haible  <bruno@clisp.org>
76832
76833         * lib/strtok_r.c: Move comments from here...
76834         * lib/strtok_r.h: ... to here.
76835
76836 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76837
76838         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
76839         implementations that mishandle size_t overflow.
76840
76841 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76842
76843         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
76844         might fail.  Problem reported by Yoann Vandoorselaere.
76845         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
76846         implementations that mishandle size_t overflow.
76847
76848 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76849
76850         * modules/canon-host (Depends-on): Add strdup.
76851
76852 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76853
76854         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
76855
76856 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76857
76858         * lib/canon-host.c: Include "strdup.h".
76859         (canon_host): Use getaddrinfo if available, so that IPv6 works.
76860         Use strdup instead of malloc/strcpy to duplicate strings.
76861
76862         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
76863         (human_space_before_unit): New constant.
76864         * lib/human.c (human_readable): Support it.
76865
76866         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
76867         (xgetcwd): Set errno correctly when failing.
76868         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
76869         the failure is actually due to a PATH_MAX problem.
76870
76871         Further getopt changes to make it more likely that glibc will
76872         buy the changes back.
76873         * lib/getopt.c (POSIXLY_CORRECT): New constant.
76874         (getopt): Use it, so to preserve glibc semantic
76875         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
76876         when compiling for libc.
76877         * lib/getopt_.h (__getopt_argv_const): Bring it back.
76878         (getopt_long, getopt_long_only): Use it.
76879
76880         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
76881         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
76882         (getopt): Argv is now char * const *, as per standard.
76883         (_getopt_internal_r, _getopt_internal): Argv is now char **,
76884         not char *__getopt_argv_const *.
76885         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
76886         _getopt_long_only_r): Likewise.
76887         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
76888         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
76889         _getopt_long_r, _getopt_long_only_r): Likewise.
76890         * lib/getopt_.h (__getopt_argv_const): Remove.
76891         (getopt): Argv is now char * const *, as per standard.
76892
76893         * lib/getdate.y (tORDINAL): New token.
76894         (day, relunit): Allow it for relative times.
76895         (relative_time_table): Use tORDINAL for ordinals.
76896
76897 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76898
76899         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
76900         Document that "second" isn't allowed as an ordinal number.
76901
76902 2004-11-16  Jim Meyering  <jim@meyering.net>
76903
76904         * modules/closeout (Depends-on): Add fpending.
76905
76906 2004-11-15  Jim Meyering  <jim@meyering.net>
76907
76908         * lib/closeout.c: Include "__fpending.h" once again.
76909         Include <stdbool.h>.
76910         (close_stdout): Don't fail just because stdout was closed initially,
76911         since some programs don't write to stdout in the normal course of
76912         operation (other than --version and --help), and we don't want this
76913         function to make e.g. `touch file >&-' fail.
76914         But do fail if it was closed and someone has tried to write to it.
76915         E.g., `printf foo >&-' must fail.
76916
76917 2004-11-13  Jim Meyering  <jim@meyering.net>
76918
76919         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
76920
76921 2004-11-12  Simon Josefsson  <jas@extundo.com>
76922
76923         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
76924         small doc fix is still pending.
76925
76926 2004-11-11  Simon Josefsson  <jas@extundo.com>
76927
76928         * modules/strtok_r: New file.
76929
76930         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76931         strtok_r.
76932
76933 2004-11-11  Simon Josefsson  <jas@extundo.com>
76934
76935         * m4/strtok_r.m4: New file.
76936
76937         * m4/getopt.m4: Replace opterr.
76938
76939 2004-11-11  Simon Josefsson  <jas@extundo.com>
76940
76941         * lib/strtok_r.h, strtok_r.c: New file.
76942
76943 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
76944
76945         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
76946         of replacing opterr, getopt, etc.  This should handle the
76947         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
76948
76949 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
76950
76951         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
76952         we can stop lying to compilers about the constness of argv when we
76953         are compiled outside glibc.
76954         (getopt, getopt_long, getopt_long_only): Use it.
76955         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
76956         _getopt_internal, getopt): Likewise.
76957         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
76958         _getopt_long_only_r): Likewise.
76959         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
76960         _getopt_long_r, _getopt_long_only_r): Likewise.
76961
76962         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
76963         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
76964         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
76965         the other external symbols.
76966         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
76967         declaration, since the above renaming now works around collisions.
76968
76969 2004-11-11  Jim Meyering  <jim@meyering.net>
76970
76971         * lib/linebreak.c: Remove trailing blanks.
76972         * lib/alloca_.h: Likewise.
76973         * lib/acosl.c: Likewise.
76974         * lib/euidaccess.c: Likewise.
76975         * lib/allocsa.h: Likewise.
76976
76977 2004-11-10  Simon Josefsson  <jas@extundo.com>
76978
76979         * m4/getaddrinfo.m4: New file.
76980
76981 2004-11-10  Simon Josefsson  <jas@extundo.com>
76982
76983         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
76984
76985 2004-11-10  Simon Josefsson  <jas@extundo.com>
76986
76987         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76988         getaddrinfo.
76989
76990         * modules/getaddrinfo: New file.
76991
76992 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76993
76994         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
76995
76996 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76997
76998         * lib/mktime.c (SHR): New macro, which is a portable
76999         substitute for >> that should work even on Crays.
77000         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
77001         Problem reported by Mark D. Baushke in
77002         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
77003         * lib/getdate.y (SHR): Likewise.
77004         (tm_diff): Use it.
77005         * lib/strftime.c (SHR): Likewise.
77006         (tm_diff): Use it.
77007         * lib/quotearg.c (struct quoting_options): Use unsigned int for
77008         quote_these_too, so that right shifts are well defined.  All uses
77009         changed.
77010
77011 2004-11-10  Jim Meyering  <jim@meyering.net>
77012
77013         Ensure that no close failure goes unreported.
77014         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
77015         return early when it seems there's nothing to flush.
77016         Don't include __fpending.h.
77017
77018 2004-11-10  Jim Meyering  <jim@meyering.net>
77019
77020         * modules/closeout (Depends-on): Remove fpending.
77021
77022 2004-11-10  Jim Meyering  <jim@meyering.net>
77023
77024         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
77025
77026 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77027
77028         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
77029         gl_FUNC_STRFTIME.
77030         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
77031         and AC_REQUIRE when possible, to avoid duplicate checks.
77032         Check for <wchar.h>.
77033
77034 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77035
77036         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
77037
77038 2004-11-09  Bruno Haible  <bruno@clisp.org>
77039
77040         * m4/sockpfaf.m4: New file.
77041
77042 2004-11-05  Bruno Haible  <bruno@clisp.org>
77043
77044         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
77045         Reported by Mark D. Baushke <mdb@cvshome.org>.
77046
77047 2004-11-04  Bruno Haible  <bruno@clisp.org>
77048
77049         2004-09-11  Bruno Haible  <bruno@clisp.org>
77050                 * allocsa.valgrind: New file.
77051         2004-02-06  Bruno Haible  <bruno@clisp.org>
77052                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
77053                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
77054                 Reported by Christopher Seip <chris.seip@hp.com>.
77055
77056 2004-11-04  Bruno Haible  <bruno@clisp.org>
77057
77058         * modules/allocsa (Files): Add lib/allocsa.valgrind.
77059         (Makefile.am): Distribute it.
77060
77061 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77062
77063         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
77064         with errno == ERANGE if the buffer is too small.
77065         Problem reported by Mark D. Baushke.
77066
77067 2004-11-03  Albert Chin  <china@thewrittenword.com>
77068             Paul Eggert  <eggert@cs.ucla.edu>
77069
77070         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
77071         equivalent, substitute $ac_type for equivalent type rather than
77072         blindly using uint32_t *always* which won't work if uint32_t is not
77073         available.  Define _UINT32_T to work around typedef of uint32_t if
77074         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
77075         2.5.1.
77076
77077 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77078
77079         * m4/jm-macros.m4: Sync from coreutils.
77080         (gl_MACROS): Check for mbrlen, for pathchk.
77081         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
77082
77083 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77084
77085         * lib/xreadlink.c (MAXSIZE): New macro.
77086         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
77087         size does not exceed MAXSIZE.  Avoid cast.
77088         As suggested by Mark D. Baushke in
77089         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
77090         if readlink fails with buffer size just under MAXSIZE, try again
77091         with MAXSIZE.
77092
77093 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77094
77095         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
77096
77097 2004-11-02  Derek R. Price  <derek@ximbiot.com>
77098         and  Paul Eggert  <eggert@cs.ucla.edu>
77099
77100         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
77101         (get_date): Overparenthesize to avoid GCC warning.
77102
77103 2004-11-02  Bruno Haible  <bruno@clisp.org>
77104
77105         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
77106         returns void.
77107
77108 2004-11-02  Bruno Haible  <bruno@clisp.org>
77109
77110         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
77111         function returns void.
77112
77113 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77114
77115         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
77116         fflush_unlocked, flockfile, funlockfile, funlockfile,
77117         fputs_unlocked, putc_unlocked.
77118
77119 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77120
77121         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
77122         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
77123         already declared.
77124
77125 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77126
77127         * modules/getdate (Files): Add doc/getdate.texi.
77128         (Depends-on): Add setenv, xalloc.
77129
77130 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77131
77132         * lib/getdate.y: Add support for TZ="foo" within a date string.
77133         Fix some bugs near time_t boundaries.  Reject dates with
77134         out-of-range components, e.g., "Sept 31".
77135         Include <stdlib.h>, "setenv.h", "xalloc.h".
77136         (ISDIGIT_LOCALE): Remove; unused.
77137         Note that the TZ and time functions used here are not reentrant.
77138         (mktime_ok, get_tz): New functions.
77139         (TZBUFSIZE): New constant.
77140         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
77141         This requires that we sometimes generate our own TZ="XXX..." setting.
77142
77143 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77144
77145         * doc/getdate.texi: New file, from coreutils with modifications for
77146         the new TZ parsing.
77147
77148 2004-10-27  Derek R. Price  <derek@ximbiot.com>
77149
77150         * lib/mktime.c (not_equal_tm): Remove redundant check.
77151
77152 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77153
77154         * modules/regex (lib_SOURCES): Add regex.c.
77155         Reported by James Youngman in
77156         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
77157
77158 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77159
77160         * lib/getdate.y: Use Bison 1.875 features, and some minor
77161         code cleanups.  This change does not affect semantics.
77162         Don't include <stdlib.h>; no longer needed.
77163         Don't include unlocked-io.h; only the "#if TEST" code uses
77164         stdio, and performance isn't crucial there.
77165         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
77166         Bison 1.875 features as described below.
77167         All uses of "PC." replaced by "pc->".
77168         (YYSTYPE): Add a forward declaration.
77169         (yylex, yyerror): Use full prototypes in forward decls.
77170         Use "%pure-parser" rather than obsolescent "%pure_parser".
77171         Use %parse-param and %lex-param instead of obsolescent
77172         YYPARSE_PARAM and YYLEX_PARAM.
77173         (meridian_table, month_and_day_table, time_units_table,
77174         relative_time_table, time_zone_table, military_table,
77175         lookup_zone, lookup_word, get_date):
77176         Use NULL instead of 0 where appropriate.
77177         (to_hour): Avoid abort (), to avoid a dependency on
77178         stdlib.h.
77179         (yyerror, yylex): Now accepts parser_control * arg.
77180         (main) [TEST]: Use '\0' rather than 0 for char.
77181
77182 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
77183
77184         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
77185
77186 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
77187
77188         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
77189         It's now the caller's responsibility to handle the case where
77190         !HAVE_GETPAGESIZE && !defined getpagesize.
77191
77192         * lib/mktime.c (leapyear): Arg is long int, not int.
77193
77194 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
77195
77196         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
77197
77198 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77199
77200         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
77201         missing.  Problem reported by James Youngman.
77202
77203 2004-10-16  Simon Josefsson  <jas@extundo.com>
77204
77205         * gnulib-tool: Fix comments.  Fix parse problem.
77206         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
77207
77208 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
77209
77210         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
77211         implementation of getopt_long.  Problem reported by Alexander Taler in:
77212         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
77213
77214 2004-10-15  Bruno Haible  <bruno@clisp.org>
77215
77216         * gnulib-tool: Untabify. Initialize supplied_libname.
77217         (func_usage): More homogenous output.
77218         (func_modules_transitive_closure, func_modules_to_filelist,
77219         func_emit_lib_Makefile_am): New functions.
77220         (func_import): New function, extracted from big case statement. Use
77221         func_get_license, func_modules_transitive_closure,
77222         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
77223         opt_lgpl. Don't use test -a, as it's not portable.
77224         (func_create_testdir): Use func_modules_transitive_closure,
77225         func_modules_to_filelist, func_emit_lib_Makefile_am.
77226
77227 2004-10-15  Bruno Haible  <bruno@clisp.org>
77228
77229         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
77230
77231 2004-10-15  Bruno Haible  <bruno@clisp.org>
77232
77233         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
77234         the portions belonging to each module.
77235         Suggested by Derek Robert Price <derek@ximbiot.com>.
77236
77237 2004-10-12  Simon Josefsson  <jas@extundo.com>
77238
77239         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
77240         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
77241         to real functions.
77242
77243 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77244
77245         * modules/vsnprintf: New file.
77246
77247 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77248
77249         * m4/vsnprintf.m4: New file.
77250
77251 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77252
77253         * lib/vsnprintf.h: New file.
77254         * lib/vsnprintf.c: New file.
77255
77256 2004-10-11  Bruno Haible  <bruno@clisp.org>
77257
77258         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
77259         vsnprintf.
77260
77261 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77262
77263         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
77264
77265 2004-10-07  Bruno Haible  <bruno@clisp.org>
77266
77267         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
77268         fits into the provided buffer.
77269
77270 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77271
77272         * lib/diacrit.c, diacrit.h: Add GPL notice.
77273
77274         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
77275         notice.
77276         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
77277         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
77278         This avoids a potential constant-folding bug.
77279
77280 2004-10-05  Bruno Haible  <bruno@clisp.org>
77281
77282         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
77283         for the declaration of strsep.
77284
77285 2004-10-05  Bruno Haible  <bruno@clisp.org>
77286
77287         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
77288
77289 2004-10-04  Simon Josefsson  <jas@extundo.com>
77290
77291         * modules/memmem: New file.
77292         * tests/test-memmem.c: New file.
77293         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
77294
77295 2004-10-04  Simon Josefsson  <jas@extundo.com>
77296
77297         * m4/memmem.m4: New file.
77298
77299 2004-10-04  Simon Josefsson  <jas@extundo.com>
77300
77301         * lib/memmem.h: New file.
77302         * lib/memmem.c: New file, taken from glibc.
77303
77304 2004-10-04  Simon Josefsson  <jas@extundo.com>
77305
77306         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
77307         '#ifdef USE_UNLOCKED_IO'.
77308
77309 2004-10-04  Simon Josefsson  <jas@extundo.com>
77310
77311         * config/srclist.txt: Add memmem from glibc.
77312
77313 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77314
77315         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
77316
77317         * modules/argmatch, modules/argp, modules/closeout, modules/error,
77318         modules/exclude, modules/getdate, modules/getline,
77319         modules/getndelim2, modules/getpass, modules/getpass-gnu,
77320         modules/getusershell, modules/linebuffer, modules/md5,
77321         modules/mountlist, modules/posixtm, modules/readtokens,
77322         modules/readutmp, modules/regex, modules/sha1,
77323         modules/version-etc, modules/yesno:
77324         Remove dependency on unlocked-io.
77325
77326 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77327
77328         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
77329
77330         * m4/unlocked-io.m4: Add copyright notice.
77331         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
77332
77333 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77334
77335         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
77336         * lib/xmalloc.c (xmemdup): Likewise.
77337         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
77338         XFREE): Remove these long-obsolescent macros.
77339         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
77340         * lib/xstrdup.c: Remove.
77341
77342         * lib/regex.c (re_comp): Cast gettext return value to char *,
77343         Problem reported by Martin Neitzel via Mark D. Baushke.
77344
77345 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77346
77347         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
77348         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
77349         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
77350         regex.c, sha1.c, version-etc.c, yesno.c:
77351         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
77352         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
77353         the includer's responsibility.
77354
77355         Sync from coreutils.
77356
77357         * lib/modechange.c (mode_compile): Don't decrement a pointer that
77358         points to the start of a string, as the C Standard says the
77359         resulting behavior is undefined.
77360
77361         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
77362         simple -> simple_backups, numbered_existing ->
77363         numbered_existing_backups, numbered -> numbered_backups
77364         to avoid shadowing problems.  All uses changed.
77365         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
77366         * lib/backupfile.c (check_extension, numbered_backup):
77367         Rename locals to avoid shadowing 'basename'.
77368         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
77369         once.
77370
77371         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
77372         * lib/.cvsignore: Add getopt.h.
77373
77374 2004-10-04  Bruno Haible  <bruno@clisp.org>
77375
77376         * modules/README: New file.
77377         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
77378         not a module.
77379
77380 2004-10-02  Jim Meyering  <jim@meyering.net>
77381
77382         * lib/dirfd.h, getpagesize.h: Add copyright notice.
77383
77384 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77385
77386         * modules/strsep: New file.
77387
77388 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77389
77390         * m4/strsep.m4: New file.
77391
77392 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77393
77394         * lib/strsep.h: New file.
77395         * lib/strsep.c: New file.
77396
77397 2004-10-01  Simon Josefsson  <jas@extundo.com>
77398
77399         * lib/snprintf.c (snprintf): Handle size==0.
77400
77401 2004-10-01  Simon Josefsson  <jas@extundo.com>
77402             Bruno Haible  <bruno@clisp.org>
77403
77404         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
77405         (snprintf): Declare 'args'.
77406
77407 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
77408
77409         * lib/snprintf.c: Remove comments as to why each header is needed.
77410
77411 2004-10-01  Bruno Haible  <bruno@clisp.org>
77412
77413         * MODULES.html.sh: Add strsep.
77414
77415 2004-09-30  Simon Josefsson  <jas@extundo.com>
77416
77417         * modules/snprintf: New file.
77418
77419 2004-09-30  Simon Josefsson  <jas@extundo.com>
77420
77421         * m4/snprintf.m4: New file.
77422
77423 2004-09-30  Simon Josefsson  <jas@extundo.com>
77424
77425         * lib/snprintf.h, lib/snprintf.c: New files.
77426
77427 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77428
77429         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
77430         (hol_entry_help): Never translate an empty string.
77431         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
77432         * lib/argp.h (OPTION_NO_TRANS): New option.
77433
77434 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
77435
77436         * modules/argp (Maintainer): Replace Simon Josefsson
77437         by Sergey Poznyakoff.
77438
77439 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
77440
77441         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
77442         changes merged back into glibc.
77443
77444 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
77445
77446         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
77447
77448 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
77449
77450         * lib/xvasprintf.c: Include xalloc.h.
77451         (xvasprintf): Use xalloc_die, not xmalloc_die.
77452
77453 2004-09-29  Bruno Haible  <bruno@clisp.org>
77454
77455         * modules/alloca-opt: New file, derived from modules/alloca.
77456         * modules/allocsa: Depend on alloca-opt instead of alloca.
77457         * modules/setenv: Likewise.
77458         * modules/vasnprintf: Likewise.
77459         * MODULES.html.sh: Add alloca-opt.
77460
77461 2004-09-28  Simon Josefsson  <jas@extundo.com>
77462
77463         * gnulib-tool: New parameter --lgpl, to asseert that modules are
77464         LGPL, and to replace license template from GPL to LGPL.
77465
77466 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
77467
77468         * modules/dummy: Change license to LGPL.
77469
77470 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
77471
77472         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
77473
77474 2004-09-24  Simon Josefsson  <jas@extundo.com>
77475
77476         * modules/minmax (License): Change from GPL to LGPL.
77477
77478 2004-09-23  Simon Josefsson  <jas@extundo.com>
77479
77480         * gnulib-tool (--import): Typo.
77481
77482 2004-09-23  Simon Josefsson  <jas@extundo.com>
77483
77484         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
77485
77486 2004-09-22  Bruno Haible  <bruno@clisp.org>
77487
77488         * modules/*: Add 'License' field.
77489         * gnulib-tool: Accept --extract-license option.
77490         (func_get_license): New function.
77491
77492 2004-09-21  Bruno Haible  <bruno@clisp.org>
77493
77494         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
77495         Reported by Simon Josefsson.
77496
77497 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77498
77499         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
77500         gl_AC_TYPE_LONG_LONG.
77501
77502 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77503
77504         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
77505
77506 2004-09-18  Simon Josefsson  <jas@extundo.com>
77507         and  Paul Eggert  <eggert@cs.ucla.edu>
77508
77509         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
77510         calls with autoreconf.  Define GL_LIB.
77511
77512 2004-09-14  Karl Berry  <karl@gnu.org>
77513
77514         * config/srclist.txt: unsync setenv.c, sigh.
77515
77516 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77517
77518         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
77519         Problem reported by Bruno Haible in:
77520         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
77521
77522 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77523
77524         * config/srclist.txt: Comment out argp-pvh.c.
77525
77526 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
77527
77528         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
77529         in case some system header has #define'd it.  Problem reported by
77530         Soeren D. Schulze in
77531         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
77532
77533 2004-09-09  Karl Berry  <karl@gnu.org>
77534
77535         * regex.[ch]: delete from the root.  These were supposed to be
77536                 synced with emacs cvs, but this has not happened for about
77537                 a year, and anyway nothing else uses emacs regex.[ch].
77538                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
77539                 lib/regex[.ch] is untouched.
77540
77541 2004-09-09  Bruno Haible  <bruno@clisp.org>
77542
77543         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
77544
77545 2004-09-09  Bruno Haible  <bruno@clisp.org>
77546
77547         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
77548         modifications.
77549         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
77550
77551 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
77552
77553         * modules/xvasprintf: New file.
77554         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
77555
77556 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
77557
77558         * lib/xvasprintf.h: New file.
77559         * lib/xvasprintf.c: New file.
77560         * lib/xasprintf.c: New file.
77561
77562 2004-09-08  Bruno Haible  <bruno@clisp.org>
77563
77564         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
77565
77566 2004-09-08  Bruno Haible  <bruno@clisp.org>
77567
77568         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
77569         length is > INT_MAX.
77570         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
77571         more.
77572
77573 2004-09-08  Bruno Haible  <bruno@clisp.org>
77574
77575         * lib/stdint_.h: New file, taken from GNU clisp.
77576
77577 2004-09-08  Bruno Haible  <bruno@clisp.org>
77578             Oskar Liljeblad  <oskar@osk.mine.nu>
77579
77580         * modules/stdint: New file.
77581         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
77582
77583 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77584
77585         Import from coreutils.
77586         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
77587         strings on unbounded length.  alloca's performance benefits aren't
77588         that important here.
77589         (V_STRDUP): Remove.
77590         (parse_with_separator): New function, with most of the internals
77591         of the old parse_user_spec.  Allow user to omit both user and group,
77592         for compatibility with FreeBSD.
77593         Clone only the user name, not the entire spec.
77594         Do not set *uid, *gid unless entirely successful.
77595         Avoid memory leak in some failing cases.
77596         Fix regression for USER.GROUP reported by Dmitry V. Levin in
77597         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
77598         (parse_user_spec): Rewrite to use parse_with_separator.
77599
77600 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77601
77602         * modules/userspec: Don't depend on alloca.
77603
77604 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77605
77606         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
77607
77608 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77609
77610         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
77611         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
77612         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
77613
77614 2004-08-16  Simon Josefsson  <jas@extundo.com>
77615
77616         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
77617         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
77618         Add --dry-run for --import.
77619         Let user provided command line parameters override configure.ac
77620         settings.
77621
77622 2004-08-12  Simon Josefsson  <jas@extundo.com>
77623
77624         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
77625         as discussed with Paul Eggert in threads rooted at
77626         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
77627         and
77628         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
77629         Before, the test was empty, and relied on ELIDE_CODE in source
77630         code.)
77631         (gl_PREREQ_GETOPT): New macro.
77632         (gl_GETOPT): Use them.
77633
77634 2004-08-12  Simon Josefsson  <jas@extundo.com>
77635
77636         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
77637         * lib/getopt_.h: Renamed from getopt.h.
77638
77639 2004-08-12  Simon Josefsson  <jas@extundo.com>
77640
77641         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
77642         Change default library name from libfoo to libgnu.
77643         Now, if you have a configure.ac that says:
77644                 gl_SOURCE_BASE(gl)
77645                 gl_M4_BASE(gl/m4)
77646                 gl_MODULES(error getopt etcetera)
77647                 gl_INIT
77648         you can import all you need by running:
77649                 ../gnulib/gnulib-tool --import
77650
77651         * modules/getopt (Files): Rename getopt.h to getopt_.h.
77652         (Makefile.am): Rewrite, use logic from argz.
77653         (Include): Use <getopt.h> instead of "getopt.h".
77654
77655 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77656
77657         * modules/argp (Files): Add m4/unlocked-io.m4.
77658         (Depends-on): Add extensions.
77659
77660 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77661
77662         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
77663         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
77664         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
77665         Check for program_invocation_name, program_invocation_short_name,
77666         flockfile, funlockfile, features.h, _getopt_long_only_r.
77667
77668 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77669
77670         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
77671         its complicated substitute.
77672         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
77673         and program_invocation_name.
77674         (__argp_basename) [!_LIBC]: Remove; the only use was
77675         replaced by its body.
77676         (__argp_short_program_name): Change condition from
77677         !defined __argp_short_program_name to
77678         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
77679         to match argp-namefrob.h.
77680         (__argp_failure): Don't assume strerror_r returns char *.
77681         * lib/argp-parse.c (N_): Define unconditionally.
77682         (argp_default_options): Fill out initializers with 0 to avoid
77683         gcc warnings.
77684
77685 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77686
77687         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
77688         getopt1.c.
77689
77690 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77691
77692         Merge from coreutils.
77693
77694         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
77695
77696         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
77697         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
77698
77699 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77700
77701         Merge from coreutils.
77702
77703         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
77704         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
77705         for Reliant Unix 5.43.
77706
77707         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
77708         (union fooround): Use uintmax_t, not long int.
77709         The rest is a merge from libc:
77710         [defined _LIBC]: Include <shlib-compat.h>.
77711         (_obstack) [defined _LIBC]: Remove after 2.3.4.
77712
77713         * lib/settime.c (settime): Recode to avoid warning with
77714         Sun Forte C 6U2.
77715
77716         * lib/strverscmp.c: Convert to UTF-8.
77717
77718 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77719
77720         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
77721         m4/uintmax_t.m4.
77722
77723 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77724
77725         * modules/xalloc-die: New file.
77726         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
77727
77728         * modules/md5 (Files): Add m4/uint32_t.m4.
77729         * modules/sha1: Renamed from modules/sha.
77730         (Files):
77731         Rename lib/sha.h to lib/sha1.h.
77732         Rename lib/sha.c to lib/sha1.c.
77733         Rename m4/sha.m4 to m4/sha1.m4.
77734         (lib_SOURCES): Likewise.
77735         (configure.ac): Rename gl_SHA to gl_SHA1.
77736         (Include): sha.h -> sha1.h.
77737
77738 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77739
77740         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
77741         * m4/sha1.m4: Renamed from sha.m4.
77742         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
77743
77744 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77745
77746         * lib/obstack.h (obstack_empty_p):
77747         Don't assume that chunk->contents is suitably aligned.
77748         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
77749         Likewise. Problem reported by Benno in
77750         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
77751
77752         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
77753         readable.  This could be improved further but it'd take some work.
77754
77755 2004-08-08  Simon Josefsson  <jas@extundo.com>
77756
77757         * modules/xgethostname (Depends-on): Remove exit and error (not
77758         used).
77759
77760         * modules/getpass-gnu: Add getpass.h.
77761         (Depends-on): Add stdbool.
77762         * modules/getpass: Add getpass.h.
77763
77764 2004-08-08  Simon Josefsson  <jas@extundo.com>
77765
77766         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
77767         Check getpass declaration.
77768
77769 2004-08-08  Simon Josefsson  <jas@extundo.com>
77770
77771         * lib/xgethostname.c: Don't include error.h (not used).
77772
77773         * lib/getpass.h: Add.
77774         * lib/getpass.c: Include getpass.h first.
77775
77776 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
77777
77778         * lib/xalloc-die.c: New file.
77779         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
77780         All uses removed.
77781         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
77782         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
77783         xalloc-die.c.
77784         (_, N_, xalloc_die): Move to xalloc-die.c.
77785         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
77786         so that we needn't mess with xalloc_msg_memory_exhausted.
77787
77788         * lib/sha1.h: Renamed from sha.h.
77789         (SHA1_H): Renamed from _SHA_H.
77790         (sha1_ctx): Renamed from sha_ctx.
77791         (sha1_init_ctx): Renamed from sha_init_ctx.
77792         (sha1_process_block): Renamed from sha_process_block.
77793         (sha1_process_bytes): Renamed from sha_process_bytes.
77794         (sha1_finish_ctx): Renamed from sha_finish_ctx.
77795         (sha1_read_ctx): Renamed from sha_read_ctx.
77796         (sha1_stream): Renamed from sha_stream.
77797         (sha1_buffer): Renamed from sha_buffer.
77798         * lib/sha1.c: Likewise; renamed from sha.c.
77799         Do not include <sys/types.h>.
77800         Include <stddef.h> rather than <stdlib.h>.
77801
77802 2004-08-08  Bruno Haible  <bruno@clisp.org>
77803
77804         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
77805         FILESYSTEM_PREFIX_LEN.
77806         * lib/progreloc.c: Likewise.
77807         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
77808
77809 2004-08-06  Simon Josefsson  <jas@extundo.com>
77810
77811         * modules/progname (Depends-on): Don't depend on stdbool.
77812
77813 2004-08-06  Simon Josefsson  <jas@extundo.com>
77814
77815         * modules/getsubopt: New file.
77816         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77817         getsubopt.
77818
77819 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77820
77821         More merge from coreutils.
77822
77823         * m4/utimens.m4, m4/utimecmp.m4: New files.
77824         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
77825         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
77826         prereq.m4, sha.m4: Import changes from coreutils.
77827
77828 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77829
77830         More merge from coreutils.
77831         * modules/raise, modules/readtokens0, modules/utimens:
77832         * modules/utimecmp, module/xnanosleep: New files.
77833         * modules/strftime: Add lib/strftime.h.
77834         Change include from <time.h> to "strftime.h".
77835         * modules/yesno: Add lib/yesno.h.
77836         * modules/backupfile: Remove lib/addext.c.
77837         * modules/euidaccess: Add stat-macros.h.
77838         * modules/canonicalize, modules/euidaccess,
77839         modules/filemode, modules/lchown, modules/makepath,
77840         modules/rmdir, modules/stat: Likewise.
77841
77842 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77843
77844         Merge from tar.
77845         * lib/argp-help.c (make_hol, hol_append): Don't assume that
77846         SIZE_MAX is a valid preprocessor constant.
77847         (__argp_basename): Change from "#ifndef _LIBC"
77848         to "#ifndef __argp_short_program_name", so that
77849         we don't compile these functions for tar.
77850
77851         More merges from coreutils.
77852         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
77853         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
77854         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
77855         * lib/addext.c: Remove; no longer needed.
77856         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
77857         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
77858         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
77859         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
77860         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
77861         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
77862         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
77863         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
77864         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
77865         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77866         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
77867         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
77868         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
77869         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
77870         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
77871         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
77872         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
77873         Import changes from coreutils.
77874
77875 2004-08-05  Simon Josefsson  <jas@extundo.com>
77876
77877         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
77878
77879 2004-08-05  Simon Josefsson  <jas@extundo.com>
77880
77881         * m4/getsubopt.m4: New file.
77882
77883 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77884
77885         Merge from coreutils.
77886
77887         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
77888         * m4/getcwd-path-max.m4: New files.
77889
77890         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
77891         FILESYSTEM_PREFIX_LEN ->
77892         FILE_SYSTEM_PREFIX_LEN.
77893         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
77894         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
77895         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
77896         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
77897
77898         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
77899         prerequisite modules now handle the DOS stuff.
77900         Don't check for unistd.h.
77901
77902 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77903
77904         Merge from coreutils.
77905
77906         * lib/.gdb-history: Remove; this doesn't belong here.
77907
77908         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
77909         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
77910         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
77911         * lib/getcwd.c: New files.
77912
77913         * lib/dirname.h: Include <stdbool.h>.
77914         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
77915         for consistency with POSIX terminology.  All uses changed.
77916         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
77917         (strip_trailing_slashes): Use bool for booleans.
77918         * lib/stripslash.c (strip_trailing_slashes): Likewise.
77919
77920         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
77921         sometimes returns a positive errno value even when it succeeds.
77922         (print_errno_message) [!LIBC]: Fall back on strerror if
77923         __strerror_r fails.
77924
77925         * lib/path-concat.c (mempcpy): Don't define if a system header defines
77926         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
77927         (longest_relative_suffix): New function.
77928         (path_concat): Use it.  Assume first argument is not NULL.
77929         Port to DOS.  Omit redundant separators.
77930         Report an error instead of returning NULL.
77931         Use mempcpy instead of memcpy.
77932         (xpath_concat): Remove: not declared or used.
77933
77934         * lib/same.h: Include <stdbool.h>
77935         (same_name): Return bool, not int.
77936         * lib/same.c (same_name): Likewise.
77937         (errno): Don't declare; we assume C89 or better now.
77938
77939         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
77940         if not already defined.
77941
77942         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
77943         * lib/dup-safer.c (errno): Likewise.
77944
77945 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77946
77947         Merge from coreutils.
77948         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
77949         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
77950         * modules/path-concat: Don't depend on strdup.
77951
77952 2004-08-03  Simon Josefsson  <jas@extundo.com>
77953
77954         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
77955         * lib/progname.h: Don't include stdbool.h.
77956
77957 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77958
77959         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
77960         * MODULES.html.sh (func_all_modules): Remove fatal.
77961
77962 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77963
77964         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
77965
77966 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77967
77968         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
77969         working.
77970
77971 2004-08-02  Simon Josefsson  <jas@extundo.com>
77972
77973         * lib/getsubopt.h: New file, with comments from Bruno Haible.
77974         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
77975         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
77976
77977 2004-08-01  Simon Josefsson  <jas@extundo.com>
77978
77979         * lib/xgetdomainname.c: Include stdlib.h, for free().
77980
77981 2004-07-19  Bruno Haible  <bruno@clisp.org>
77982
77983         * MODULES.html.sh (func_all_modules): Add dummy.
77984
77985 2004-07-16  Simon Josefsson  <jas@extundo.com>
77986
77987         * modules/dummy: New file.
77988
77989 2004-07-16  Simon Josefsson  <jas@extundo.com>
77990
77991         * lib/dummy.c: New file.
77992
77993 2004-07-16  Bruno Haible  <bruno@clisp.org>
77994
77995         * lib/backupfile.h: Add extern "C" for C++.
77996         * lib/closeout.h: Likewise.
77997         * lib/copy-file.h: Likewise.
77998         * lib/findprog.h: Likewise.
77999         * lib/full-write.h: Likewise.
78000         * lib/pathname.h: Likewise.
78001         * lib/progname.h: Likewise.
78002         * lib/stpcpy.h: Likewise.
78003         * lib/stpncpy.h: Likewise.
78004         * lib/strcase.h: Likewise.
78005         * lib/strstr.h: Likewise.
78006         * lib/xalloc.h: Likewise.
78007
78008         * lib/mbswidth.h: Add extern "C" for C++.
78009         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
78010
78011 2004-07-13  Robert Millan  <robertmh@gnu.org>
78012
78013         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
78014
78015 2004-07-09  Simon Josefsson  <jas@extundo.com>
78016
78017         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
78018         failed without this.)
78019
78020 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78021
78022         * modules/chown (Files): Add lib/fchown-stub.c, since
78023         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
78024
78025 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78026
78027         * lib/fchown-stub.c: New file.
78028
78029 2004-06-24  Jim Meyering  <jim@meyering.net>
78030
78031         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
78032
78033 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78034
78035         * modules/argz: Omit "#include".
78036
78037         * MODULES.html.sh (func_all_modules): Add calloc, to match
78038         2004-06-01 addition of calloc module.
78039
78040 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78041
78042         * m4/argz.m4: New file, which is autoupdated from libtool.
78043
78044 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78045
78046         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
78047         libtool.
78048
78049 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78050
78051         * config/srclist-update: Don't insist on "USA." before the
78052         close-comment, as libtool omits the period and puts the */ on a
78053         separate line.
78054         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
78055         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
78056
78057 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
78058
78059         * modules/argz: New file.
78060         * MODULES.html.sh (func_all_modules): Add argz.
78061
78062 2004-06-12  Jim Meyering  <jim@meyering.net>
78063         and  Paul Eggert  <eggert@cs.ucla.edu>
78064
78065         * modules/hash (Files): Add lib/xalloc.h.
78066         * modules/pipe (Depends-on): Add wait-process.
78067         * modules/stat (Depends-on): Add xalloc.
78068         * modules/userspec (Files): Add lib/userspec.h.
78069         * modules/xstrto
78070
78071         Upgrade from gettext-0.13.
78072         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
78073         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
78074         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
78075
78076 2004-06-10  Jim Meyering  <jim@meyering.net>
78077
78078         * lib/calloc.c: New file.
78079
78080 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
78081
78082         * lib/getdate.y (yylex): Allow space between sign and number.
78083         Problem reported by Dan Jacobson.
78084
78085 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
78086
78087         Merge from coreutils CVS.
78088
78089         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
78090         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
78091         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
78092         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
78093         xstrtol.m4: Fix copyright date and/or serial number.
78094
78095         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
78096         See if we need an fchown replacement.
78097         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
78098         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
78099         and use the replacement function if we detect either defect.
78100
78101         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
78102         gl_UTIMECMP.
78103
78104 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
78105         and  Jim Meyering  <jim@meyering.net>
78106
78107         Merge from coreutils CVS.
78108
78109         * lib/stat-macros.h: New file, with contents from file-type.h
78110         and coreutils' system.h.
78111         * lib/file-type.c: Include "stat-macros.h".
78112         * lib/file-type.h (file_type): Move all macro definitions to new file,
78113         stat-macros.h.
78114
78115         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
78116         Wrap old code with this conditional.
78117         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
78118         function that does not dereference symlinks.
78119         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
78120
78121         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
78122         dependency problems.
78123         (xreadlink): Accept new arg SIZE, for efficiency.
78124         All decls and uses changed.
78125         * lib/xreadlink.h: Include <stddef.h>, for size_t.
78126
78127         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
78128         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
78129
78130         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
78131         sysexits.h.
78132
78133 2004-06-01  Jim Meyering  <jim@meyering.net>
78134
78135         * m4/calloc.m4: New file.
78136
78137 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
78138
78139         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
78140         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
78141         Also, fix a typo in a diagnostic.
78142
78143 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
78144
78145         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
78146         or AC_FUNC_REALLOC.
78147
78148 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
78149
78150         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
78151         macros to be defined.
78152         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
78153         the allocator returns NULL because the requested size is zero.
78154
78155 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78156
78157         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
78158         var.  Add comment explaining why libc still defines it.  This
78159         merges the following patch from glibc:
78160         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
78161
78162 2004-05-20  Andreas Schwab  <schwab@suse.de>
78163
78164         * m4/free.m4: Replace free if it not known to work, not the other
78165         way round.
78166
78167 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78168
78169         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
78170         present in glibc since revision 1.1 of this file.
78171         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
78172         obstack_alignment_mask, obstack_alloc, obstack_base,
78173         obstack_blank, obstack_blank_fast, obstack_chunk_size,
78174         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
78175         obstack_grow0, obstack_init, obstack_int_grow,
78176         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
78177         obstack_next_free, obstack_object_size, obstack_ptr_grow,
78178         obstack_ptr_grow_fast, obstack_room): Remove declarations of
78179         nonexistent functions.
78180
78181 2004-05-18  Karl Berry  <karl@gnu.org>
78182
78183         * config/srclist.txt: break link for vasnprintf.c.
78184
78185 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
78186
78187         Port obstack to the AS/400, where pointers are 16 bytes wide and
78188         you cannot cast an integer to a valid pointer.  This patch is
78189         currently waiting to be integrated into glibc; see
78190         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
78191
78192         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
78193         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
78194         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
78195         (struct obstack): temp member is now a union of a pointer and
78196         an integer, instead of an integer.  All integer uses changed.
78197         This does not affect the physical layout of struct obstack,
78198         except on hosts (like the AS/400) where the size or alignment of
78199         void * is greater than that of ptrdiff_t.
78200         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
78201         __STDC__)]: Store temporary in pointer member of union, not
78202         integer member.
78203         * lib/obstack.c: Include <stddef.h>, for offsetof.
78204         (struct fooalign): Remove; it doesn't need a name.
78205         (union fooround): Change double to long double, and add void *.
78206         (DEFAULT_ALIGNMENT): Use offsetof to compute.
78207         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
78208         not a macro.  Hence the values are always int; so remove all
78209         casts-to-int in uses.
78210
78211 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
78212
78213         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
78214         we can get this patch merged into glibc.
78215
78216 2004-05-17  Derek R. Price  <derek@ximbiot.com>
78217             Paul Eggert  <eggert@cs.ucla.edu>
78218
78219         * m4/argp: Depend on alloca.
78220
78221 2004-05-17  Derek R. Price  <derek@ximbiot.com>
78222             Paul Eggert  <eggert@cs.ucla.edu>
78223
78224         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
78225         freecoding.
78226
78227 2004-05-17  Bruno Haible  <bruno@clisp.org>
78228
78229         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
78230         precision that consists of a '.' followed by an empty digit string.
78231         Patch by Tor Lillqvist <tml@iki.fi>.
78232
78233 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
78234
78235         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
78236         for backward compatibility with older code.  We need our own
78237         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
78238         it under some other name, and our alloca.h will define it.
78239
78240 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
78241             Derek Price  <derek@ximbiot.com>
78242
78243         * lib/alloca.c: Include <alloca.h>, to get our interface.
78244         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
78245         include <alloca.h> first.  Use C89 prototype for alloca; this
78246         requires including <stddef.h> for size_t.  Use extern "C" if C++.
78247         Use #elif for simplicity, since we can assume C89 now.
78248         Don't try to source the system alloca.h since it will not be found
78249         and to prevent recursively including its replacement.
78250         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
78251         * lib/regex.c: Likewise.
78252
78253 2004-05-16  Derek Price  <derek@ximbiot.com>
78254             Paul Eggert  <eggert@cs.ucla.edu>
78255
78256         getline cleanup.  This changes the getndelim2 API: both order of
78257         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
78258         no delimiter).
78259
78260         * lib/getline.c: Don't include stddef.h or stdio.h, since our
78261         interface does that.
78262         (getline): Always use getdelim, so that we don't have two
78263         copies of this code.
78264         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
78265         if available.
78266         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
78267         (GETNDELIM2_MAXIMUM): New macro.
78268         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
78269         instead of the old practice of delim2==0.  All callers changed.
78270         Return -1 on overflow, instead of returning junk.
78271         Do not set *linesize unless allocation succeeds.
78272         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
78273         that we include sys/types.h.
78274         * lib/getnline.h: Likewise.
78275         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
78276         (getndelim2): Reorder arguments.
78277         * lib/getnline.c (getnline, getndelim):
78278         Don't discard the NMAX argument.
78279         (getnline): Invoke getndelim, to avoid code duplication.
78280         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
78281         of (size_t) -1 by callers of the getnline family.
78282
78283 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78284
78285         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
78286         Check for gettimeofday.
78287         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
78288         Check for settimeofday, stime.
78289
78290 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78291
78292         * lib/nanosleep.c (suspended): Change its type from int to
78293         sig_atomic_t volatile.
78294         (first_call): Make it private to rpl_nanosleep, and have it
78295         be zero initially as that's a bit faster.
78296         (my_usleep): Round up fractional times instead of truncating them,
78297         as this is the usual meaning for 'sleep'.
78298
78299         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
78300         doesn't work.
78301         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
78302         (ENOSYS): Define if not defined.
78303         (settime): Fall back on stime if it exists and settimeofday fails.
78304         But don't bother with fallbacks if a method fails with errno == EPERM.
78305
78306 2004-05-11  Jim Meyering  <jim@meyering.net>
78307
78308         Prior to this change, the save_cwd caller required read access to the
78309         current directory on most systems (ones with the fchdir function).
78310
78311         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
78312         fails, try write-only, and finally, resort to using xgetcwd.
78313
78314 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78315
78316         * lib/obstack.c, obstack.h: Import changes from libc.
78317
78318 2004-04-28  Bruno Haible  <bruno@clisp.org>
78319
78320         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
78321         also implicitly appends .exe to executables.
78322         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
78323         accepts Windows pathnames.
78324         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
78325         Treat Cygwin like Windows, since it now accepts Windows pathnames.
78326         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
78327         Treat Cygwin like Windows, since it now accepts Windows pathnames.
78328         Reported by Derek Robert Price <derek@ximbiot.com>.
78329
78330 2004-04-21  Karl Berry  <karl@gnu.org>
78331
78332         * config/srclist.txt (localcharset.c): break sync.
78333
78334 2004-04-20  Paul Eggert  <eggert@twinsun.com>
78335
78336         * m4/host-os.m4: Add a copyright notice.
78337
78338 2004-04-20  Jim Meyering  <jim@meyering.net>
78339
78340         Change UTILS_ to gl_ in AC_DEFINE'd names.
78341         Change utils_- and jm_-prefixed variables, too.
78342         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
78343         UTILS_FUNC_MKDIR_TRAILING_SLASH.
78344         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
78345
78346         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
78347         Don't emit trailing blanks.
78348         Also rename jm_-prefixed variables to have gl_ prefix.
78349
78350         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
78351         Also rename jm_-prefixed variables to have gl_ prefix.
78352
78353         * m4/jm-macros.m4: Reflect the renamings.
78354         * m4/prereq.m4: Likewise.
78355
78356 2004-04-20  Jim Meyering  <jim@meyering.net>
78357
78358         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
78359         memory.
78360
78361 2004-04-20  Jim Meyering  <jim@meyering.net>
78362             Bruno Haible  <bruno@clisp.org>
78363
78364         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
78365         memory when realloc fails.
78366
78367 2004-04-19  Jim Meyering  <jim@meyering.net>
78368
78369         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
78370         now that readutmp.c may call `free (0)'.
78371
78372 2004-04-19  Bruno Haible  <bruno@clisp.org>
78373
78374         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
78375         * m4/inttypes_h.m4: Likewise.
78376         * m4/stdint_h.m4: Likewise.
78377         * m4/intmax_t.m4: Likewise.
78378         * m4/uintmax_t.m4: Likewise.
78379
78380 2004-04-18  Jim Meyering  <jim@meyering.net>
78381
78382         * m4/prereq.m4: Don't forbid jm_ prefix.
78383
78384         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
78385         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
78386         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
78387         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
78388         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
78389         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
78390         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
78391         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
78392         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
78393         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
78394         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
78395         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
78396         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
78397         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
78398         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
78399         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
78400         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
78401         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
78402         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
78403
78404 2004-04-18  Jim Meyering  <jim@meyering.net>
78405
78406         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
78407         failure, don't leak memory and do call END_UTMP_ENT.
78408
78409 2004-04-16  Jim Meyering  <jim@meyering.net>
78410
78411         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
78412         coreutils' stat program.
78413         (gl_PREREQ): Don't require jm_PREREQ_STAT.
78414
78415 2004-04-11  Paul Eggert  <eggert@twinsun.com>
78416
78417         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
78418         C89.
78419         (CHAR_BIT): Remove, since we assume C89.
78420         Include <stdint.h> if available, as per current Autoconf CVS advice.
78421
78422 2004-03-31  Jim Meyering  <jim@meyering.net>
78423
78424         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
78425         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
78426         * m4/xalloc.m4: Likewise.
78427
78428 2004-03-30  Paul Eggert  <eggert@twinsun.com>
78429
78430         Merge from coreutils.
78431
78432         * m4/inttostr.m4: New file.
78433         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
78434         Require AM_STDBOOL_H and gl_TIMESPEC instead.
78435         Require gl_CLOCK_TIME.
78436         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
78437
78438 2004-03-30  Paul Eggert  <eggert@twinsun.com>
78439
78440         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
78441         not bool, to be more consistent with Unix conventions.
78442         Suggested by Bruno Haible.
78443
78444         Merge from coreutils.
78445
78446         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
78447         * lib/umaxtostr.c: New files.
78448
78449         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
78450         the usual <time.h> dance.
78451         (get_date): Change signature to support fractional time stamps.
78452         All callers changed.
78453         * lib/getdate.y: Include "getdate.h" first, as we can now
78454         assume C89 and don't need to worry about 'const'.
78455         Similarly, include "unlocked-io.h" near start, not in middle.
78456         Include <limits.h>.
78457         (textint.value): Use long int rather than int.
78458         (textint.digits): Use size_t rather than int.
78459         (BILLION, LOG10_BILLION): New constants.
78460         (parser_control): New member rel_ns.  Members day_ordinal,
78461         time_zone, month, day, hour, minutes, rel_year, rel_month,
78462         rel_day, rel_hour, rel_minutes, rel_seconds
78463         are now long int, not int.  Member seconds is now struct timespec,
78464         not int.  New member timespec_seen.  Members dates_seen, days_seen,
78465         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
78466         not int.
78467         (%union.intval): Now long int, not int.
78468         New member timespec.
78469         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
78470         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
78471         (spec): Now is a timespec or an item list.
78472         (timespec, items): New nonterminals.
78473         (time, rel, relunit, number, get_date):
78474         Add support for fractional seconds.
78475         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
78476         (gmtime, localtime, mktime): Remove decls; not needed with C89.
78477         (to_hour): First arg is now long int, not int.
78478         (to_year): Returns long int, not int.
78479         Don't treat year -70 like 70.
78480         (tm_diff): Returns long int, not int.
78481         (lookup_word): Use bool instead of int when appropriate.
78482         (yylex): Use size_t for count, not int.
78483         Detect overflow when parsing large integer constants.
78484         Add support for fractions.
78485         (get_date): Make pointers 'const' if possible.
78486         Use more-portable code to detect integer overflow.
78487         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
78488         Don't use ctime; it's not reliable if the year has >4 digits.
78489
78490         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
78491         This is for compatibility with BSD.
78492
78493         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
78494         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
78495         From coreutils' system.h.
78496
78497         * lib/userspec.c: Don't include "posixver.h".
78498         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
78499         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
78500         compatible extension.  Simplify code by removing a boolean int
78501         that was always nonzero if a string was nonnull.
78502
78503 2004-03-30  Jim Meyering  <jim@meyering.net>
78504
78505         Merge from coreutils.
78506
78507         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
78508         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
78509         on some systems one must include <grp.h> before it.
78510         Reported by Christian Krackowizer.
78511
78512 2004-03-30  Jim Meyering  <jim@meyering.net>
78513
78514         Merge from coreutils.
78515
78516         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
78517
78518         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
78519         an empty input stream.
78520
78521         * lib/readtokens.c: Include <stdbool.h>.
78522         (readtoken): Use `size_t' rather than int/long.
78523         All callers adjusted.
78524         Use `bool' rather than `int' where appropriate.
78525         Use memset rather than an explicit loop.
78526         Use x2nrealloc rather than xrealloc.
78527         Allow the use of `\0' as a delimiter.
78528         (readtokens): Likewise.
78529         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
78530
78531 2004-03-30  Jim Meyering  <jim@meyering.net>
78532
78533         * m4/realloc.m4: Remove file, since now it does no more than
78534         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
78535         the `configure.ac' section of module/realloc.
78536         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
78537
78538 2004-03-30  Bruno Haible  <bruno@clisp.org>
78539
78540         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
78541         nonnull.
78542
78543 2004-03-29  Paul Eggert  <eggert@twinsun.com>
78544
78545         Merge changes to getloadavg.c from coreutils and Emacs.
78546
78547         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
78548         Define to an expression, not to the empty string.
78549         Include cloexec.h and xalloc.h.
78550         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
78551         Use set_cloexec_flag rather than rolling our own.
78552         * lib/cloexec.c, lib/cloexec.h: New files.
78553
78554 2004-03-29  Paul Eggert  <eggert@twinsun.com>
78555
78556         * m4/cloexec.m4: New file.
78557
78558 2004-03-18  Paul Eggert  <eggert@twinsun.com>
78559
78560         * lib/getopt.h: Sync with libc CVS.
78561
78562 2004-03-18  Paul Eggert  <eggert@twinsun.com>
78563             Bruno Haible  <bruno@clisp.org>
78564
78565         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
78566         mbswidth.
78567
78568 2004-03-18  Paul Eggert  <eggert@twinsun.com>
78569             Bruno Haible  <bruno@clisp.org>
78570
78571         * lib/mbswidth.h: Include <wchar.h> only if
78572         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
78573         <wchar.h>.
78574         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
78575
78576 2004-03-09  Paul Eggert  <eggert@twinsun.com>
78577
78578         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
78579         Sync with libc CVS.
78580         * lib/getopt_int.h: New file, also synced from libc.
78581
78582 2004-03-09  Paul Eggert  <eggert@twinsun.com>
78583
78584         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
78585         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
78586         Bring back getopt.c, getopt.h, getopt1.c.
78587
78588 2004-03-07  Paul Eggert  <eggert@twinsun.com>
78589
78590         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
78591         All uses changed.  Check for sa_sigaction member; this fixes
78592         a bug first reported by Jason Andrade in
78593         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
78594
78595 2004-03-07  Paul Eggert  <eggert@twinsun.com>
78596
78597         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
78598         '#if' expressions.  Unlike the code it replaces, it does not
78599         depend on (defined _SC_PAGESIZE).  However, it does depend on
78600         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
78601         first reported by Jason Andrade in
78602         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
78603
78604 2004-02-25  Simon Josefsson  <jas@extundo.com>
78605
78606         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
78607
78608 2004-02-25  Simon Josefsson  <jas@extundo.com>
78609
78610         * lib/strdup.h: New file.
78611         * lib/strdup.c: Include it.
78612         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
78613         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
78614
78615 2004-02-23  Karl Berry  <karl@gnu.org>
78616
78617         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
78618         (from fencepost.gnu.org:/gd/gnuorg).
78619
78620 2004-02-23  Karl Berry  <karl@gnu.org>
78621
78622         * config/srclistvars.sh (GNUORG) [karl]: redefine.
78623         * config/srclist.txt: add maintain/standards documents.
78624
78625 2004-02-18  Bruno Haible  <bruno@clisp.org>
78626
78627         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
78628         Reported by Derek Robert Price <derek@ximbiot.com>.
78629
78630 2004-02-16  Karl Berry  <karl@gnu.org>
78631
78632         * config/mkinstalldirs, install-sh: update from automake.
78633
78634 2004-02-06  Karl Berry  <karl@gnu.org>
78635
78636         * m4/po.m4: update from gettext 0.14.1.
78637
78638 2004-02-06  Karl Berry  <karl@gnu.org>
78639
78640         * lib/config.charset: update from gettext 0.14.1.
78641
78642 2004-02-05  Paul Eggert  <eggert@twinsun.com>
78643
78644         Add comments and code, prompted by suggestions from Bruno Haible
78645         for sh-quote.
78646         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
78647         describing the enum quoting_style values.
78648         * lib/quotearg.c (quotearg_alloc): New function.
78649         (quotearg_buffer_restyled): Treat lone { and } as special.
78650         Treat = as special.  Work around bug with older shells
78651         that "see" a '\' that is really the 2nd byte of a multibyte char.
78652         Quote empty string with shell_quoting_style.
78653
78654 2004-02-03  Bruno Haible  <bruno@clisp.org>
78655
78656         * m4/pipe.m4: New file, from GNU gettext.
78657
78658 2004-02-03  Bruno Haible  <bruno@clisp.org>
78659
78660         * lib/pipe.h: New file, from GNU gettext.
78661         * lib/pipe.c: New file, from GNU gettext.
78662
78663 2004-01-27  Bruno Haible  <bruno@clisp.org>
78664
78665         * m4/execute.m4: New file, from GNU gettext.
78666
78667 2004-01-27  Bruno Haible  <bruno@clisp.org>
78668
78669         * lib/execute.h: New file, from GNU gettext.
78670         * lib/execute.c: New file, from GNU gettext.
78671         * lib/w32spawn.h: New file, from GNU gettext.
78672
78673 2004-01-24  Paul Eggert  <eggert@twinsun.com>
78674
78675         Merge from diffutils.
78676
78677         * lib/file-type.c (file_type): Add typed memory objects.
78678         * lib/file-type.h (S_TYPEISTMO): New macro.
78679
78680         * lib/c-stack.h (c_stack_action): Remove argv argument.
78681         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
78682         (die): Don't calculate message unless segv_action returns.
78683         (get_stack_location, min_address_from_argv, max_address_from_argv,
78684         volatile stack_base, volatile_stack_size): Remove.
78685         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
78686         that every segmentation violation is a stack overflow.  (Ouch!)
78687         See Debian bug 136249 (still outstanding) for more info about why
78688         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
78689
78690 2004-01-24  Paul Eggert  <eggert@twinsun.com>
78691
78692         Exit-status fix from coreutils.
78693
78694         Use exit_failure consistently in place of EXIT_FAILURE,
78695         so that program exit statuses are consistent on failure.
78696
78697         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
78698         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
78699         * lib/argmatch.h: Comment fix to match the above.
78700         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
78701         Now a macro referring to exit_failure, instead of a separate
78702         variable.  Include "exitfail.h" to get it.
78703         * lib/xstrtol.h: Include "exitfail.h".
78704         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
78705
78706         * lib/long-options.c (parse_long_options): Use prototype
78707         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
78708         for clarity.
78709
78710 2004-01-21  Jim Meyering  <jim@meyering.net>
78711
78712         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
78713         so as not to conflict with a different-sized __mktime_internal
78714         function in GNU libc.
78715         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
78716         Problem building statically-linked `ls' reported by Michael Brunnbauer.
78717
78718 2004-01-20  Karl Berry  <karl@gnu.org>
78719
78720         * config/config.guess: update from config.
78721
78722         * config/srclistvars.sh: GNUWWWLICENSES for karl.
78723
78724 2004-01-20  Bruno Haible  <bruno@clisp.org>
78725
78726         Safer stack allocation.
78727         * lib/setenv.c: Include allocsa.h.
78728         (alloca): Remove fallback definition.
78729         (freea): Remove macro.
78730         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
78731         instead of freea.
78732
78733 2004-01-20  Bruno Haible  <bruno@clisp.org>
78734
78735         * m4/eealloc.m4: New file, from GNU gettext.
78736
78737 2004-01-20  Bruno Haible  <bruno@clisp.org>
78738
78739         * m4/allocsa.m4: New file, from GNU gettext.
78740
78741 2004-01-20  Bruno Haible  <bruno@clisp.org>
78742
78743         * lib/xallocsa.h: New file, from GNU gettext.
78744         * lib/xallocsa.c: New file, from GNU gettext.
78745
78746 2004-01-20  Bruno Haible  <bruno@clisp.org>
78747
78748         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
78749
78750 2004-01-20  Bruno Haible  <bruno@clisp.org>
78751
78752         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
78753         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
78754         specially.
78755
78756 2004-01-20  Bruno Haible  <bruno@clisp.org>
78757
78758         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
78759         patch.
78760
78761 2004-01-20  Bruno Haible  <bruno@clisp.org>
78762
78763         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
78764
78765 2004-01-20  Bruno Haible  <bruno@clisp.org>
78766
78767         * lib/eealloc.h: New file.
78768
78769 2004-01-20  Bruno Haible  <bruno@clisp.org>
78770
78771         * lib/binary-io.h: Avoid warnings on Cygwin.
78772
78773 2004-01-20  Bruno Haible  <bruno@clisp.org>
78774
78775         * lib/allocsa.h: New file, from GNU gettext.
78776         * lib/allocsa.c: New file, from GNU gettext.
78777
78778 2004-01-18  Karl Berry  <karl@gnu.org>
78779
78780         * doc/gpl.texi, doc/lgpl.texi: new files.
78781
78782 2004-01-18  Karl Berry  <karl@gnu.org>
78783
78784         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
78785         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
78786
78787 2004-01-15  Paul Eggert  <eggert@twinsun.com>
78788
78789         Merge from coreutils.
78790
78791         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
78792         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
78793         (gl_DEFAULT_POSIX2_VERSION): Move
78794         the documentation from 'configure' into 'config.hin',
78795         so that 'configure --help' isn't burdened by it and
78796         we don't have to worry about its formatting there.
78797         Reword the documentation so that it's more succinct
78798         and can be run together into a single paragraph.
78799         * m4/same.m4 (gl_SAME): Check for pathconf.
78800
78801 2004-01-15  Paul Eggert  <eggert@twinsun.com>
78802
78803         Merge from coreutils.
78804
78805         * lib/posixver.c: Include posixver.h.
78806
78807         * lib/same.c: Include <stdbool.h>, <limits.h>.
78808         (_POSIX_NAME_MAX): Define if not defined.
78809         (MIN): New macro.
78810         (same_name): If file names are silently truncated, report
78811         that the file names are the same if they are the same after
78812         the silent truncation.
78813
78814         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
78815         conversion function.
78816         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
78817         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
78818         longer needed.
78819
78820 2004-01-15  Jim Meyering  <jim@meyering.net>
78821
78822         Merge from coreutils.
78823
78824         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
78825         if no library is required.
78826         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
78827         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
78828         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
78829         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
78830         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
78831         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
78832         value, $ac_cv_search_crypt, if it's "none required".
78833         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
78834         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
78835         not gl_FUNC_GETLOADAVG.
78836         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
78837         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
78838
78839 2004-01-15  Jim Meyering  <jim@meyering.net>
78840
78841         Merge from coreutils.
78842
78843         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
78844         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
78845         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
78846
78847         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
78848         optional configure-time default.
78849
78850         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78851
78852         * lib/xreadlink.c (xreadlink): Correct outdated comment.
78853
78854 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
78855
78856         Merge from coreutils.
78857
78858         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
78859         value, $ac_cv_search_nanosleep, if it's "none required".
78860
78861 2004-01-14  Paul Eggert  <eggert@twinsun.com>
78862
78863         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
78864         with like-named macro in fnmatch.c.
78865         (EXT): Use an internal constant instead.
78866
78867         Merge fnmatch patches from glibc.
78868         * lib/fnmatch.c (mbsinit): Remove define.
78869         Add libc_hidden_ver (__fnmatch, fnmatch).
78870         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
78871         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
78872
78873 2004-01-14  Karl Berry  <karl@gnu.org>
78874
78875         * config/install-sh: update from automake.
78876
78877 2004-01-13  Karl Berry  <karl@gnu.org>
78878
78879         * config/install-sh: update from automake.
78880
78881 2004-01-09  Karl Berry  <karl@gnu.org>
78882
78883         * config/install-sh: update from automake.
78884
78885 2004-01-05  Karl Berry  <karl@gnu.org>
78886
78887         * config/config.{sub,guess}: update from config.
78888
78889 2003-12-31  Karl Berry  <karl@gnu.org>
78890
78891         * config/depcomp: update from automake.
78892
78893 2003-12-14  Karl Berry  <karl@gnu.org>
78894
78895         * lib/config.charset: update from gettext-runtime.
78896
78897 2003-12-03  Paul Eggert  <eggert@twinsun.com>
78898
78899         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
78900         Bug reported by Alfred M. Szmidt.
78901
78902 2003-12-03  Bruno Haible  <bruno@clisp.org>
78903
78904         * m4/gettext.m4: Upgrade from gettext-0.13.
78905         * m4/po.m4: Upgrade from gettext-0.13.
78906         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
78907         * m4/intmax.m4: New file, from gettext-0.13.
78908         * m4/printf-posix.m4: New file, from gettext-0.13.
78909
78910 2003-11-29  Karl Berry  <karl@gnu.org>
78911
78912         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
78913
78914 2003-11-25  Paul Eggert  <eggert@twinsun.com>
78915             Bruno Haible  <bruno@clisp.org>
78916
78917         * lib/printf-parse.h: Don't include sys/types.h.
78918         (ARG_NONE): New macro.
78919         (char_directive): Change type of *arg_index fields to size_t.
78920         * lib/printf-parse.c: Don't include sys/types.h.
78921         (SSIZE_MAX): Remove macro.
78922         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
78923         Remove unnecessary overflow check.
78924         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
78925         fields.
78926
78927 2003-11-25  Bruno Haible  <bruno@clisp.org>
78928
78929         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
78930
78931 2003-11-25  Bruno Haible  <bruno@clisp.org>
78932
78933         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
78934         gt_TYPE_SSIZE_T.
78935
78936 2003-11-24  Paul Eggert  <eggert@twinsun.com>
78937
78938         * modules/alloca: Remove dependency on xalloc.
78939
78940 2003-11-24  Paul Eggert  <eggert@twinsun.com>
78941
78942         * lib/alloca.c: Remove dependency on xalloc module.
78943         (xalloc_die): Remove.
78944         (memory_full) [!defined emacs]: New macro.
78945         [!defined emacs]: Don't include xalloc.h.
78946         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
78947         address arithmetic overflows.  Change datatypes a bit to avoid
78948         unnecessary casts.
78949
78950 2003-11-22  Jim Meyering  <jim@meyering.net>
78951
78952         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
78953         s/size/size_t/.
78954
78955 2003-11-21  Karl Berry  <karl@gnu.org>
78956
78957         * config/config.{sub,guess}: update from config.
78958
78959 2003-11-18  Karl Berry  <karl@gnu.org>
78960
78961         * config/config.{sub,guess}: update from config.
78962
78963         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
78964
78965 2003-11-17  Paul Eggert  <eggert@twinsun.com>
78966
78967         * README: Mention that S+T cannot overflow if S is the size of
78968         an existing object and T is sufficiently small.
78969
78970 2003-11-17  Jim Meyering  <jim@meyering.net>
78971
78972         On systems without utime and without a utimes function capable of
78973         dealing with a NULL struct utimbuf* argument, this utime replacement
78974         could -- in unusual circumstances -- leak a file descriptor.
78975         * lib/utime.c: Include <unistd.h> and <errno.h>.
78976         (utime_null): Be sure to close `fd' and to preserve errno.
78977         Reported by Geoff Collyer via Arnold Robbins.
78978
78979 2003-11-17  Bruno Haible  <bruno@clisp.org>
78980
78981         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
78982         (Depends-on): Add xsize.
78983
78984 2003-11-17  Bruno Haible  <bruno@clisp.org>
78985
78986         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
78987
78988 2003-11-17  Bruno Haible  <bruno@clisp.org>
78989
78990         * lib/vasnprintf.c (alloca): Remove fallback definition.
78991         (freea): Remove definition.
78992         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
78993         Reported by Paul Eggert.
78994
78995 2003-11-16  Paul Eggert  <eggert@twinsun.com>
78996             Bruno Haible  <bruno@clisp.org>
78997
78998         Protect against address arithmetic overflow.
78999         * lib/printf-args.h: Include stddef.h.
79000         (arguments): Change type of field 'count' to size_t.
79001         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
79002         'unsigned int' where appropriate.
79003         * lib/printf-parse.h: Include sys/types.h.
79004         (char_directive): Change type of *arg_index fields to ssize_t.
79005         (char_directives): Change type of fields 'count', max_*_length to
79006         size_t.
79007         * lib/printf-parse.c: Include sys/types.h and xsize.h.
79008         (SSIZE_MAX): Define fallback value.
79009         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
79010         instead of 'int' where appropriate. Check a_allocated, d_allocated
79011         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
79012         * lib/vasnprintf.c: Include xsize.h.
79013         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
79014         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
79015         overflow. Avoid wraparound when converting a width or precision from
79016         decimal to binary.
79017
79018 2003-11-16  Bruno Haible  <bruno@clisp.org>
79019
79020         Update from GNU gettext.
79021         * lib/printf-parse.c: Generalize to it can be compiled for wide
79022         strings.
79023         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
79024         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
79025         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
79026         SNPRINTF): New macros.
79027         Don't include <alloca.h> if the file is used inside libintl.
79028         (local_wcslen): New function, for Solaris 2.5.1.
79029         (VASNPRINTF): Use it instead of wcslen.
79030
79031 2003-11-16  Bruno Haible  <bruno@clisp.org>
79032
79033         * lib/xsize.h (xmax): New function.
79034         (xsum, xsum3, xsum4): Declare as "pure" functions.
79035
79036 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79037
79038         * modules/xalloc (Files): Undo latest change, since xalloc.h
79039         no longer needs SIZE_MAX or PTRDIFF_MAX.
79040
79041 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79042
79043         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
79044         gl_PTRDIFF_MAX.
79045
79046 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79047
79048         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
79049         "return", to pacify some unknown compiler.  Problem reported
79050         by Joerg Schilling.
79051
79052 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79053
79054         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
79055         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
79056         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
79057         heuristic is just as accurate as far as we know, and it removes a
79058         dependency on size_max.m4 and ptrdiff_max.m4.
79059
79060 2003-11-11  Bruno Haible  <bruno@clisp.org>
79061
79062         * modules/xsize (Files): Add m4/size_max.m4.
79063         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
79064
79065 2003-11-11  Bruno Haible  <bruno@clisp.org>
79066
79067         * m4/size_max.m4: New file.
79068         * m4/ptrdiff_max.m4: New file.
79069         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
79070         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
79071         (gl_XALLOC): Invoke it.
79072
79073 2003-11-11  Bruno Haible  <bruno@clisp.org>
79074
79075         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
79076         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
79077         defined.
79078
79079 2003-11-10  Paul Eggert  <eggert@twinsun.com>
79080
79081         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
79082         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
79083         rejected some allocations of exactly SIZE_MAX - 2 bytes.
79084         From Bruno Haible.
79085         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
79086         not (size_t) -1, since it's defined here.
79087
79088 2003-11-09  Karl Berry  <karl@gnu.org>
79089
79090         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
79091
79092 2003-11-06  Paul Eggert  <eggert@twinsun.com>
79093
79094         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
79095         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
79096         Reject sizes of exactly SIZE_MAX bytes.
79097         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
79098         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
79099
79100 2003-11-05  Bruno Haible  <bruno@clisp.org>
79101
79102         * lib/xsize.h: Include limits.h, to avoid a possible collision with
79103         SIZE_MAX defined in <limits.h> on Solaris.
79104
79105 2003-11-04  Jim Meyering  <jim@meyering.net>
79106
79107         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
79108         variable names, rather than @VAR@.
79109         * modules/poll: Likewise.
79110
79111 2003-11-04  Bruno Haible  <bruno@clisp.org>
79112
79113         * modules/xsize: New file.
79114         * modules/linebreak: Depend on xsize.
79115         * MODULES.html.sh (func_all_modules): Add xsize.
79116
79117 2003-11-04  Bruno Haible  <bruno@clisp.org>
79118
79119         * m4/xsize.m4: New file.
79120
79121 2003-11-04  Bruno Haible  <bruno@clisp.org>
79122
79123         * lib/xsize.h: New file.
79124         * lib/linebreak.c: Include xsize.h.
79125         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
79126         argument for overflow.
79127         Suggested by Paul Eggert.
79128
79129 2003-11-03  Karl Berry  <karl@gnu.org>
79130
79131         * config/config.{guess,sub}: update from config.
79132
79133 2003-11-03  Jim Meyering  <jim@meyering.net>
79134
79135         * modules/userspec (lib_SOURCES): Add userspec.h.
79136         (Include): Add "userspec.h".
79137         Improve description.
79138
79139 2003-11-03  Jim Meyering  <jim@meyering.net>
79140
79141         * lib/userspec.c: Include "userspec.h".
79142         * lib/userspec.h: New file.
79143
79144 2003-11-03  Bruno Haible  <bruno@clisp.org>
79145
79146         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
79147
79148 2003-11-03  Bruno Haible  <bruno@clisp.org>
79149
79150         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
79151         available, to avoid (extremely rare) race condition.
79152         Suggested by Paul Eggert.
79153
79154 2003-11-02  Karl Berry  <karl@gnu.org>
79155
79156         * config/srclist.txt (vasprintf.c): sync broken, sigh.
79157
79158 2003-10-31  Paul Eggert  <eggert@twinsun.com>
79159
79160         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
79161         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
79162         (read_filesystem_list): Set and use me_type_malloced.
79163         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
79164         whatever the type happens to be), for brevity and consistency.
79165         Check for size calculation overflow on Alphas running OSF/1.
79166
79167 2003-10-31  Jim Meyering  <jim@meyering.net>
79168
79169         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
79170
79171         * lib/linebuffer.c: Include <string.h> for declaration of memset.
79172
79173 2003-10-30  Paul Eggert  <eggert@twinsun.com>
79174             Bruno Haible  <bruno@clisp.org>
79175
79176         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
79177         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
79178
79179 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79180
79181         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
79182         netbsd*-gnu*.  Suggested by Robert Millan.
79183
79184 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79185
79186         * modules/group-member: Depend on stdbool.
79187
79188 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79189
79190         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
79191
79192 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79193
79194         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
79195         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
79196         after the 'gnu' in these cases.  This fixes some bugs in the
79197         previous change, and is based on suggestions by Robert Millan.
79198
79199 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79200
79201         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
79202         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
79203         no longer needed.
79204         * lib/quotearg.c (quotearg_n_options): Use it.
79205         * lib/group-member.c: Include <stdbool.h>.
79206         (free_group_info): Arg is now const *; don't free arg.
79207         (get_group_info): Now returns bool and accepts struct group_info *,
79208         rather than returning a malloc'ed struct group_info *.
79209         All uses changed.  Check for overflow in internal size calculation.
79210
79211         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
79212         rather than xmalloc/xrealloc.
79213         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
79214         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
79215         conformance bug: the old code used a pointer after freeing the
79216         storage that it addressed.
79217         * lib/hash.c (hash_initialize): Simplify the code by using
79218         xalloc_oversized rather than doing it by hand.
79219         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
79220         the buffer preserved.  Use free and xmalloc instead.
79221         * lib/quotearg.c (quotearg_n_options): Likewise.
79222         Use a simpler test for size overflow.  Don't use xalloc_oversized
79223         because unsigned int might be wider than size_t (!); this suggests
79224         that we should switch from unsigned int to size_t for slot numbers.
79225
79226 2003-10-28  Paul Eggert  <eggert@twinsun.com>
79227
79228         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
79229         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
79230         NetBSD kernels.  Requested by Richard Stallman.
79231
79232 2003-10-27  Paul Eggert  <eggert@twinsun.com>
79233
79234         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
79235         to allocate the returned structure.  Do not allocate a subarray,
79236         as x2nrealloc will do that.
79237         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
79238         instead of xnrealloc.
79239         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
79240
79241 2003-10-27  Bruno Haible  <bruno@clisp.org>
79242
79243         * lib/stdbool_.h: Better support for BeOS.
79244
79245 2003-10-26  Paul Eggert  <eggert@twinsun.com>
79246
79247         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
79248         now uses inline.
79249
79250 2003-10-26  Paul Eggert  <eggert@twinsun.com>
79251
79252         * lib/xalloc.h (xalloc_oversized): New static inline function, for
79253         callers that want to do their own size-overflow checking.  Include
79254         <stdbool.h>, since xalloc_oversized returns bool.
79255         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
79256         to use xalloc_oversized.
79257
79258         Add two functions x2realloc, x2nrealloc, for programs that grow
79259         arrays dynamically by doubling their sizes.
79260         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
79261         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
79262         New functions.
79263
79264         Port to C99 semantics for 'inline' of external functions.
79265         Bug reported by Bruno Haible.
79266         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
79267         with the old contents of xnmalloc.
79268         (xnmalloc, xmalloc): Use it.
79269         (xnrealloc_inline): New static inline function,
79270         with the old contents of xnrealloc.
79271         (xnrealloc, xrealloc): Use it.
79272
79273         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
79274         that.
79275
79276 2003-10-26  Karl Berry  <karl@gnu.org>
79277
79278         * config/srclist.txt (COPYING.DOC): no longer available from
79279         /gd/gnuorg; don't know where the ultimate source is.
79280
79281 2003-10-25  Paul Eggert  <eggert@twinsun.com>
79282
79283         Fix several address-calculation bugs in the hash modules,
79284         plus some minor code cleanup.
79285
79286         * lib/hash.h: Include <stdbool.h>, for bool.
79287         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
79288         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
79289         hash_get_n_entries, hash_get_max_bucket_length,
79290         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
79291         hash_rehash): Use size_t rather than unsigned.
79292         * lib/hash.c (struct hash_table, hash_get_n_buckets,
79293         hash_get_n_buckets_used, hash_get_n_entries,
79294         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
79295         hash_get_entries, hash_do_for_each, hash_string, is_prime,
79296         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
79297         Likewise.
79298         (SIZE_MAX): Define if not defined.
79299         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
79300         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
79301         hash_print):
79302         Use const * when possible.
79303         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
79304         (check_tuning): Fix bug: if tuning parameters were very close to
79305         0 or 1, rounding errors could have caused subscript violations.
79306         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
79307         (hash_initialize): Add 'fail:' label
79308         to free table and return NULL, and use it to simplify code.
79309         Use calloc rather than clearing the storage ourself.
79310         (hash_initialize, hash_rehash): Check for arithmetic overflow in
79311         buffer size calculations.
79312         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
79313         Include <stddef.h>, for size_t.
79314         * lib/hash-pjw.c (hash_pjw): Likewise.
79315         Switch to method described by Bruno Haible.
79316         Include <limits.h>, for CHAR_BIT.
79317         (SIZE_BITS): New macro.
79318
79319 2003-10-23  Paul Eggert  <eggert@twinsun.com>
79320
79321         * m4/getline.m4 (AM_FUNC_GETLINE):
79322         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
79323         hosts.  Problem reported by Derek Robert Price in
79324         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
79325         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
79326         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
79327
79328 2003-10-21  Paul Eggert  <eggert@twinsun.com>
79329
79330         * lib/getndelim2.c (getndelim2): When size calculation overflows,
79331         ceiling the allocation at NMAX bytes rather than silently
79332         discarding input bytes before NMAX is reached.  This makes
79333         a difference only if NMAX exceeds SIZE_MAX / 2.
79334
79335         * lib/obstack.c: Merge from glibc.
79336         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
79337         Add libc_hidden_def (_obstack_newchunk).
79338         (_obstack_free) [! defined _LIBC]: Remove.
79339         [defined _LIBC]: Make a strong alias from obstack_free, rather than
79340         a clone of the function body.
79341         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
79342         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
79343
79344         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
79345         glibc.
79346         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
79347         arg to memcpy.
79348
79349         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
79350         (obstack_ptr_grow_fast, obstack_int_grow_fast):
79351         Don't use lvalue casts, as GCC plans to remove support for them
79352         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
79353         was also present in the non-GCC version, indicating that this
79354         code had always been buggy and had never been widely used.
79355         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
79356         Use the fast variant of each macro, rather than copying the
79357         definiens of the fast variant; that way, we'll be more likely to
79358         catch future bugs in the fast variants.
79359
79360 2003-10-20  Bruno Haible  <bruno@clisp.org>
79361
79362         * modules/wait-process: New file.
79363         * MODULES.html.sh (func_all_modules): Add wait-process.
79364
79365 2003-10-20  Bruno Haible  <bruno@clisp.org>
79366
79367         * m4/wait-process.m4: New file.
79368
79369 2003-10-20  Bruno Haible  <bruno@clisp.org>
79370
79371         * lib/wait-process.h: New file, from GNU gettext.
79372         * lib/wait-process.c: New file, from GNU gettext.
79373
79374 2003-10-19  Jim Meyering  <jim@meyering.net>
79375
79376         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
79377         HPUX 10.20.
79378
79379 2003-10-18  Karl Berry  <karl@gnu.org>
79380
79381         * config/config.guess: update from config.
79382
79383 2003-10-16  Paul Eggert  <eggert@twinsun.com>
79384
79385         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
79386         (getgroups): First arg is int, not size_t.
79387         Don't let 'free' mangle errno.
79388
79389 2003-10-16  Paul Eggert  <eggert@twinsun.com>
79390
79391         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
79392
79393 2003-10-16  Karl Berry  <karl@gnu.org>
79394
79395         * config/config.{guess,sub}: update from config.
79396
79397 2003-10-16  Jim Meyering  <jim@meyering.net>
79398
79399         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
79400         memcpy.
79401
79402 2003-10-15  Paul Eggert  <eggert@twinsun.com>
79403
79404         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
79405         (SIZE_MAX): Remove.
79406         (new_exclude, add_exclude_file): Initial size no longer needs to
79407         be a power of 2.
79408         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
79409         our own address arithmetic overflow checking.
79410
79411         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
79412         (fnmatch): Do not alloca more than 2000 wide characters;
79413         instead, use malloc for large buffers.
79414         Check for address arithmetic overflow, and return -1
79415         with errno set to ENOMEM in that case.
79416         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
79417         (NEW_PATTERN): Do not alloca more than 8000 bytes;
79418         instead, return -1.  Check for address arithmetic overflow.
79419
79420 2003-10-14  Paul Eggert  <eggert@twinsun.com>
79421
79422         Handle invalid suffixes and overflow independently, so that
79423         callers can treat them independently as needed.  Fix some bugs in
79424         suffix handling, e.g., "100k@" was not diagnosed as an invalid
79425         suffix for a human-readable blocksize.  The major caller-visible
79426         change is the addition of a new
79427         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
79428         that both overflow and suffix chars were found.
79429
79430         * lib/human.c (humblock): Don't check separately for invalid suffix
79431         char; that is xstrtoumax's job (now that its bug is fixed).
79432         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
79433         INTMAX_MAX]: New macros.
79434         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
79435         TYPE_MAXIMUM): New macros.
79436         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
79437         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
79438         if overflow occurs, as it's what __strtol does and it's more useful
79439         in practice.
79440         (__xstrtol): If __strtol reports some error other than ERANGE,
79441         reflect it to the caller as LONGINT_INVALID.  If it reports
79442         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
79443         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
79444         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
79445         value.
79446         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
79447         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
79448         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
79449         [defined UINTMAX_MAX]: New macros.
79450
79451 2003-10-14  Bruno Haible  <bruno@clisp.org>
79452
79453         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
79454
79455 2003-10-14  Bruno Haible  <bruno@clisp.org>
79456
79457         * m4/sig_atomic_t: New file, from GNU gettext.
79458         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
79459
79460 2003-10-14  Bruno Haible  <bruno@clisp.org>
79461
79462         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
79463         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
79464         Also use volatile where needed.
79465
79466 2003-10-12  Paul Eggert  <eggert@twinsun.com>
79467
79468         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
79469         Change maintainer from Bruno Haible to 'all'.
79470
79471 2003-10-12  Paul Eggert  <eggert@twinsun.com>
79472
79473         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
79474
79475 2003-10-12  Paul Eggert  <eggert@twinsun.com>
79476
79477         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
79478         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
79479         and define in terms of the other primitives.
79480         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
79481         (SIZE_MAX): Define if not already defined.
79482         (array_size_overflow): New function.
79483         (xalloc_die): Abort instead of exiting if 'error' returns.
79484         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
79485         (xmalloc, xrealloc): Use them.
79486         (xcalloc): Check for address arithmetic overflow.
79487         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
79488         a bit faster than strcpy.
79489
79490 2003-10-10  Simon Josefsson  <jas@extundo.com>
79491
79492         * modules/argp (Depends-on): Add restrict and strcase.
79493
79494 2003-10-10  Simon Josefsson  <jas@extundo.com>
79495
79496         * m4/argp.m4: Add AC_C_INLINE.
79497
79498 2003-10-08  Paul Eggert  <eggert@twinsun.com>
79499
79500         Merge getpass from libc, plus a few fixes.
79501
79502         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
79503         Include <stdbool.h>.
79504         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
79505         __fsetlocking to empty.
79506         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
79507         do include <bits/libc-lock.h>.
79508         Do not include <fcntl.h>; not needed.
79509         [_LIBC]: Include <wchar.h>.
79510         (NOTCANCEL_MODE): New macro.
79511         (flockfile, funlockfile) [_LIBC]: New macros.
79512         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
79513         [!_LIBC]: New macros.
79514         (call_fclose): New function.
79515         (getpass): Use it.  Save tty stream separately; this simplifies the
79516         code and makes it more reliable if stdin happens to equal stdout.
79517         Invoke __fsetlocking on tty.
79518         Handle thread cancellation if needed.
79519         Namespace cleanup (use __tcgetattr, __getline).
79520         Use bool for Booleans.
79521         [USE_IN_LIBIO]: Handle wide streams.
79522         [!_LIBC]: Unconditionally do the fseek, since we don't know what
79523         stream might go where.
79524
79525         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
79526         doesn't have to include <stdio.h> before us.
79527         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
79528         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
79529         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
79530         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
79531         if not declared, so that we can use getpass.c code from libc without
79532         rewriting it.
79533         (flockfile, ftrylockfile, funlockfile): New macros.
79534
79535 2003-10-08  Paul Eggert  <eggert@twinsun.com>
79536
79537         * modules/getpass: Depend on stdbool.
79538
79539 2003-10-08  Paul Eggert  <eggert@twinsun.com>
79540
79541         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
79542
79543 2003-10-07  Karl Berry  <karl@gnu.org>
79544
79545         * config/config.{guess,sub}: update from config.
79546
79547 2003-10-06  Jim Meyering  <jim@meyering.net>
79548             Bruno Haible  <bruno@clisp.org>
79549
79550         This lets translators provide better translations for the
79551         "Written by ..." part of --version output.
79552         * lib/version-etc.h: Include stdarg.h.
79553         (version_etc_copyright): Declare as readonly.
79554         (version_etc): Make this function variadic with a NULL-terminated list
79555         of author name strings.
79556         (version_etc_va): New declaration.
79557         * lib/version-etc.c: Include stdarg.h, stdlib.h.
79558         (version_etc_copyright): Declare as readonly.
79559         (version_etc_va): New function. Provide a different translatable string
79560         for each possible number of authors < 10. Abbreviate when there are 10
79561         authors or more.
79562         (version_etc): Make this function variadic. Call version_etc_va.
79563         Suggestion from Gary V. Vaughan.
79564
79565         * lib/long-options.h (parse_long_options): Change prototype: the
79566         authors string is moved to the end and becomes variadic.
79567         * lib/long-options.c: Include stdarg.h.
79568         (parse_long_options): Make this function variadic, too.
79569         Call version_etc_va, not version_etc.
79570
79571 2003-10-06  Bruno Haible  <bruno@clisp.org>
79572
79573         * modules/version-etc-2: Remove file.
79574         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
79575
79576 2003-10-06  Bruno Haible  <bruno@clisp.org>
79577
79578         * modules/fatal-signal: New file.
79579         * MODULES.html.sh (func_all_modules): Add fatal-signal.
79580
79581 2003-10-06  Bruno Haible  <bruno@clisp.org>
79582
79583         * m4/fatal-signal.m4: New file.
79584         * m4/signalblocking.m4: New file, from GNU gettext.
79585
79586 2003-10-06  Bruno Haible  <bruno@clisp.org>
79587
79588         * lib/version-etc-2.h: Remove file.
79589         * lib/version-etc-2.c: Remove file.
79590
79591 2003-10-06  Bruno Haible  <bruno@clisp.org>
79592
79593         * lib/fatal-signal.h: New file, from GNU gettext.
79594         * lib/fatal-signal.c: New file, from GNU gettext.
79595
79596 2003-10-05  Paul Eggert  <eggert@twinsun.com>
79597
79598         * README: Rework advice for preventing empty .o files.
79599         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
79600         not <sys/types.h>.
79601
79602 2003-10-04  Karl Berry  <karl@gnu.org>
79603
79604         * lib/argp*: update from libc.
79605
79606 2003-10-04  Karl Berry  <karl@gnu.org>
79607
79608         * config/config.{guess,sub}: update from config.
79609
79610 2003-10-02  Bruno Haible  <bruno@clisp.org>
79611
79612         * modules/lchown (Include): Add lchown.h.
79613         * modules/time_r (Include): Use "..." syntax.
79614         * modules/xgetdomainname (Include): Add xgetdomainname.h.
79615
79616 2003-10-01  Simon Josefsson  <jas@extundo.com>
79617
79618         * MODULES.html.sh (func_all_modules): Move gethostname from section
79619         'based on' to section 'lacking' POSIX:2001.
79620
79621 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
79622
79623         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
79624         to output mode on the same stream.
79625
79626 2003-09-29  Paul Eggert  <eggert@twinsun.com>
79627
79628         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
79629         Fix arg typo in previous patch.
79630
79631 2003-09-28  Jim Meyering  <jim@meyering.net>
79632
79633         * lib/error.c: Correct cpp indentation.
79634
79635 2003-09-27  Paul Eggert  <eggert@twinsun.com>
79636
79637         * modules/free: New file.
79638
79639 2003-09-27  Paul Eggert  <eggert@twinsun.com>
79640
79641         * m4/free.m4: New file.
79642
79643 2003-09-27  Paul Eggert  <eggert@twinsun.com>
79644
79645         * lib/minmax.h (MIN, MAX)
79646         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
79647         Omit the special code that used __typeof__, since we worry that
79648         it could be more trouble than it's worth.  See:
79649         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
79650         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
79651
79652         * lib/free.c: New file.
79653
79654 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
79655
79656         Trivial fixes to Makefile.am parts of module listings.
79657         * modules/strstr: Append strstr.h to lib_SOURCES.
79658         * modules/strcase: Likewise, for strcase.h.
79659
79660 2003-09-27  Karl Berry  <karl@gnu.org>
79661
79662         * config/mkinstalldirs: update from automake.
79663
79664 2003-09-26  Paul Eggert  <eggert@twinsun.com>
79665
79666         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
79667         (error_tail): Do not loop, reallocating temporary buffer, since
79668         the output cannot contain more wide characters than the input
79669         contains bytes, the size must be big enough already.  This avoids
79670         one potential size overflow calculation.  Check for size overflow
79671         when calculating temporary buffer size.  Free temporary buffer
79672         when done, if it was allocated with malloc; this plugs a memory
79673         leak.  Remove casts from void * to pointers, that are no longer
79674         needed now that we're assuming C89 or better.
79675
79676         Merge error changes from glibc.
79677
79678         * lib/error.c, error.h: Update copyright notice header to match glibc.
79679         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
79680         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
79681         Disable cancellation while printing error.
79682         * lib/error.h: Prepend __ to parameter names.
79683
79684 2003-09-26  Jim Meyering  <jim@meyering.net>
79685
79686         * lib/error.c (error_tail): Move some declarations
79687         into inner scope where the local variables are used.
79688
79689 2003-09-26  Bruno Haible  <bruno@clisp.org>
79690
79691         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
79692         stpncpy().
79693         Don't define stpncpy through config.h; it's now done through stpncpy.h.
79694
79695 2003-09-26  Bruno Haible  <bruno@clisp.org>
79696
79697         * lib/stpncpy.h (gnu_stpncpy): New declaration.
79698         (stpncpy): Define as alias for gnu_stpncpy.
79699         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
79700
79701 2003-09-25  Simon Josefsson  <jas@extundo.com>
79702
79703         * lib/xgetdomainname.h: New file.
79704         * lib/xgetdomainname.c: New file.
79705
79706 2003-09-25  Simon Josefsson  <jas@extundo.com>
79707             Bruno Haible  <bruno@clisp.org>
79708
79709         * modules/getdomainname: New file.
79710         * modules/xgetdomainname: New file.
79711         * MODULES.html.sh (func_all_modules): Add getdomainname,
79712         xgetdomainname.
79713
79714 2003-09-25  Simon Josefsson  <jas@extundo.com>
79715             Bruno Haible  <bruno@clisp.org>
79716
79717         * m4/getdomainname.m4: New file.
79718
79719 2003-09-25  Simon Josefsson  <jas@extundo.com>
79720             Bruno Haible  <bruno@clisp.org>
79721
79722         * lib/getdomainname.h: New file.
79723         * lib/getdomainname.c: New file.
79724
79725 2003-09-25  Karl Berry  <karl@gnu.org>
79726
79727         * lib/argp-fmtstream.c, argp-help.c: update from libc.
79728
79729 2003-09-25  Karl Berry  <karl@gnu.org>
79730
79731         * config/install-sh: update from automake.
79732
79733 2003-09-25  Bruno Haible  <bruno@clisp.org>
79734
79735         * modules/version-etc-2: New file, from modules/version-etc with
79736         modifications.
79737         * MODULES.html.sh (func_all_modules): Add version-etc-2.
79738
79739 2003-09-25  Bruno Haible  <bruno@clisp.org>
79740
79741         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
79742         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
79743
79744 2003-09-24  Simon Josefsson  <jas@extundo.com>
79745
79746         * modules/xgethostname: Add xgethostname.h.
79747
79748 2003-09-24  Paul Eggert  <eggert@twinsun.com>
79749
79750         * lib/linebuffer.c (freebuffer): Don't free the argument, just
79751         the buffer associated with the argument.  Bug reported by
79752         Simon Josefsson.
79753
79754 2003-09-24  Paul Eggert  <eggert@twinsun.com>
79755
79756         * README: Document assumptions that 'int' is at least 32 bits
79757         wide, that integer arithmetic is 2's complement without overflow,
79758         that there are no holes in integer values, that adding sizes of
79759         two nonoverlapping objects can't overflow, and that all-bits-zero
79760         yields scalar zero.  Fix spelling and capitalization typos.
79761
79762 2003-09-19  Karl Berry  <karl@gnu.org>
79763
79764         * lib/argp.h: update from libc.
79765
79766 2003-09-17  Paul Eggert  <eggert@twinsun.com>
79767
79768         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
79769         to avoid spurious warnings like "AC_RUN_IFELSE was called before
79770         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
79771
79772 2003-09-17  Paul Eggert  <eggert@twinsun.com>
79773
79774         * gnulib-tool: Use "test -h", not "test -L", for portability
79775         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
79776         (tags_regexp): Remove, since \| doesn't conform to POSIX.
79777         (sed_extract_prog): Issue s commands one-by-one, rather than
79778         using \| in one s command.
79779
79780 2003-09-16  Paul Eggert  <eggert@twinsun.com>
79781
79782         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
79783         input error, instead of returning NULL the next time we are called
79784         (and therefore losing track of errno).
79785
79786 2003-09-16  Bruno Haible  <bruno@clisp.org>
79787
79788         * gnulib-tool (func_create_testdir): Warn about duplicated
79789         dependencies.
79790
79791 2003-09-15  Paul Eggert  <eggert@twinsun.com>
79792
79793         * modules/argmatch, modules/fatal, modules/obstack,
79794         modules/xalloc, modules/xgethostname: Sort dependencies by
79795         importance, not alphabetically.
79796
79797 2003-09-15  Paul Eggert  <eggert@twinsun.com>
79798
79799         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
79800         fails, so that the caller gets the proper errno.
79801
79802         * lib/readutmp.c (read_utmp): Likewise.
79803         Check for fstat error.  Close stream and free storage
79804         when failing.
79805
79806 2003-09-14  Karl Berry  <karl@gnu.org>
79807
79808         * config/srclist.txt (strdup.c): disable for c89 changes.
79809
79810 2003-09-14  Jim Meyering  <jim@meyering.net>
79811
79812         * lib/getloadavg.c: Correct cpp indentation.
79813         * lib/strdup.c: Likewise.
79814         * lib/vasnprintf.c: Likewise.
79815
79816 2003-09-14  Bruno Haible  <bruno@clisp.org>
79817
79818         * modules/fwriteerror: New file.
79819         * MODULES.html.sh (func_all_modules): Add fwriteerror.
79820
79821 2003-09-14  Bruno Haible  <bruno@clisp.org>
79822
79823         * lib/fwriteerror.h: New file.
79824         * lib/fwriteerror.c: New file.
79825
79826 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79827
79828         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
79829         modules/xgethostname, modules/xalloc: Depend on exit.
79830
79831 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79832
79833         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
79834
79835         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
79836         and AC_MINIX, too, so that their extensions are available.
79837
79838         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
79839         This macro has been superseded by gl_BACKUPFILE.
79840
79841         More patches to assume C89 or better.
79842
79843         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
79844
79845         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
79846         unconditionally.
79847         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
79848         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
79849         Include <string.h>, <stdlib.h> unconditionally.
79850         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
79851         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
79852         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
79853         headers or for string.h.
79854         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
79855         or strtoul.
79856
79857         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
79858         headers.
79859         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
79860         * m4/userspec.m4 (gl_USERSPEC): Likewise.
79861         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
79862         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
79863         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79864         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
79865         memcpy, memset.
79866         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
79867         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
79868         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
79869         strtol.
79870         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
79871         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
79872         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
79873         strtoul.
79874
79875 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79876
79877         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
79878         * lib/obstack.c [!defined _LIBC]: Likewise.
79879         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
79880         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
79881         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
79882
79883         More changes to assume C89 or better.
79884
79885         * lib/error.c (error_tail): Assume vprintf.
79886
79887         * lib/argmatch.c (getenv): Remove decl.
79888         * lib/progreloc.c (get_full_program_name): Define via prototype.
79889         * lib/setenv.c (clearenv): Likewise.
79890         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
79891         needed.
79892         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
79893         (malloc, memcpy): Remove decls.
79894         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
79895         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
79896         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
79897         (memcpy): Remove macro.
79898         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
79899         (__P): Remove.  All uses removed.
79900         (PTR): Remove.  All uses changed to void *.
79901         (CHAR_BIT, NULL): Remove.
79902         (spaces, zeros, memset_space, memset_zero)
79903         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
79904         Remove.
79905         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
79906         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
79907         Define with prototype.
79908         Remove now-unnecessary prototype decl.
79909         (extra_args_spec): Assume ANSI C.  All uses changed.
79910         (extra_args_spec_iso): Remove.
79911         (my_strftime, emacs_strftimeu): Define via prototype.
79912         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
79913         unconditionally.
79914         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
79915         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
79916         (strtoul, strtol): Remove decls.
79917         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
79918         LONG_MAX): Remove.
79919         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
79920         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
79921         (LOCALE_PARAM_PROTO): New macro.
79922         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
79923         (INTERNAL (strtol), strtol): Define with a prototype.
79924         (PARAMS): Remove.  All uses removed.
79925         * lib/tempname.c: Include <string.h> unconditionally.
79926         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
79927         * lib/xgethostname.c (main): Define with a prototype.
79928         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
79929         Include <stdlib.h> unconditionally.
79930         (calloc, malloc, realloc, free): Remove decls.
79931         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
79932         Include <stdlib.h> unconditionally.  Sort include file names.
79933         (strtod): Remove.
79934         (xstrtod): Define with a prototype.
79935         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
79936         (strtol, strtoul): Remove decls.
79937
79938 2003-09-11  Paul Eggert  <eggert@twinsun.com>
79939
79940         More patches to assume C89 or better.
79941         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
79942         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
79943         string.h, memchr, STDC_HEADERS.
79944
79945 2003-09-11  Paul Eggert  <eggert@twinsun.com>
79946
79947         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
79948         Include <stdlib.h>, <string.h> unconditionally.
79949         Remove now-unnecessary cast to char *.
79950         * lib/strnlen.c: Include <string.h> unconditionally.
79951         * lib/yesno.c (yesno): Define with a prototype.
79952
79953 2003-09-11  Bruno Haible  <bruno@clisp.org>
79954
79955         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
79956
79957 2003-09-10  Jim Meyering  <jim@meyering.net>
79958
79959         * lib/error.c: Correct indentation of cpp directives.
79960
79961 2003-09-10  Bruno Haible  <bruno@clisp.org>
79962
79963         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
79964         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
79965         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
79966         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
79967         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
79968         <stdlib.h> and <string.h> checks.
79969         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
79970         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
79971
79972 2003-09-10  Bruno Haible  <bruno@clisp.org>
79973
79974         * lib/strcspn.c: Include <string.h> unconditionally.
79975         * lib/strpbrk.c: Include <string.h> unconditionally.
79976         * lib/strstr.c: Include <string.h> unconditionally.
79977         * lib/unicodeio.c: Include <string.h> unconditionally.
79978         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
79979         * lib/unsetenv.c: Likewise.
79980         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
79981         * lib/yesno.c: Include <stdlib.h> unconditionally.
79982         (rpmatch): Add prototype.
79983
79984 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79985
79986         More patches to assume C89 or better.
79987         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
79988         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
79989         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
79990         or for string.h.
79991         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
79992         stdlib.h.
79993         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
79994         C headers.
79995         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
79996         string.h.
79997         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
79998         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
79999         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
80000         or for string.h.
80001         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
80002         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
80003         C headers.
80004         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
80005         memcpy.
80006         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
80007         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
80008         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
80009         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
80010         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
80011         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
80012         string.h, free.
80013         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
80014         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
80015         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
80016         C headers, or for string.h.
80017         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
80018         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
80019         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
80020         headers, memory.h, stdlib.h, string.h, strings.h.
80021         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
80022         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
80023         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
80024         strchr.
80025         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
80026         headers, memory.h, string.h.
80027         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
80028         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
80029         free.
80030         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
80031         headers.
80032         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
80033         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
80034         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
80035         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
80036         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
80037
80038 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80039
80040         More K&R removal.
80041
80042         * lib/acosl.c (main): Use a prototype.
80043         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
80044         tanl.c: Likewise.
80045
80046         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
80047
80048         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
80049         (getopt, etopt_long, getopt_long_only, _getopt_internal)
80050         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
80051         with a prototype.
80052         * lib/getopt.c (const): Remove macro.
80053         Include <string.h> unconditionally.
80054         (my_index): Remove; all uses changed to strchr.
80055         (strlen): Remove decl.
80056         (exchange): Remove forward decl; no longer needed.
80057         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
80058         Define with prototype.
80059         * lib/getopt1.c (const): Remove macro.
80060         (getopt_long, getopt_long_only, main): Define with prototype.
80061
80062         * lib/getugroups.c: Include <string.h> unconditionally.
80063
80064         * lib/getusershell.c: Include <stdlib.h> unconditionally.
80065         (getusershell, setusershell, endusershell, readname, main):
80066         Define with prototypes.
80067
80068         * lib/group-member.c: Include group-member.h first.
80069         Include <stdlib.h> unconditionally.
80070
80071         * lib/hard-locale.c: Include hard-locale.h first.
80072         Include <stdlib.h>, <string.h> unconditionally.
80073
80074         * lib/hash.c (free, malloc): Remove decls.
80075         Include <stdlib.h> unconditionally.
80076
80077         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
80078         (getenv): Do not declare.
80079
80080         * lib/idcache.c: Include <string.h> unconditionally.
80081
80082         * lib/long-options.c: Include long-options.h first, to test interface.
80083         Include <stdlib.h> unconditionally.
80084
80085         * lib/makepath.c: Include makepath.h first, to test interface.
80086         Include <stdlib.h> and <string.h> unconditionally.
80087
80088         * lib/linebuffer.c: Include <stdlib.h>.
80089         (free): Remove decl.
80090
80091         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
80092         stddef.h. rpl_malloc returns void *, not char *.
80093         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
80094         prototype.
80095
80096         * lib/md5.h: Include <limits.h> unconditionally.
80097         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
80098         (__P): Remove; all uses removed.
80099         * lib/md5.c: Include "md5.h" first.
80100         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
80101         md5_buffer, md5_process_bytes, md5_process_block):
80102         Define with prototypes.
80103         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
80104         * lib/sha.c: Include "sha.h" first.
80105         Include <stdlib.h>, <string.h> unconditionally.
80106
80107         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
80108         * lib/memcmp.c (__ptr_t): Likewise.
80109         * lib/memrchr.c (__ptr_t): Likewise.
80110         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
80111         Include <string.h> unconditionally.
80112         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
80113         * lib/memchr.c: Include <stdlib.h> unconditionally.
80114         * lib/memchr.c (LONG_MAX): Remove.
80115         * lib/memrchr.c (LONG_MAX): Likewise.
80116         * lib/memchr.c (__memchr): Define via a prototype.
80117         * lib/memrchr.c (__memrchr): Likewise.
80118         * lib/memcmp.c (__P): Remove, and remove all uses.
80119         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
80120         Remove forward decls; no longer needed.
80121         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
80122         Use types required by C89 in prototype.
80123
80124         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
80125         * lib/savedir.c: Likewise.
80126         * lib/mkdir.c (free): Remove decl.
80127         * lib/rmdir.c (rmdir): Define with a prototype.
80128         * lib/savedir.c: Include savedir.h first, to test interface.
80129
80130         * lib/mktime.c (STDC_HEADERS): Remove.
80131         Include <stdlib.h>, <string.h> unconditionally.
80132
80133         * lib/modechange.c: Include <stdlib.h> unconditionally.
80134         (malloc): Remove decl.
80135
80136         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
80137         (free): Remove decl.
80138
80139         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
80140         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
80141         (This type really should be intptr_t, but that's a C99ism.)
80142         (_obstack_memcpy): Remove: all uses changed to memcpy.
80143         Include <string.h> unconditionally.
80144         (struct obstack): Assume __STDC__ for types of members
80145         chunkfun, freefun, extra_arg.
80146         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
80147         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
80148         obstack_begin, obstack_specify_allocation,
80149         obstack_specify_allocation_with_arg, obstack_chunkfun,
80150         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
80151         Remove unprototyped decls and the macros that use them.
80152         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
80153         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
80154         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
80155         (defined __STDC__ && __STDC__)]:
80156         Remove nonprototyped code.
80157         Include <stdlib.h> unconditionally.
80158         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
80159         _obstack_allocated_p, _obstack_free, obstack_free,
80160         _obstack_memory_used, print_and_abort):
80161         Define using prototypes.
80162         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
80163         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
80164         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
80165         obstack_next_free, obstack_object_size, obstack_room) [0]:
80166         Remove unused, unprototyped code.
80167
80168         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
80169
80170         * lib/physmem.c (physmem_total, physmem_available, main): Define
80171         with prototypes.
80172
80173         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
80174         (main): Define with a prototype.
80175
80176         * lib/posixver.c (getenv): Remove decl.
80177
80178         * lib/putenv.c (malloc): Returns void *, not char *.
80179         Include <string.h> unconditionally.
80180         (strchr, memcpy, NULL): Do not define.
80181
80182         * lib/readtokens.c: Include readtokens.h first, to test interface.
80183         Include <stdlib.h>, <string.h> unconditionally.
80184         (init_tokenbuffer): Define with a prototype.
80185
80186         * lib/regex.c (PARAMS): Remove.  All uses removed.
80187         All uses of _RE_ARGS removed, too.
80188         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80189         unconditionally.
80190         (bzero): Assume memset exists.
80191         (memcmp, memcpy, NULL): Remove.
80192         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
80193         char, or assignments to local vars of type signed char.
80194         (init_syntax_once, PREFIX(extract_number_and_incr),
80195         PREFIX(print_partial_compiled_pattern),
80196         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
80197         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
80198         PREFIX(regex_grow_registers), PREFIX(regex_compile),
80199         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
80200         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
80201         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
80202         wcs_compile_range, byte_compile_range, truncate_wchar,
80203         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
80204         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
80205         count_mbs_length, wcs_re_match_2_internal,
80206         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
80207         PREFIX(alt_match_null_string_p),
80208         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
80209         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
80210         regfree, PREFIX(extract_number)): Define with prototype.  Remove
80211         now-unnecessary declaration, if any.
80212         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
80213         regcomp, regexec):
80214         Remove now-unnecessary casts among pointer types.
80215         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
80216
80217         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
80218         (free): Remove decl.
80219
80220         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
80221
80222         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
80223         (free): Remove decl.
80224
80225         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
80226         * lib/xgetcwd.c: Likewise.
80227
80228         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
80229         (free): Remove decl.
80230
80231         * lib/strchrnul.c (strchrnul): Define with a prototype.
80232         Fix bug: c_in was not converted to char before searching.
80233
80234         The following changes are not K&R related:
80235
80236         * lib/group-member.h: Include <sys/types.h>, so that this file is
80237         self-contained.
80238         * lib/makepath.h: Likewise.
80239
80240         * lib/getusershell.c (readname, default_index, line_size, readname):
80241         Use size_t, not int, for sizes.
80242         (readname): If the size overflows, report an error instead of
80243         looping forever.
80244
80245 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80246
80247         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
80248         libc.
80249
80250 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80251
80252         * README: New section: portability guidelines.
80253
80254 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
80255
80256         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
80257         C89 spec.
80258
80259 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
80260
80261         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
80262
80263 2003-09-08  Paul Eggert  <eggert@twinsun.com>
80264
80265         Assume C89 or better; remove K&R cruft.
80266         A few of these changes were first proposed by Derek Robert Price
80267         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
80268
80269         * lib/addext.c: Include <string.h> unconditionally.
80270         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
80271         Don't declare getenv or malloc.
80272
80273         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
80274         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
80275         (NULL): Remove.
80276         (find_stack_direction, alloca): Use prototypes.
80277
80278         * lib/atexit.c (atexit): Define using a prototype.
80279
80280         * lib/basename.c, dirname.c, stripslash.c:
80281         Include <string.h> unconditionally.
80282
80283         * lib/bcopy.c: Include <stddef.h>.
80284         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
80285
80286         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
80287
80288         * lib/error.h (error, error_at_line, error_print_progname)
80289         [! (defined (__STDC__) && __STDC__)]: Remove decls.
80290         * lib/error.c: Include error.h first, to check interface.
80291         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
80292         (VA_START): Remove; all uses changeed to va_start.
80293         (exit, strerror): Remove decls.
80294         (error_print_progname): Prototype uncondionally.
80295         Don't include <errno.h>; no longer needed.
80296         (private_strerror): Remove.
80297         (error_tail): Always define.
80298         (error, error_at_line): Assume C89 or better; always use prototypes.
80299         * lib/fatal.c: Include "fatal.h" first, to test interface.
80300         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
80301         (VA_START): Remove; all uses changed to va_start.
80302         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
80303         this case.
80304         (exit): Remove decl.
80305         (fatal): Prototype unconditionally.  Assume va_start works.
80306         Abort at end, to pacify gcc.
80307
80308         * lib/euidaccess.c (main): Define with a prototype.
80309
80310         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
80311
80312         * lib/exitfail.c: Include <stdlib.h> unconditionally.
80313
80314         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
80315         prototypes.
80316         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
80317         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
80318         (getenv): Remove decl.
80319         (fnmatch): Define using a prototype.
80320         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
80321         (FCT): Define using a prototype.
80322
80323         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
80324
80325         * lib/gethostname.c: Include <stddef.h>.
80326         (gethostname): Define with prototype.  Length is size_t, not int.
80327
80328 2003-09-08  Paul Eggert  <eggert@twinsun.com>
80329
80330         Assume C89 or better; remove K&R cruft.
80331         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
80332         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
80333         string.h, getenv, malloc.
80334         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
80335         headers.
80336         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
80337         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
80338         do not check for strerror.
80339         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
80340         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
80341         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
80342         do not check for doprnt or vprintf.
80343         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
80344         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
80345
80346 2003-09-08  Paul Eggert  <eggert@twinsun.com>
80347
80348         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
80349         getversion.c should have been removed then, but was accidentally
80350         preserved.
80351
80352         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
80353         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
80354
80355 2003-09-08  Karl Berry  <karl@gnu.org>
80356
80357         * config/config.sub, config.guess, srclistvars.sh: update from savannah
80358                 config, forget about prep.
80359
80360         * config/depcomp, missing: update from automake.
80361
80362 2003-09-07  Paul Eggert  <eggert@twinsun.com>
80363
80364         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
80365         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
80366
80367 2003-09-07  Paul Eggert  <eggert@twinsun.com>
80368
80369         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
80370         copy_tm_result.  Bug reported by Simon Josefsson in
80371         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
80372
80373 2003-09-06  Paul Eggert  <eggert@twinsun.com>
80374
80375         * m4/time_r.m4: New file.
80376         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
80377         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
80378         is. Check for timegm declaration.
80379         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
80380         Do not check for gmtime_r.
80381         Replace mktime if __mktime_internal does not exist and if mktime
80382         hasn't been replaced already.
80383
80384 2003-09-06  Paul Eggert  <eggert@twinsun.com>
80385
80386         * lib/time_r.c, lib/time_r.h: New files.
80387
80388         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
80389         __localtime_r.
80390         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
80391         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
80392
80393         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
80394         __gmtime_r.
80395         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
80396         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
80397         Include <time_r.h>.
80398
80399         * lib/timegm.c: Switch to glibc implementation, with the following
80400         changes:
80401         [defined HAVE_CONFIG_H]: Include <config.h>.
80402         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
80403         (__mktime_internal) [!defined _LIBC]: New decl.
80404         (__gmtime_r) [!defined _LIBC]: New macro and function.
80405         (timegm): Use a prototype, since gnulib assumes C89.
80406         Do not bother declaring tmp to be const, as it's not really usefu.
80407         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
80408         (timegm): Declare only if HAVE_DECL_TIMEGM.
80409
80410 2003-09-06  Paul Eggert  <eggert@twinsun.com>
80411
80412         * MODULES.html.sh (func_all_modules): Add time_r.
80413         * modules/time_r: New file.
80414         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
80415         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
80416
80417 2003-09-03  Paul Eggert  <eggert@twinsun.com>
80418
80419         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
80420         Bug reported by Lute Kamstra in
80421         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
80422
80423         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
80424         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
80425         course with correspondingly smaller numbers for tomorrow and
80426         yesterday.  From Tadayoshi Funaba.  Originally installed into
80427         sh-utils on 1999-08-07, but the patch got lost (I guess during the
80428         coreutils merge?).
80429
80430 2003-08-31  Simon Josefsson  <jas@extundo.com>
80431
80432         * modules/timegm: New file.
80433         * MODULES.html.sh (func_all_modules): Add timegm.
80434
80435 2003-08-31  Simon Josefsson  <jas@extundo.com>
80436
80437         * m4/timegm.m4: New file.
80438
80439 2003-08-31  Simon Josefsson  <jas@extundo.com>
80440
80441         * lib/timegm.h: New file.
80442         * lib/timegm.c: New file.  Based on
80443         wget-1.8.2/src/http.c:mktime_from_utc.
80444
80445 2003-08-31  Karl Berry  <karl@gnu.org>
80446
80447         * lib/argp.h: update from libc.
80448
80449 2003-08-28  Bruno Haible  <bruno@clisp.org>
80450
80451         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
80452         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
80453         followed by '#define fnmatch fnmatch_posix' gives an error.
80454
80455 2003-08-28  Bruno Haible  <bruno@clisp.org>
80456
80457         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
80458         warning on QNX, which defines O_BINARY to 000000.
80459
80460 2003-08-27  Jim Meyering  <jim@meyering.net>
80461
80462         * m4/mkstemp.m4: Require that the system mkstemp be able to create
80463         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
80464         would fail after 32.  Reported by Danny Levinson.  Details here:
80465         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
80466
80467 2003-08-24  Bruno Haible  <bruno@clisp.org>
80468
80469         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
80470         MSVC7 <stdio.h> is included later.
80471
80472 2003-08-22  Simon Josefsson  <jas@extundo.com>
80473
80474         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
80475
80476 2003-08-20  Karl Berry  <karl@gnu.org>
80477
80478         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
80479
80480 2003-08-20  Bruno Haible  <bruno@clisp.org>
80481
80482         * modules/progname: New file.
80483         * MODULES.html.sh (func_all_modules): Add progname.
80484
80485 2003-08-20  Bruno Haible  <bruno@clisp.org>
80486
80487         * lib/progname.h: New file, from GNU gettext.
80488         * lib/progname.c: New file, from GNU gettext.
80489         * lib/progreloc.c: New file, from GNU gettext.
80490
80491 2003-08-19  Jim Meyering  <jim@meyering.net>
80492
80493         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
80494         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
80495
80496 2003-08-19  Bruno Haible  <bruno@clisp.org>
80497
80498         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
80499         more.
80500
80501 2003-08-19  Bruno Haible  <bruno@clisp.org>
80502
80503         * lib/xstrdup.c: Assume <string.h> exists.
80504
80505 2003-08-18  Paul Eggert  <eggert@twinsun.com>
80506
80507         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
80508         in makefile rules.
80509
80510 2003-08-18  Jim Meyering  <jim@meyering.net>
80511
80512         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
80513         * m4/lib-ld.m4: Likewise.
80514
80515 2003-08-18  Jim Meyering  <jim@meyering.net>
80516
80517         * lib/setenv.h: Indent nested cpp directive.
80518         * lib/vasnprintf.c: Remove trailing blanks.
80519
80520 2003-08-17  Simon Josefsson  <jas@extundo.com>
80521
80522         * modules/xstrndup: New file.
80523         * MODULES.html.sh (func_all_modules): Add xstrndup.
80524
80525 2003-08-17  Simon Josefsson  <jas@extundo.com>
80526
80527         * modules/argp: Fix autoconf macro name. Add more dependencies.
80528
80529 2003-08-17  Simon Josefsson  <jas@extundo.com>
80530
80531         * m4/xstrndup.m4: New file.
80532
80533 2003-08-17  Simon Josefsson  <jas@extundo.com>
80534
80535         * m4/argp.m4: New file.
80536
80537 2003-08-17  Simon Josefsson  <jas@extundo.com>
80538             Bruno Haible  <bruno@clisp.org>
80539
80540         * lib/xstrndup.h: New file.
80541         * lib/xstrndup.c: New file.
80542
80543 2003-08-17  Bruno Haible  <bruno@clisp.org>
80544
80545         * modules/strndup (Files, Include): Add lib/strndup.h.
80546
80547 2003-08-17  Bruno Haible  <bruno@clisp.org>
80548
80549         * modules/euidaccess (Files): Add lib/euidaccess.h.
80550
80551 2003-08-17  Bruno Haible  <bruno@clisp.org>
80552
80553         * lib/strndup.h: New file.
80554
80555 2003-08-17  Bruno Haible  <bruno@clisp.org>
80556
80557         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
80558         like AC_GNU_SOURCE.
80559         * modules/extensions (configure.ac): Comment out the invocation of
80560         gl_USE_SYSTEM_EXTENSIONS.
80561
80562 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80563
80564         Merges from coreutils, etc.
80565         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
80566         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
80567         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
80568         fixing a typo.
80569         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
80570         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
80571
80572 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80573
80574         Document merge from coreutils.
80575         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
80576         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
80577         * modules/utime: Add m4/utimes-null.m4.
80578
80579 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80580
80581         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
80582         space, undoing this 2003-08-12 change:
80583         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
80584
80585 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80586
80587         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
80588         strtoul.c from libc, undoing this 2003-08-12 change:
80589         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
80590
80591 2003-08-16  Jim Meyering  <jim@meyering.net>
80592
80593         Merges from coreutils.
80594         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
80595         prefix.  Adjust cache variables similarly.  Create 500 rather than
80596         just 300 files, to exercise bug on Darwin6.5, too.
80597         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
80598         $missing_dir.
80599         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
80600         AM_SYS_POSIX_TERMIOS.
80601         Reported by mkc@mathdogs.com.
80602         Also change use of $am_cv_sys_posix_termios
80603         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
80604         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
80605         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
80606         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
80607         in /proc/mounts until it finds one with matching device number.  This
80608         is unnecessary when the FILE argument *is* a mount point.  No stat call
80609         is necessary in that case.  So, disable the statvfs-testing code on
80610         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
80611         as RedHat bug# 84846.
80612         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
80613         to 1MB, so as not to render systems with no stack size limit (e.g.,
80614         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
80615         Include <unistd.h>.  On some systems,
80616         it is required for the definition of _SC_PAGESIZE.
80617
80618 2003-08-16  Jim Meyering  <jim@meyering.net>
80619
80620         Merge from coreutils.
80621         * lib/xstrtoimax.c: #else #if -> #elif.
80622         * lib/xstrtoumax.c: Likewise.
80623
80624 2003-08-16  Jim Meyering  <jim@meyering.net>
80625
80626         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
80627         * m4/utimes.m4: Removed.
80628         * m4/utimes-null.m4: Renamed from utimes.m4.
80629
80630         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
80631         to 1MB, so as not to render systems with no stack size limit (e.g.,
80632         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
80633         Include <unistd.h>.  On some systems,
80634         it is required for the definition of _SC_PAGESIZE.
80635
80636 2003-08-16  Jim Meyering  <jim@meyering.net>
80637         and Paul Eggert  <eggert@cs.ucla.edu>
80638
80639         Merges from coreutils, etc.
80640
80641         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
80642         using the latest version from cvs.  This avoids problems with #line
80643         directives using a vendor (Sun) compiler.
80644         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
80645         Don't set GETGROUPS_LIB here; now it's
80646         done via getgroups.m4's wrapper function.
80647         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
80648         rather than just in sh-util/configure.in, so that the
80649         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
80650         same.
80651         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
80652         AC_FUNC_GETLOADAVG where to find getloadavg.c.
80653         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
80654         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
80655         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
80656         Remove code that is now done by the newly-required macros.
80657         Append $(EXEEXT) to DF_PROG.
80658         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
80659         Do not invoke or require the following here,
80660         since prereq.m4 or some gnulib .m4 now does this for us:
80661         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
80662         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
80663         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
80664         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
80665         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
80666         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
80667         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
80668         AC_FUNC_OBSTACK.
80669         Do not replace the following functions, as this is now the job
80670         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
80671         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
80672         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
80673         atexit getpass, strdup, getpagesize.
80674         Replace 'raise'.
80675         Do not check for the following functions, as this is now the job
80676         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
80677         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
80678         setregid.
80679         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
80680         Check for sys/sysctl.h.
80681         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
80682         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
80683         of checking for ssize_t ourselves.
80684
80685         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
80686         Require every macro that gnulib/modules/* suggests for us.
80687         (jm_PREREQ_ADDEXT): New macro.
80688         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
80689         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
80690
80691         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
80692         (gl_PHYSMEM): Use it.
80693         Also check for `table' function.
80694         Check for new headers and functions.
80695         Add check for sys/sysmp.h.
80696         With suggestions from Kaveh Ghazi.
80697         Ignore headers that are present but cannot be compiled.  This
80698         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
80699         C 5.4.
80700
80701 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80702
80703         Document merge from coreutils.
80704         * modules/userspec: Depend on posixver.
80705         * modules/strftime: Depend on tzset.
80706
80707 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80708
80709         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
80710         rather than tab, after '#' in shell-script copyright notices.
80711         Suggested by Bruno Haible.
80712
80713 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80714
80715         * config/srclist-update: Use three spaces, rather than tab, after '#'
80716         in shell-script copyright notices.  Suggested by Bruno Haible.
80717         Remove unnecessary parenthesization in regular expression.
80718
80719 2003-08-15  Jim Meyering  <jim@meyering.net>
80720
80721         Merge from coreutils.
80722         * lib/xgethostname.c: Include <stdlib.h>.
80723         (xghostname): Don't exit for anything other than memory-related
80724         failure; just return NULL.
80725         * lib/userspec.c: Include "posixver.h".
80726         (parse_user_spec): Accept `.' as a separator only
80727         in pre-POSIX-200112 mode.
80728         * lib/strtoimax.c: Use #elif rather than #else #if.
80729         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
80730         Remove function, now that we can rely on a working tzset function.
80731         [!_LIBC]: Ensure that the required autoconf test has been run.
80732         [!defined _NL_CURRENT && HAVE_STRFTIME]:
80733         Use underlying_strftime for %r.
80734         * lib/sha.c: Merge in some clean-up and optimization changes from
80735         glibc.
80736         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
80737         Ensure that it is a multiple of 64.
80738         Rearrange loop exit tests so as to avoid performing an
80739         additional fread after encountering an error or EOF.
80740         * lib/realloc.c: Update copyright date.
80741
80742 2003-08-15  Jim Meyering  <jim@meyering.net>
80743         and Paul Eggert  <eggert@twinsun.com>
80744
80745         Merge from coreutils.
80746         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
80747         member but strut utmpx does not.  Needed for AIX 4.3.3.
80748         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
80749
80750 2003-08-15  Jim Meyering  <jim@meyering.net>
80751         and Paul Eggert  <eggert@cs.ucla.edu>
80752
80753         Merges from coreutils, etc.
80754         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
80755         Require gl_FUNC_TZSET_CLOBBER.
80756         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
80757         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
80758         members.
80759
80760 2003-08-14  Paul Eggert  <eggert@twinsun.com>
80761
80762         Help the merge from coreutils.
80763         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
80764         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
80765         * m4/tzset.m4: Use it too.
80766
80767 2003-08-14  Paul Eggert  <eggert@twinsun.com>
80768
80769         * modules/tzset: New file.
80770
80771 2003-08-14  Jim Meyering  <jim@meyering.net>
80772
80773         Merges from coreutils.
80774         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
80775         variable names, rather than @FNMATCH_H@.
80776         * modules/alloca: Likewise for $(ALLOCA_H).
80777
80778         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
80779         the three copies of the literal target, `fnmatch.h'.
80780         * modules/alloca (alloca.h): Likewise.
80781
80782 2003-08-14  Jim Meyering  <jim@meyering.net>
80783
80784         Merge from coreutils.
80785         * m4/tzset.m4: New file.
80786         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
80787         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
80788         otherwise, AIX 5.1 systems would end up using the latter.
80789         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
80790         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
80791         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
80792         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
80793
80794 2003-08-14  Jim Meyering  <jim@meyering.net>
80795
80796         Merge from coreutils.
80797         * lib/obstack.h: Whitespace changes.
80798         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
80799         and xcalloc return values.
80800         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
80801         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
80802         hang on OSF/1 5.1 for DIR on both local and remote file systems.
80803         Reported by (and fix confirmed by) Nelson H. F. Beebe.
80804         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80805         error from mntctl.
80806         Use mntctl's return value to drive the entry-processing loop, since
80807         we can't rely on the value of the vmt_length member in the last
80808         entry.  On some systems doing so could result in exhausting
80809         virtual memory.  Based in part on a patch from Mike Jetzer.
80810
80811 2003-08-14  Jim Meyering  <jim@meyering.net>
80812         and Paul Eggert  <eggert@twinsun.com>
80813
80814         Merges from coreutils, plus other fixes.
80815         * lib/physmem.c: Merge in portability changes from gcc/libiberty
80816         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
80817         for credits and details.  Thanks to Kaveh Ghazi for helping
80818         to keep these files in sync.
80819         (ARRAY_SIZE): Define it.
80820         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
80821         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
80822         (memcasecmp): Don't assume size_t fits in unsigned int.
80823         Remove casts and duplicate code.
80824         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
80825         (memcpy): Remove definition.
80826         Merge in some clean-up and optimization changes from glibc.
80827         [BLOCKSIZE]: Move definition to top of file.
80828         Ensure that it is a multiple of 64.
80829         Rearrange loop exit tests so as to avoid performing an
80830         additional fread after encountering an error or EOF.
80831         * lib/md5.h (md5_uintptr): Define.
80832         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
80833         return to the initial working directory.  Preserve errno
80834         for caller.
80835         * lib/idcache.c: Include "xalloc.h".
80836         (xmalloc, xrealloc): Remove decls.
80837         (getuser): Remove casts no longer required in C89.
80838         * lib/human.c: Include stdio.h, for sprintf.
80839         * lib/group-member.c: Include "xalloc.h".
80840         (xmalloc, xrealloc): Remove decls.
80841         (get_group_info): Remove casts no longer required in C89.
80842         * lib/getusershell.c (readname): Remove casts no longer required in
80843         C89.
80844         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
80845         * lib/getline.c: Whitespace fix, from coreutils.
80846
80847 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80848
80849         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
80850         Check for isascii.
80851
80852         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
80853         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
80854         Undo previous (whitespace-only) change.
80855
80856 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80857
80858         * lib/exclude.c: Include <ctype.h>
80859         (IN_CTYPE_DOMAIN): New macro.
80860         (is_space): New fn.
80861         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
80862         and empty lines.
80863
80864         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
80865         Undo previous (whitespace-only) change.
80866
80867 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80868
80869         * config/srclist-update: Change update back to the old behavior,
80870         leaving whitespace alone.  Use one 'sed' command rather than a
80871         pipeline.
80872         (fixlicense): Now a variable, not a function.
80873         (remove_trailing_blanks): Remove.
80874         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
80875         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
80876         Undo previous (whitespace-only) change.
80877
80878 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80879
80880         Merge from coreutils.
80881         * modules/euidaccess: Add lib_SOURCES, include for new
80882         file euidaccess.h
80883
80884 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80885
80886         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
80887         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
80888         Normalize leading white space and remove trailing white space.
80889
80890         Merge from coreutils
80891         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
80892
80893         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
80894         0.12.1.  These files are now being upgraded automatically by
80895         ../config/srclist-update.
80896
80897 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80898
80899         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
80900         Normalize leading white space and remove trailing white space.
80901         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
80902         notice, as per ../config/srclist-update.
80903
80904         Merge from coreutils.
80905         * lib/euidaccess.h: New file.
80906         * lib/euidaccess.c: Include it.
80907         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
80908         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
80909         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
80910
80911 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80912
80913         * config/srclist-update: Add copyright notice.
80914         (remove_id_lines, remove_trailing_blanks): New constants.
80915         (fixfile): Use them to normalize spacing a bit in copied files.
80916         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
80917         Normalize leading white space and remove trailing white space.
80918
80919         * config/texinfo.tex: Sync with texinfo.
80920
80921         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
80922         strtoul.c from libc, to merge coreutils whitespace changes.
80923
80924         * config/srclist.txt: Get the following m4 files from gettext:
80925         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
80926         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
80927         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
80928         wint_t.m4.
80929
80930 2003-08-12  Karl Berry  <karl@gnu.org>
80931
80932         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
80933         been made.
80934
80935 2003-08-11  Paul Eggert  <eggert@twinsun.com>
80936
80937         * modules/gnu-source, m4/gnu-source.m4:
80938         Remove; we're assuming Autoconf 2.54 or later now.
80939         Suggested by Bruno Haible.
80940         * MODULES.html.sh (func_all_modules): Remove gnu-source.
80941
80942 2003-08-11  Bruno Haible  <bruno@clisp.org>
80943
80944         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
80945
80946 2003-08-11  Bruno Haible  <bruno@clisp.org>
80947
80948         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
80949         (vasnprintf): Use it instead of wcslen.
80950
80951 2003-08-11  Bruno Haible  <bruno@clisp.org>
80952
80953         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
80954         value to ensure that _Bool promotes to int. Use #define for _Bool when
80955         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
80956
80957 2003-08-10  Karl Berry  <karl@gnu.org>
80958
80959         * lib/regex.h: update from libc (whitespace fix).
80960
80961 2003-08-09  Paul Eggert  <eggert@twinsun.com>
80962
80963         Merge some files from coreutils.  These changes were
80964         originally made by Jim Meyering.
80965         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
80966         many older Unixes require this.
80967         * lib/alloca.c (alloca): Remove cast to argument of free;
80968         no longer needed in C89.
80969         * lib/alloca_.h, regex.h: Fix white space to match
80970         what GNU indent does.
80971
80972 2003-08-09  Paul Eggert  <eggert@twinsun.com>
80973
80974         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
80975         apparently Emacs's Unicode mode got confused before my 2003-08-05
80976         checkin.
80977
80978 2003-08-08  Paul Eggert  <eggert@twinsun.com>
80979
80980         * m4/extensions.m4: New file.
80981         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
80982         Require gl_USE_SYSTEM_EXTENSIONS.
80983         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
80984         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
80985
80986 2003-08-08  Paul Eggert  <eggert@twinsun.com>
80987
80988         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
80989         * modules/extensions, modules/gnu-source: New files.
80990         * modules/timespec, modules/unlocked-io: Depend on extensions.
80991
80992 2003-08-07  Paul Eggert  <eggert@twinsun.com>
80993
80994         * modules/restrict: New file.
80995         * MODULES.html.sh (func_all_modules): Add restrict.
80996         * modules/regex: Depend on restrict.
80997
80998 2003-08-07  Paul Eggert  <eggert@twinsun.com>
80999
81000         * m4/restrict.m4: New file.
81001         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
81002
81003 2003-08-07  Bruno Haible  <bruno@clisp.org>
81004
81005         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
81006         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
81007
81008 2003-08-07  Bruno Haible  <bruno@clisp.org>
81009
81010         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
81011         makes the module 'getndelim2' compatible with the module 'getline'.
81012
81013 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81014
81015         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
81016         byte with "\201" to avoid glitches when editing that source file
81017         with multi-gnome-terminal.
81018
81019 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81020
81021         * lib/bumpalloc.h: Remove.
81022
81023 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81024
81025         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
81026         * modules/bumpalloc: Remove.
81027
81028 2003-08-04  Paul Eggert  <eggert@twinsun.com>
81029
81030         * lib/getloadavg.c: Change copyright notice and spacing to conform to
81031         GNU coding style.
81032
81033         Merge from coreutils.
81034         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
81035         1. From glibc.
81036         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
81037         from Karl Berry, implemented by Jim Meyering.
81038         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
81039         from Dmitry V. Levin.
81040         Remove anachronistic cast of xrealloc.
81041         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
81042         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
81043         type. Otherwise, it wouldn't compile with at least /bin/cc on
81044         ymp-cray-unicos9.0.2.X.
81045         Combine two mostly-identical uses of alloca into one.
81046         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
81047
81048 2003-08-04  Dave Love  <d.love@dl.ac.uk>
81049
81050         [From Emacs.]
81051
81052         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
81053         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
81054         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
81055         obsolete NLIST_NAME_UNION.
81056         [__GNU__]: Undef BSD and FSCALE.
81057         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
81058
81059 2003-08-03  Paul Eggert  <eggert@twinsun.com>
81060
81061         * lib/stdbool_.h (_Bool): Make it signed char, instead of
81062         an enum type, so that it's guaranteed to promote to int.  See:
81063         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
81064
81065 2003-08-03  Karl Berry  <karl@gnu.org>
81066
81067         * config/depcomp: update from automake.
81068
81069 2003-07-31  Paul Eggert  <eggert@twinsun.com>
81070
81071         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
81072         (strerror): Don't assume that a printable int fits in 14 bytes.
81073
81074 2003-07-31  Bruno Haible  <bruno@clisp.org>
81075
81076         * modules/getpass-gnu: New file.
81077         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
81078
81079 2003-07-31  Bruno Haible  <bruno@clisp.org>
81080
81081         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
81082
81083 2003-07-24  Karl Berry  <karl@gnu.org>
81084
81085         * config/missing: update from automake.
81086
81087 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
81088             Bruno Haible  <bruno@clisp.org>
81089
81090         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
81091         * lib/getline.c (getline, getdelim): Likewise.
81092         Remove _GNU_SOURCE define; now it's defined in config.h through
81093         m4/getline.m4.
81094
81095 2003-07-23  Karl Berry  <karl@gnu.org>
81096
81097         * config/config.sub: update from prep.
81098
81099 2003-07-22  Paul Eggert  <eggert@twinsun.com>
81100
81101         * modules/xalloc (Depends-on): Add exitfail.
81102         * modules/xmemcoll: Likewise.
81103
81104 2003-07-22  Paul Eggert  <eggert@twinsun.com>
81105
81106         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
81107         over-parenthesization in macros.
81108
81109         Sync with coreutils.
81110
81111         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
81112         required by C99.
81113
81114         Use `exit_failure' for xalloc and xmemcoll instead of their own
81115         private exit-failure variables.
81116         * lib/xalloc.h (xalloc_exit_failure): Remove.
81117         * lib/xmalloc.c: Likewise.  Include exitfail.h.
81118         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
81119         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
81120         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
81121         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
81122
81123 2003-07-20  Jim Meyering  <jim@meyering.net>
81124
81125         * modules/closeout (Depends-on): Add exitfail.
81126         Suggestion from Bruno Haible.
81127
81128 2003-07-19  Karl Berry  <karl@gnu.org>
81129
81130         * config/config.sub: update from prep.
81131
81132 2003-07-18  Paul Eggert  <eggert@twinsun.com>
81133
81134         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
81135         Remove.
81136         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
81137         to test that it can stand by itself.  Include "exitfail.h".
81138         Clients should set exit_failure instead.
81139         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
81140
81141 2003-07-18  Bruno Haible  <bruno@clisp.org>
81142
81143         * modules/getndelim2: New file.
81144         * modules/getline: Share files with module getndelim2.
81145         * modules/getnline: Depend on getndelim2 instead of sharing files with
81146         it. Add getnline.c to lib_SOURCES.
81147         * MODULES.html.sh (func_all_modules): Add getndelim2.
81148
81149 2003-07-18  Bruno Haible  <bruno@clisp.org>
81150
81151         * m4/getndelim2.m4: New file.
81152         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
81153         invoke gl_PREREQ_GETNDELIM2.
81154         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
81155         gl_PREREQ_GETNDELIM2.
81156         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
81157         gl_GETNDELIM2.
81158
81159 2003-07-18  Bruno Haible  <bruno@clisp.org>
81160
81161         * lib/getndelim2.h: New file.
81162         * lib/getndelim2.c: Make into a module of its own. Include config.h,
81163         getndelim2.h.
81164         (getndelim2): Make non-static. Change return type to ssize_t.
81165         * lib/getline.h: Change argument names.
81166         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
81167         * lib/getnline.c: Include getndelim2.h.
81168
81169 2003-07-18  Andreas Schwab  <schwab@suse.de>
81170
81171         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
81172
81173 2003-07-17  Karl Berry  <karl@gnu.org>
81174
81175         * config/config.sub: update from prep.
81176
81177 2003-07-17  Bruno Haible  <bruno@clisp.org>
81178
81179         * modules/getnline: New file.
81180         * modules/getline: Add lib/getndelim2.c to source file list.
81181         * MODULES.html.sh (func_all_modules): Add getnline.
81182
81183 2003-07-17  Bruno Haible  <bruno@clisp.org>
81184
81185         * m4/getnline.m4: New file.
81186
81187 2003-07-17  Bruno Haible  <bruno@clisp.org>
81188
81189         * m4/Makefile.am.in: Remove file.
81190         * m4/Makefile.am: Remove file.
81191         * m4/Makefile.in: Remove file.
81192
81193 2003-07-17  Bruno Haible  <bruno@clisp.org>
81194
81195         * lib/getnline.h: New file.
81196         * lib/getnline.c: New file.
81197         * lib/getndelim2.c: New file, extracted from getline.c.
81198         (getndelim2): Renamed from getdelim2, with added nmax argument.
81199         * lib/getline.c: Include getndelim2.c.
81200         (getdelim2): Moved out to getndelim2.c.
81201         (getline, getdelim): Update.
81202
81203 2003-07-17  Bruno Haible  <bruno@clisp.org>
81204
81205         * lib/Makefile.am: Remove file.
81206         * lib/Makefile.in: Remove file.
81207
81208 2003-07-17  Bruno Haible  <bruno@clisp.org>
81209
81210         * configure.in: Remove file.
81211         * Makefile.in: Remove file.
81212
81213 2003-07-17  Bruno Haible  <bruno@clisp.org>
81214
81215         * MODULES.html.sh: Put the </BODY> right before </HTML>.
81216
81217 2003-07-16  Karl Berry  <karl@gnu.org>
81218
81219         * config/srclist-update: was running fixlicense twice, which caused
81220                 texinfo.tex to be nullified for some reason.  Simplify,
81221                 $gplsrc is no longer needed as far as I can see?
81222
81223 2003-07-16  Jim Meyering  <jim@meyering.net>
81224
81225         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
81226
81227 2003-07-15  Paul Eggert  <eggert@twinsun.com>
81228
81229         * config/srclist.txt: Get the following files from gettext-runtime/intl
81230         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
81231         ref-del.sin.  From Bruno Haible.
81232         * config/srclist-update (fixfile): Change grep pattern again, since the
81233         previous fix didn't work (there was another trailing $).  Use
81234         '[$]' to escape the $s.
81235
81236 2003-07-15  Karl Berry  <karl@gnu.org>
81237
81238         * lib/vasnprintf.c: update from gettext.
81239
81240 2003-07-15  Karl Berry  <karl@gnu.org>
81241
81242         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
81243         gets expanded when surrounded by '$'.
81244
81245 2003-07-15  Jim Meyering  <jim@meyering.net>
81246
81247         * modules/save-cwd: Don't depend on error.  From Derek Price.
81248
81249 2003-07-15  Jim Meyering  <jim@meyering.net>
81250
81251         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
81252
81253 2003-07-14  Simon Josefsson  <jas@extundo.com>
81254
81255         * modules/mempcpy: New file.
81256         * MODULES.html.sh (func_all_modules): Add mempcpy.
81257
81258 2003-07-14  Simon Josefsson  <jas@extundo.com>
81259
81260         * m4/mempcpy.m4: New file.
81261
81262 2003-07-14  Simon Josefsson  <jas@extundo.com>
81263
81264         * lib/mempcpy.h: New file.
81265         * lib/mempcpy.c: New file.
81266
81267 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81268
81269         * modules/getdate, modules/posixtm: Depend on mktime.
81270
81271 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81272
81273         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
81274         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
81275         unicodeio.c, unicodeio.h, unlocked-io.h:
81276         Switch from LGPL to GPL.
81277
81278 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81279
81280         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
81281         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
81282         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
81283         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
81284         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
81285         updated automatically by ../config/srclist-update.  This changes
81286         their license from LPGL to GPL.
81287
81288 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81289
81290         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
81291         assumed to refer to the root of the most recent stable gettext version.
81292         * config/srclistvars.sh: Add defaults for eggert.
81293         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
81294         Match "This program" as well as "The program".  This is needed
81295         for gettext.
81296
81297 2003-07-14  Jim Meyering  <jim@meyering.net>
81298
81299         Don't emit diagnostics.  Let callers do that.
81300         * lib/save-cwd.c: Don't include "error.h".
81301         (save_cwd): Don't call error.  Ensure that errno is valid
81302         when returning nonzero.
81303
81304         * lib/save-cwd.h (restore_cwd): Update prototype.
81305         * lib/save-cwd.c (restore_cwd): Remove two parameters.
81306         Simplify.  Don't call error upon failure.  Let callers do that.
81307         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
81308         when auditing is enabled.  But don't bother updating the #if.
81309
81310 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
81311
81312         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
81313         it breaks C++ compilation.
81314         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
81315
81316 2003-07-10  Simon Josefsson  <jas@extundo.com>
81317
81318         * modules/strchrnul (Makefile.am): Add strchrnul.h.
81319
81320 2003-07-10  Jim Meyering  <jim@meyering.net>
81321
81322         * m4/clock_time.m4: Remove trailing blank.
81323         * m4/intmax_t.m4: Likewise.
81324
81325 2003-07-10  Jim Meyering  <jim@meyering.net>
81326
81327         * lib/vasnprintf.c: Remove trailing blanks.
81328         Make cpp indentation consistent.
81329
81330 2003-07-09  Paul Eggert  <eggert@twinsun.com>
81331
81332         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
81333         posixver.c, strftime.c, strnlen.c, strverscmp.c:
81334         Switch from LGPL to GPL.
81335
81336 2003-07-09  Paul Eggert  <eggert@twinsun.com>
81337
81338         * config/srclist.txt: Sort sublists.  Add
81339         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
81340         that differ from gnulib for one reason or another; we'd like this list
81341         to be smaller but for now let's document what we have.
81342
81343 2003-07-08  Paul Eggert  <eggert@twinsun.com>
81344
81345         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
81346         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
81347         and sweeter "eval x=$x".
81348         * config/srclist.txt: Get lib/argp* from glibc.
81349
81350 2003-07-07  Paul Eggert  <eggert@twinsun.com>
81351
81352         * lib/mktime.c: Fix some boundary cases and remove need for floating
81353         point.
81354
81355         Issue a compile-time diagnostic if time_t is floating point, or if
81356         two's complement arithmetic is not in effect, or if arithmetic
81357         right shift does not propagate the sign.  These assumptions were
81358         all in the original code but they weren't checked.
81359
81360         (TIME_T_MIDPOINT, verify): New macros.
81361         (__isleap): Remove; it has integer overflow problems.
81362         (leapyear): New function, without those problems.
81363         (ydhms_tm_diff): Remove; splitting into two parts.
81364         (ydhms_diff): New function, containing the arithmetic part of
81365         the old ydhms_tm_diff function.  Issue a compile-time
81366         diagnostic if we are not using C99 integer division.
81367         Avoid casts when possible.
81368         (guess_time_tm): New function, containing the checking part of
81369         the old ydhms_tm_diff function.  Return the new value, rather than
81370         the difference between it and the old.  Accept a new argument T
81371         so that *T specifies the old value.  Check for overflow in the result.
81372
81373         (__mktime_internal): Use a time_t offset, not a long int offset.
81374         This undoes the 2003-06-04 change, which is no longer needed now
81375         that we have better overflow checking.
81376         (localtime_offset): Likewise.
81377
81378         (__mktime_internal): Avoid harmful overflow on hosts where time_t
81379         and long are 64-bit but int is only 32-bit.
81380         (ydhms_diff): Use long int to store year1 and yday1.
81381         Issue a compile-time diagnostic if long int is not wide enough.
81382
81383         (__mktime_internal): Use long int to store adjusted year and yday.
81384         Use plain C rather than preprocessor commands, if that doesn't
81385         affect efficiency.
81386         Check for overflow (and try to repair) after each probe
81387         rather than checking only at the very end.  This avoids some bugs
81388         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
81389         does not equal GMT offset at maximum time).
81390         Use integer to check for overflow rather than floating point; this
81391         is more portable to non-IEEE hosts, and is a tad faster.
81392         When we detect that we are oscillating between two values,
81393         don't check whether tm_isdst has the requested value, since
81394         we already know the answer.  When tm_isdst has the wrong value,
81395         use a different heuristic to find the right one, based on the
81396         extreme values actually observed in practice in tz2003a,
81397         rather than the (overly optimistic) "previous 3 calendar quarters".
81398
81399         (not_equal_tm, print_tm, check_result): Use "const T" rather than
81400         "T const" to accommodate glibc style.
81401         (check_result): Use less-confusing report format.  "long" -> "long int.
81402         (main): Likewise.
81403         Don't loop if the iteration overflows time_t.
81404         Allow a negative step in the iteration.
81405
81406 2003-07-06  Karl Berry  <karl@gnu.org>
81407
81408         * config/depcomp: update from automake.
81409         * config/config.sub: update from prep.
81410
81411 2003-07-03  Karl Berry  <karl@gnu.org>
81412
81413         * config/config.guess: update from prep.
81414
81415 2003-07-01  Paul Eggert  <eggert@twinsun.com>
81416
81417         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
81418         xreadlink.c now includes it unconditionally.
81419
81420 2003-07-01  Paul Eggert  <eggert@twinsun.com>
81421
81422         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
81423         having it depend on HAVE_SYS_TYPES_H.
81424
81425 2003-07-01  Bruno Haible  <bruno@clisp.org>
81426
81427         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
81428         <sys/types.h> should be sufficient.
81429         Reported by Paul Eggert.
81430
81431 2003-06-26  Karl Berry  <karl@gnu.org>
81432
81433         * config/depcomp: update from automake.
81434
81435 2003-06-26  Bruno Haible  <bruno@clisp.org>
81436
81437         * modules/human: Depend on module stdbool.
81438
81439 2003-06-25  Bruno Haible  <bruno@clisp.org>
81440
81441         * modules/readlink: New file.
81442         * modules/xreadlink: Depend on it.
81443         * MODULES.html.sh (func_all_modules): Add readlink.
81444
81445 2003-06-25  Bruno Haible  <bruno@clisp.org>
81446
81447         * m4/readlink.m4: New file.
81448
81449 2003-06-25  Bruno Haible  <bruno@clisp.org>
81450
81451         * lib/readlink.c: New file.
81452
81453 2003-06-22  Karl Berry  <karl@gnu.org>
81454
81455         * config/srclist.txt: update mkinstalldirs from automake.
81456         * config/mkinstalldirs: update.
81457
81458 2003-06-22  Bruno Haible  <bruno@clisp.org>
81459
81460         Portability to mingw32.
81461         * m4/ssize_t.m4: New file, from GNU gettext.
81462         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
81463         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
81464
81465 2003-06-22  Bruno Haible  <bruno@clisp.org>
81466
81467         * modules/safe-read: Add m4/ssize_t.m4.
81468         * modules/xreadlink: Add m4/ssize_t.m4.
81469
81470 2003-06-20  Bruno Haible  <bruno@clisp.org>
81471
81472         Assume C89, so PARAMS isn't needed.
81473         * lib/unicodeio.h (PARAMS): Remove.
81474         * lib/unicodeio.c: Don't use PARAMS.
81475
81476 2003-06-18  Karl Berry  <karl@gnu.org>
81477
81478         * config/config.{guess,sub}: update from prep.
81479
81480 2003-06-18  Jim Meyering  <jim@meyering.net>
81481
81482         Merge changes from coreutils.
81483         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
81484         Remove explicit declarations of xmalloc and realloc.
81485         Include xalloc.h.
81486         (read_utmp): Remove anachronistic cast of xmalloc.
81487
81488 2003-06-17  Paul Eggert  <eggert@twinsun.com>
81489
81490         Assume C89, so PARAMS isn't needed.
81491         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
81492         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
81493         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
81494         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
81495         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
81496         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
81497         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
81498         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
81499         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
81500         lib/xstrtod.h, lib/xstrtol.h: Likewise.
81501         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
81502         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
81503         no longer needed. Anyway, config.h should always be included before any
81504         other file.
81505
81506 2003-06-11  Simon Josefsson  <jas@extundo.com>
81507
81508         * modules/sysexits: New file.
81509         * MODULES.html.sh (func_all_modules): Add sysexits.
81510
81511 2003-06-11  Simon Josefsson  <jas@extundo.com>
81512
81513         * lib/sysexit_.h: New file.
81514
81515 2003-06-11  Derek Price  <derek@ximbiot.com>
81516
81517         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
81518         necessary.
81519
81520 2003-06-11  Bruno Haible  <bruno@clisp.org>
81521
81522         * m4/sysexits.m4: New file.
81523
81524 2003-06-10  Simon Josefsson  <jas@extundo.com>
81525
81526         * lib/argp.h: New file, from glibc.
81527         * lib/argp-ba.c: New file, from glibc.
81528         * lib/argp-eexst.c: New file, from glibc.
81529         * lib/argp-fmtstream.c: New file, from glibc.
81530         * lib/argp-fmtstream.h: New file, from glibc.
81531         * lib/argp-fs-xinl.c: New file, from glibc.
81532         * lib/argp-help.c: New file, from glibc.
81533         * lib/argp-namefrob.h: New file, from glibc.
81534         * lib/argp-parse.c: New file, from glibc.
81535         * lib/argp-pv.c: New file, from glibc.
81536         * lib/argp-pvh.c: New file, from glibc.
81537         * lib/argp-xinl.c: New file, from glibc.
81538
81539 2003-06-10  Simon Josefsson  <jas@extundo.com>
81540
81541         * modules/strchrnul: New file.
81542
81543 2003-06-10  Simon Josefsson  <jas@extundo.com>
81544
81545         * modules/argp: New file.
81546
81547 2003-06-10  Simon Josefsson  <jas@extundo.com>
81548
81549         * m4/strchrnul.m4: New file.
81550
81551 2003-06-10  Simon Josefsson  <jas@extundo.com>
81552
81553         * lib/strchrnul.h: New file.
81554         * lib/strchrnul.c: New file.
81555
81556 2003-06-10  Bruno Haible  <bruno@clisp.org>
81557
81558         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
81559
81560 2003-06-07  Karl Berry  <karl@gnu.org>
81561
81562         * config/config.{guess,sub}: update from prep.
81563
81564 2003-06-07  Jim Meyering  <jim@meyering.net>
81565
81566         * modules/strtod: Use $(...) notation, not @...@ for
81567         AC_REPLACE'd variables.
81568         * modules/localcharset: Likewise.
81569
81570 2003-06-07  Jim Meyering  <jim@meyering.net>
81571
81572         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
81573         in place of my name in the copyright comment.
81574         Remove definition and uses of __P.
81575
81576         From coreutils.
81577         * lib/stat.c: Don't declare xmalloc explicitly.
81578         Instead, include "xalloc.h".
81579         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
81580         xrealloc, and xcalloc return values.
81581         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
81582         Improve comment.
81583         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
81584
81585 2003-06-07  Bruno Haible  <bruno@clisp.org>
81586
81587         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
81588         avoid AC_CONFIG_LINKS.
81589         * modules/fnmatch (Makefile.am): Use explicit creation rule for
81590         fnmatch.h, to avoid AC_CONFIG_LINKS.
81591         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
81592
81593 2003-06-07  Bruno Haible  <bruno@clisp.org>
81594
81595         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
81596         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
81597         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
81598         directory.
81599         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
81600         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
81601         directory.
81602
81603 2003-06-06  Jim Meyering  <jim@meyering.net>
81604
81605         Merge from coreutils.
81606         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
81607         Consolidate declarations and initializations of *_base* locals.
81608
81609         Merge from coreutils.
81610         This avoids a core dump on systems without GNU putenv,
81611         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
81612         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
81613         (unsetenv): New static function, from GNU libc.
81614         (rpl_putenv): Use it.
81615
81616         * lib/modechange.c: Remove trailing blanks.
81617
81618         Merge from coreutils.
81619         * lib/fsusage.c: Remove declaration of statfs.
81620         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
81621
81622         * lib/posixtm.c: Include <stdbool.h> unconditionally.
81623
81624 2003-06-06  Jim Meyering  <jim@meyering.net>
81625
81626         * lib/stdbool_.h: Renamed from stdbool.h.in.
81627
81628 2003-06-06  Jim Meyering  <jim@meyering.net>
81629             Bruno Haible  <bruno@clisp.org>
81630
81631         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
81632         Adjust Makefile.am snippet not to redirect directly to target.
81633         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
81634
81635 2003-06-05  Paul Eggert  <eggert@twinsun.com>
81636
81637         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
81638         mismatch, look in future quarters as well as past.  This fixes a
81639         bug when processing fall-backwards gaps immediately after a long
81640         period of daylight-saving time.
81641
81642         * lib/mktime.c: Assume freestanding C89 or better.
81643         (HAVE_LIMITS_H): Remove.  Assume it's 1.
81644         (__P): Remove; not used.
81645         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
81646         (mktime, not_equal_tm, print_tm, check_result,
81647         main): Use prototypes.  Use const * where appropriate.
81648         (main): Fix typo in testing code that uncovered by above changes.
81649         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
81650
81651 2003-06-04  Paul Eggert  <eggert@twinsun.com>
81652
81653         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
81654         locale.h, localeconv.  This merges changes from coreutils.
81655
81656         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
81657         It can be removed after the next Autoconf is released.
81658         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
81659         needed.
81660
81661 2003-06-04  Paul Eggert  <eggert@twinsun.com>
81662
81663         * lib/mktime.c: Fix Debian bug 177940
81664         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
81665         (localtime_offset): Now long int, not time_t, because we want it
81666         to be guaranteed to be signed.  All uses changed.
81667         (__mktime_internal): If overflow would occur when adding offset,
81668         don't add it.
81669
81670         Merge 'human' changes from coreutils.  Rewrite to support
81671         locale-specific notations like thousands separators.
81672         * lib/human.c: Simplify authorship notice.
81673         Include human.h immediately after config.h.
81674         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
81675         <limits.h>: Do not include, since human.h does.
81676         (SIZE_MAX, UINTMAX_MAX): New macros.
81677         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
81678         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
81679         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
81680         (power_letter): Renamed from suffixes.
81681         (generate_suffix_backwards): Remove.
81682         (adjust_value): Now takes int style (because of human.h changes)
81683         and long double value (for greater precision on some platforms).
81684         (group_number): New function.
81685         (human_readable): Use it.  Use integer options, not enum.
81686         Put the options before the sizes in the arg list.
81687         Support all the new options.
81688         The old human_readable function has been removed;
81689         use inttostr.h instead.
81690         (human_readable, default_block_size, humblock):
81691         Use uintmax_t, not int, for block sizes.
81692         (human_readable_inexact, block_size_types): Remove.
81693         (block_size_opts): New constant.
81694         (human_options): Renamed from human_block_size, with new signature
81695         that allows block sizes up to UINTMAX_MAX.  All callers changed.
81696         * lib/human.h: Add copyright and authorship notice.
81697         Include <limits.h> and <stdbool.h> unconditionally.
81698         (PARAMS): Remove.  All uses removed.
81699         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
81700         (enum human_inexact_style): Remove tag; now a nameless enum.
81701         (human_floor, human_ceiling, human_round_to_even): Now have
81702         values 2, 0, 1 rather than -1, 1, 0.
81703         (human_group_digits, human_suppress_point_zero, human_autoscale,
81704         human_base_1024, human_SI, human_B): New constants.
81705         (human_readable_inexact, human_block_size): Remove.
81706         (human_readable): Size args are now uintmax_t, not int.
81707         (human_options): New decl.
81708
81709         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
81710         unnecessary now that we assume C89 or better.  This change
81711         imported from coreutils.
81712
81713         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
81714         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
81715         in the 2003-05-30 sync from glibc.
81716
81717         .h files should stand alone, but we shouldn't include <sys/types.h>
81718         if we can get away with just <stddef.h>.
81719
81720         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
81721         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
81722         rather than <sys/types.h>, as we merely need size_t.
81723         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
81724         to get size_t.
81725         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
81726         Include <stdio.h>, to get FILE.
81727         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
81728         memcasecmp.h has included <stddef.h> and all we need is size_t.
81729         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
81730         our interface, instead of including <sys/types.h>
81731
81732 2003-06-04  Paul Eggert  <eggert@twinsun.com>
81733
81734         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
81735         now, as glibc mktime is buggy on non-glibc systems.
81736
81737 2003-06-03  Karl Berry  <karl@gnu.org>
81738
81739         * config/config.sub: update from prep.
81740
81741 2003-06-02  Paul Eggert  <eggert@twinsun.com>
81742
81743         [from coreutils]
81744         Fix some minor time-related bugs with POSIX time arguments.
81745         Some valid time stamps were being rejected (notably -1, and
81746         time stamps before 1900 on 64-bit hosts).  And some invalid
81747         time stamps were being accepted, e.g. September 31.
81748
81749         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
81750         that we can return (time_t) -1 successfully.
81751         * lib/posixtm.c: Likewise.
81752         [HAVE_STDBOOL_H]: Include <stdbool.h>.
81753         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
81754         (t): Remove static var.
81755         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
81756         of static var.  All uses changed.
81757         (year): Do not reject years before 1900; they can occur with
81758         64-bit time_t.
81759         (posix_time_parse): Do not check for out-of-range components;
81760         that is now the caller's responsibility, since our checks were
81761         only approximations.
81762         (posixtime): Use mktime to check for out-of-range components,
81763         since it knows them exactly.
81764         If mktime returns (time_t) -1, check whether an error actually occurred
81765         by invoking localtime on -1.
81766         (main) [TEST_POSIXTIME]: Check for input data errors, and report
81767         posixtime failures better.
81768         Improve the test data (in comments only).
81769
81770 2003-06-02  Karl Berry  <karl@gnu.org>
81771
81772         * config/mkinstalldirs (version): new variable.
81773         (--version): new option.
81774         (usage): improve message.
81775
81776 2003-05-30  Karl Berry  <karl@gnu.org>
81777
81778         * lib/mktime.c: update from libc.
81779
81780 2003-05-30  Bruno Haible  <bruno@clisp.org>
81781
81782         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
81783         * config/config.rpath: Upgrade to gettext-0.12.1.
81784
81785 2003-05-30  Bruno Haible  <bruno@clisp.org>
81786
81787         * m4/gettext.m4: Upgrade to gettext-0.12.1.
81788         * m4/nls.m4: New file, from gettext-0.12.1.
81789         * m4/po.m4: New file, from gettext-0.12.1.
81790         * m4/progtest.m4: Upgrade to gettext-0.12.1.
81791
81792 2003-05-30  Bruno Haible  <bruno@clisp.org>
81793
81794         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
81795         * lib/localcharset.h: Likewise.
81796         * lib/localcharset.c: Likewise.
81797
81798 2003-05-29  Karl Berry  <karl@gnu.org>
81799
81800         * config/config.rpath: update from gettext.
81801
81802 2003-05-28  Paul Eggert  <eggert@twinsun.com>
81803
81804         Assume the headers required for C89 freestanding compilers.
81805         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
81806         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
81807         * m4/human.m4 (gl_HUMAN): Likewise.
81808         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
81809         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
81810         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81811         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
81812         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81813         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
81814
81815 2003-05-28  Paul Eggert  <eggert@twinsun.com>
81816
81817         Assume the headers required for C89 freestanding compilers.
81818         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
81819         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
81820         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
81821         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
81822         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
81823         define, since <limits.h> is guaranteed to do that.
81824         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
81825         * lib/exclude.c: Include <stdbool.h> unconditionally.
81826         * lib/tempname.c: Include <stddef.h> unconditionally.
81827         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
81828         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
81829         <stddef.h> does that.
81830         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
81831         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
81832         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
81833         needed.
81834         * lib/xstrtol.c: Likewise.
81835         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
81836         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
81837
81838         * lib/addext.c (addext): Use assignment rather than cast, to avoid
81839         warnings on some platforms.
81840
81841         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
81842         arbitrarily.
81843
81844 2003-05-26  Jim Meyering  <jim@meyering.net>
81845
81846         Merge in a change from coreutils:
81847         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
81848         that is guaranteed to be `no'.  Use `no_such_member' to indicate
81849         that condition, rather than `-1' which is slightly misleading.
81850         Change the name of the cache variable to have the gl_ prefix.
81851         Prompted by a patch from Richard Dawe for DJGPP.
81852
81853 2003-05-24  Karl Berry  <karl@gnu.org>
81854
81855         * config/config.guess: update from prep.
81856
81857 2003-05-22  Karl Berry  <karl@gnu.org>
81858
81859         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
81860
81861 2003-05-20  Karl Berry  <karl@gnu.org>
81862
81863         * config/config.guess: update from prep.
81864
81865 2003-05-18  Karl Berry  <karl@gnu.org>
81866
81867         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
81868         might actually be set by the user.
81869
81870         * config/depcomp, install-sh, mdate-sh: update from automake.
81871
81872 2003-05-17  Bruno Haible  <bruno@clisp.org>
81873
81874         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
81875         invalid expansion for AC_EGREP_CPP.
81876         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
81877         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
81878         Suggested by Akim Demaille <akim@epita.fr> in
81879         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
81880
81881 2003-05-12  Jim Meyering  <jim@meyering.net>
81882
81883         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
81884         the space-padded-by-default conversion specifiers, %e, %k, %l.
81885
81886 2003-05-12  Bruno Haible  <bruno@clisp.org>
81887
81888         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
81889         the string is longer than 4 KB.
81890
81891 2003-05-11  Karl Berry  <karl@gnu.org>
81892
81893         * config/config.{guess,sub}: update from prep.
81894
81895 2003-05-09  Bruno Haible  <bruno@clisp.org>
81896
81897         * modules/error: Add m4/strerror_r.m4 to file list.
81898
81899 2003-05-03  Bruno Haible  <bruno@clisp.org>
81900
81901         Upgrade to Unicode-4.0.
81902         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
81903         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
81904         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
81905         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
81906         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
81907         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
81908         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
81909         Change width of U+E0100..U+E01EF from 1 to 0.
81910
81911 2003-04-25  Jim Meyering  <jim@meyering.net>
81912
81913         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
81914         of type size_t, not int.
81915
81916 2003-04-25  Bruno Haible  <bruno@clisp.org>
81917
81918         * lib/copy-file.c: Include <stddef.h>, for size_t.
81919
81920 2003-04-21  Paul Eggert  <eggert@twinsun.com>
81921
81922         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
81923         code which expansion is under static control.  Patch imported from
81924         Akim Demaille's patch to Bison; see
81925         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
81926
81927 2003-04-14  Bruno Haible  <bruno@clisp.org>
81928
81929         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
81930
81931 2003-04-11  Jim Meyering  <jim@meyering.net>
81932
81933         Merge changes from Coreutils.
81934
81935         2003-03-22  Jim Meyering  <jim@meyering.net>
81936
81937         * lib/strftime.c (widen): Cast alloca return value to proper type.
81938
81939         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
81940
81941         From GNU libc.
81942         * lib/strftime.c (my_strftime): Handle very large width
81943         specifications for numeric values correctly.  Improve checks for
81944         overflow.
81945
81946         2003-01-19  Jim Meyering  <jim@meyering.net>
81947
81948         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
81949         definitions.
81950         (nl_get_alt_digit) [! defined my_strftime]: Define.
81951         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
81952         _nl_get_alt_digit and _nl_get_walt_digit.
81953
81954         * lib/strftime.c (my_strftime): Merge in locale-related changes from
81955         libc. These changes have no effect outside of _LIBC.
81956
81957 2003-04-10  Bruno Haible  <bruno@clisp.org>
81958
81959         * modules/findprog: New file.
81960         * MODULES.html.sh (func_all_modules): Add it.
81961
81962 2003-04-10  Bruno Haible  <bruno@clisp.org>
81963
81964         * m4/findprog.m4: New file.
81965         * m4/eaccess.m4: New file.
81966
81967 2003-04-10  Bruno Haible  <bruno@clisp.org>
81968
81969         * lib/findprog.h: New file, from GNU gettext.
81970         * lib/findprog.c: New file, from GNU gettext.
81971
81972 2003-04-05  Jim Meyering  <jim@meyering.net>
81973
81974         Merge changes from Coreutils.
81975
81976         * lib/exclude.h (PARAMS): Remove definition and uses.
81977         * lib/exclude.c: Remove uses of `PARAMS'.
81978
81979         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
81980         Add test-cases for DOS filenames. Declare program_name.
81981         (main): Set up program_name.  Patch by Rich Dawe.
81982
81983         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
81984         error from mntctl.
81985         Use mntctl's return value to drive the entry-processing loop, since
81986         we can't rely on the value of the vmt_length member in the last
81987         entry.  On some systems doing so could result in exhausting
81988         virtual memory.  Based in part on a patch from Mike Jetzer.
81989
81990 2003-04-04  Bruno Haible  <bruno@clisp.org>
81991
81992         * modules/linebreak: New file.
81993         * MODULES.html.sh (func_all_modules): Add it.
81994
81995 2003-04-04  Bruno Haible  <bruno@clisp.org>
81996
81997         * m4/linebreak.m4: New file.
81998
81999 2003-04-04  Bruno Haible  <bruno@clisp.org>
82000
82001         * lib/linebreak.h: New file, from GNU gettext.
82002         * lib/linebreak.c: New file, from GNU gettext with slight
82003         modifications.
82004         * lib/lbrkprop.h: New file, from GNU gettext.
82005
82006 2003-04-03  Bruno Haible  <bruno@clisp.org>
82007
82008         * modules/utf8-ucs4: New file.
82009         * modules/utf16-ucs4: New file.
82010         * modules/ucs4-utf8: New file.
82011         * modules/ucs4-utf16: New file.
82012         * MODULES.html.sh (func_all_modules): Add them.
82013
82014 2003-04-03  Bruno Haible  <bruno@clisp.org>
82015
82016         * m4/utf-ucs4.m4: New file.
82017         * m4/ucs4-utf.m4: New file.
82018
82019 2003-04-03  Bruno Haible  <bruno@clisp.org>
82020
82021         * lib/utf8-ucs4.h: New file, from GNU gettext.
82022         * lib/utf16-ucs4.h: New file, from GNU gettext.
82023         * lib/ucs4-utf8.h: New file, from GNU gettext.
82024         * lib/ucs4-utf16.h: New file, from GNU gettext.
82025
82026 2003-04-02  Bruno Haible  <bruno@clisp.org>
82027
82028         * modules/binary-io: New file.
82029         * MODULES.html.sh (func_all_modules): Add it.
82030
82031 2003-04-02  Bruno Haible  <bruno@clisp.org>
82032
82033         * lib/binary-io.h: New file, from GNU gettext.
82034
82035 2003-04-01  Bruno Haible  <bruno@clisp.org>
82036
82037         * modules/pathname: New file.
82038         * MODULES.html.sh (func_all_modules): Add it.
82039
82040 2003-04-01  Bruno Haible  <bruno@clisp.org>
82041
82042         * lib/pathname.h: New file, from GNU gettext.
82043         * lib/concatpath.c: New file, from GNU gettext.
82044
82045 2003-03-30  Bruno Haible  <bruno@clisp.org>
82046
82047         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
82048
82049 2003-03-30  Bruno Haible  <bruno@clisp.org>
82050
82051         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
82052         function chown() doesn't exist.
82053
82054 2003-03-28  Bruno Haible  <bruno@clisp.org>
82055
82056         * modules/copy-file: New file.
82057         * MODULES.html.sh (func_all_modules): Add it.
82058
82059 2003-03-28  Bruno Haible  <bruno@clisp.org>
82060
82061         * m4/copy-file.m4: New file.
82062
82063 2003-03-28  Bruno Haible  <bruno@clisp.org>
82064
82065         * lib/copy-file.h: New file, from GNU gettext.
82066         * lib/copy-file.c: New file, from GNU gettext.
82067
82068 2003-03-18  Jim Meyering  <jim@meyering.net>
82069
82070         * lib/quote.c (quote_n): Fix typo in comment.
82071
82072 2003-03-18  Bruno Haible  <bruno@clisp.org>
82073
82074         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
82075         checking.
82076         * m4/onceonly_2_57.m4: Likewise.
82077
82078 2003-03-17  Bruno Haible  <bruno@clisp.org>
82079
82080         * m4/onceonly.m4: Require autoconf 2.54 or newer.
82081         (m4_quote): Remove macro.
82082         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
82083
82084 2003-03-14  Jim Meyering  <jim@meyering.net>
82085
82086         Merge changes from Coreutils.
82087         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
82088         to be const, in order to avoid warnings.
82089         (obstack_room): Likewise.
82090         (obstack_empty_p): Likewise.
82091
82092 2003-03-14  Bruno Haible  <bruno@clisp.org>
82093
82094         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
82095         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
82096
82097 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82098
82099         Merge changes from Bison.
82100         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
82101         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
82102         when compiling Bison 1.875's `bitset bset = obstack_alloc
82103         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
82104         * lib/hash.c: Include <stdbool.h> unconditionally.
82105
82106 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82107
82108         * m4/onceonly.m4 (m4_quote): New macro.
82109         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
82110         Quote AC_FOREACH variable-expansions properly.
82111
82112 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82113
82114         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
82115
82116 2003-03-09  Paul Eggert  <eggert@twinsun.com>
82117
82118         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
82119         Reported by Bruce Becker; see:
82120         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
82121
82122 2003-03-03  Paul Eggert  <eggert@twinsun.com>
82123             Bruno Haible  <bruno@clisp.org>
82124
82125         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
82126         Reported by John Hughes, see
82127         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
82128
82129 2003-02-20  Bruno Haible  <bruno@clisp.org>
82130
82131         * MODULES.html.sh (func_all_modules): Add poll.
82132
82133 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82134
82135         * modules/poll: New file.
82136
82137 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82138
82139         * lib/poll_.h: New file.
82140         * lib/poll.c: New file.
82141
82142 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82143
82144         * m4/poll.m4: New file.
82145
82146 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82147
82148         * modules/mathl: New file.
82149
82150 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82151
82152         * lib/mathl.h: New file.
82153         * lib/acosl.c: New file.
82154         * lib/asinl.c: New file.
82155         * lib/atanl.c: New file.
82156         * lib/ceill.c: New file.
82157         * lib/cosl.c: New file.
82158         * lib/expl.c: New file.
82159         * lib/floorl.c: New file.
82160         * lib/frexpl.c: New file.
82161         * lib/ldexpl.c: New file.
82162         * lib/logl.c: New file.
82163         * lib/sincosl.c: New file.
82164         * lib/sinl.c: New file.
82165         * lib/sqrtl.c: New file.
82166         * lib/tanl.c: New file.
82167         * lib/trigl.c: New file.
82168         * lib/trigl.h: New file.
82169
82170 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82171
82172         * m4/mathl.m4: New file.
82173
82174 2003-02-18  Bruno Haible  <bruno@clisp.org>
82175
82176         * MODULES.html.sh (func_all_modules): Add mathl.
82177
82178 2003-02-17  Bruno Haible  <bruno@clisp.org>
82179
82180         * modules/mkdtemp: New module.
82181         * MODULES.html.sh (func_all_modules): Add it.
82182
82183 2003-02-17  Bruno Haible  <bruno@clisp.org>
82184
82185         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
82186
82187 2003-02-17  Bruno Haible  <bruno@clisp.org>
82188
82189         * lib/mkdtemp.h: New file, from GNU gettext.
82190         * lib/mkdtemp.c: New file, from GNU gettext.
82191
82192 2003-02-02  Jim Meyering  <jim@meyering.net>
82193
82194         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
82195         e.g. glibc-2.2.93.
82196
82197 2003-01-31  Bruno Haible  <bruno@clisp.org>
82198
82199         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
82200         'rpl_rename'.
82201         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
82202         'rpl_strnlen'.
82203         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
82204         'rpl_strtod'.
82205         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
82206         'rpl_utime'.
82207
82208 2003-01-31  Bruno Haible  <bruno@clisp.org>
82209
82210         * lib/rename.c: #undef rename before defining rpl_rename.
82211         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
82212
82213 2003-01-30  Bruno Haible  <bruno@clisp.org>
82214
82215         * modules/vasnprintf, modules/vasprintf: New modules.
82216         * MODULES.html.sh (func_all_modules): Add them.
82217
82218 2003-01-30  Bruno Haible  <bruno@clisp.org>
82219
82220         * m4/signed.m4: New file, from GNU gettext.
82221         * m4/longdouble.m4: New file, from GNU gettext.
82222         * m4/wchar_t.m4: New file, from GNU gettext.
82223         * m4/wint_t.m4: New file, from GNU gettext.
82224         * m4/vasnprintf.m4: New file.
82225         * m4/vasprintf.m4: New file.
82226
82227 2003-01-30  Bruno Haible  <bruno@clisp.org>
82228
82229         * lib/printf-args.h: New file, from GNU gettext.
82230         * lib/printf-args.c: New file, from GNU gettext.
82231         * lib/printf-parse.h: New file, from GNU gettext.
82232         * lib/printf-parse.c: New file, from GNU gettext.
82233         * lib/vasnprintf.h: New file, from GNU gettext.
82234         * lib/vasnprintf.c: New file, from GNU gettext.
82235         * lib/asnprintf.c: New file, from GNU gettext.
82236         * lib/vasprintf.h: New file, from GNU gettext with modifications.
82237         * lib/vasprintf.c: New file, from GNU gettext.
82238         * lib/asprintf.c: New file, from GNU gettext.
82239
82240 2003-01-29  Bruno Haible  <bruno@clisp.org>
82241
82242         * modules/stpncpy: New module.
82243         * MODULES.html.sh (func_all_modules): Add it.
82244
82245 2003-01-29  Bruno Haible  <bruno@clisp.org>
82246
82247         * m4/stpncpy.m4: New file.
82248
82249 2003-01-29  Bruno Haible  <bruno@clisp.org>
82250
82251         * lib/stpncpy.h: New file, from GNU gettext with modifications.
82252         * lib/stpncpy.c: New file, from GNU gettext with modifications.
82253
82254 2003-01-28  Bruno Haible  <bruno@clisp.org>
82255
82256         * modules/c-ctype: New module.
82257         * MODULES.html.sh (func_all_modules): Add it.
82258
82259 2003-01-28  Bruno Haible  <bruno@clisp.org>
82260
82261         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
82262         Paul Eggert.
82263         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
82264         Paul Eggert.
82265
82266 2003-01-27  Bruno Haible  <bruno@clisp.org>
82267
82268         * modules/xsetenv: New module.
82269         * MODULES.html.sh (func_all_modules): Add it.
82270
82271 2003-01-27  Bruno Haible  <bruno@clisp.org>
82272
82273         * lib/xsetenv.h: New file, from GNU gettext.
82274         * lib/xsetenv.c: New file, from GNU gettext.
82275
82276 2003-01-23  Jim Meyering  <jim@meyering.net>
82277
82278         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
82279         from working on systems without dirfd (at least Irix and OSF1/Tru64).
82280
82281 2003-01-23  Bruno Haible  <bruno@clisp.org>
82282
82283         * modules/minmax: New module.
82284         * MODULES.html.sh (func_all_modules): Add it.
82285
82286 2003-01-23  Bruno Haible  <bruno@clisp.org>
82287
82288         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
82289         Eggert.
82290
82291 2003-01-22  Bruno Haible  <bruno@clisp.org>
82292
82293         * modules/exit: New module.
82294         * MODULES.html.sh (func_all_modules): Add it.
82295
82296 2003-01-22  Bruno Haible  <bruno@clisp.org>
82297
82298         * lib/exit.h: New file, from GNU gettext.
82299
82300 2003-01-19  Bruno Haible  <bruno@clisp.org>
82301
82302         * gnulib-tool: Recognize option --extract-maintainer.
82303         (func_get_maintainer): New function.
82304         * modules/*: Add Maintainer entry.
82305
82306 2003-01-16  Jim Meyering  <jim@meyering.net>
82307
82308         * m4/regex.m4: The `regex' struct is both input and output.
82309         Initialize it before each use.  Patch by Tim Waugh.
82310
82311 2003-01-16  Bruno Haible  <bruno@clisp.org>
82312
82313         * MODULES.html.sh: Add a table of contents. Add the module name as
82314         leftmost column. Add hyperlinks.
82315
82316 2003-01-15  Bruno Haible  <bruno@clisp.org>
82317
82318         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
82319
82320 2003-01-15  Bruno Haible  <bruno@clisp.org>
82321
82322         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
82323         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
82324         suffix.
82325
82326 2003-01-15  Bruno Haible  <bruno@clisp.org>
82327
82328         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
82329
82330 2003-01-15  Bruno Haible  <bruno@clisp.org>
82331
82332         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
82333         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
82334
82335 2003-01-14  Jim Meyering  <jim@meyering.net>
82336
82337         * lib/same.c (same_name): Tweak a comment.
82338
82339 2003-01-14  Bruno Haible  <bruno@clisp.org>
82340
82341         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
82342         when a string comparison is sufficient.
82343
82344 2003-01-14  Bruno Haible  <bruno@clisp.org>
82345
82346         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
82347         'unsigned int'.
82348
82349 2003-01-14  Bruno Haible  <bruno@clisp.org>
82350
82351         * lib/hash-pjw.c: Add comment about low quality of this function.
82352
82353 2003-01-13  Bruno Haible  <bruno@clisp.org>
82354
82355         * modules/stpcpy: Distribute lib/stpcpy.h.
82356         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
82357
82358 2003-01-13  Bruno Haible  <bruno@clisp.org>
82359
82360         * modules/*: Add a description.
82361         * modules/strpbrk: Fix Makefile.am snippet.
82362         * modules/strtoimax: Fix dependencies.
82363         * modules/strtoumax: Likewise.
82364
82365 2003-01-13  Bruno Haible  <bruno@clisp.org>
82366
82367         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
82368         * modules/alloca (Makefile.am): All object files depend on alloca.h.
82369         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
82370
82371 2003-01-13  Bruno Haible  <bruno@clisp.org>
82372
82373         * gnulib-tool (func_create_testdir): Store config/* files in the main
82374         directory.
82375         * config.rpath: Move to ...
82376         * config/config.rpath: ... here.
82377         * modules/gettext: Contains config/config.rpath, not config.rpath.
82378         * modules/iconv: Likewise.
82379
82380 2003-01-12  Paul Eggert  <eggert@twinsun.com>
82381
82382         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
82383         to avoid collisions with libcurses and libreadline.
82384
82385         * m4/getstr.m4: Remove.
82386         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
82387
82388 2003-01-12  Paul Eggert  <eggert@twinsun.com>
82389
82390         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
82391         to avoid collisions with libcurses and libreadline.
82392
82393         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
82394         * lib/getstr.h, getstr.c: Remove.
82395         * lib/getline.c: Include "getline.h", to check interface.
82396         Move body of old getstr.c here: this defines MIN_CHUNK and
82397         declares getdelim2, which is renamed from getstr.
82398         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
82399
82400         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
82401         All uses changed.
82402         * lib/linebuffer.h: Likewise.
82403         (readline): Remove backward-compatibility macro.
82404
82405 2003-01-12  Paul Eggert  <eggert@twinsun.com>
82406
82407         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
82408         to avoid collisions with libcurses and libreadline.
82409         * getstr: Remove.
82410         * MODULES.html.sh: Remove getstr.
82411         * modules/getline: Depend on unlocked-io, not getstr.
82412
82413 2003-01-12  Jim Meyering  <jim@meyering.net>
82414
82415         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
82416
82417 2003-01-10  Bruno Haible  <bruno@clisp.org>
82418
82419         * modules/alloca: Change Makefile.am requirements. Simplify Include
82420         requirements. Add lib/alloca_.h to file list.
82421
82422 2003-01-10  Bruno Haible  <bruno@clisp.org>
82423
82424         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
82425
82426 2003-01-10  Bruno Haible  <bruno@clisp.org>
82427
82428         * lib/alloca_.h: New file.
82429         * lib/getdate.y: Unconditionally include alloca.h.
82430         * lib/makepath.c: Likewise.
82431         * lib/setenv.c: Likewise.
82432         * lib/userspec.c: Likewise.
82433
82434 2003-01-09  Karl Berry  <karl@gnu.org>
82435
82436         * MODULES.html.sh: include `dirname $0` in PATH, to find
82437         gnulib-tool.
82438
82439 2003-01-09  Bruno Haible  <bruno@clisp.org>
82440
82441         * modules/stdbool: Change configure.ac, Makefile.am requirements.
82442         Simplify Include requirements. Add lib/stdbool.h.in to file list.
82443
82444 2003-01-09  Bruno Haible  <bruno@clisp.org>
82445
82446         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
82447
82448 2003-01-09  Bruno Haible  <bruno@clisp.org>
82449
82450         * lib/stdbool.h.in: New file.
82451
82452 2003-01-09  Bruno Haible  <bruno@clisp.org>
82453
82454         * gnulib-tool (func_all_modules): Ignore files ending in ~.
82455         * MODULES.html.sh: Likewise.
82456
82457 2003-01-08  Jim Meyering  <jim@meyering.net>
82458
82459         * lib/full-write.c: Undefine and define-away `const' after inclusion
82460         of errno.h, not before.  Suggestion from Bruno Haible.
82461
82462 2003-01-08  Bruno Haible  <bruno@clisp.org>
82463
82464         * modules/full-read: Depend on full-write.
82465
82466 2003-01-08  Bruno Haible  <bruno@clisp.org>
82467
82468         * lib/safe-read.c: Include specification header first, to ensure its
82469         selfcontainedness.
82470         * lib/full-write.c: Likewise.
82471
82472 2003-01-07  Jim Meyering  <jim@meyering.net>
82473
82474         * lib/full-write.c: Rework so that it may serve to define full_read,
82475         too.
82476         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
82477
82478 2003-01-07  Bruno Haible  <bruno@clisp.org>
82479
82480         * lib/strtoimax.c: Include <stdint.h> as an alternative to
82481         <inttypes.h>.
82482         * lib/xstrtol.h: Likewise.
82483         * lib/xstrtoimax.c: Likewise.
82484         * lib/xstrtoumax.c: Likewise.
82485         * lib/human.h: Likewise.
82486
82487         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
82488         on systems that have <inttypes.h> but not <stdint.h>.
82489
82490 2003-01-07  Bruno Haible  <bruno@clisp.org>
82491
82492         * MODULES.html.sh: Add copyright notice.
82493         (missed_files): Omit CVS directory entries.
82494         (func_module): Make it work with sed-3.02.
82495         * MODULES.txt: Remove file.
82496
82497 2003-01-06  Jim Meyering  <jim@meyering.net>
82498
82499         * lib/version-etc.c: Update year in translatable copyright string.
82500
82501 2003-01-03  Karl Berry  <karl@gnu.org>
82502
82503         * config/config.{guess,sub}: update from prep.
82504
82505 2003-01-02  Karl Berry  <karl@gnu.org>
82506
82507         * doc/COPYING.DOC: belatedly updated to 1.2.
82508
82509 2003-01-01  Karl Berry  <karl@gnu.org>
82510
82511         * gnulib-tool (func_verify_module): report module name $module in
82512         error message, not $1.
82513         * gnulib-tool (create-testdir): don't complain if destdir couldn't
82514         be created, only if it doesn't exist.
82515         * gnulib-tool (last_checkin_date): don't expand the $Date here.
82516
82517 2002-12-31  Paul Eggert  <eggert@twinsun.com>
82518
82519         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
82520
82521 2002-12-31  Paul Eggert  <eggert@twinsun.com>
82522
82523         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
82524         memcmp if strcoll doesn't work.
82525
82526 2002-12-31  Bruno Haible  <bruno@clisp.org>
82527
82528         * lib/utime.c (utime_null): No need to call ftruncate if the file was
82529         nonempty.
82530
82531 2002-12-31  Bruno Haible  <bruno@clisp.org>
82532
82533         * lib/memcoll.c (STRCOLL): New macro.
82534         (memcoll): Use it.
82535
82536 2002-12-31  Bruno Haible  <bruno@clisp.org>
82537
82538         * lib/localcharset.h: New file.
82539         * lib/localcharset.c: Include it.
82540         * lib/unicodeio.c: Likewise.
82541
82542 2002-12-31  Bruno Haible  <bruno@clisp.org>
82543
82544         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
82545         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
82546
82547 2002-12-31  Bruno Haible  <bruno@clisp.org>
82548
82549         * lib/getline.h: Include <stddef.h>, for size_t.
82550
82551         * lib/unicodeio.h: Include <stddef.h>, for size_t.
82552         * lib/unicodeio.c: Don't include <stddef.h>.
82553
82554 2002-12-31  Bruno Haible  <bruno@clisp.org>
82555
82556         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
82557         HAVE_TM_ZONE.
82558
82559 2002-12-24  Karl Berry  <karl@gnu.org>
82560
82561         * config/config.guess: update from prep.
82562
82563 2002-12-24  Bruno Haible  <bruno@clisp.org>
82564
82565         General infrasructure.
82566         * m4/README: Rewritten.
82567         * m4/onceonly.m4: New file.
82568         * m4/onceonly_2_57.m4: New file.
82569
82570         Module atexit.
82571         * m4/atexit.m4: New file.
82572
82573         Module strtod.
82574         * m4/strtod.m4: New file.
82575
82576         Module strtol.
82577         * m4/strtol.m4: New file.
82578
82579         Module strtoul.
82580         * m4/strtoul.m4: New file.
82581
82582         Module memchr.
82583         * m4/memchr.m4: New file.
82584
82585         Module memcmp.
82586         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
82587         (jm_FUNC_MEMCMP): Invoke it.
82588
82589         Module memcpy.
82590         * m4/memcpy.m4: New file.
82591
82592         Module memmove.
82593         * m4/memmove.m4: New file.
82594
82595         Module memset.
82596         * m4/memset.m4: New file.
82597
82598         Module strcspn.
82599         * m4/strcspn.m4: New file.
82600
82601         Module strpbrk.
82602         * m4/strpbrk.m4: New file.
82603
82604         Module strstr.
82605         * m4/strstr.m4: New file.
82606
82607         Module strerror.
82608         * m4/strerror.m4: New file.
82609
82610         Module mktime.
82611         * m4/mktime.m4: Renamed from jm-mktime.m4.
82612         (gl_PREREQ_MKTIME): New macro.
82613         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
82614
82615         Module malloc.
82616         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
82617         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
82618         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
82619
82620         Module realloc.
82621         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
82622         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
82623         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
82624
82625         Module strftime.
82626         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
82627         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
82628         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
82629         gl_TM_GMTOFF.
82630         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
82631
82632         Module xalloc.
82633         * m4/xalloc.m4: New file.
82634
82635         Module alloca.
82636         * m4/alloca.m4: New file.
82637
82638         Module putenv.
82639         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
82640         (jm_FUNC_PUTENV): Invoke it.
82641
82642         Module setenv.
82643         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
82644         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
82645         when invoked twice.
82646         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
82647         gt_FUNC_SETENV.
82648
82649         Module memrchr.
82650         * m4/memrchr.m4: New file.
82651
82652         Module stpcpy.
82653         * m4/stpcpy.m4: New file.
82654
82655         Module strcase.
82656         * m4/strcase.m4: New file.
82657
82658         Module strdup.
82659         * m4/strdup.m4: New file.
82660
82661         Module strnlen.
82662         * m4/strnlen.m4: New file.
82663
82664         Module strndup.
82665         * m4/strndup.m4: New file.
82666
82667         Module xstrtod.
82668         * m4/xstrtod.m4: New file.
82669
82670         Module xstrtol.
82671         * m4/xstrtol.m4: New file.
82672
82673         Module getdate.
82674         * m4/getdate.m4: New file.
82675
82676         Module unlocked-io.
82677         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
82678         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
82679         * m4/jm-glibc-io.m4n: Remove file.
82680
82681         Module long-options.
82682         * m4/long-options.m4: New file.
82683
82684         Module md5.
82685         * m4/md5.m4: New file.
82686
82687         Module sha.
82688         * m4/sha.m4: New file.
82689
82690         Module getstr.
82691         * m4/getstr.m4: New file.
82692
82693         Module getline.
82694         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
82695         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
82696         <sys/types.h>, for size_t. Use the function name gnu_getline, not
82697         simply getline. Infoke gl_PREREQ_GETLINE.
82698
82699         Module obstack.
82700         * m4/obstack.m4: New file.
82701
82702         Module hash.
82703         * m4/hash.m4: New file.
82704
82705         Module readtokens.
82706         * m4/readtokens.m4: New file.
82707
82708         Module strverscmp.
82709         * m4/strverscmp.m4: New file.
82710
82711         Module stdbool.
82712         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
82713         OSF/1.
82714
82715         Module strtoll.
82716         * m4/strtoll.m4: New file.
82717
82718         Module strtoull.
82719         * m4/strtoull.m4: New file.
82720
82721         Module strtoimax.
82722         * m4/strtoimax.m4: New file.
82723
82724         Module strtoumax.
82725         * m4/strtoumax.m4: New file.
82726
82727         Module xstrtoimax.
82728         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
82729         jm_AC_PREREQ_XSTRTOIMAX.
82730         Moved the strtol prerequisites to strtol.m4.
82731         Moved the strtoll prerequisites to strtoll.m4.
82732         Moved the strtoimax prerequisites to strtoimax.m4.
82733
82734         Module xstrtoumax.
82735         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
82736         jm_AC_PREREQ_XSTRTOUMAX.
82737         Moved the strtoul prerequisites to strtoul.m4.
82738         Moved the strtoull prerequisites to strtoull.m4.
82739         Moved the strtoumax prerequisites to strtoumax.m4.
82740
82741         Module chown.
82742         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
82743         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
82744
82745         Module dup2.
82746         * m4/dup2.m4: New file.
82747
82748         Module ftruncate.
82749         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
82750         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
82751
82752         Module getgroups.
82753         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
82754         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
82755
82756         Module gettimeofday.
82757         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
82758         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
82759         gl_PREREQ_GETTIMEOFDAY.
82760
82761         Module mkdir.
82762         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
82763         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
82764
82765         Module mkstemp.
82766         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
82767         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
82768         jm_AC_TYPE_UINTMAX_T.
82769         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
82770
82771         Module stat.
82772         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
82773         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
82774
82775         Module lstat.
82776         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
82777         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
82778
82779         Module timespec.
82780         * m4/timespec.m4 (gl_TIMESPEC): New macro.
82781         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
82782         * m4/st_mtim.m4: Indentation.
82783
82784         Module nanosleep.
82785         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
82786         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
82787         gl_PREREQ_NANOSLEEP.
82788
82789         Module regex.
82790         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
82791         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
82792         (gl_REGEX): New macro.
82793
82794         Module rename.
82795         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
82796         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
82797
82798         Module rmdir.
82799         * m4/rmdir.m4: New file.
82800
82801         Module utime.
82802         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
82803         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
82804         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
82805
82806         Module dirname.
82807         * m4/dirname.m4: New file.
82808
82809         Module getopt.
82810         * m4/getopt.m4: New file.
82811
82812         Module unistd-safer.
82813         * m4/unistd-safer.m4: New file.
82814
82815         Module fnmatch.
82816         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
82817         declaration.
82818         (gl_PREREQ_FNMATCH_EXTRA): New macro.
82819         (gl_FUNC_FNMATCH_POSIX): New macro.
82820         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
82821         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
82822         simply fnmatch.
82823
82824         Module exclude.
82825         * m4/exclude.m4: New file.
82826
82827         Module human.
82828         * m4/human.m4: New file.
82829
82830         Module acl.
82831         * m4/acl.m4: Nop.
82832
82833         Module backupfile.
82834         * m4/backupfile.m4: New file.
82835         * m4/d-ino.m4: Indentation.
82836
82837         Module fsusage.
82838         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
82839         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
82840         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
82841
82842         Module dirfd.
82843         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
82844         requirements.
82845
82846         Module euidaccess.
82847         * m4/euidaccess.m4: New file.
82848
82849         Module file-type.
82850         * m4/file-type.m4: New file.
82851
82852         Module fileblocks.
82853         * m4/fileblocks.m4: New file.
82854
82855         Module filemode.
82856         * m4/filemode.m4: New file.
82857
82858         Module isdir.
82859         * m4/isdir.m4: New file.
82860
82861         Module lchown.
82862         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
82863         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
82864
82865         Module makepath.
82866         * m4/makepath.m4: New file.
82867
82868         Module modechange.
82869         * m4/modechange.m4: New file.
82870
82871         Module mountlist.
82872         * m4/mountlist.m4: New file.
82873         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
82874         Indentation.
82875
82876         Module path-concat.
82877         * m4/path-concat.m4: New file.
82878
82879         Module pathmax.
82880         * m4/pathmax.m4: New file.
82881
82882         Module same.
82883         * m4/same.m4: New file.
82884
82885         Module save-cwd.
82886         * m4/save-cwd.m4: New file.
82887
82888         Module savedir.
82889         * m4/savedir.m4: New file.
82890
82891         Module xgetcwd.
82892         * m4/xgetcwd.m4: New file.
82893         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
82894
82895         Module xreadlink.
82896         * m4/xreadlink.m4: New file.
82897
82898         Module safe-read.
82899         * m4/safe-read.m4: New file.
82900
82901         Module safe-write.
82902         * m4/safe-write.m4: New file.
82903
82904         Module closeout.
82905         * m4/closeout.m4: New file.
82906
82907         Module stdio-safer.
82908         * m4/stdio-safer.m4: New file.
82909
82910         Module getpass.
82911         * m4/getpass.m4: New file.
82912
82913         Module getugroups.
82914         * m4/getugroups.m4: New file.
82915
82916         Module group-member.
82917         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
82918         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
82919
82920         Module idcache.
82921         * m4/idcache.m4: New file.
82922
82923         Module userspec.
82924         * m4/userspec.m4: New file.
82925
82926         Module gettime.
82927         * m4/clock_time.m4: New file.
82928         * m4/gettime.m4: New file.
82929
82930         Module settime.
82931         * m4/settime.m4: New file.
82932
82933         Module posixtm.
82934         * m4/posixtm.m4: New file.
82935
82936         Module gethostname.
82937         * m4/gethostname.m4: New file.
82938
82939         Module canon-host.
82940         * m4/canon-host.m4: New file.
82941
82942         Module gettext.
82943         * m4/codeset.m4: New file, from gettext-0.11.5.
82944         * m4/gettext.m4: New file, from gettext-0.11.5.
82945         * m4/glibc21.m4: New file, from gettext-0.11.5.
82946         * m4/iconv.m4: New file, from gettext-0.11.5.
82947         * m4/intdiv0.m4: New file, from gettext-0.11.5.
82948         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
82949         * m4/inttypes.m4: New file, from gettext-0.11.5.
82950         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
82951         * m4/isc-posix.m4: New file, from gettext-0.11.5.
82952         * m4/lcmessage.m4: New file, from gettext-0.11.5.
82953         * m4/lib-ld.m4: New file, from gettext-0.11.5.
82954         * m4/lib-link.m4: New file, from gettext-0.11.5.
82955         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
82956         * m4/progtest.m4: New file, from gettext-0.11.5.
82957         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
82958         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
82959         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
82960
82961         Module localcharset.
82962         * m4/localcharset.m4: New file.
82963
82964         Module hard-locale.
82965         * m4/hard-locale.m4: New file.
82966
82967         Module mbswidth.
82968         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
82969         onceonly macros.
82970         * m4/mbrtowc.m4: Add comment.
82971
82972         Module memcasecmp.
82973         * m4/memcasecmp.m4: New file.
82974
82975         Module memcoll.
82976         * m4/memcoll.m4: New file.
82977
82978         Module unicodeio.
82979         * m4/unicodeio.m4: New file.
82980
82981         Module rpmatch.
82982         * m4/rpmatch.m4: New file.
82983
82984         Module yesno.
82985         * m4/yesno.m4: New file.
82986
82987         Module exitfail.
82988         * m4/exitfail.m4: New file.
82989
82990         Module c-stack.
82991         * m4/c-stack.m4 (gl_C_STACK): New macro.
82992         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
82993
82994         Module error.
82995         * m4/error.m4 (gl_ERROR): New macro.
82996         (jm_PREREQ_ERROR): Use onceonly macros.
82997
82998         Module fatal.
82999         * m4/fatal.m4: New file.
83000
83001         Module getloadavg.
83002         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
83003         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
83004
83005         Module getpagesize.
83006         * m4/getpagesize.m4: New file.
83007
83008         Module getusershell.
83009         * m4/getusershell.m4: New file.
83010
83011         Module physmem.
83012         * m4/physmem.m4: New file.
83013
83014         Module posixver.
83015         * m4/posixver.m4: New file.
83016
83017         Module quotearg.
83018         * m4/quotearg.m4: New file.
83019
83020         Module quote.
83021         * m4/quote.m4: New file.
83022
83023         Module readutmp.
83024         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
83025
83026         Module sig2str.
83027         * m4/sig2str.m4: New file.
83028
83029         Other.
83030         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
83031         ulonglong.m4.
83032         * m4/intmax_t.m4: New file.
83033         * m4/d-type.m4: Indentation.
83034         * m4/jm-macros.m4: Update.
83035         * m4/prereq.m4 (jm_PREREQ): Update.
83036         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
83037         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
83038         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
83039         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
83040         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
83041         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
83042         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
83043         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
83044         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
83045         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
83046         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
83047         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
83048         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
83049         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
83050         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
83051         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
83052         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
83053         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
83054         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
83055
83056 2002-12-24  Bruno Haible  <bruno@clisp.org>
83057
83058         * MODULES.txt: Update according to m4/ changes.
83059
83060         Module gettext.
83061         * config.rpath: New file, from gettext-0.11.5.
83062
83063         * modules/*: New module descriptions.
83064         * gnulib-tool: New file.
83065         * MODULES.html.sh: New file.
83066
83067 2002-12-21  Karl Berry  <karl@gnu.org>
83068
83069         * doc/fdl.texi: update to version 1.2.
83070
83071 2002-12-19  Karl Berry  <karl@gnu.org>
83072
83073         * config/config.guess: update from prep.
83074
83075 2002-12-18  Bruno Haible  <bruno@clisp.org>
83076
83077         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
83078         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
83079
83080 2002-12-17  Bruno Haible  <bruno@clisp.org>
83081
83082         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
83083         stdlib.h, string.h.
83084
83085 2002-12-17  Bruno Haible  <bruno@clisp.org>
83086
83087         * lib/canon-host.c (strdup): Remove unused declaration.
83088
83089         * lib/fsusage.c: Include full_read.h.
83090         (get_fs_usage): Use full_read instead of safe_read.
83091
83092         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
83093
83094 2002-12-12  Karl Berry  <karl@gnu.org>
83095
83096         * config/config.guess: update from prep.
83097
83098 2002-12-11  Bruno Haible  <bruno@clisp.org>
83099
83100         * m4/setenv.m4: New file, from gettext-0.11.5.
83101
83102 2002-12-11  Bruno Haible  <bruno@clisp.org>
83103
83104         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
83105         not unsetenv().
83106         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
83107         modifications:
83108
83109         2002-12-11  Bruno Haible  <bruno@clisp.org>
83110
83111                 * setenv.c (alloca): Fall back to malloc.
83112                 (freea): New macro.
83113                 (setenv): Use freea() to free memory allocated with alloca().
83114
83115         2002-11-13  Bruno Haible  <bruno@clisp.org>
83116
83117                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
83118                 function declarations.
83119                 * unsetenv.c (unsetenv): Likewise.
83120
83121         2002-03-04  Bruno Haible  <bruno@clisp.org>
83122
83123                 Portability to AIX 4.3.3.
83124                 * unsetenv.c: New file, extracted from setenv.c.
83125                 * setenv.c: Move the unsetenv() function to unsetenv.c.
83126
83127         2001-12-20  Bruno Haible  <bruno@clisp.org>
83128
83129                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
83130                 use malloc instead. For SunOS 4.
83131
83132         2001-12-11  Bruno Haible  <bruno@clisp.org>
83133
83134                 * setenv.c: Declare alloca.
83135                 (compar_fn_t): New typedef.
83136                 (KNOWN_VALUE, STORE_VALUE): Use it.
83137
83138         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
83139         setenv.h.
83140
83141 2002-12-10  Paul Eggert  <eggert@twinsun.com>
83142
83143         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
83144         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
83145         Choose values that are less likely to collide with system fnmatch
83146         options.
83147         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
83148         defined (e.g., a pure POSIX system).
83149         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
83150         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
83151
83152 2002-12-06  Paul Eggert  <eggert@twinsun.com>
83153
83154         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
83155         a pain in practice to deal with generated m4 files.  This change
83156         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
83157
83158         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
83159         and jm-glibc-io.m4, as they are no longer a special case.
83160         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
83161         kludge and the auto-generation stuff.  Check only whether the
83162         functions are declared, not whether they exist, since older hosts
83163         that don't declare the functions can't use the optimization anyway.
83164
83165 2002-12-06  Jim Meyering  <jim@meyering.net>
83166
83167         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
83168
83169         Merge in changes from libc's misc/error.c, in preparation
83170         for the merge of gnulib's changes back into libc.
83171
83172         * lib/error.c (_): Define only if not already defined.
83173         Move definition to follow all #include directives.
83174         Include unlocked-io.h only if !_LIBC.
83175         [_LIBC]: Include <libio/libioP.h>.
83176         [USE_IN_LIBIO]: Include <libio/iolibio.h>
83177         (fflush): Tweak definition to use INTUSE.
83178         (putc): Define.
83179
83180 2002-12-05  Paul Eggert  <eggert@twinsun.com>
83181
83182         * lib/alloca.c [defined emacs]: Include "lisp.h".
83183         (xalloc_die) [defined emacs]: New macro.
83184         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
83185         [! defined emacs]: Include <xalloc.h>.
83186         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
83187         (pointer): Typedef to POINTER_TYPE *.
83188         (malloc): Remove decl; we now always use xmalloc.
83189         (alloca): Use old-style definition, since Emacs needs this.
83190         Check for arithmetic overflow when computing combined size.
83191
83192 2002-12-04  Paul Eggert  <eggert@twinsun.com>
83193
83194         Do not generate unlocked-io.h automatically, since it's easier to
83195         maintain it by hand.
83196
83197         * lib/unlocked-io.h: New file, from GNU diffutils,
83198         but with proper copyright notice and attribution.
83199         * lib/gen-uio: Remove.
83200         * lib/Makefile.am: Add copyright notice.
83201         (libfetish_a_SOURCES): Add unlocked-io.h.
83202         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
83203         (DISTCLEANFILES, io_functions): Remove macros.
83204         (EXTRA_DIST): Remove gen_uio.
83205         (unlocked-io.h): Remove rule.
83206
83207 2002-12-04  Jim Meyering  <jim@meyering.net>
83208
83209         Reflect the fact that stat.c and lstat.c are no longer generated.
83210         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
83211         (DISTCLEANFILES): Likewise.
83212         (EXTRA_DIST): Likewise.
83213         (all_local): Don't depend on stat.c or lstat.c.
83214         (stat.c, lstat.c): Remove rules.
83215         (EXTRA_DIST): Remove xstat.in.
83216
83217         * lib/xstat.in: Remove file.  Contents moved into stat.c.
83218         * lib/stat.c: New file.  Contents mostly from xstat.in.
83219         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
83220         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
83221
83222         * lib/safe-read.c: Rework so that it may serve to define safe_write,
83223         too.
83224         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
83225
83226 2002-12-03  Jim Meyering  <jim@meyering.net>
83227
83228         * lib/safe-read.c, safe-write.c: Change variable names and comments,
83229         but not semantics, to minimize the differences between these two files.
83230         (safe_read): Change comment to mention SAFE_READ_ERROR.
83231
83232         * lib/safe-read.c (IS_EINTR): Define.
83233         (safe_read): Use IS_EINTR in place of in-function cpp directives.
83234
83235 2002-12-02  Jim Meyering  <jim@meyering.net>
83236
83237         * lib/safe-read.c (EINTR): Define.
83238         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
83239         (INT_MAX): Provide fallback.
83240         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
83241
83242         * lib/safe-read.h (SAFE_READ_ERROR): Define.
83243
83244 2002-12-02  Bruno Haible  <bruno@clisp.org>
83245
83246         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
83247         Define, taken from safe-read.c.
83248         (INT_MAX): Provide fallback.
83249         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
83250         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
83251
83252         * lib/safe-read.c (EINTR): Remove definition.
83253         (safe_read): Don't use EINTR if it is absent.
83254
83255 2002-12-01  Jim Meyering  <jim@meyering.net>
83256
83257         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
83258         zero.
83259         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
83260
83261 2002-11-27  Paul Eggert  <eggert@twinsun.com>
83262
83263         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
83264         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
83265         with `if (! (value < limit)) abort ();', for readability.
83266
83267 2002-11-26  Karl Berry  <karl@gnu.org>
83268
83269         * lib/strdup.c: copy from libc again, with jim's ok.
83270         * lib/.cppi-disable: re-add strdup.c
83271
83272 2002-11-25  Karl Berry  <karl@gnu.org>
83273
83274         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
83275         instead of "strtol.c".
83276
83277 2002-11-25  Karl Berry  <karl@gnu.org>
83278
83279         * config/install-sh: update from automake for variable quoting, $0 in
83280         error msgs, etc.
83281
83282         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
83283         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
83284         entry.
83285
83286 2002-11-25  Jim Meyering  <jim@meyering.net>
83287
83288         * lib/mktime.c: Sync from libc, now that it has the latest fix.
83289
83290 2002-11-24  Karl Berry  <karl@gnu.org>
83291
83292         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
83293         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
83294
83295 2002-11-24  Jim Meyering  <jim@meyering.net>
83296
83297         Update from coreutils:
83298
83299         * lib/mktime.c: Merge in changes from libc.
83300
83301         Avoid a link-time failure on some Linux systems.
83302         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
83303         (otherwise).
83304         (__mon_yday): Declare with the STATIC attribute.
83305         (__mktime_internal): Likewise.
83306         Based on a report from Greg Schafer.
83307
83308 2002-11-23  Jim Meyering  <jim@meyering.net>
83309
83310         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
83311         Use `unsigned', not `int', as type of index.
83312
83313         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
83314
83315         * lib/fsusage.c: Remove unneeded parentheses around operands of
83316         `defined'.
83317
83318 2002-11-22  Paul Eggert  <eggert@twinsun.com>
83319
83320         * lib/quotearg.h: Allow multiple inclusion by surrounding with
83321         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
83322         so that we can be included first.
83323         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
83324         * lib/quotearg.c: Include quotearg.h immediately after config.h.
83325         No need to include stddef.h or sys/types.h any more.
83326         Surround local include files with "", not "<>".
83327         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
83328         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
83329         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
83330         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
83331         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
83332         (ISPRINT): Remove; no longer needed now that we assume C89.
83333
83334         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
83335         Preserve errno.
83336
83337         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
83338         quotearg_char): Use SIZE_MAX rather than
83339         (size_t) -1 when we are talking about "infinity".
83340
83341         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
83342
83343 2002-11-22  Paul Eggert  <eggert@twinsun.com>
83344
83345         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
83346         hint that one should use `if (! x) abort ();' rather than `assert
83347         (x);', and anyway it's one less thing to worry about configuring.
83348         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
83349         hash_rehash, hash_insert): Use abort rather than assert.
83350
83351 2002-11-22  Bruno Haible  <bruno@clisp.org>
83352
83353         * lib/safe-read.h: Assume C89. Add comments.
83354         (safe_read): Change return type to size_t.
83355         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
83356         byte counts > SSIZE_MAX correctly.
83357         * lib/safe-write.h: New file.
83358         * lib/safe-write.c: New file.
83359         * lib/full-read.h: New file.
83360         * lib/full-read.c: New file.
83361         * lib/full-write.h: Assume C89. Add comments.
83362         * lib/full-write.c: Include safe-write.h.
83363         (full_write): Rewritten to use safe_write.
83364         Suggested by Jim Meyering and Paul Eggert.
83365
83366 2002-11-21  Jim Meyering  <jim@meyering.net>
83367
83368         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
83369
83370         Merge in changes from the coreutils.
83371
83372         2002-09-25  Paul Eggert  <eggert@twinsun.com>
83373         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
83374         <stdint.h>.
83375         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
83376         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
83377         int.  Work more efficiently if X is the same width as uintmax_t.
83378         Do not compare X to -1, to avoid bogus compiler warning.
83379         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
83380         Don't assume that f_frsize and f_bsize are the same type.
83381
83382         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
83383         warning on FreeBSD.
83384
83385         * lib/makepath.c (make_path): Restore umask *before* creating the final
83386         component.
83387         (make_path): Minor reformatting.
83388
83389         * lib/xmalloc.c: Adjust to work with new autoconf macros,
83390         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
83391         HAVE_MALLOC/HAVE_REALLOC.
83392
83393         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
83394         dummy ones.  At least on GNU/Linux systems, `auto' means something
83395         else.
83396         From Michael Stone.
83397
83398 2002-11-21  Bruno Haible  <bruno@clisp.org>
83399
83400         Remove case insensitive option matching.
83401         * lib/argmatch.h (argcasematch): Remove declaration.
83402         (ARGCASEMATCH): Remove macro.
83403         (__xargmatch_internal): Remove case_sensitive argument.
83404         (XARGMATCH): Update.
83405         (XARGCASEMATCH): Remove macro.
83406         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
83407         case_sensitive argument.
83408         (argcasematch): Remove function.
83409         (__xargmatch_internal): Remove case_sensitive argument.
83410         (main): Use XARGMATCH instead of XARGCASEMATCH.
83411
83412         * lib/xmalloc.c: Change compile-time error message. Add comment about
83413         required autoconf version.
83414
83415 2002-11-20  Paul Eggert  <eggert@twinsun.com>
83416
83417         Merge argmatch cleanups from Bison.  Assume C89.
83418
83419         * lib/argmatch.c: Include config.h here, not in argmatch.h.
83420         Include stdlib.h, for EXIT_FAILURE.
83421         Always include <string.h>, since we assume C89.
83422         (EXIT_FAILURE): Remove pre-C89 bug workaround.
83423         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
83424         Include <stddef.h> instead, since it's all we need for size_t.
83425         (PARAMS): Remove.  All uses removed.
83426         (ARRAY_CARDINALITY): Do not bother to #undef.
83427         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
83428         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
83429         Remove unnecessary parentheses.
83430         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
83431         Insert necessary parentheses.
83432         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
83433         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
83434
83435 2002-11-19  Bruno Haible  <bruno@clisp.org>
83436
83437         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
83438         * lib/mbswidth.h: Include <stddef.h>, for size_t.
83439
83440         * lib/mbswidth.h (PARAMS): Remove macro.
83441         (mbswidth, mbsnwidth): Use ANSI C function declarations.
83442         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
83443
83444         * lib/gcd.h (PARAMS): Remove macro.
83445         (gcd): Use ANSI C function declarations.
83446         * lib/gcd.c (gcd): Likewise.
83447
83448 2002-11-15  Bruno Haible  <bruno@clisp.org>
83449
83450         * lib/strcspn.c: Include <stddef.h>.
83451         (strcspn): Use ANSI C function declaration. Change return type to
83452         size_t. Use NULL.
83453         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
83454         (strpbrk): Use NULL.
83455         * lib/strpbrk.h (PARAMS): Remove macro.
83456         (strpbrk): Use ANSI C function declaration.
83457         * lib/strstr.c: Don't include <sys/types.h>.
83458         * lib/strstr.h (PARAMS): Remove macro.
83459         (strstr): Use ANSI C function declarations.
83460
83461 2002-11-14  Karl Berry  <karl@gnu.org>
83462
83463         * config/mkinstalldirs: `do' on separate line, instead of
83464         `for var; do'.
83465
83466 2002-11-06  Bruno Haible  <bruno@clisp.org>
83467
83468         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
83469         * lib/gcd.c (gcd): Likewise.
83470
83471 2002-11-05  Bruno Haible  <bruno@clisp.org>
83472
83473         * lib/gcd.h: New file, from gettext-0.11.5.
83474         * lib/gcd.c: New file, from gettext-0.11.5.
83475
83476 2002-11-05  Bruno Haible  <bruno@clisp.org>
83477
83478         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83479         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83480         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83481         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83482
83483         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
83484         <libintl.h>.
83485         * lib/makepath.c: Include gettext.h instead of <locale.h> and
83486         <libintl.h>.
83487
83488         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
83489         * lib/human.c: Include gettext.h instead of <libintl.h>.
83490         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
83491         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
83492         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
83493         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
83494         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
83495         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
83496         (textdomain): Remove definition.
83497         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
83498
83499         * lib/long-options.c: Remove include of <libintl.h> and definition of
83500         _.
83501         * lib/same.c: Remove include of <libintl.h> and definition of _.
83502
83503 2002-11-04  Owen Taylor  <otaylor@redhat.com>
83504
83505         * lib/config.charset: A few additions for Solaris.
83506
83507 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
83508
83509         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
83510         * lib/localcharset.c (locale_charset): Declare as extern "C".
83511
83512 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
83513
83514         * lib/config.charset: msdos in uk_UA uses CP1125.
83515
83516 2002-11-04  Bruno Haible  <bruno@clisp.org>
83517
83518         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
83519         * lib/strcase.h: New file, from GNU gettext-0.11.5.
83520         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
83521         * lib/strstr.h: New file, from GNU gettext-0.11.5.
83522         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
83523
83524 2002-11-04  Bruno Haible  <bruno@clisp.org>
83525
83526         * lib/localcharset.c (locale_charset): Don't return an empty string.
83527
83528 2002-11-04  Bruno Haible  <bruno@clisp.org>
83529
83530         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
83531         aliases.
83532
83533 2002-11-04  Bruno Haible  <bruno@clisp.org>
83534
83535         * lib/config.charset: Update for newest glibc. Add canonical names
83536         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
83537
83538 2002-11-04  Bruno Haible  <bruno@clisp.org>
83539
83540         * lib/config.charset: Add support for NetBSD.
83541
83542 2002-11-04  Bruno Haible  <bruno@clisp.org>
83543
83544         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
83545
83546 2002-11-01  Bruno Haible  <bruno@clisp.org>
83547
83548         * configure.in: Add AC_CONFIG_AUX_DIR call.
83549         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
83550         test/Makefile.
83551         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
83552
83553 2002-09-28  Karl Berry  <karl@gnu.org>
83554
83555         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
83556         installed automake until the next release, since changes have been
83557         made.
83558
83559 2002-09-25  Karl Berry  <karl@gnu.org>
83560
83561         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
83562         * lib/getopt*: copy from libc/posix.
83563         * lib/gettext.h: copy from gettext.
83564         * lib/.cppi-disable: add strdup.c, gettext.h.
83565
83566 2002-09-25  Karl Berry  <karl@gnu.org>
83567
83568         * config/srclist.txt: enable gettext.h check.
83569         * config/config.{guess,sub}: update from prep.
83570         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
83571                 from automake 1.6.3.
83572         See srclist*.
83573
83574 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
83575
83576         * regex.c (PATFETCH): Remove the translating fetch.
83577         (PATFETCH_RAW): Rename to PATFETCH.
83578         (set_image_of_range): New fun.
83579         (SET_RANGE_TABLE_WORK_AREA): Use it.
83580         (regex_compile): Don't translate the pattern chars so eagerly.
83581         Only do it when inserting an `exactn' bytecode or when handling
83582         a char-range.
83583         (mutually_exclusive_p): Avoid empty statement.
83584
83585 2002-07-06  Jim Meyering  <meyering@lucent.com>
83586
83587         * m4/README: Don't mention Makefile.am.in.
83588         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
83589
83590 2002-07-01  Jim Meyering  <meyering@lucent.com>
83591
83592         * lib/c-stack.c: Include sys/time.h.
83593         From Volker Borchert.
83594
83595 2002-06-26  Paul Eggert  <eggert@twinsun.com>
83596
83597         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
83598
83599 2002-06-26  Paul Eggert  <eggert@twinsun.com>
83600
83601         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
83602         New macro.  Use it uniformly instead of
83603         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
83604         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
83605         reported by Vin Shelton.
83606
83607 2002-06-22  Paul Eggert  <eggert@twinsun.com>
83608
83609         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
83610         Do not assume SA_SIGINFO behavior.
83611         Bug reported by Jim Meyering on NetBSD 1.5.2.
83612
83613 2002-06-22  Jim Meyering  <meyering@lucent.com>
83614
83615         * m4/c-stack.m4: New file, from diffutils-2.8.2.
83616         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
83617
83618         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
83619         now that configure.ac uses AC_GNU_SOURCE.
83620         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
83621         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
83622
83623         Update to latest tools.  Suggestions from Paul Eggert.
83624         * m4/stdbool.m4: New file, from diffutils-2.8.2.
83625         * m4/gnu-source.m4: Update from diffutils-2.8.2.
83626         * m4/fnmatch.m4: Likewise.
83627         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
83628         to AC_HEADER_STDBOOL
83629
83630 2002-06-22  Jim Meyering  <meyering@lucent.com>
83631
83632         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
83633         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
83634
83635 2002-06-22  Jim Meyering  <meyering@lucent.com>
83636
83637         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
83638
83639         * lib/exitfail.c, exitfail.h: Likewise.
83640         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
83641
83642         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
83643         of fnmatch.h.
83644         (EXTRA_DIST): Add fnmatch_loop.c.
83645         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
83646
83647         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
83648         * lib/fnmatch.c: Update from diffutils-2.8.2.
83649         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
83650         * lib/fnmatch.h: Remove file.
83651
83652 2002-06-21  Jim Meyering  <meyering@lucent.com>
83653
83654         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
83655         * m4/mbrtowc.m4: Likewise.
83656
83657         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
83658         * m4/mbswidth.m4: Reflect name change:
83659         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
83660         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83661
83662         * m4/lib-link.m4: Update from gettext-0.11.2.
83663         * m4/gettext.m4: Likewise.
83664
83665         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
83666         From Alfred M. Szmidt.
83667
83668 2002-06-18  Paul Eggert  <eggert@twinsun.com>
83669
83670         * lib/file-type.h: Report an error if neither S_ISREG nor
83671         S_IFREG is defined, instead of using a test specific to glibc
83672         2.2.  This should be safe, since POSIX requires S_ISREG and
83673         Unix Version 7 had S_IFREG.  We don't need to check for
83674         <sys/types.h> since we don't use any symbols that it defines.
83675
83676 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
83677
83678         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
83679         $@-t, so that each temporary file name is unique and valid in the first
83680         8 characters, for operation under DOS.
83681
83682 2002-06-15  Paul Eggert  <eggert@twinsun.com>
83683
83684         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
83685
83686 2002-06-15  Jim Meyering  <meyering@lucent.com>
83687
83688         Work even with DJGPP 2.03, which lacks support for symlinks.
83689         From Richard Dawe.
83690         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
83691         is defined.
83692         * lib/lchown.c (S_ISLNK): Likewise.
83693
83694 2002-06-15  Jim Meyering  <meyering@lucent.com>
83695
83696         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
83697         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
83698         have been included before this file.
83699
83700 2002-06-14  Jim Meyering  <meyering@lucent.com>
83701
83702         * lib/file-type.h: Use the version from diffutils-2.8.2.
83703         * lib/file-type.c: Likewise.
83704
83705 2002-06-07  Jim Meyering  <meyering@lucent.com>
83706
83707         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
83708         They're needed at least for NetBSD 1.5.2.
83709         ($statxfs_includes): Include those same headers.
83710         ($statxfs_includes): Include sys/vfs.h if available.
83711         ($statxfs_includes): Likewise for sys/statvfs.h.
83712         Check for the following members in both structs statfs and statvfs:
83713         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
83714
83715 2002-06-01  Jim Meyering  <meyering@lucent.com>
83716
83717         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
83718         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
83719
83720 2002-05-28  Jim Meyering  <meyering@lucent.com>
83721
83722         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
83723         Reported by Volker Borchert.
83724
83725 2002-05-27  Jim Meyering  <meyering@lucent.com>
83726
83727         Fix a problem seen only on nonconforming systems whereby ls.c's
83728         use of localtime, and then of gettimeofday would cause trouble:
83729         the localtime call used to initialize rpl_gettimeofday's save
83730         mechanism would clobber ls's current local time information so
83731         that in any long listing the first file would always be listed
83732         with date 1970-01-01.  Analysis by Volker Borchert.
83733
83734         * lib/gettimeofday.c (localtime): Undefine.
83735         (rpl_localtime): New function.
83736
83737 2002-05-27  Jim Meyering  <meyering@lucent.com>
83738
83739         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
83740         localtime.
83741
83742         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
83743         use the replacement function; it wouldn't resolve at link time.
83744         Reported by Volker Borchert.
83745
83746 2002-05-22  Jim Meyering  <meyering@lucent.com>
83747
83748         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
83749         file-type.h.
83750         * lib/file-type.h: New file.
83751         * lib/file-type.c (file_type): New file/function.  Extracted from
83752         diffutils.
83753
83754 2002-04-30  Jim Meyering  <meyering@lucent.com>
83755
83756         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
83757
83758 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83759
83760         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
83761
83762 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83763
83764         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
83765         Do not check for alloca.h (no longer used) or stdbool.h (was never
83766         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
83767
83768 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83769
83770         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
83771
83772 2002-04-29  Jim Meyering  <meyering@lucent.com>
83773
83774         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
83775         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
83776         Use AC_FUNC_STRNLEN here instead.
83777
83778         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
83779         With autoconf-2.53a, it's part of AC_PROG_CC.
83780
83781 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83782
83783         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
83784         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
83785
83786 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83787
83788         * lib/sig2str.h, lib/sig2str.c: New files.
83789         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
83790
83791 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83792
83793         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
83794         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
83795         of 127, since 64 is the largest conceivable number for ancient
83796         nonstandard hosts.
83797         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
83798
83799 2002-04-28  Jim Meyering  <meyering@lucent.com>
83800
83801         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
83802
83803 2002-04-24  Jim Meyering  <meyering@lucent.com>
83804
83805         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
83806         (jm_PREREQ): Use it.
83807
83808         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
83809         mach/mach.h fcntl.h.
83810         Check for this function: setlocale.
83811
83812 2002-04-24  Jim Meyering  <meyering@lucent.com>
83813
83814         * lib/gettext.h: New file, from Gettext.
83815         * lib/Makefile.am (INCLUDES): Remove -I../intl.
83816         (libfetish_a_SOURCES): Add gettext.h.
83817
83818 2002-04-16  Jim Meyering  <meyering@lucent.com>
83819
83820         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
83821         ut_pid, ut_id, ut_exit.
83822
83823 2002-04-16  Jim Meyering  <meyering@lucent.com>
83824
83825         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
83826         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
83827         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
83828
83829 2002-04-12  Jim Meyering  <meyering@lucent.com>
83830
83831         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
83832         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
83833         existence of the getmntinfo function.  Needed for Darwin 5.3.
83834
83835         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
83836         This is necessary at least on Darwin 5.3.
83837
83838         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
83839         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
83840         strnlen.o in the library, and that makes some versions of ranlib
83841         object.
83842
83843 2002-04-12  Jim Meyering  <meyering@lucent.com>
83844
83845         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
83846
83847 2002-04-09  Jim Meyering  <meyering@lucent.com>
83848
83849         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
83850         to be more precise.  Rather than saying we're checking whether the
83851         function `works', say what we're testing.
83852         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
83853         Reported by Bruno Haible.
83854
83855 2002-03-10  Jim Meyering  <meyering@lucent.com>
83856
83857         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
83858         Suggestion from Santiago Vila.
83859
83860 2002-03-08  Jim Meyering  <meyering@lucent.com>
83861
83862         * lib/rename.c: Mention that this wrapper is needed also on
83863         mips-dec-ultrix4.4 systems.
83864
83865 2002-03-02  Jim Meyering  <meyering@lucent.com>
83866
83867         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
83868         not HAVE_CLOCK_SETTIME.
83869
83870 2002-02-27  Paul Eggert  <eggert@twinsun.com>
83871
83872         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
83873         Check for clock_settime.
83874
83875 2002-02-27  Paul Eggert  <eggert@twinsun.com>
83876
83877         * lib/nanosleep.h: Rename to....
83878         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
83879
83880         * lib/gettime.c: New file.
83881         * lib/settime.c: New file.
83882         * lib/stime.c: Remove.
83883
83884         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
83885         timespec.h.  Remove nanosleep.h.
83886
83887 2002-02-25  Paul Eggert  <eggert@twinsun.com>
83888
83889         * m4/acl.m4: New file.
83890         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
83891         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
83892
83893 2002-02-25  Paul Eggert  <eggert@twinsun.com>
83894
83895         * lib/acl.c, lib/acl.h: New files.
83896         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
83897
83898 2002-02-24  Jim Meyering  <meyering@lucent.com>
83899
83900         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
83901         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
83902         cause trouble.  Reported by Nelson Beebe.
83903
83904 2002-02-23  Paul Eggert  <eggert@twinsun.com>
83905
83906         * lib/path-concat.c (xpath_concat): Reorder code to pacify
83907         compilers that don't know that xalloc_die never returns.
83908
83909 2002-02-20  Jim Meyering  <meyering@lucent.com>
83910
83911         * lib/getdate.c: Regenerate using bison-1.33.
83912
83913 2002-02-17  Jim Meyering  <meyering@lucent.com>
83914
83915         * config/config.guess (main): Don't use `head -1'; it's no longer
83916         portable. Use `sed 1q' instead.
83917
83918 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
83919
83920         * m4/codeset.m4: Upgrade to gettext-0.11.
83921         * m4/gettext.m4: Upgrade to gettext-0.11.
83922         * m4/glibc21.m4: Upgrade to gettext-0.11.
83923         * m4/iconv.m4: Upgrade to gettext-0.11.
83924         * m4/isc-posix.m4: Upgrade to gettext-0.11.
83925         * m4/lcmessage.m4: Upgrade to gettext-0.11.
83926         * m4/lib-ld.m4: New file, from gettext-0.11.
83927         * m4/lib-link.m4: New file, from gettext-0.11.
83928         * m4/lib-prefix.m4: New file, from gettext-0.11.
83929         * m4/progtest.m4: Upgrade to gettext-0.11.
83930
83931 2002-02-15  Paul Eggert  <eggert@twinsun.com>
83932
83933         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
83934         (jm_PREREQ): Use it.
83935
83936 2002-02-15  Paul Eggert  <eggert@twinsun.com>
83937
83938         * lib/posixver.c, lib/posixver.h: New files.
83939         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
83940
83941 2002-02-02  Paul Eggert  <eggert@twinsun.com>
83942             Bruno Haible  <bruno@clisp.org>
83943
83944         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
83945         (fwrite_success_callback): New declaration.
83946         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
83947         print_unicode_char. Call failure callback instead of error.
83948         (fwrite_success_callback): New function.
83949         (exit_failure_callback): New function.
83950         (fallback_failure_callback): New function.
83951         (print_unicode_char): Call unicode_to_mb.
83952
83953 2002-01-26  Jim Meyering  <meyering@lucent.com>
83954
83955         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
83956         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
83957
83958 2002-01-26  Jim Meyering  <meyering@lucent.com>
83959
83960         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
83961
83962 2002-01-22  Paul Eggert  <eggert@twinsun.com>
83963
83964         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
83965
83966 2002-01-22  Jim Meyering  <meyering@lucent.com>
83967
83968         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
83969         Otherwise, some versions of automake would omit the rule that makes
83970         Makefile from Makefile.in.
83971
83972 2002-01-21  Paul Eggert  <eggert@twinsun.com>
83973
83974         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
83975         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
83976         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
83977         (memcoll): Set errno to zero if there is no error.
83978
83979         * lib/quotearg.c (quotearg_buffer_restyled):
83980         Fix bug with quoting buffers containing NUL when backslashing escapes.
83981         This bug was exposed by the other changes in this patch.
83982         (quotearg_n_options): New arg ARGSIZE.
83983         All callers changed.
83984         (quoting_options_from_style): New function.
83985         (quotearg_n_style): Use it.
83986         (quotearg_n_style_mem): New function.
83987
83988         * lib/quotearg.h (quotearg_n_style_mem): New function.
83989
83990 2002-01-19  Jim Meyering  <meyering@lucent.com>
83991
83992         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
83993         Remove useless quotes: DF_PROG="df".
83994         * m4/strnlen.m4: New file.
83995
83996 2002-01-16  Paul Eggert  <eggert@twinsun.com>
83997
83998         * lib/backupfile.c (ISDIGIT): Comment fix.
83999         * lib/getdate.y (ISDIGIT): Likewise.
84000         * lib/posixtm.c (ISDIGIT, year): Likewise.
84001         * lib/strverscmp.c (ISDIGIT): Likewise.
84002         * lib/userspec.c (ISDIGIT): Likewise.
84003
84004 2002-01-16  Jim Meyering  <meyering@lucent.com>
84005
84006         * lib/getdate.y: Add three semicolons, each just before a closing
84007         brace. Bison (as of version 1.31) no longer papers over that mistake.
84008
84009 2002-01-05  Jim Meyering  <meyering@lucent.com>
84010
84011         * lib/version-etc.c (version_etc_copyright): Update copyright year.
84012
84013 2001-12-19  Paul Eggert  <eggert@twinsun.com>
84014
84015         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
84016         not silently exit merely because the output buffer happens to
84017         have nothing pending.
84018
84019 2001-12-18  Paul Eggert  <eggert@twinsun.com>
84020
84021         See the big note in ../ChangeLog.
84022         * lib/human.c (suffixes): Prefer K to k for 1024.
84023         (generate_suffix_backwards): New function.
84024         (human_readable_inexact): Use it.
84025         * lib/xstrtol.c (__xstrtol): If there is no number but there
84026         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
84027         Accept 'K' as well as 'k'.
84028
84029 2001-12-15  Jim Meyering  <meyering@lucent.com>
84030
84031         * lib/regex.h (__restrict_arr): Update from libc.
84032
84033         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
84034         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
84035         (STREQ): Define.
84036
84037 2001-12-14  Jim Meyering  <meyering@lucent.com>
84038
84039         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
84040         Suggestion from Bruno Haible.
84041
84042 2001-12-10  Jim Meyering  <meyering@lucent.com>
84043
84044         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
84045         xrealloc, Instead, include "xalloc.h".
84046         (initbuffer): Don't cast xmalloc return value to char*.
84047         (readline): Reword comment.
84048         Don't cast xrealloc return value to char*
84049         Return NULL, not 0.
84050
84051 2001-12-09  Jim Meyering  <meyering@lucent.com>
84052
84053         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
84054         about `signed and unsigned type in conditional expression'.
84055         * lib/posixtm.c (posix_time_parse): Likewise.
84056
84057         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
84058
84059         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
84060         to avoid a pedantic warning.
84061
84062         * lib/getstr.c: Don't include assert.h.
84063         (getstr): Remove warning-evoking assertions.
84064         Return -1 if offset parameter is out of bounds.
84065         Change the type of a local from int to size_t.
84066
84067         * lib/strftime.c (my_strftime_localtime_r): Include this function
84068         definition in the `#if ! HAVE_TM_GMTOFF' block.
84069
84070         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
84071         Include xalloc.h instead.
84072
84073 2001-12-02  Jim Meyering  <meyering@lucent.com>
84074
84075         * lib/tempname.c: Don't declare getenv, thus reverting the change of
84076         2001-11-18.  It's no longer necessary, now that stdlib.h is always
84077         included.
84078
84079         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
84080         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
84081
84082 2001-11-30  Akim Demaille  <akim@epita.fr>
84083
84084         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
84085         before being defined.
84086
84087 2001-11-27  Paul Eggert  <eggert@twinsun.com>
84088
84089         * lib/quotearg.h (quotearg_n, quotearg_n_style):
84090         First arg is int, not unsigned.
84091         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
84092         (SIZE_MAX, UINT_MAX): New macros.
84093         (quotearg_n_options): Abort if N is negative.
84094         Avoid overflow check on hosts where size_t is 64 bits and int
84095         is 32 bits, as overflow is impossible there.
84096         Fix off-by-one typo that caused unnecessary reallocation.
84097
84098 2001-11-27  Jim Meyering  <meyering@lucent.com>
84099
84100         * lib/tempname.c: Merge with version from libc.
84101         * lib/regex.c: Likewise.
84102
84103         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
84104         systems for which STDC_HEADERS is 0, it was not included, resulting in
84105         a warning about an integer-to-pointer conversion problem with getenv.
84106         Reported by Volker Borchert.
84107
84108 2001-11-26  Jim Meyering  <meyering@lucent.com>
84109
84110         * lib/gtod.h: Remove file.
84111         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
84112         * lib/gettimeofday.c: Don't include gtod.h.
84113         (GTOD_init): Remove function.
84114         (rpl_gettimeofday): Do its job here instead, rather than aborting.
84115         Suggestion from Volker Borchert.
84116
84117 2001-11-23  Jim Meyering  <meyering@lucent.com>
84118
84119         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
84120         it.
84121         * lib/hash.c (struct hash_table): Define it here instead.
84122
84123 2001-11-22  Jim Meyering  <meyering@lucent.com>
84124
84125         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
84126
84127 2001-11-20  Jim Meyering  <meyering@lucent.com>
84128
84129         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
84130         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
84131
84132 2001-11-19  Jim Meyering  <meyering@lucent.com>
84133
84134         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
84135         directory.  Use "conftestXXXXXX" as the template.
84136         Suggestion from Paul Eggert.
84137
84138         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
84139         immediately, so the test doesn't mistakenly hit the max-open-files
84140         limit.
84141
84142 2001-11-18  Paul Eggert  <eggert@twinsun.com>
84143
84144         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
84145         (TEMPORARIES): New macro.
84146         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
84147         removes an artificial limitation (e.g. HP-UX 10.20, where
84148         TMP_MAX is 17576).
84149
84150 2001-11-18  Jim Meyering  <meyering@lucent.com>
84151
84152         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
84153
84154 2001-11-18  Jim Meyering  <meyering@lucent.com>
84155
84156         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
84157         on SunOS 4.
84158
84159         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
84160         files will be created before anything else.
84161
84162 2001-11-17  Paul Eggert  <eggert@twinsun.com>
84163
84164         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
84165         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
84166
84167 2001-11-17  Jim Meyering  <meyering@lucent.com>
84168
84169         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
84170         Prompted by a report from Bob Proulx.
84171
84172         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
84173         Instead, require UTILS_FUNC_MKSTEMP.
84174
84175 2001-11-17  Jim Meyering  <meyering@lucent.com>
84176
84177         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
84178         Now, that's done as part of AC_FUNC_STRTOD.
84179
84180 2001-11-17  Jim Meyering  <meyering@lucent.com>
84181
84182         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
84183         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
84184         rather than group writable.  Patch by Juan F. Codagnone.
84185
84186         * lib/readtokens.c: Remove explicit declarations of xmalloc and
84187         xrealloc, Instead, include "xalloc.h".
84188
84189         * lib/mountlist.c: Include unlocked-io.h after all system headers.
84190         Remove explicit declarations of xmalloc, xrealloc,
84191         and xstrdup.  Instead, include "xalloc.h".
84192
84193         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
84194         unlocked-io.h.
84195         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
84196         Likewise.
84197         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
84198
84199         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
84200         Reported by Padraig Brady.
84201
84202         * lib/mkstemp.c: #undef mkstemp.
84203         Include config.h.
84204         (rpl_mkstemp): Rename from mkstemp.
84205         Protoize.
84206
84207 2001-11-16  Jim Meyering  <meyering@lucent.com>
84208
84209         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
84210         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
84211         determine the amount of total physical memory, use pstat_getstatic.
84212         HPUX-11 doesn't define _SC_PHYS_PAGES.
84213         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
84214         If sysconf couldn't be used to determine the amount of available
84215         physical memory, use both pstat_getstatic and pstat_getdynamic.
84216         Based on a patch from Bob Proulx.
84217
84218 2001-11-10  Jim Meyering  <meyering@lucent.com>
84219
84220         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
84221         (jm_PREREQ): Use it.
84222
84223 2001-11-09  Jim Meyering  <meyering@lucent.com>
84224
84225         * m4/jm-macros.m4: Require autoconf-2.52f.
84226         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
84227         Use these AC_-prefixed names, not the AM_-prefixed ones.
84228
84229         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
84230
84231 2001-11-05  Jim Meyering  <meyering@lucent.com>
84232
84233         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
84234
84235 2001-11-04  Jim Meyering  <meyering@lucent.com>
84236
84237         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
84238         $DEFS.
84239
84240 2001-11-03  Jim Meyering  <meyering@lucent.com>
84241
84242         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
84243         of AC_DEFUN.
84244
84245         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
84246         know the name of the variable in the macro definition.
84247
84248 2001-11-03  Jim Meyering  <meyering@lucent.com>
84249
84250         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
84251         in argmatch_to_argument call.
84252
84253         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
84254         argument.
84255
84256         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
84257         e.g., a fault due to an attempt to free a NULL pointer.
84258
84259 2001-11-01  Jim Meyering  <meyering@lucent.com>
84260
84261         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
84262         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
84263
84264 2001-11-01  Jim Meyering  <meyering@lucent.com>
84265
84266         * lib/dirfd.c, lib/dirfd.h: New files.
84267         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
84268
84269         * lib/hash.c (hash_print) [TESTING]: Clean up.
84270
84271 2001-10-22  Paul Eggert  <eggert@twinsun.com>
84272
84273         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
84274         to avoid a warning if -Wall.
84275
84276 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
84277
84278         * README: New file
84279         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
84280         (per RMS's instructions, this is now the canonical source)
84281         * lgpl/, gpl/: New directories.
84282
84283 2001-10-21  Paul Eggert  <eggert@twinsun.com>
84284
84285         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
84286
84287 2001-10-21  Jim Meyering  <meyering@lucent.com>
84288
84289         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
84290         this code would end up calling gettext even in packages built
84291         with --disable-nls.
84292         * lib/getopt.c (_): Likewise.
84293         * lib/regex.c (_): Likewise.
84294
84295 2001-10-20  Paul Eggert  <eggert@twinsun.com>
84296
84297         * m4/error.m4 (jm_PREREQ_ERROR):
84298         Do not invoke AC_CHECK_FUNCS with strerror_r, as
84299         AC_FUNC_STRERROR_R does that.
84300         Check for strerror declaration.
84301
84302         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
84303         are supposed to have them these days.
84304         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
84305         Merge changes from latest Autoconf CVS.
84306         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
84307         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
84308         POSIX decided to standardize on the int flavor of strerror_r.
84309
84310 2001-10-20  Paul Eggert  <eggert@twinsun.com>
84311
84312         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
84313         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
84314         Use strerror_r that is only a macro, even if it is not a function.
84315         (strerror): Check for HAVE_DECL_STRERROR before declaring.
84316         (private_strerror): Use prototypes, not old-style function definition.
84317         (print_errno_message): New function.
84318         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
84319         char*-flavored one.
84320         (error_tail, error, error_at_line): Use it.
84321
84322 2001-10-11  Jim Meyering  <meyering@lucent.com>
84323
84324         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
84325         and quote_n (1, ... to avoid clobbering a buffer.
84326
84327 2001-10-05  Jim Meyering  <meyering@lucent.com>
84328
84329         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
84330         hash-pjw.h.
84331         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
84332         * lib/hash-pjw.h: New file.
84333
84334 2001-09-30  Jim Meyering  <meyering@lucent.com>
84335
84336         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
84337         `struct fsstat' has the `f_fstypename' member.
84338         Use that to define FS_TYPE, which is now used to make
84339         the getfsstat link test tighter.
84340
84341 2001-09-30  Jim Meyering  <meyering@lucent.com>
84342
84343         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
84344         Include <sys/ucred.h>, for Apple Darwin.
84345         Include sys/mount.h and sys/fs_types.h only if available.
84346         (FS_TYPE): Define.
84347         (read_filesystem_list): Use FS_TYPE.
84348
84349 2001-09-29  Paul Eggert  <eggert@twinsun.com>
84350
84351         * lib/exclude.c (excluded_filename): 0 -> false, since it's
84352         a boolean context.
84353
84354 2001-09-29  Jim Meyering  <meyering@lucent.com>
84355
84356         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
84357         [one-argument getmntent function]): Include stdio.h before mntent.h.
84358         SunOS 4.1.x needs it for the declaration of `FILE'.
84359         Patch by Volker Borchert.
84360
84361         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
84362         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
84363         sys/fs_types.h, and make the link-test for getfsstat guard #include
84364         directives with appropriate #if HAVE_*_H tests so that we can
84365         detect getfsstat on Apple Darwin1.3.7 systems.
84366         Reported by Nelson Beebe.
84367         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
84368
84369 2001-09-28  Paul Eggert  <eggert@twinsun.com>
84370
84371         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
84372         #defines strtoimax.  Also treat the other strto* functions
84373         like strtoimax.
84374
84375         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
84376         Check for strtoul and strtoumax,
84377         as those declarations are made even in the signed case.
84378         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
84379         Likewise, for strtol and strtoimax.
84380
84381 2001-09-28  Paul Eggert  <eggert@twinsun.com>
84382
84383         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
84384         #defines strtoimax.  Also treat the other strto* functions
84385         like strtoimax.
84386
84387         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
84388         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
84389         (strtoimax, strtoumax): Do not declare if already defined as a macro.
84390
84391 2001-09-26  Jim Meyering  <meyering@lucent.com>
84392
84393         Most macros in unlocked-io.h had the wrong number of arguments.
84394         * lib/gen-uio: New script.
84395         (USE_UNLOCKED_IO): Define to 1 if not already defined.
84396         * lib/unlocked-io.hin: Remove file.
84397         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
84398         rather than trying to embed it here.
84399         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
84400         Reported by Padraig Brady.
84401
84402 2001-09-25  Volker Borchert  <bt@teknon.de>
84403
84404         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
84405         `result'.
84406
84407 2001-09-24  Jim Meyering  <meyering@lucent.com>
84408
84409         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
84410
84411 2001-09-23  Jim Meyering  <meyering@lucent.com>
84412
84413         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
84414         instead of the mere test for existence of mntent.h.  The latter
84415         would get a false-positive on AIX 3.4 systems.
84416         In the outer getmntent if-block, don't die if neither of the getmntent
84417         tests succeeds.  Instead, just fall through and continue with the
84418         remaining tests.
84419
84420 2001-09-23  Jim Meyering  <meyering@lucent.com>
84421
84422         * lib/mountlist.c: Remove useless parentheses in #if directives.
84423         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
84424         the deprecated MOUNTED symbol is no longer defined in mntent.h.
84425
84426 2001-09-22  Jim Meyering  <meyering@lucent.com>
84427
84428         * m4/gettext.m4: New file.  From gettext.
84429         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
84430         * m4/progtest.m4: Likewise
84431         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
84432         * m4/glibc21.m4: Likewise.
84433
84434         * m4/libintl.m4: Remove.  No longer used.
84435
84436 2001-09-22  Jim Meyering  <meyering@lucent.com>
84437
84438         * lib/localcharset.c: Update from latest gettext.
84439         * lib/config.charset: Likewise.
84440
84441 2001-09-20  Jim Meyering  <meyering@lucent.com>
84442
84443         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
84444         strtoimax.
84445         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
84446         strtoumax.
84447
84448 2001-09-20  Jim Meyering  <meyering@lucent.com>
84449
84450         * lib/xstrtol.c (strtoimax): Guard declaration with
84451         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
84452         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
84453         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
84454         (strtoumax): Likewise, for completeness (it wasn't necessary).
84455
84456 2001-09-17  Paul Eggert  <eggert@twinsun.com>
84457
84458         * lib/strtoimax.c (HAVE_LONG_LONG):
84459         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
84460         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
84461         to work around bug in IBM C compiler.
84462
84463 2001-09-17  Jim Meyering  <meyering@lucent.com>
84464
84465         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
84466         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
84467         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
84468         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
84469         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
84470         whenever the right hand side need not be expanded by the shell.
84471
84472 2001-09-16  Paul Eggert  <eggert@twinsun.com>
84473
84474         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
84475         library.  It's not correct, as some older glibcs are buggy.
84476         fnmatch wasn't fixed until glibc 2.2.
84477
84478         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
84479         special shell magic here.
84480
84481 2001-09-16  Jim Meyering  <meyering@lucent.com>
84482
84483         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
84484         * m4/jm-macros.m4: Require it.
84485
84486 2001-09-16  Jim Meyering  <meyering@lucent.com>
84487
84488         * lib/mkdir.c: New file.
84489
84490 2001-09-15  Jim Meyering  <meyering@lucent.com>
84491
84492         * m4/jm-macros.m4: Check for help2man.
84493
84494 2001-09-11  Jim Meyering  <meyering@lucent.com>
84495
84496         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
84497         The body, by Paul Eggert, was moved here from configure.in.
84498         * m4/jm-macros.m4: Require UTILS_HOST_OS.
84499
84500 2001-09-04  Paul Eggert  <eggert@twinsun.com>
84501
84502         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
84503         (jm_PREREQ): Use it.
84504
84505 2001-09-04  Paul Eggert  <eggert@twinsun.com>
84506
84507         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
84508         Use ssize_t, not int, to store result of readlink.
84509         Check for ssize_t overflow as well as size_t overflow,
84510         as POSIX says the result of readlink is implementation-defined
84511         when ssize_t overflows.
84512         Remove unnecessary cast to char*.
84513         Use free+malloc instead of realloc, as the storage doesn't need
84514         to be preserved and it's clearer and can be more efficient that way.
84515         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
84516         * lib/xreadlink.h (xreadlink): Update prototype.
84517
84518 2001-09-04  Paul Eggert  <eggert@twinsun.com>
84519
84520         * lib/xgetcwd.c: Revert some of the previous change; intead,
84521         fix the HAVE_GETCWD_NULL code to behave more like the
84522         !HAVE_GETCWD_NULL code used to.
84523
84524         Include "xalloc.h".
84525         (xgetcwd): Do not return NULL when memory is exhausted; instead,
84526         invoke xalloc_die.
84527
84528 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84529
84530         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
84531         sys/param.h, as pathmax.h includes them.
84532
84533 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84534
84535         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
84536         (jm_PREREQ_XGETCWD): New macro.
84537
84538         * m4/getcwd.m4: New file.
84539
84540 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84541
84542         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
84543         like the HAVE_GETCWD_NULL code.
84544         Include pathmax.h if not HAVE_GETCWD.
84545         Do not include xalloc.h.
84546         (INITIAL_BUFFER_SIZE): New symbol.
84547         Do not use xmalloc / xrealloc, since the caller is responsible for
84548         handling errors.  Preserve errno around `free' during failure.
84549         Do not overrun buffer when using getwd.
84550
84551 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84552
84553         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
84554         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
84555         getcwd (NULL, 0).
84556
84557 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84558
84559         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
84560         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
84561         spotted by Jim Meyering.
84562
84563 2001-09-03  Jim Meyering  <meyering@lucent.com>
84564
84565         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
84566         failure.
84567
84568 2001-09-02  Jim Meyering  <meyering@lucent.com>
84569
84570         * lib/error.c: Update from GNU libc.
84571
84572 2001-09-01  Jim Meyering  <meyering@lucent.com>
84573
84574         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
84575         Used by df.
84576
84577 2001-09-01  Jim Meyering  <meyering@lucent.com>
84578
84579         * lib/xreadlink.c: New file.
84580         * lib/xreadlink.h: New file.
84581         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
84582         xreadlink.h.
84583
84584         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
84585         doesn't conflict with sparc Solaris 7's definition in
84586         /usr/include/sys/int_types.h.
84587
84588         * lib/exclude.c: Use `""', not `<>' to #include non-system header
84589         files.
84590         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
84591         and strncasecmp as r-values.  Unixware didn't have declarations.
84592
84593 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84594
84595         * lib/xstrtol.h: Add copyright notice.
84596         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
84597         LONGINT_INVALID_SUFFIX_CHAR.
84598
84599 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84600
84601         * lib/xstrtol.c (strtoimax): New decl.
84602
84603 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84604
84605         * lib/xgetcwd.c: Don't include pathmax.h.
84606         Include stdlib.h and unistd.h if available.
84607         Include xalloc.h.
84608         (xmalloc, xstrdup, free): Remove decls.
84609         (xgetcwd): Don't assume sizes fit in unsigned.
84610         Check for overflow when computing sizes.
84611         Simplify reallocation code.
84612
84613 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84614
84615         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
84616         a directory's st_size can have an arbitrary value, so the old
84617         usage could waste an arbitrary amount of memory.  All uses
84618         changed.
84619         * lib/savedir.h: Update prototype.
84620
84621 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84622
84623         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
84624
84625         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
84626         old strtoimax.c.
84627
84628         Also, make the following further changes to make this file's
84629         configuration more similar to that of strtol.c:
84630         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
84631         (strtoumax, uintmax_t, strtoull, strtol): Remove.
84632         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
84633         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
84634         changed to signed values.
84635
84636         And make the following changes as well:
84637         Fix copyright notice, as 1999 was missing.
84638         (verify): New macro.
84639         (strtoimax): Check sizes at compile-time, not run-time.
84640         Prefer strtol to strtoll if both work.
84641         (main): Remove; it was not that useful and was a pain to maintain.
84642
84643         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
84644
84645 2001-08-31  Jim Meyering  <meyering@lucent.com>
84646
84647         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
84648         Use an initial, malloc'd, buffer of length 128 rather than
84649         a statically allocated one of length 1024.
84650
84651 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84652
84653         Simplify code, partly by assuming autoconf 2.52 semantics.
84654
84655         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
84656
84657         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
84658         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
84659         All uses removed.
84660         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
84661         Move AC_REQUIRE to next-to-top level, to avoid confusion.
84662         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
84663         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
84664         jm_AC_HEADER_INTTYPES_H.
84665         * m4/jm-macros.m4 (jm_MACROS): Likewise.
84666
84667         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
84668
84669         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
84670         Quote first arg of AC_DEFUN.
84671         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
84672         since they are needed to parse the include file even if we need
84673         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
84674         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
84675         but with opposite signedness.
84676
84677 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84678
84679         Merge 'exclude' changes from tar 1.13.22.
84680         This fixes one or two unlikely storage allocation overflow bugs,
84681         but doesn't change user-visible behavior otherwise.
84682
84683 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84684
84685         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
84686         (jm_PREREQ_EXCLUDE): New macro.
84687
84688 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84689
84690         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
84691         tm to be declared.
84692
84693 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84694
84695         * lib/hash.c: Remove '2001' from copyright notice.
84696
84697 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84698
84699         * lib/full-write.h: New file.
84700         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
84701         * lib/full-write.c: Correct credits, as cccp.c no longer
84702         exists and anyway it was so heavily changed from the old cccp
84703         code as to be unrecognizable.  Include full-write.h.
84704         (full_write): Return size_t, with short writes meaning failure.
84705         All callers changed.  This fixes a bug with large buffers
84706         on 64-bit hosts.
84707         * lib/utime.c: Include full-write.h.
84708
84709 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84710
84711         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
84712         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
84713         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
84714         Include if available.
84715         (<xalloc.h>): Include
84716         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
84717         (verify): New macro.  Use it to verify that EXCLUDE macros do not
84718         collide with FNM macros.
84719         (struct patopts): New struct.
84720         (struct exclude): Use it, as exclude patterns now come with options.
84721         (new_exclude): Support above changes.
84722         (new_exclude, add_exclude_file):
84723         Initial size must now be a power of two to simplify overflow checking.
84724         (free_exclude, fnmatch_no_wildcards): New function.
84725         (excluded_filename): No longer requires options arg, as the options
84726         are determined by add_exclude.  Now returns bool, not int.
84727         (excluded_filename, add_exclude):
84728         Add support for the fancy new exclusion options.
84729         (add_exclude, add_exclude_file): Now takes int options arg.
84730         Check for arithmetic overflow when computing sizes.
84731         (add_exclude_file): xrealloc might modify errno, so don't
84732         realloc until after errno might be used.
84733
84734         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
84735         New macros.
84736         (free_exclude): New decl.
84737         (add_exclude, add_exclude_file): Now takes int options arg.
84738         (excluded_filename): No longer requires options arg, as the options
84739         are determined by add_exclude.  Now returns bool, not int.
84740
84741 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84742
84743         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
84744
84745 2001-08-27  Jim Meyering  <meyering@lucent.com>
84746
84747         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
84748
84749         * lib/version-etc.c (N_): Remove definition.
84750         Revert most of last change.
84751         Instead, simply don't mark the `Copyright...' string for translation.
84752         Based on advice from Paul Eggert.
84753
84754         * lib/strtoxmax.c: Tweak comment.
84755
84756 2001-08-26  Jim Meyering  <meyering@lucent.com>
84757
84758         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
84759
84760         * m4/xstrtoimax.m4: New file.
84761         * m4/xstrtoumax.m4: Add comments explaining why we
84762         AC_REPLACE_FUNCS(strtol).
84763
84764 2001-08-26  Jim Meyering  <meyering@lucent.com>
84765
84766         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
84767         of copyright with `%s' so translators don't get an untranslated
84768         message in 2002.
84769         (COPYRIGHT_YEAR): Define.
84770         (version_etc): Use fprintf rather than fputs.
84771         Suggestion from Ulrich Drepper.
84772
84773         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
84774
84775         * lib/strtoll.c: New file, from GNU libc.
84776         * lib/xstrtoimax.c: New file.
84777
84778         * lib/xstrtol.h: Add xstrtoimax.
84779         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
84780         * lib/strtoimax.c: New file.  Likewise, but first define
84781         STRTOUXMAX_SIGNED.
84782
84783         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
84784         ...
84785         * lib/strtoxmax.c: ... then renamed to this.
84786
84787 2001-08-18  Paul Eggert  <eggert@twinsun.com>
84788
84789         * m4/inttypes.m4: Add AC_PREREQ(2.13).
84790         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
84791         (jm_AC_TYPE_INTMAX_T): New macro.
84792         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
84793
84794         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
84795
84796         * m4/longlong.m4: Renamed from ulonglong.m4.
84797         * m4/inttypes.m4: Renamed from inttypes_h.m4.
84798         * m4/uintmax_t.m4: Removed.
84799
84800 2001-08-13  Paul Eggert  <eggert@twinsun.com>
84801
84802         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
84803         Port to Solaris 8, where 'sed' requires a space after the 'r'
84804         command, and where sh dislikes "$/".  Clean up the spacing a bit.
84805         Redirect output to $tmp just once.
84806
84807 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
84808
84809         * lib/addext.c (<errno.h>): Include.
84810         (errno): Declare if not defined.
84811         (addext): Work correctly when pathconf returns -1 and leaves
84812         errno alone because there is no limit.  Also, work even if
84813         pathconf returns a value greater than SIZE_MAX.
84814
84815 2001-08-12  Jim Meyering  <meyering@lucent.com>
84816
84817         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
84818         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
84819         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
84820         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
84821         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
84822         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
84823         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
84824         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
84825         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
84826         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
84827         utime.m4, utimes.m4, xstrtoumax.m4:
84828         Quote the first argument in each use of AC_DEFUN.
84829
84830 2001-08-12  Jim Meyering  <meyering@lucent.com>
84831
84832         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
84833         Simply `return getcwd (NULL, 0);'.
84834         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
84835         Use 1300 as initial value for length, not PATH_MAX.
84836
84837         * lib/pathmax.h: Clean up cpp syntax.
84838
84839 2001-08-12  Jim Meyering  <meyering@lucent.com>
84840
84841         * lib/gettimeofday.c: New file.
84842         * lib/gtod.h: New file.
84843         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
84844
84845 2001-08-05  Jim Meyering  <meyering@lucent.com>
84846
84847         * m4/jm-macros.m4: Require autoconf-2.52.
84848
84849 2001-08-04  Jim Meyering  <meyering@lucent.com>
84850
84851         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
84852         stmt, to get in sync with glibc.
84853
84854 2001-08-03  Paul Eggert  <eggert@twinsun.com>
84855
84856         The following changes are from gettext 0.10.39 as maintained by
84857         Bruno Haible.
84858
84859         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
84860         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
84861         with inverted sense.  All uses changed.
84862
84863         * lib/mbswidth.c: Don't include <limits.h>.
84864         Include <stdlib.h> and <string.h> unconditionally.
84865         (iswcntrl, mbsinit, ISCNTRL): New macros.
84866         (mbsnwidth): Use K&R style function declarations.
84867         Don't bother checking for MB_LEN_MAX == 1, since the compiler
84868         can optimize it when MB_CUR_MAX == 1.
84869         The width of control characters is zero, not 1.
84870
84871 2001-08-03  Paul Eggert  <eggert@twinsun.com>
84872
84873         The following changes are from gettext 0.10.39 as maintained by
84874         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
84875
84876         * m4/codeset.m4: Upgrade to serial AM1.
84877         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
84878         all uses changed.  Quote first arg of AC_DEFUN.
84879         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
84880
84881         * m4/iconv.m4: Upgrade to serial AM2.
84882         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
84883         Add --with-libconv-prefix.
84884         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
84885         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
84886         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
84887         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
84888         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
84889
84890         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
84891         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
84892         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
84893         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
84894         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
84895         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
84896         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
84897         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
84898         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
84899
84900         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
84901         string.h any more.
84902
84903         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
84904         not the default value.
84905
84906         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
84907         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
84908         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
84909         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
84910         Also check for iswcntrl, used for wcwidth fallback.
84911         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
84912         to Autoconf 2.13.
84913
84914 2001-08-03  Jim Meyering  <meyering@lucent.com>
84915
84916         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
84917         as it was in the original.  Reported by Paul Eggert.
84918
84919 2001-07-16  Jim Meyering  <meyering@lucent.com>
84920
84921         * m4/gettimeofday.m4: New file.
84922         Prompted by a report from Bernhard Baehr.
84923
84924 2001-07-15  Jim Meyering  <meyering@lucent.com>
84925
84926         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
84927         stuff. Now it's in ../Makefile.cfg.
84928
84929 2001-07-15  Jim Meyering  <meyering@lucent.com>
84930
84931         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
84932         (BUILT_SOURCES): Add unlocked-io.h.
84933         (io_functions): Define.
84934         (unlocked-io.h): New rule.
84935         (DISTCLEANFILES): Add unlocked-io.h.
84936         (all-local): Depend on unlocked-io.h, to ensure it is created.
84937
84938         * lib/unlocked-io.hin: New file
84939
84940         * lib/regex.c: Update from glibc.
84941
84942 2001-07-05  Jim Meyering  <meyering@lucent.com>
84943
84944         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
84945         recommendation.
84946         (libfetish_a_SOURCES): Put all .h files here instead.
84947         Remove a thus-exposed (better checks in automake) duplicate and
84948         two unnecessary .h files.
84949
84950 2001-07-04  Jim Meyering  <meyering@lucent.com>
84951
84952         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
84953         that generates jm-glibc-io.m4 so that it doesn't trigger any make
84954         distcheck failure.
84955
84956 2001-07-02  Jim Meyering  <meyering@lucent.com>
84957
84958         The following changes were prompted by suggestions from Bruno Haible.
84959
84960         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
84961         is now generated.
84962         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
84963         definition of EXTRA_DIST.
84964         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
84965         ensure that the generated file is created/updated whenever the list
84966         of $(unlocked_functions) is changed.
84967         (jm-glibc-io.m4): New rule.
84968         (unlocked-io.h): New rule -- currently unused.
84969
84970 2001-06-24  Jim Meyering  <meyering@lucent.com>
84971
84972         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
84973         unmatched right bracket, rather than kludging it with an extra,
84974         falsely-matching quote in a comment.  Patch by Akim Demaille.
84975
84976 2001-06-11  Jim Meyering  <meyering@lucent.com>
84977
84978         * lib/regex.c: Update from GNU libc.
84979
84980 2001-05-27  Jim Meyering  <meyering@lucent.com>
84981
84982         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
84983         Check for ut_type in struct utmp.
84984
84985 2001-05-27  Jim Meyering  <meyering@lucent.com>
84986
84987         * lib/readutmp.h (UT_TYPE): Define.
84988
84989 2001-05-24  Jim Meyering  <meyering@lucent.com>
84990
84991         * lib/argmatch.c: Include "quote.h".
84992         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
84993         quote function.  Reported by Göran Uddeborg.
84994
84995 2001-05-22  Jim Meyering  <meyering@lucent.com>
84996
84997         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
84998         now that we use the package-supplied version unconditionally.
84999         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
85000
85001 2001-05-21  Jim Meyering  <meyering@lucent.com>
85002
85003         * m4/regex.m4: Change a couple backticks to single quotes to avoid
85004         shell syntax errors.
85005
85006 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85007
85008         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
85009
85010 2001-05-20  Paul Eggert  <eggert@twinsun.com>
85011
85012         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
85013         Don't bother to check library strftime, since
85014         we'll be using our own my_strftime function anyway.
85015         Define my_strftime instead of strftime.
85016
85017 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
85018
85019         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
85020         which is not yet declared.
85021
85022 2001-05-15  Jim Meyering  <meyering@lucent.com>
85023
85024         * m4/regex.m4: Use proper quoting so brackets appear in the test
85025         program.
85026         Reported by, and with help from, Bruno Haible.
85027
85028 2001-05-13  Jim Meyering  <meyering@lucent.com>
85029
85030         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
85031         undefined.
85032
85033 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85034
85035         dirname code cleanup.  base_name now behaves more compatibly
85036         with POSIX basename when given file names that have trailing
85037         slashes, and similarly for dir_name.  Add new primitives
85038         base_len and dir_len.  Put the directory-name-related decls
85039         into dirname.h.
85040
85041         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
85042         * lib/backupfile.c (base_name): Likewise.
85043         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
85044         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
85045         * lib/makepath.c (strip_trailing_slashes): Likewise.
85046         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
85047         ISSLASH): Likewise.
85048         * lib/rename.c (strip_trailing_slashes): Likewise.
85049         * lib/same.c (base_name): Likewise.
85050         * lib/stripslash.c (ISSLASH): Likewise.
85051
85052         * lib/addext.c: Include <dirname.h> after size_t is defined.
85053         * lib/backupfile.c: Likewise.
85054
85055         * lib/addext.c (addext): Use base_len to trim redundant
85056         trailing slashes instead of doing it ourselves.
85057         But do not trim the last slash if it is not redundant.
85058
85059         * lib/backupfile.c (find_backup_file_name,
85060         max_backup_version): Use base_len instead of rolling it ourselves.
85061         Handle the case of "" and (on DOS) "C:" correctly.
85062
85063         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
85064         needed. Include <string.h>, <dirname.h>.
85065         (base_name): Allow file names ending in slashes, other than names
85066         that are all slashes.  In this case, return the basename followed
85067         by the slashes.  This is more general, and can be used in places
85068         where the original base_name purposely had an assertion failure.
85069         (base_len): New function.
85070
85071         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
85072         Do not include <assert.h>; no longer needed.
85073         Include xalloc.h.
85074         (memrchr): Remove decl.
85075         (dir_name_r): Remove.
85076         (dir_len): Renamed from dirlen.  All callers changed.
85077         Rewrite in terms of base_name, for simplicity and consistency.
85078         (dir_name): Never return NULL.  All callers changed.
85079         Do not include <stdlib.h> in test program; no longer needed.
85080         return 0; is fine for test program.
85081
85082         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
85083         New macros.
85084         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
85085
85086         * lib/path-concat.c (path_concat): Use base_len to compute
85087         base length, not strlen; this means we cannot rely on memcpy
85088         to null-terminate.
85089
85090         * lib/same.c (STREQ): Remove.
85091         (same_name): Handle the case where the basename ends in trailing '/'.
85092
85093         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
85094         a slash was stripped.  Do not strip the last slash after a
85095         file system prefix.
85096
85097 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85098
85099         * lib/Makefile.am (libfetish_a_SOURCES):
85100         Add strftime.c, since we now compile it on all hosts.
85101
85102         * lib/strftime.c (my_strftime):
85103         Define to nstrftime if emacs, but only if my_strftime is not defined.
85104         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
85105         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
85106         Add one more extra argument: a nanoseconds value.
85107         All uses changed.
85108         (ns): New macro.
85109         (my_strftime function): Add %N format.
85110         (emacs_strftimeu): Renamed from emacs_strftime,
85111         with extra ut argument.
85112
85113 2001-05-09  Paul Eggert  <eggert@twinsun.com>
85114
85115         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
85116
85117 2001-04-21  Jim Meyering  <meyering@lucent.com>
85118
85119         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
85120         doesn't interfere.
85121
85122 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85123
85124         * m4/ftruncate.m4: Check for chsize.
85125         Link with ftruncate.o unconditionally if ftruncate is missing.
85126         This was required when cross-compiling to i586-mingw32msvc.
85127
85128 2001-04-08  Jim Meyering  <meyering@lucent.com>
85129
85130         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
85131         recomputed; that's necessary when the offset spans a DST transition.
85132         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
85133
85134 2001-04-02  Jim Meyering  <meyering@lucent.com>
85135
85136         * lib/regex.h, regex.c: Update from GNU libc.
85137
85138 2001-03-24  Jim Meyering  <meyering@lucent.com>
85139
85140         * m4/jm-macros.m4: Require autoconf-2.49d.
85141
85142 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
85143
85144         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
85145
85146 2001-03-19  Paul Eggert  <eggert@twinsun.com>
85147
85148         * lib/version-etc.c (version_etc_copyright): Update to 2001.
85149
85150 2001-03-17  Jim Meyering  <meyering@lucent.com>
85151
85152         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
85153         now that the version in autoconf is equivalent.
85154         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
85155
85156         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
85157         Suggestion from Akim Demaille.
85158
85159         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
85160         (jm_PREREQ_TEMPNAME): New function.
85161
85162 2001-03-16  Paul Eggert  <eggert@twinsun.com>
85163
85164         * lib/tempname.c (uint64_t): Define to uintmax_t if
85165         not defined, and if UINT64_MAX is not defined.
85166         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
85167         Reported by John David Anglin.
85168
85169 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
85170
85171         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
85172         resolve alias if codeset is empty.
85173         * lib/config.charset (BeOS): Use wildcard syntax.
85174
85175 2001-03-13  Jim Meyering  <meyering@lucent.com>
85176
85177         * lib/path-concat.c (path_concat)
85178         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
85179         concatenating e.g., `C:' and `foo'.
85180         From Bruno Haible.
85181
85182 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
85183
85184         * lib/localcharset.c (locale_charset): Don't use
85185         setlocale(LC_CTYPE,NULL). Don't return NULL.
85186         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
85187
85188 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
85189
85190         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
85191         support for DOS/DJGPP.
85192
85193 2001-03-01  Paul Eggert  <eggert@twinsun.com>
85194
85195         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
85196         lacks mkstemp.  Compile our own tempname.c if we compile our own
85197         mkstemp.c, as mkstemp relies on tempname.
85198
85199 2001-03-01  Jim Meyering  <meyering@lucent.com>
85200
85201         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
85202         AH_VERBATIM really does output its argument verbatim.
85203
85204 2001-02-28  Paul Eggert  <eggert@twinsun.com>
85205
85206         * lib/Makefile.am (libfetish_a_SOURCES):
85207         Add dup-safer.c, fopen-safer.c.
85208         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
85209
85210         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
85211         * lib/unistd-safer.h: New files.
85212
85213 2001-02-25  Paul Eggert  <eggert@twinsun.com>
85214
85215         The mkstemp replacement is taken from glibc 2.2.2, with some
85216         portability fixes for use outside glibc, as follows:
85217
85218         * lib/tempname.c (struct_stat64): New macro.
85219         (direxists, __gen_tempname): Use it.
85220         This avoids a portability problem with Solaris 8.
85221
85222         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
85223         (<stddef.h>, <stdint.h>, <string.h>):
85224         Include only if STDC_HEADERS || _LIBC.
85225         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
85226         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
85227         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
85228         (__set_errno): Define this macro if <errno.h> doesn't.
85229         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
85230         Define these macros if <stdio.h> doesn't.
85231         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
85232         Define these macros if <sys/stat.h>
85233         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
85234         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
85235         __xstat64): Define if not _LIBC.
85236         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
85237         (__gen_tempname): Invoke gettimeofday only if
85238         HAVE_GETTIMEOFDAY || _LIBC;
85239         otherwise, fall back on plain "time".
85240         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
85241
85242         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
85243
85244         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
85245
85246 2001-02-18  Paul Eggert  <eggert@twinsun.com>
85247
85248         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
85249
85250 2001-02-17  Paul Eggert  <eggert@twinsun.com>
85251
85252         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
85253         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
85254         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
85255         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85256
85257 2001-02-17  Paul Eggert  <eggert@twinsun.com>
85258
85259         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
85260         Remove workaround macros for hosts that have mbrtowc but not
85261         mbstate_t, as we now insist on proper declarations for both
85262         before using mbrtowc.
85263
85264 2001-02-17  Jim Meyering  <meyering@lucent.com>
85265
85266         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
85267         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
85268         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
85269         UnixWare 7.1.1.
85270
85271         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
85272         rather than AC_CACHE_VAL.
85273
85274 2001-02-17  Jim Meyering  <meyering@lucent.com>
85275
85276         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
85277         around included file name.
85278
85279         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
85280
85281         * lib/strftime.c: Update from GNU libc (the only changes were to
85282         comments).
85283
85284 2001-02-17  Jim Meyering  <meyering@lucent.com>
85285
85286         * lib/regex.c: Update from libc.
85287
85288 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
85289
85290         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
85291         clash.
85292
85293 2001-02-16  Paul Eggert  <eggert@twinsun.com>
85294
85295         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
85296         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
85297         Reported by Mark Hounschell via Paul Eggert.
85298
85299 2001-02-07  Jim Meyering  <meyering@lucent.com>
85300
85301         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
85302
85303 2001-02-05  Jim Meyering  <meyering@lucent.com>
85304
85305         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
85306         it includes the patch required for `large file' support with at least
85307         HP-UX's 10.20 /bin/cc.
85308
85309 2001-02-03  Jim Meyering  <meyering@lucent.com>
85310
85311         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
85312         AS_IF, now that it works once again (mysteriously).
85313         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
85314
85315 2001-01-30  Jim Meyering  <meyering@lucent.com>
85316
85317         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
85318         * m4/chown.m4: Rename conftestchown to conftest.chown.
85319         * m4/rename.m4: s/conftestdir/conftest.d1/ and
85320         s/conftestdir2/conftest.d2/.
85321         * m4/utimes.m4: s/conftestdata/conftest.data/
85322         Inspired by Pavel Roskin's change in autoconf.
85323
85324 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
85325
85326         * lib/config.charset: Update for FreeBSD 4.2.
85327
85328 2001-01-27  Jim Meyering  <meyering@lucent.com>
85329
85330         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
85331         a use of AS_IF.
85332         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
85333
85334 2001-01-26  Jim Meyering  <meyering@lucent.com>
85335
85336         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
85337         quotearg.c includes it.
85338
85339 2001-01-26  Jim Meyering  <meyering@lucent.com>
85340
85341         * lib/quotearg.c: Include stddef.h.
85342         * lib/quote.c: Include stddef.h.
85343         Reported by Axel Kittenberger.
85344
85345         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
85346         line in double quotes so that it evokes a better diagnostic.
85347         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
85348         Reported by Axel Kittenberger.
85349
85350 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
85351
85352         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
85353         as if it was a `charset'.
85354
85355 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
85356
85357         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
85358         has const.
85359
85360 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
85361
85362         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
85363         to avoid a warning.  Add back 'const' to inptr.
85364
85365 2001-01-20  Jim Meyering  <meyering@lucent.com>
85366
85367         Be sure that headers are checked before used in code compiled
85368         for the type checks.
85369         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
85370         In place of that, invoke jm_CHECK_ALL_TYPES.
85371         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
85372         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
85373         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
85374         The check for ssize_t was mistakenly run before the test for unistd.h.
85375
85376         The configure-time check for stdbool.h was missing.
85377         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
85378         (jm_PREREQ_HASH): New function.
85379
85380 2001-01-17  Jim Meyering  <meyering@lucent.com>
85381
85382         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
85383         for autoconf-2.49c.
85384         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
85385
85386 2001-01-16  Jim Meyering  <meyering@lucent.com>
85387
85388         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
85389         From Bruno Haible.
85390
85391 2001-01-14  Jim Meyering  <meyering@lucent.com>
85392
85393         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
85394         foo and bar.  Create conftestdir/ in the script, not in the C code.
85395         Remove directories in the script, not in the C code.
85396         Remove conftestdir{,2} before trying to create the directory.
85397         Make the entire configure script fail if the mkdir fails.
85398
85399 2001-01-14  Jim Meyering  <meyering@lucent.com>
85400
85401         * lib/rename.c: New file.  From Volker Borchert.
85402         Include stdlib.h, string.h or strings.h, and xalloc.h.
85403         Use strip_trailing_slashes rather than open-coding it.
85404
85405 2001-01-03  Paul Eggert  <eggert@twinsun.com>
85406
85407         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
85408
85409 2001-01-03  Jim Meyering  <meyering@lucent.com>
85410
85411         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
85412         of local `inptr' to avoid warning with some system declarations of
85413         iconv.
85414
85415 2001-01-02  Volker Borchert  <bt@teknon.de>
85416
85417         * m4/rename.m4: New file.
85418         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
85419
85420 2001-01-01  Jim Meyering  <meyering@lucent.com>
85421
85422         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
85423         even on systems with utmpx.h.  It's necessary for the declaration of
85424         utmp's ut_user member.  Reported by Andreas Jaeger.
85425
85426         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
85427         available. They are required for the declarations of getgrgid and
85428         getpwuid resp.
85429         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
85430         Reported by Andreas Jaeger.
85431
85432 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
85433
85434         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
85435         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
85436         so `make install' also works in VPATH builds.
85437
85438 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
85439
85440         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
85441         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
85442         can be used in subdirectories.
85443
85444 2000-12-29  Paul Eggert  <eggert@twinsun.com>
85445
85446         * lib/modechange.c: Do not assume that mode_t uses the
85447         traditional octal encoding.  E.g. "chmod 1 FOO" should set
85448         the other-execute bit of FOO even if S_IXOTH != 1.
85449
85450         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
85451         WOTH, XOTH, ALLM): New macros.
85452         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
85453          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
85454         Use them.
85455         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
85456         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
85457         (mode_compile):
85458         No need to use uintmax_t; unsigned long is long enough.
85459         Don't bother to get suffix since we don't use it.
85460
85461 2000-12-26  Jim Meyering  <meyering@lucent.com>
85462
85463         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
85464         better with autoheader.
85465
85466 2000-12-24  Jim Meyering  <meyering@lucent.com>
85467
85468         * lib/hash.c (is_prime): Return explicit boolean values.
85469         (hash_get_first): Return NULL to appease Irix5.6's 89.
85470         Reported by Nelson Beebe.
85471
85472 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
85473
85474         * lib/localcharset.c (locale_charset): Add support for Win32.
85475
85476 2000-12-18  Paul Eggert  <eggert@twinsun.com>
85477
85478         * lib/physmem.h, lib/physmem.c: New files.
85479
85480         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
85481         (noinst_HEADERS): Add physmem.h.
85482
85483         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
85484         't' for compatibility with Solaris 8 sort.
85485
85486 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
85487
85488         * lib/config.charset: Add support for BeOS.
85489
85490 2000-12-17  Jim Meyering  <meyering@lucent.com>
85491
85492         * m4/dos.m4 (jm_AC_DOS): New file and macro.
85493         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
85494
85495 2000-12-16  Jim Meyering  <meyering@lucent.com>
85496
85497         This bug had a serious impact on chown: `chown N:M FILE' (for integer
85498         N and M) would have treated it like `chown N:N FILE'.
85499
85500         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
85501
85502 2000-12-16  Jim Meyering  <meyering@lucent.com>
85503
85504         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
85505         SHELLS_FILE to a file name that's useful on djgpp systems.
85506         Include stdlib.h.
85507         (ADDITIONAL_DEFAULT_SHELLS): Define.
85508         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
85509         Based mostly on a patch from Prashant TR.
85510
85511 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
85512
85513         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
85514         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
85515         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
85516
85517 2000-12-08  Andreas Schwab  <schwab@suse.de>
85518
85519         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
85520         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
85521
85522 2000-12-07  Jim Meyering  <meyering@lucent.com>
85523
85524         * lib/stripslash.c (ISSLASH): Define.
85525         (strip_trailing_slashes): Use ISSLASH rather than comparing against
85526         `/'.
85527         From Prashant TR.
85528
85529         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
85530         (dir_name_r): Declare this function as static.
85531         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
85532         manifest itself on a name containing a mix of slashes and
85533         backslashes.
85534         Make this function work with names starting with a DOS-style
85535         drive letter and colon prefix.
85536         (dir_name): Append `.' if necessary.
85537         Based mostly on patches from Prashant TR and Eli Zaretskii.
85538
85539         * lib/dirname.h (dir_name_r): Remove prototype.
85540
85541 2000-12-06  Paul Eggert  <eggert@twinsun.com>
85542
85543         * m4/off_t-format.m4: Remove this file.
85544         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
85545
85546 2000-12-06  Jim Meyering  <meyering@lucent.com>
85547
85548         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
85549         replacement strtoull, we may well need the replacement strtoul, too.
85550         Check for declarations of strtoul and strtoull.
85551         Check for strtol.  Mainly as a cue to cause automake to include
85552         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
85553         Check for limits.h -- strtol.c needs it.
85554
85555 2000-12-05  Jim Meyering  <meyering@lucent.com>
85556
85557         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
85558
85559 2000-12-04  Jim Meyering  <meyering@lucent.com>
85560
85561         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
85562         Also include memory.h, stdlib.h, unistd.h if appropriate.
85563         Reported by Andreas Jaeger (conflicting declaration of malloc).
85564
85565 2000-12-02  Jim Meyering  <meyering@lucent.com>
85566
85567         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
85568         * m4/jm-macros.m4 (jm_MACROS): require it.
85569
85570 2000-12-02  Jim Meyering  <meyering@lucent.com>
85571
85572         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
85573
85574 2000-12-01  Paul Eggert  <eggert@twinsun.com>
85575
85576         * lib/memrchr.c: Include <config.h> before any system include file.
85577
85578 2000-11-30  Jim Meyering  <meyering@lucent.com>
85579
85580         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
85581
85582 2000-11-30  Jim Meyering  <meyering@lucent.com>
85583
85584         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
85585
85586 2000-11-29  Paul Eggert  <eggert@twinsun.com>
85587
85588         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
85589
85590 2000-11-26  Jim Meyering  <meyering@lucent.com>
85591
85592         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
85593
85594 2000-11-22  Paul Eggert  <eggert@twinsun.com>
85595
85596         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
85597         size of (size_t) -1; it's not portable.
85598
85599 2000-11-17  Jim Meyering  <meyering@lucent.com>
85600
85601         * lib/strstr.c: Update from GNU libc.
85602
85603 2000-11-17  Akim Demaille  <akim@epita.fr>
85604
85605         * lib/obstack.h: Formatting changes.
85606         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
85607         prevent type checking.
85608         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
85609         cast the value to (void *): assigning a `foo *' to a `void *'
85610         variable is valid.
85611         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
85612
85613 2000-11-16  Jim Meyering  <meyering@lucent.com>
85614
85615         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
85616
85617 2000-11-11  Jim Meyering  <meyering@lucent.com>
85618
85619         * lib/error.c: Add a couple #includes, merging from GNU libc version.
85620
85621 2000-11-10  Jim Meyering  <meyering@lucent.com>
85622
85623         * lib/obstack.h: Update from GNU libc.
85624         * lib/obstack.c: Likewise.
85625
85626 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
85627
85628         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
85629
85630 2000-11-06  Paul Eggert  <eggert@twinsun.com>
85631
85632         * lib/getusershell.c (setusershell): Use rewind rather than
85633         fseek/fseeko, to avoid configuration hassles with fseeko.
85634         Don't bother opening SHELLS_FILE if shellstream is NULL;
85635         it's not necessary.
85636
85637 2000-11-05  Jim Meyering  <meyering@lucent.com>
85638
85639         * lib/makepath.h (make_dir): Declare.
85640         * lib/makepath.c (make_dir): Remove `static' attribute.
85641         Tweak a comment.
85642
85643 2000-11-04  Jim Meyering  <meyering@lucent.com>
85644
85645         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
85646
85647 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
85648
85649         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
85650         last one in a bucket, advance to the next bucket.
85651
85652 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
85653
85654         * lib/fnmatch.c: Do not comment out all the code if we are using
85655         the GNU C library, because in some cases we are replacing buggy
85656         code in the GNU C library itself.
85657
85658 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
85659
85660         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
85661         (regex_compile): Catch bogus \(\1\).
85662
85663 2000-10-30  Paul Eggert  <eggert@twinsun.com>
85664
85665         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
85666         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
85667         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
85668
85669 2000-10-30  Paul Eggert  <eggert@twinsun.com>
85670
85671         * lib/error.h, getline.h, modechange.h:
85672         Remove "2000" from Copyright line, as the file hasn't been
85673         changed this year other than in the copyright notice.
85674
85675         * lib/xalloc.h: Add "2000" to Copyright line, as this file
85676         was changed this year.
85677
85678 2000-10-29  Jim Meyering  <meyering@lucent.com>
85679
85680         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
85681         renaming.
85682         * m4/ls-mntd-fs.m4: Likewise
85683
85684 2000-10-29  Jim Meyering  <meyering@lucent.com>
85685
85686         * lib/xstat.in: Fix grammar in comment.
85687
85688 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
85689
85690         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
85691         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
85692         doesn't define __restrict_arr.
85693
85694 2000-10-28  Jim Meyering  <meyering@lucent.com>
85695
85696         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
85697         (jm_PREREQ_MEMCHR): New function.
85698
85699 2000-10-28  Jim Meyering  <meyering@lucent.com>
85700
85701         * lib/memchr.c: Update from libc.
85702         Adjust for portability:
85703         [HAVE_STDLIB_H]: Include stdlib.h.
85704         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
85705         Undef __memchr, too.
85706         [!weak_alias]: Define __memchr to memchr.
85707
85708         * lib/regex.c: Update from libc.
85709         * lib/regex.h: Likewise.
85710         * lib/getopt1.c: Likewise.
85711         * lib/memcmp.c: Likewise.
85712
85713         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
85714         Avoid using fseek, when possible -- it's broken by design.
85715         Patch by Ulrich Drepper.
85716
85717 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
85718
85719         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
85720         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
85721         Giving in to popular pressure to shut up the compiler with casts.
85722
85723 2000-10-26  Jim Meyering  <meyering@lucent.com>
85724
85725         * lib/strftime.c: Update from libc.
85726
85727 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
85728
85729         * regex.c: More `unsigned char' -> `re_char' changes.
85730         Also change several `int' into `re_wchar_t'.
85731         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
85732         (PUSH_FAILURE_POINTER): Don't cast any more.
85733         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
85734         We want GCC to complain, since this piece of code makes
85735         re_match non-reentrant, which *should* be fixed.
85736         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
85737         (EXTEND_BUFFER): Use RETALLOC.
85738         (SET_LIST_BIT): Don't cast.
85739         (re_wchar_t): New type.
85740         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
85741         that those two functions will always properly return.
85742         (IMMEDIATE_QUIT_CHECK): Cast to void.
85743         (analyse_first): Use recursion rather than an explicit stack.
85744         (re_compile_fastmap): Can't fail anymore.
85745         (re_search_2): Don't check re_compile_fastmap for failure.
85746         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
85747         Now also sets the new value (passed in a new argument).
85748         (re_match_2_internal): Use it.
85749         Also, use a new var `reg' of type size_t when looping through regs
85750         rather than reuse the inappropriate `mcnt'.
85751
85752 2000-10-25  Jim Meyering  <meyering@lucent.com>
85753
85754         * lib/obstack.c: Update from libc.
85755
85756 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
85757
85758         * regex.c (regex_compile): Change the way of handling a range from
85759         a char less than 256 to a char not less than 256.
85760
85761 2000-10-24  Andrew Innes  <andrewi@gnu.org>
85762
85763         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
85764         NT-Emacs only.
85765         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
85766         so that re_search functions only quit when callers expect them to.
85767
85768 2000-10-23  Jim Meyering  <meyering@lucent.com>
85769
85770         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
85771         wrong.  That set_locale call must not have any side effects.
85772         From Paul Eggert.
85773
85774 2000-10-22  Jim Meyering  <meyering@lucent.com>
85775
85776         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
85777         [CYCLIC]: Remove now-unused definition.
85778
85779         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
85780         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
85781         Suggestion from Ulrich Drepper.
85782
85783 2000-10-21  Jim Meyering  <meyering@lucent.com>
85784
85785         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
85786         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
85787         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
85788
85789 2000-10-21  Jim Meyering  <meyering@lucent.com>
85790
85791         * lib/dirname.c (memrchr): Declare if necessary.
85792         (dir_name): Remove the restriction that there be no
85793         trailing slashes.  Now, this code skips past them, effectively
85794         ignoring them.
85795         [TEST_DIRNAME] (main): New unit tests.
85796
85797         * lib/memrchr.c: New file from GNU libc.
85798         Undef __memrchr, too.
85799         [!weak_alias]: Define __memrchr to memrchr.
85800         Guard weak_alias use with `#ifdef weak_alias'.
85801
85802 2000-10-21  Jim Meyering  <meyering@lucent.com>
85803
85804         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
85805         (dir_name): Use dir_name_r.
85806         * lib/dirname.h (dir_name_r): Declare it.
85807
85808 2000-10-17  Jim Meyering  <meyering@lucent.com>
85809
85810         * lib/quote.h (PARAMS): Define and use.
85811         Reported by Akim Demaille.
85812
85813         * lib/getopt.c: Update from libc.
85814
85815 2000-10-16  Jim Meyering  <meyering@lucent.com>
85816
85817         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
85818         setlocale.
85819         From Jan Fedak.
85820
85821 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
85822
85823         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
85824
85825 2000-09-25  Jim Meyering  <meyering@lucent.com>
85826
85827         * lib/md5.h (rol): Define (from GnuPG).
85828
85829         * lib/sha.c: Give credit (GnuPG) where due.
85830         (M): Use rol rather than open-coding it.
85831         Add a FIXME comment.
85832
85833 2000-09-21  Jim Meyering  <meyering@lucent.com>
85834
85835         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
85836         Reported by Michael Stone.
85837
85838 2000-09-20  Jim Meyering  <meyering@lucent.com>
85839
85840         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
85841         (noinst_HEADERS): Add sha.h.
85842         Based on code from Scott G. Miller and from GnuPG.
85843
85844 2000-09-18  Jim Meyering  <meyering@lucent.com>
85845
85846         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
85847         LIBS. Otherwise, everyone ends up linking with -lelf for some
85848         configurations.
85849         Reported by Mike Stone.
85850
85851 2000-09-15  Jim Meyering  <meyering@lucent.com>
85852
85853         * lib/regex.c: Update from libc.
85854
85855 2000-09-10  Jim Meyering  <meyering@lucent.com>
85856
85857         * lib/getopt.c (_getopt_internal): Update from glibc.
85858
85859 2000-09-09  Jim Meyering  <meyering@lucent.com>
85860
85861         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
85862         think it should be used as a general replacement for isascii.
85863         * lib/fnmatch.c: Likewise.
85864         * lib/mbswidth.c: Likewise
85865         * lib/regex.c: Likewise.
85866
85867         Don't use atoi.
85868         * lib/userspec.c: Include sys/param.h and limits.h.
85869         Include xstrtol.h.
85870         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85871         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
85872         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
85873         UID, GID.  Check range.
85874
85875 2000-09-06  Jim Meyering  <meyering@lucent.com>
85876
85877         * lib/getopt.c (_getopt_internal): Update from glibc.
85878
85879 2000-08-30  Jim Meyering  <meyering@lucent.com>
85880
85881         * lib/strftime.c: Merge in changes from GNU libc.
85882
85883 2000-08-26  Jim Meyering  <meyering@lucent.com>
85884
85885         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
85886         * m4/fpending.m4: New file.
85887
85888 2000-08-26  Jim Meyering  <meyering@lucent.com>
85889
85890         * lib/closeout.c: Include "__fpending.h".
85891         (close_stdout_status): Return right away if there's nothing to flush.
85892
85893         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
85894         * lib/__fpending.c: New file.
85895         * lib/__fpending.h: New file.
85896
85897 2000-08-20  Jim Meyering  <meyering@lucent.com>
85898
85899         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
85900         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
85901         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
85902
85903 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
85904
85905         Improve fileutils installation on systems where running
85906         programs (like install) can't be unlinked.
85907         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
85908         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
85909
85910 2000-08-07  Paul Eggert  <eggert@twinsun.com>
85911
85912         Standardize on "memory exhausted" instead of "Memory exhausted"
85913         or "virtual memory exhausted".
85914         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
85915         "virtual memory exhausted".
85916         * lib/same.c (same_name): Invoke xalloc_die instead of printing
85917         our own message.
85918         * lib/userspec.c (parse_user_spec): Likewise.
85919         * lib/bumpalloc.h: comment fix
85920         * lib/same.c, userspec.c: Include xalloc.h.
85921
85922         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
85923         not char *const and pointing to a constant array.
85924         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
85925         (xrealloc): Comment fix.
85926
85927         * lib/userspec.c (parse_user_spec):
85928         Don't translate a message until just before returning,
85929         to avoid unnecessary translation.
85930
85931 2000-08-07  Jim Meyering  <meyering@lucent.com>
85932
85933         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
85934         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
85935         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
85936         getgroups.c, gethostname.c, getopt.h, group-member.c,
85937         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
85938         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
85939         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
85940         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
85941         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
85942         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
85943         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
85944         yesno.c: Back out Copyright date changes for each file with no change
85945         this year.  This eases coordination with other programs using the same
85946         source code modules.  From Paul Eggert.
85947
85948 2000-08-06  Paul Eggert  <eggert@twinsun.com>
85949
85950         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
85951         not char, for compatibility with glibc 2.1.3 strftime.c.
85952
85953 2000-08-03  Greg McGary  <greg@mcgary.org>
85954
85955         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
85956         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
85957         (EXTEND_BUFFER): Use them.
85958
85959 2000-08-01  Jim Meyering  <meyering@lucent.com>
85960
85961         * lib/dirname.c (ISSLASH): Define.
85962         (BACKSLASH_IS_PATH_SEPARATOR): Define.
85963         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
85964         both `\' and `/' may be use as path separators.
85965         Based on a patch from Prashant TR.
85966
85967 2000-07-31  Paul Eggert  <eggert@twinsun.com>
85968
85969         * lib/quotearg.c (quotearg_n_options): Don't make the initial
85970         slot vector a constant, since it might get modified.
85971
85972 2000-07-31  Jim Meyering  <meyering@lucent.com>
85973
85974         * lib/xmalloc.c: Use `virtual memory exhausted', not
85975         `Memory exhausted'.
85976         * lib/obstack.c (print_and_abort): Likewise.
85977
85978 2000-07-30  Paul Eggert  <eggert@twinsun.com>
85979
85980         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
85981         buffer, so that the caller can always quote one small
85982         component of a "memory exhausted" message in slot 0.
85983         From a suggestion by Jim Meyering.
85984
85985 2000-07-30  Jim Meyering  <meyering@lucent.com>
85986
85987         * lib/makepath.c (make_path): Quote the other instance, too.
85988
85989         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
85990         (STATIC_BUF_SIZE): Define.
85991         (quotearg_n_options): Use only statically allocated storage when
85992         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
85993         than STATIC_BUF_SIZE.
85994
85995 2000-07-29  Jim Meyering  <meyering@lucent.com>
85996
85997         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
85998         * lib/dirname.c (dir_name): Likewise.
85999
86000         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
86001         `/'.
86002
86003         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
86004         (dir_name): Assert that there are no trailing slashes.
86005
86006 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
86007
86008         * lib/mbswidth.h (mbswidth): Add a flags argument.
86009         (mbswidth): New declaration.
86010         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
86011         * lib/mbswidth.c (mbswidth): Add a flags argument.
86012         (mbsnwidth): New function.
86013
86014 2000-07-24  Jim Meyering  <meyering@lucent.com>
86015
86016         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
86017
86018 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86019
86020         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
86021
86022 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86023
86024         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
86025         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
86026         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
86027         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
86028         invoke multibyte primitives.
86029
86030 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86031
86032         * lib/quotearg.c:
86033         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
86034         so that mbstate_t is always defined.
86035
86036         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
86037         be 1 in at least one GCC installation, and this configuration
86038         error is likely to be common.  Ignoring MB_LEN_MAX hurts
86039         performance on hosts that have mbrtowc but have only unibyte
86040         locales, but I assume these hosts are rare.
86041
86042 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86043
86044         * lib/mbswidth.c (_XOPEN_SOURCE):
86045         Don't define; this causes problems on Solaris 7.
86046         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
86047
86048 2000-07-23  Jim Meyering  <meyering@lucent.com>
86049
86050         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
86051         too: getgrgid, getpwuid, getuid.
86052
86053 2000-07-23  Jim Meyering  <meyering@lucent.com>
86054
86055         * lib/basename.c (base_name): Add an assertion.
86056
86057 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
86058
86059         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
86060         shadow its mbsinit function.
86061
86062 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86063
86064         * lib/mbswidth.h: New file.
86065         * lib/mbswidth.c: New file.
86066         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
86067         (noinst_HEADERS): Add mbswidth.h.
86068
86069 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86070
86071         * lib/config.charset: Add support for FreeBSD. Improve support for
86072         HP-UX and IRIX 6.
86073
86074 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
86075
86076         * m4/mbswidth.m4: New file.
86077         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
86078
86079 2000-07-15  Jim Meyering  <meyering@lucent.com>
86080
86081         * lib/makepath.c: Include quote.h.
86082         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
86083         corresponding argument in a `quote (...)' call.
86084         Give better diagnostics.
86085
86086         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
86087         (noinst_HEADERS): Add quote.h.
86088
86089         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
86090         from tar's src/misc.c.
86091         * lib/quote.h: New file.  Prototypes for same.
86092
86093 2000-07-14  Paul Eggert  <eggert@twinsun.com>
86094
86095         From a suggestion by Bruno Haible.
86096         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
86097         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
86098         to decide whether to define the BeOS workaround macro;
86099         this adjusts to the change to AC_MBSTATE_T.
86100
86101 2000-07-14  Jim Meyering  <meyering@lucent.com>
86102
86103         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
86104         jm_AC_TYPE_UINTMAX_T.
86105
86106 2000-07-13  Paul Eggert  <eggert@twinsun.com>
86107
86108         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
86109
86110         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
86111         quotearg_buffer_restyled): Add support for
86112         clocale_quoting_style.  Undo previous change to
86113         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
86114         and "{RIGHT QUOTATION MARK}" msgids.
86115
86116 2000-07-10  Paul Eggert  <eggert@twinsun.com>
86117
86118         From a suggestion by Bruno Haible.
86119         * m4/mbstate_t.m4 (AC_MBSTATE_T):
86120         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
86121         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
86122         and mbstate_t, to a single-part test that simply defines mbstate_t.
86123         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
86124         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
86125
86126 2000-07-10  Jim Meyering  <meyering@lucent.com>
86127
86128         * m4/strerror_r.m4: Mirror the correction made in autoconf.
86129
86130         * m4/gnu-source.m4: Output to confdefs.h directly.
86131         Suggestion from Akim Demaille.
86132
86133 2000-07-09  Paul Eggert  <eggert@twinsun.com>
86134
86135         The old behavior of quoting `like this' doesn't look good with
86136         newer, ISO-style fonts.  See:
86137         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
86138
86139         Instead, quote "like this" by default.  Let the translator
86140         tailor the locale-specific quoting behavior by providing
86141         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
86142
86143         * lib/quotearg.c (N_): New macro.
86144         (gettext_default): New function.
86145         (quotearg_buffer_restyled): Use
86146         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
86147         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
86148
86149 2000-07-09  Jim Meyering  <meyering@lucent.com>
86150
86151         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
86152         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
86153
86154         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
86155         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
86156
86157 2000-07-09  Jim Meyering  <meyering@lucent.com>
86158
86159         * lib/Most files: Update copyright dates to include 2000.
86160
86161 2000-07-08  Jim Meyering  <meyering@lucent.com>
86162
86163         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
86164         if not defined.
86165         (xgethostname): Remove now-unnecessary #ifdef.
86166         Move declaration of `err' into loop where it's used.
86167
86168 2000-07-05  Paul Eggert  <eggert@twinsun.com>
86169         and Bruno Haible  <haible@clisp.cons.org>
86170
86171         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
86172         only if the test for an object-type mbstate_t fails.  This
86173         prevents us from mistakenly reporting that mbstate_t is a
86174         system object type after we "#define mbstate_t int" to work
86175         around its lack.
86176
86177 2000-07-05  Paul Eggert  <eggert@twinsun.com>
86178         and Bruno Haible  <haible@clisp.cons.org>
86179
86180         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
86181
86182 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86183
86184         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
86185         to strerror_r.
86186         Include <ctype.h> for use of isalpha.
86187
86188 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86189
86190         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
86191         by allocating a larger buffer. Test the gethostname return value for
86192         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
86193         returns an error and ENAMETOOLONG isn't defined.
86194
86195 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86196
86197         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
86198         dimension.
86199
86200 2000-07-04  Jim Meyering  <meyering@lucent.com>
86201
86202         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
86203         of the deprecated AC_CHECKING.
86204
86205 2000-07-04  Jim Meyering  <meyering@lucent.com>
86206
86207         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
86208         Reported by Bruno Haible.
86209
86210 2000-07-04  Jim Meyering  <meyering@lucent.com>
86211
86212         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
86213         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
86214         lacks mbrtowc.
86215
86216 2000-07-03  Paul Eggert  <eggert@twinsun.com>
86217
86218         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
86219         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
86220
86221 2000-07-03  Paul Eggert  <eggert@twinsun.com>
86222         and Bruno Haible  <haible@clisp.cons.org>
86223
86224         * lib/quotearg.c (mbrtowc):
86225         Assign to *pwc, and return 1 only if result is nonzero.
86226         (iswprint): Use ISPRINT when substituting our own mbrtowc.
86227
86228 2000-07-03  Jim Meyering  <meyering@lucent.com>
86229
86230         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
86231
86232 2000-07-03  Jim Meyering  <meyering@lucent.com>
86233
86234         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
86235         This is necessary to get a definition of e.g., UTMP_FILE on
86236         HP-UX 10.20.
86237         From Bob Proulx.
86238
86239 2000-07-02  Jim Meyering  <meyering@lucent.com>
86240
86241         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
86242
86243         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
86244         AC_LIBOBJ(function_name).
86245         * m4/chown.m4: Likewise.
86246         * m4/fnmatch.m4: Likewise.
86247         * m4/ftruncate.m4: Likewise.
86248         * m4/getgroups.m4: Likewise.
86249         * m4/getline.m4: Likewise.
86250         * m4/group-member.m4: Likewise.
86251         * m4/jm-macros.m4: Likewise.
86252         * m4/lstat.m4: Likewise.
86253         * m4/malloc.m4: Likewise.
86254         * m4/memcmp.m4: Likewise.
86255         * m4/nanosleep.m4: Likewise.
86256         * m4/putenv.m4: Likewise.
86257         * m4/realloc.m4: Likewise.
86258         * m4/regex.m4: Likewise.
86259         * m4/stat.m4: Likewise.
86260         * m4/strftime.m4: Likewise.
86261
86262 2000-07-02  Jim Meyering  <meyering@lucent.com>
86263
86264         * lib/quotearg.c (mbstate_t): Don't define here.
86265
86266 2000-07-02  Jim Meyering  <meyering@lucent.com>
86267
86268         * lib/nanosleep.c (SIGCONT): Define if not already defined.
86269
86270 2000-07-01  Jim Meyering  <meyering@lucent.com>
86271
86272         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
86273
86274 2000-07-01  Jim Meyering  <meyering@lucent.com>
86275
86276         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
86277         problem.
86278
86279 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
86280
86281         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
86282         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
86283
86284 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
86285
86286         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
86287         per change in ../m4/ls-mntd-fs.m4.
86288         (read_filesystem_list): Ignore symbolic links.
86289
86290 2000-06-29  Jim Meyering  <meyering@lucent.com>
86291
86292         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
86293         for declaration of strcmp.
86294
86295         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
86296
86297         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
86298         Avoid warning by casting result to `char *' to remove `const'.
86299
86300 2000-06-28  Jim Meyering  <meyering@lucent.com>
86301
86302         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
86303         included by quotearg.c, for which we perform this test.  From
86304         Bruno Haible.
86305
86306 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
86307
86308         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
86309         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
86310         <utmpx.h> exists, put readutmp.o into LIBOBJS.
86311
86312 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
86313
86314         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
86315
86316 2000-06-26  Paul Eggert  <eggert@twinsun.com>
86317
86318         savedir now sets errno on failure and invokes xmalloc to get memory.
86319         Fix a couple of other minor bugs while we're at it.
86320
86321         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
86322         (NAMLEN): Remove macro.
86323         (malloc, realloc): Remove decls.
86324         (stpcpy): Likewise.
86325         ("xalloc.h"): Include.
86326         (NAME_SIZE_DEFAULT): New macro.
86327         (savedir): Use xmalloc / xrealloc to allocate memory.
86328         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
86329         Skip "" directory entries.
86330         Use strlen to calculate directory entry length, since the old method
86331         is rarely used these days and isn't worth supporting.
86332         Don't use a pointer after freeing it.
86333         Check for integer overflow when calculating allocation size.
86334         Use memcpy to copy entries, instead of stpcpy.
86335         Set errno properly when returning NULL.
86336         Check for readdir error.
86337
86338 2000-06-26  Jim Meyering  <meyering@lucent.com>
86339
86340         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
86341
86342 2000-06-25  Jim Meyering  <meyering@lucent.com>
86343
86344         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
86345         Linux header bug when _XOPEN_SOURCE is defined to 500.
86346
86347 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
86348
86349         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
86350         deficiency.
86351
86352 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
86353
86354         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
86355         Include xalloc.h.
86356         Don't include <stdlib.h>.  Don't declare malloc, realloc.
86357
86358 2000-06-24  Jim Meyering  <meyering@lucent.com>
86359
86360         * m4/strerror_r.m4: Revive this file -- to try out an experimental
86361         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
86362         for which strerror does return char*, but which lacks a conveniently
86363         accessible declaration of the function.  If the compile-test says
86364         strerror_r doesn't work, then resort to a `run'-test that works on
86365         BeOS and segfaults on DEC Unix.
86366
86367 2000-06-24  Jim Meyering  <meyering@lucent.com>
86368
86369         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
86370
86371 2000-06-23  Paul Eggert  <eggert@twinsun.com>
86372
86373         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
86374         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
86375
86376 2000-06-23  Paul Eggert  <eggert@twinsun.com>
86377
86378         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
86379         (mbrtowc, mbstate_t): Define substitutes if
86380         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
86381         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
86382         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
86383
86384 2000-06-23  Jim Meyering  <meyering@lucent.com>
86385
86386         * m4/afs.m4: Add missing AC_MSG_RESULT.
86387         Reported by Bruno Haible.
86388
86389         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
86390         Suggestion from Bruno Haible.
86391
86392 2000-06-23  Jim Meyering  <meyering@lucent.com>
86393
86394         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
86395
86396 2000-06-21  Jim Meyering  <meyering@lucent.com>
86397
86398         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
86399
86400 2000-06-21  Jim Meyering  <meyering@lucent.com>
86401
86402         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
86403         (noinst_HEADERS): Add getstr.h.
86404
86405         * lib/getline.c (getstr): Move into a separate file.
86406         * lib/getstr.c (getstr): New file, extracted from getline.c, with
86407         the following changes: new parameter, delim2; both delim[12]
86408         parameters have type `int', not `char'.  The latter would lose
86409         with 8-bit delimiters.
86410         * lib/getstr.h: New file.
86411
86412 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
86413
86414         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
86415         than 1024, return a memory chunk of least possible size, instead
86416         of size PATH_MAX + 2. In the loop, increment the size proportionally.
86417         Use free/xmalloc instead of xrealloc to avoid copying for very long
86418         paths.
86419
86420 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
86421
86422         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
86423         the empty string.
86424
86425 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
86426
86427         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
86428         address, not strdup.  Include <stdlib.h> and don't declare free().
86429
86430 2000-06-19  Jim Meyering  <meyering@lucent.com>
86431
86432         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
86433
86434 2000-06-18  Jim Meyering  <meyering@lucent.com>
86435
86436         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
86437
86438         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
86439         `checking whether...' message to be consistent with that of the
86440         lstat test.
86441
86442 2000-06-18  Jim Meyering  <meyering@lucent.com>
86443
86444         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
86445         Besides, these days every porting target provides a mkdir function.
86446
86447         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
86448         needed. (this snippet comes from src/system.h).
86449
86450 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
86451
86452         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
86453
86454 2000-06-15  Paul Eggert  <eggert@twinsun.com>
86455
86456         * lib/human.c (adjust_value): New function.
86457         (human_readable_inexact): Apply rounding style even when
86458         printing approximate values.
86459
86460 2000-06-14  Paul Eggert  <eggert@twinsun.com>
86461
86462         * lib/human.c (human_readable_inexact): Allow an input block
86463         size that is not a multiple of the output block size, and vice versa.
86464         Reported by Piergiorgio Sartor.
86465
86466 2000-06-14  Paul Eggert  <eggert@twinsun.com>
86467
86468         * lib/getdate.y (get_date): Apply relative times after time
86469         zone indicator, not before.  Reported by Todd A. Jacobs.
86470
86471 2000-06-13  Jim Meyering  <meyering@lucent.com>
86472
86473         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
86474
86475         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
86476
86477 2000-06-12  Paul Eggert  <eggert@twinsun.com>
86478
86479         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
86480
86481 2000-06-12  Jim Meyering  <meyering@lucent.com>
86482
86483         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
86484         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
86485         optional argument.
86486         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
86487         the optional argument, `lib'.
86488
86489 2000-06-08  Jim Meyering  <meyering@lucent.com>
86490
86491         * m4/largefile.m4: Remove file (now that it's part of autoconf).
86492
86493 2000-06-04  Paul Eggert  <eggert@twinsun.com>
86494
86495         Rewrite largefile configuration so that we don't need to run
86496         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
86497         AC_CANONICAL_HOST in configure.in -- jmm]
86498
86499         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
86500         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
86501         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
86502         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
86503         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
86504         All uses changed.
86505         Instead of inspecting the output of getconf, try to compile the
86506         test program without and with the macro definition.
86507         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
86508         for getconf.  Instead, check for the needed flags by compiling
86509         test programs.
86510
86511 2000-06-04  Paul Eggert  <eggert@twinsun.com>
86512
86513         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
86514
86515 2000-06-04  Jim Meyering  <meyering@lucent.com>
86516
86517         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
86518         SunOS 4.1.4 for which gid_t is an unsigned type.
86519
86520 2000-06-03  Jim Meyering  <meyering@lucent.com>
86521
86522         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
86523         now that autoconf requires that.
86524
86525         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
86526         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
86527         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
86528
86529 2000-06-03  Jim Meyering  <meyering@lucent.com>
86530
86531         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
86532
86533 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
86534
86535         * m4/glibc21.m4: New file.
86536         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
86537
86538 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
86539
86540         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
86541         newer, don't install charset.alias.
86542         * lib/config.charset: Change the Linux/glibc rules so they become empty
86543         on glibc-2.1 or newer.
86544
86545 2000-06-02  Jim Meyering  <meyering@lucent.com>
86546
86547         * lib/mountlist.c: Back out last change.  Instead, do this...
86548         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
86549         me_dummy member using the same `ignore'-testing code.
86550         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
86551         fs_type strings.
86552         From Mark D. Roth.
86553
86554 2000-05-29  Jim Meyering  <meyering@lucent.com>
86555
86556         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
86557         mounts with the `ignore' attribute.  Based on a patch from
86558         Mark D. Roth.
86559
86560 2000-05-28  Jim Meyering  <meyering@lucent.com>
86561
86562         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
86563         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86564         * m4/stat.m4: Likewise.
86565         * m4/lstat.m4: Likewise.
86566         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
86567
86568         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
86569         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
86570
86571 2000-05-26  Jim Meyering  <meyering@lucent.com>
86572
86573         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
86574
86575 2000-05-24  Jim Meyering  <meyering@lucent.com>
86576
86577         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
86578         autoconf requires that.
86579         * m4/lib-check.m4: Likewise.
86580         * m4/jm-macros.m4: Likewise.
86581         * m4/strftime.m4: Likewise.
86582
86583         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
86584         AC_CHECK_DECLS, now that autoconf requires that.
86585
86586 2000-05-22  Jim Meyering  <meyering@lucent.com>
86587
86588         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86589         * m4/lstat.m4: Likewise.
86590
86591 2000-05-22  Jim Meyering  <meyering@lucent.com>
86592
86593         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
86594
86595 2000-05-20  Jim Meyering  <meyering@lucent.com>
86596
86597         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
86598         (jm_PREREQ): Use it.
86599
86600 2000-05-18  Jim Meyering  <meyering@lucent.com>
86601
86602         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
86603         back, too, since it may have been modified by allocate_entry.
86604         (hash_delete): Rewrite to use neither the assignment operator
86605         nor the comma operator in an if-expression.
86606
86607 2000-05-15  Paul Eggert  <eggert@twinsun.com>
86608
86609         * lib/closeout.c:
86610         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
86611         Remove; no longer needed.
86612         "quotearg.h": Add include.
86613         (file_name): Do not bother to explicitly initialize to NULL; it's less
86614         efficient on some hosts.
86615         (close_stdout_status): Remove test as to whether stdout was already
86616         closed; it breaks for the case "echo x | sort >&-".
86617         Quote file name colons.
86618         Do not assume that _("write error") lacks format strings.
86619
86620 2000-05-15  Jim Meyering  <meyering@lucent.com>
86621
86622         * lib/version-etc.c (version_etc_copyright): Update the copyright
86623         string used in all --version output.
86624
86625 2000-05-14  Jim Meyering  <meyering@lucent.com>
86626
86627         * lib/closeout.c (close_stdout_set_file_name): New function.
86628         (close_stdout_status): Use new file-scoped global.
86629         Return right away if fstat says the stdout file descriptor is invalid.
86630         * lib/closeout.h (close_stdout_set_file_name): Declare.
86631
86632 2000-05-10  Jim Meyering  <meyering@lucent.com>
86633
86634         * lib/closeout.c [default_exit_status]: New file-scoped variable.
86635         (close_stdout_set_status): New function.
86636         * lib/closeout.h (close_stdout_set_status): Declare.
86637
86638 2000-05-09  Jim Meyering  <meyering@lucent.com>
86639
86640         * m4/gettext.m4: Rename this...
86641         * m4/libintl.m4: ...to this.
86642
86643 2000-05-08  Jim Meyering  <meyering@lucent.com>
86644
86645         * lib/long-options.c: Don't include closeout.h.
86646         (parse_long_options): Don't call close_stdout for --version.
86647
86648 2000-05-06  Paul Eggert  <eggert@twinsun.com>
86649
86650         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
86651         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
86652         2.1.3 bug.  This avoids a clash when files like regex.c define
86653         _GNU_SOURCE.
86654
86655 2000-05-06  Jim Meyering  <meyering@lucent.com>
86656
86657         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
86658         (AC_REPLACE_FUNCS): Add strnlen.
86659
86660         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
86661         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
86662
86663         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
86664         AC_SEARCH_LIBS call for nanosleep.
86665         (LIB_NANOSLEEP): Set and AC_SUBST.
86666
86667 2000-05-06  Jim Meyering  <meyering@lucent.com>
86668
86669         * lib/strnlen.c: Undefine __strnlen and strnlen.
86670         [!weak_alias]: Define __strnlen to strnlen.
86671
86672         * lib/atexit.c: New file, from libiberty.
86673
86674 2000-05-06  Jim Meyering  <meyering@lucent.com>
86675
86676         * lib/closeout.c (close_stdout_status): Also check for errors on the
86677         stderr stream.
86678
86679 2000-05-05  Jim Meyering  <meyering@lucent.com>
86680
86681         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
86682         AC_SEARCH_LIBS call for clock_gettime.
86683         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
86684
86685         * m4/search-libs.m4: Update from autoconf.
86686
86687         su doesn't work on Solaris 2.6.
86688         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
86689         <shadow.h>.  Reported by Dragos Harabor.
86690
86691 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
86692
86693         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
86694         memcpy instead of xmalloc, xrealloc, path_concat.
86695         (locale_charset): Treat empty environment variables as absent.
86696         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
86697
86698 2000-05-04  Jim Meyering  <meyering@lucent.com>
86699
86700         * lib/getopt.c: Update from glibc.
86701         * lib/obstack.c: Likewise.
86702         * lib/obstack.h: Likewise.
86703         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
86704         file
86705
86706         * lib/regex.h: Likewise.
86707         * lib/strndup.c: Likewise.
86708         * lib/strnlen.c: New file, from glibc.
86709
86710 2000-05-03  Jim Meyering  <meyering@lucent.com>
86711
86712         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
86713
86714 2000-05-02  Paul Eggert  <eggert@twinsun.com>
86715
86716         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
86717         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
86718         compile-time test, rather than inspecting host and OS, to
86719         decide whether to define _LARGEFILE_SOURCE.
86720
86721 2000-05-01  Jim Meyering  <meyering@lucent.com>
86722
86723         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
86724
86725         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
86726         Based on a patch from Bruno Haible.
86727
86728 2000-05-01  Jim Meyering  <meyering@lucent.com>
86729
86730         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
86731
86732 2000-04-29  Jim Meyering  <meyering@lucent.com>
86733
86734         * lib/path-concat.c: Declare strdup only if it's not defined.
86735         * lib/canon-host.c: Likewise.
86736
86737 2000-04-28  Jim Meyering  <meyering@lucent.com>
86738
86739         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
86740         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
86741         is included first, then limits.h is included by locale.h by libintl.h.
86742         From John David Anglin.
86743
86744 2000-04-25  Jim Meyering  <meyering@lucent.com>
86745
86746         * lib/makepath.c (S_IRWXUGO): Define.
86747         (make_path): Always perform explicit chmod if MODE specifies any
86748         of the `special' permission bits.  Prompted by a bug report against
86749         install from Mate Wierdl and Joost van Baal.
86750
86751 2000-04-18  Jim Meyering  <meyering@lucent.com>
86752
86753         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
86754         (jm_PREREQ): Use it.
86755
86756 2000-04-18  Jim Meyering  <meyering@lucent.com>
86757
86758         * lib/README: New file.
86759
86760         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
86761         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
86762
86763 2000-04-17  Jim Meyering  <meyering@lucent.com>
86764
86765         Get it right :-)
86766         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
86767         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
86768         Suggestion from Akim Demaille.
86769
86770 2000-04-17  Jim Meyering  <meyering@lucent.com>
86771
86772         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
86773         the definition of it to rpl_strftime also defined-away the system's
86774         declaration.
86775
86776 2000-04-15  Jim Meyering  <meyering@lucent.com>
86777
86778         Use `C' to denote so-called `contiguous' files, the same way
86779         that tar does.
86780         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
86781         (ftypelet): Use S_ISCTG.
86782         From Michael Deutschmann.
86783
86784 2000-04-14  Jim Meyering  <meyering@lucent.com>
86785
86786         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
86787         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
86788         clobbered.
86789
86790 2000-04-14  Jim Meyering  <meyering@lucent.com>
86791
86792         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
86793
86794 2000-04-13  Jim Meyering  <meyering@lucent.com>
86795
86796         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
86797         AH_VERBATIM to insert required #ifndef into config.h.in.
86798         Suggestion from Akim Demaille.
86799
86800 2000-04-12  Jim Meyering  <meyering@lucent.com>
86801
86802         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
86803         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
86804         Christian Krackowizer.
86805
86806         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
86807         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
86808         (AC_SYS_LARGEFILE): Require.
86809         (AM_C_PROTOTYPES): Require.
86810
86811 2000-04-08  Jim Meyering  <meyering@lucent.com>
86812
86813         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
86814         names don't conflict.  Reported by Eli Zaretskii.
86815
86816 2000-04-07  Jim Meyering  <meyering@lucent.com>
86817
86818         * lib/putenv.c: Move inclusion of errno.h so it follows that of
86819         sys/types.h, to work around system header problems on AIX 3.2.5.
86820         From Bruno Haible.
86821
86822 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
86823
86824         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
86825         bug.  Deal with the different error behavior of Irix iconv.
86826
86827 2000-04-05  Paul Eggert  <eggert@twinsun.com>
86828
86829         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
86830         IRIX if the installer said otherwise.
86831
86832 2000-04-05  Jim Meyering  <meyering@lucent.com>
86833
86834         Portability tweaks required for ultrix4.3.
86835         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
86836         (jm_CHECK_DECLS): Add getutent to the list of functions.
86837         (_jm_DECL_HEADERS): Add utmpx.h.
86838         From John David Anglin.
86839
86840         * m4/strftime.m4: Back out the 2000-04-02 change.
86841         Instead of that change, simply undefine putenv in the test program.
86842
86843 2000-04-05  Jim Meyering  <meyering@lucent.com>
86844
86845         Portability tweaks required for ultrix4.3.
86846         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
86847         getutent.
86848         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
86849         * lib/canon-host.c: Declare strdup.
86850         * lib/path-concat.c: Likewise.
86851         From John David Anglin.
86852
86853 2000-04-04  Jim Meyering  <meyering@lucent.com>
86854
86855         Be more DOS 8.3-friendly.
86856         * lib/ref-add.sin: Renamed from ref-add.sed.in.
86857         * lib/ref-del.sin: Renamed from ref-del.sed.in.
86858         * lib/Makefile.am: Reflect renaming.
86859         Reported by Eli Zaretskii.
86860
86861         Use a temporary file name that won't clash with `charset.alias'
86862         in the DOS 8.3 name space.
86863         * lib/Makefile.am (charset_tmp): Define.
86864         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
86865         (uninstall-local): Likewise.
86866         Reported by Eli Zaretskii.
86867
86868 2000-04-03  Jim Meyering  <meyering@lucent.com>
86869
86870         * m4/gettext.m4: Fix typo in comment.
86871
86872         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
86873         textutils/configure.in).  Suggestion from Paul Eggert.
86874         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
86875
86876 2000-04-02  Paul Eggert  <eggert@twinsun.com>
86877
86878         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
86879         variable in the shell rather than using putenv, which isn't
86880         portable.  This avoids the configure-time inter-test dependency
86881         on the potentially-renamed putenv function.
86882
86883 2000-03-30  Paul Eggert  <eggert@twinsun.com>
86884
86885         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
86886         before checking struct stat.st_blksize, so that
86887         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
86888
86889 2000-03-29  Paul Eggert  <eggert@twinsun.com>
86890
86891         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
86892         since strftime.c uses HAVE_STRFTIME to decide whether to use
86893         the underlying strftime.
86894
86895 2000-03-29  Paul Eggert  <eggert@twinsun.com>
86896
86897         * lib/time/strftime.c (my_strftime): Make sure we call the system
86898         strftime, not ourselves, when invoking the underlying strftime.
86899
86900 2000-03-24  Jim Meyering  <meyering@lucent.com>
86901
86902         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
86903         (charset_alias): Define.
86904         (install-exec-local): Factor out common code.
86905         (uninstall-local): Split lines longer than 80.
86906         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
86907         (SUFFIXES): Define.
86908         (.sed.in.sed): New rule.  Don't redirect directly to $@.
86909         (CLEANFILES): Add ref-add.sed and ref-del.sed.
86910
86911 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
86912
86913         * lib/config.charset: Output a line containing "Packages using this
86914         file".
86915         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
86916         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
86917         ref-del.sed): New rules.
86918
86919 2000-03-17  Jim Meyering  <meyering@lucent.com>
86920
86921         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
86922         Otherwise, include <strings.h>
86923
86924 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
86925
86926         * lib/unicodeio.c (utf8_wctomb): New function.
86927         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
86928         format instead of in UCS-4 with platform dependent endianness.
86929
86930 2000-03-10  Jim Meyering  <meyering@lucent.com>
86931
86932         * m4/lib-check.m4: Look for getspnam in -lgen, too.
86933         From Marco Franzen.
86934
86935 2000-03-07  Paul Eggert  <eggert@twinsun.com>
86936
86937         * lib/savedir.c (savedir): Work even if directory size is
86938         negative; this can happen with some screwy NFS configurations.
86939
86940 2000-03-06  Jim Meyering  <meyering@lucent.com>
86941
86942         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
86943         if it's NULL (because we ran out of memory).  From Bruno Haible.
86944
86945 2000-03-05  Jim Meyering  <meyering@lucent.com>
86946
86947         * lib/localcharset.c ("path-concat.h"): Include.
86948         (get_charset_aliases): Use path_concat instead of ANSI string
86949         concatenation.
86950
86951         * lib/unicodeio.h (PARAMS): Define.
86952         Use it to guard prototype.
86953
86954 2000-03-04  Jim Meyering  <meyering@lucent.com>
86955
86956         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
86957         for lib/localcharset.c.
86958
86959 2000-03-04  Jim Meyering  <meyering@lucent.com>
86960
86961         * lib/Makefile.am (install-exec-local): Create $(libdir) before
86962         installing into it.
86963         (uninstall-local): Uncomment this rule so `make distcheck' works
86964         once again.
86965
86966         * lib/unicodeio.c (<errno.h>): Include it.
86967         (errno): Declare if not defined.
86968
86969         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
86970
86971         * lib/config.charset: New version, incorporating remarks from a linux
86972         i18n mailing list.  From Bruno Haible.
86973
86974 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
86975
86976         * m4/codeset.m4: New file.
86977         * m4/iconv.m4: New file.
86978         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
86979
86980 2000-03-03  Jim Meyering  <meyering@lucent.com>
86981
86982         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
86983
86984 2000-03-02  Jim Meyering  <meyering@lucent.com>
86985
86986         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
86987         the messages come out on separate lines.
86988
86989         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
86990         rather than jm_CHECK_DECLARATIONS.
86991         * m4/decl.m4: Remove now-unused file.
86992
86993         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
86994         geteuid.
86995
86996 2000-03-02  Jim Meyering  <meyering@lucent.com>
86997
86998         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
86999
87000 2000-03-01  Jim Meyering  <meyering@lucent.com>
87001
87002         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
87003         * lib/unicodeio.c: Likewise.
87004
87005 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
87006
87007         * lib/config.charset: New file.
87008         * lib/localcharset.c: New file.
87009         * lib/unicodeio.h, lib/unicodeio.c: New files.
87010         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
87011         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
87012         (noinst_HEADERS): Add unicodeio.h.
87013         (all-local, install-exec-local, charset.alias): New targets.
87014
87015 2000-02-28  Paul Eggert  <eggert@twinsun.com>
87016
87017         * lib/quotearg.c (ALERT_CHAR): New macro.
87018         (quotearg_buffer_restyled): Use it.
87019
87020 2000-02-27  Jim Meyering  <meyering@lucent.com>
87021
87022         * m4/check-decl.m4: Add getenv to the list.
87023
87024 2000-02-27  Jim Meyering  <meyering@lucent.com>
87025
87026         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
87027         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
87028
87029         * lib/backupfile.c: Guard inclusion of stdlib.h with
87030         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
87031         Declare malloc if needed.
87032
87033         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
87034         `#ifndef HAVE_DECL..'
87035         now that autoconf always defines the HAVE_DECL_ symbols.
87036         * lib/human.c: Likewise.
87037         * lib/same.c: Likewise.
87038         * lib/strtoumax.c: Likewise.
87039
87040         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
87041         declaration check was not run.
87042         * lib/hash.c: Likewise.
87043         * lib/human.c: Likewise.
87044         * lib/same.c: Likewise.
87045         * lib/strtoumax.c: Likewise.
87046
87047         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
87048         `.', then first look up the entire `.'-containing string as a login
87049         name.
87050
87051 2000-02-23  Jim Meyering  <meyering@lucent.com>
87052
87053         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
87054         in place of my hack.
87055
87056 2000-02-18  Paul Eggert  <eggert@twinsun.com>
87057
87058         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
87059         (textint): New typedef.
87060         (parser_control): Member year changed from int to textint.
87061         All uses changed.
87062         (YYSTYPE): Removed; replaced by %union with int and textint members.
87063         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
87064         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
87065         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
87066         (tSNUMBER, tUNUMBER): Now of type <textintval>.
87067         (date, number, to_year): Use width of number in digits, not its value,
87068         to determine whether it's a 2-digit year, or a 2-digit time.
87069         (yylex): Store number of digits of numeric tokens.
87070         Reported by John Kendall.
87071
87072         (parser_control): Changed from struct parser_control to typedef (for
87073         consistency).  All uses changed.
87074
87075         (tID): Removed; not used.
87076         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
87077
87078 2000-02-14  Paul Eggert  <eggert@twinsun.com>
87079
87080         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
87081         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
87082
87083 2000-02-12  Jim Meyering  <meyering@lucent.com>
87084
87085         * lib/userspec.c (ISDIGIT): Define it.
87086         (isdigit): Remove definition.
87087         (is_number): Use ISDIGIT, not isdigit.
87088         <libintl.h>: Include.
87089         (_ and N_): Define.
87090         (parse_user_spec): Mark translatable strings.
87091
87092 2000-02-10  Jim Meyering  <meyering@lucent.com>
87093
87094         With these changes, nanosleep.[ch] are finally enough like the other
87095         lib/* replacement files to compile on a few more losing systems.
87096
87097         * lib/nanosleep.h: Don't include config.h.
87098         Remove prototype from declaration of nanosleep.
87099         (PARAMS): Remove now-unneeded definition.
87100         * lib/nanosleep.c: #undef nanosleep.
87101         (rpl_nanosleep): Rename from nanosleep.
87102
87103 2000-02-10  Jim Meyering  <meyering@lucent.com>
87104
87105         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
87106         gnu_nanosleep to rpl_nanosleep.
87107
87108 2000-02-09  Jim Meyering  <meyering@lucent.com>
87109
87110         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
87111         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
87112
87113 2000-02-08  Akim Demaille  <akim@epita.fr>
87114
87115         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
87116         `[' and `]' and remove uses of `changequote'.
87117         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
87118         (AC_SYS_LARGEFILE): Likewise.
87119         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
87120         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
87121         of changequote.
87122         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
87123         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
87124         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
87125         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
87126
87127 2000-02-05  Jim Meyering  <meyering@lucent.com>
87128
87129         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
87130         Remove explicit use of AC_HEADER_TIME.  It is required by
87131         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
87132         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
87133         in autoconf whereby the expansion of the latter ended up preceding
87134         the expansion of its prerequisite, AC_HEADER_TIME.
87135         Reported by Volker Borchert.
87136
87137 2000-02-03  Jim Meyering  <meyering@lucent.com>
87138
87139         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
87140
87141 2000-02-03  Jim Meyering  <meyering@lucent.com>
87142
87143         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
87144         rather than with `#if HAVE_UTMPNAME'.
87145
87146 2000-02-02  Jim Meyering  <meyering@lucent.com>
87147
87148         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
87149         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
87150         Reported by Eli Zaretskii.
87151
87152 2000-02-01  Jim Meyering  <meyering@lucent.com>
87153
87154         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
87155
87156 2000-01-31  Jim Meyering  <meyering@lucent.com>
87157
87158         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
87159         functions.  Add the time.h and sys/time.h headers along with the
87160         AC_REQUIRE'ment of AC_HEADER_TIME.
87161
87162 2000-01-31  Jim Meyering  <meyering@lucent.com>
87163
87164         * lib/nanosleep.h (nanosleep): Guard declaration with
87165         `#if ! HAVE_DECL_NANOSLEEP'.
87166         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
87167         the declaration in that vendor's sys/timers.h.
87168         Reported by Christian Krackowizer.
87169
87170         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
87171         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
87172         (ISPRINT): Likewise.
87173         Reported by Tom Tromey.
87174
87175 2000-01-30  Jim Meyering  <meyering@lucent.com>
87176
87177         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
87178
87179         * m4/prereq.m4 (utmp_includes): Define.
87180         Check for ut_user and ut_name members in both struct utmpx
87181         and struct utmp.
87182
87183 2000-01-30  Jim Meyering  <meyering@lucent.com>
87184
87185         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
87186         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
87187         header files where only utmpx.ut_user is declared.
87188
87189         * lib/readutmp.h (UT_USER): Define.
87190
87191 2000-01-29  Jim Meyering  <meyering@lucent.com>
87192
87193         * m4/lib-check.m4: New file containing library-related checks from
87194         fileutils and sh-utils (textutils had none).
87195
87196 2000-01-28  Jim Meyering  <meyering@lucent.com>
87197
87198         * m4/perl.m4: Change format of warning message to look more like that
87199         from the missing script.  Suggestion from François Pinard.
87200
87201 2000-01-25  Jim Meyering  <meyering@lucent.com>
87202
87203         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
87204         well as time.h in the compile check.
87205         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
87206         Fix typo in cross-compiling case: s/yes/no/.
87207
87208 2000-01-23  Jim Meyering  <meyering@lucent.com>
87209
87210         * m4/jm-macros.m4: Move df-related tests here from
87211         fileutils/configure.in
87212
87213         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
87214         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
87215
87216         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
87217         s/space/ac_fsusage_space/.
87218         (jm_FILE_SYSTEM_USAGE): Take two parameters.
87219
87220         * m4/ftruncate.m4: New file (derived from part of
87221         fileutils/configure.in).
87222         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
87223         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
87224
87225         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
87226         AC_SUBST these here, rather than just in sh-util/configure.in, so
87227         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
87228         all the same.
87229         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
87230         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
87231         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
87232         (AC_SUBST(POW_LIBM)): Likewise.
87233         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
87234
87235 2000-01-23  Jim Meyering  <meyering@lucent.com>
87236
87237         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
87238         obstack.c.
87239
87240 2000-01-22  Jim Meyering  <meyering@lucent.com>
87241
87242         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
87243
87244         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
87245
87246         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
87247         configure.in
87248         (AC_CHECK_HEADERS): Likewise for sh-utils.
87249         (AC_CHECK_HEADERS): Likewise for textutils.
87250         Merge the three lists of headers.
87251
87252         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
87253         from fileutils' configure.in.
87254
87255         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
87256         code. Moved tests into their own function (_jm_DECL_HEADERS) in
87257         check-decl.m4.
87258
87259         * m4/check-decl.m4: Use #if rather than #ifdef.
87260         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
87261         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
87262         (_jm_DECL_HEADERS): Define new function.
87263         (jm_CHECK_DECLARATIONS): Require it.
87264
87265 2000-01-22  Jim Meyering  <meyering@lucent.com>
87266
87267         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
87268         [! HAVE_DECL_STRTOULL]: Declare strtoull.
87269         Required for some AIX systems.  Reported by Christian Krackowizer.
87270         [TESTING] (main): New function.
87271
87272         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
87273         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
87274         letters.
87275
87276         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
87277         iswprint.
87278
87279         * lib/strverscmp.c (ISDIGIT): Define.
87280         (strverscmp): Use ISDIGIT, not isdigit.
87281
87282 2000-01-19  Jim Meyering  <meyering@lucent.com>
87283
87284         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
87285         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
87286         defines `struct timespec' in <sys/time.h>
87287
87288         * m4/c-bs-a.m4: Remove uses of changequote altogether.
87289         Thanks to Akim for explaining.
87290
87291 2000-01-17  Paul Eggert  <eggert@twinsun.com>
87292
87293         * lib/nanosleep.c (nanosleep):
87294         Don't use SA_INTERRUPT to decide whether to call sigaction, as
87295         POSIX.1 doesn't require SA_INTERRUPT and some systems
87296         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
87297         it's been part of POSIX.1 since day 1 (in 1988).
87298
87299 2000-01-17  Jim Meyering  <meyering@lucent.com>
87300
87301         * lib/interlock: Remove unused file.  Reported by François Pinard.
87302
87303 2000-01-16  Paul Eggert  <eggert@twinsun.com>
87304
87305         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
87306         alert, backslash, formfeed, and vertical tab unnecessarily in
87307         shell quoting style.
87308
87309 2000-01-16  Jim Meyering  <meyering@lucent.com>
87310
87311         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
87312         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
87313         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
87314         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
87315
87316 2000-01-16  Jim Meyering  <meyering@lucent.com>
87317
87318         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
87319         because the latter didn't work.
87320
87321 2000-01-15  Jim Meyering  <meyering@lucent.com>
87322
87323         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
87324         (AC_REPLACE_FUNCS): Add memcpy and memset.
87325         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
87326         Add strpbrk.
87327         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
87328
87329 2000-01-12  Jim Meyering  <meyering@lucent.com>
87330
87331         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
87332         (jm_PREREQ): Use it.
87333         (jm_PREREQ_READUTMP): New macro.
87334         (jm_PREREQ): Use it.
87335
87336 2000-01-11  Paul Eggert  <eggert@twinsun.com>
87337
87338         Quote multibyte characters correctly.
87339         * m4/c-bs-a.m4: New file.
87340         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
87341         (jm_PREREQ): Use it.
87342
87343 2000-01-11  Paul Eggert  <eggert@twinsun.com>
87344
87345         * m4/uintmax_t.m4: Port to autoconf 2.13.
87346
87347 2000-01-08  Jim Meyering  <meyering@ascend.com>
87348
87349         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
87350         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
87351
87352 2000-01-04  Jim Meyering  <meyering@ascend.com>
87353
87354         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
87355         jm_STRUCT_DIRENT_D_TYPE.
87356         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
87357         jm_STRUCT_DIRENT_D_INO.
87358         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
87359         jm_STRUCT_UTIMBUF.
87360         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
87361         renamings.
87362         * m4/utime.m4: Likewise.
87363
87364         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
87365         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
87366
87367 2000-01-03  Paul Eggert  <eggert@twinsun.com>
87368
87369         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
87370         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
87371
87372 2000-01-02  Jim Meyering  <meyering@ascend.com>
87373
87374         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
87375         remember if this is necessary.
87376
87377 1999-12-26  Jim Meyering  <meyering@ascend.com>
87378
87379         * m4/jm-macros.m4: Use it here.
87380         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
87381
87382 1999-12-23  Jim Meyering  <meyering@ascend.com>
87383
87384         * m4/jm-macros.m4: Check for clock_gettime (moved from
87385         fileutils/configure.in)
87386         Check for gettimeofday.
87387
87388 1999-12-20  Jim Meyering  <meyering@ascend.com>
87389
87390         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
87391         autoconf-2.14a-1999-12-20.
87392
87393 1999-12-19  Jim Meyering  <meyering@ascend.com>
87394
87395         * m4/lstat-slash.m4: New file.
87396         * m4/jm-macros.m4: Use the new macro:
87397         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87398
87399 1999-12-07  Jim Meyering  <meyering@ascend.com>
87400
87401         * m4/perl.m4: Require that File::Compare be available, too.
87402         Too many systems seem to lack it.
87403
87404         * m4/strftime.m4: Add checks for most of the cpp macros tested in
87405         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
87406
87407 1999-11-18  Paul Eggert  <eggert@twinsun.com>
87408
87409         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
87410         problem with the QNX 4.25 shell, which doesn't propagate exit
87411         status of failed commands inside shell assignments.
87412
87413 1999-11-17  Jim Meyering  <meyering@ascend.com>
87414
87415         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
87416
87417 1999-11-07  Jim Meyering  <meyering@ascend.com>
87418
87419         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
87420
87421 1999-11-06  Jim Meyering  <meyering@ascend.com>
87422
87423         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
87424         * m4/jm-macros.m4 (jm_MACROS): Use it here.
87425
87426 1999-11-05  Jim Meyering  <meyering@ascend.com>
87427
87428         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
87429         configure.in of textutils, fileutils, and sh-utils into this one
87430         (shared between those packages) file.
87431         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
87432         AC_STRUCT_ST_BLKSIZE.
87433
87434 1999-11-03  Jim Meyering  <meyering@ascend.com>
87435
87436         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
87437         of AC_CHECK_TYPE checks includes unistd.h.
87438         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
87439         Suggestion from Akim Demaille.
87440
87441 1999-10-30  Jim Meyering  <meyering@ascend.com>
87442
87443         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
87444         m4-quoted string.
87445         * m4/ls-mntd-fs.m4: Likewise.
87446         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
87447         * m4/jm-winsz1.m4: Likewise.
87448
87449         * m4/const.m4: Remove file, since the fix made it into the experimental
87450         version of autoconf.
87451         * m4/mktime.m4: Likewise.
87452
87453         * m4/check-type.m4: Remove file, now that the latest version of
87454         AC_CHECK_TYPE takes a third arg to specify additional #includes.
87455
87456         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
87457         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
87458         AC_CHECK_TYPE.
87459
87460 1999-10-04  Jim Meyering  <meyering@ascend.com>
87461
87462         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
87463
87464 1999-09-22  Paul Eggert  <eggert@twinsun.com>
87465
87466         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
87467         2.95.1 bug with HP-UX 10.20.
87468
87469 1999-09-17  Jim Meyering  <meyering@ascend.com>
87470
87471         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
87472         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
87473         due to missing strdup (against sh-utils-2.0).
87474
87475 1999-08-29  Jim Meyering  <meyering@ascend.com>
87476
87477         * m4/jm-macros.m4: Require jm_BISON.
87478         * m4/bison.m4: New file.
87479
87480 1999-08-17  Paul Eggert  <eggert@twinsun.com>
87481
87482         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
87483         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
87484
87485 1999-08-05  Jim Meyering  <meyering@ascend.com>
87486
87487         * m4/getline.m4: Rename test file from conftestdata to conftest.data
87488         to avoid conflicts with `conftest' on 8+3 filesystems.
87489         Suggestion from Eli Zaretskii.
87490
87491 1999-08-04  Jim Meyering  <meyering@ascend.com>
87492
87493         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
87494         fileutils and sh-utils (textutils's getline test was inadequate).
87495         (AM_FUNC_GETLINE): Run this test.
87496         (AC_CHECK_FUNCS): Check for getdelim.
87497         Reported by Bob Proulx.
87498
87499 1999-08-02  Jim Meyering  <meyering@ascend.com>
87500
87501         * m4/jm-macros.m4: Add a comment.
87502
87503 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87504
87505         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
87506         <inttypes.h> defines strtoumax as a macro (and not as a
87507         function).
87508
87509 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87510
87511         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
87512         that we can shift, multiply and divide unsigned long long
87513         values; Ultrix cc can't do it.
87514
87515 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87516
87517         * m4/mktime.m4: New file, which is a preview of what should appear
87518         in the next public autoconf release.
87519
87520 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87521
87522         * m4/lfs.m4: Remove this file.
87523         * m4/largefile.m4: New file.  It contains the old contents of
87524         lfs.m4, except that all names with prefix AC_LFS have been
87525         changed to use the prefix AC_SYS_LARGEFILE instead, to be
87526         compatible with future autoconf versions.  Also, some minor m4
87527         quoting problems have been fixed.
87528
87529 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87530
87531         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
87532         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
87533         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
87534         and simplify the shell code.
87535
87536 1999-08-01  Jim Meyering  <meyering@ascend.com>
87537
87538         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
87539         m4.
87540
87541 1999-07-20  Jim Meyering  <meyering@ascend.com>
87542
87543         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
87544
87545 1999-07-15  Jim Meyering  <meyering@ascend.com>
87546
87547         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
87548
87549 1999-05-22  Jim Meyering  <meyering@ascend.com>
87550
87551         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
87552
87553 1999-05-20  Jim Meyering  <meyering@ascend.com>
87554
87555         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
87556         Add a colon after each `then' in case $4 is empty.
87557
87558 1999-05-16  Jim Meyering  <meyering@ascend.com>
87559
87560         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
87561
87562 1999-05-10  Jim Meyering  <meyering@ascend.com>
87563
87564         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
87565
87566         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
87567         AC_FUNC_MKTIME.
87568
87569 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
87570
87571         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
87572
87573 1999-05-04  Paul Eggert  <eggert@twinsun.com>
87574
87575         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
87576         not CPPFLAGS, so that linking works correctly in IRIX.
87577
87578 1999-04-30  Paul Eggert  <eggert@twinsun.com>
87579
87580         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
87581
87582 1999-04-20  Paul Eggert  <eggert@twinsun.com>
87583
87584         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
87585         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
87586         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
87587         jm_AC_TYPE_UNSIGNED_LONG_LONG.
87588         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
87589
87590         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
87591
87592 1999-04-20  Jim Meyering  <meyering@ascend.com>
87593
87594         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
87595         AC_REPLACE xstroull if necessary.  From Paul Eggert.
87596         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
87597
87598 1999-04-18  Jim Meyering  <meyering@ascend.com>
87599
87600         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
87601         * m4/jm-macros.m4: Use it.
87602
87603 1999-04-06  Jim Meyering  <meyering@ascend.com>
87604
87605         * m4/strftime.m4: Remove test for %f.
87606
87607 1999-03-29  Jim Meyering  <meyering@ascend.com>
87608
87609         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
87610         superset of the AC_TYPE_* checks in the textutils, fileutils,
87611         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
87612         AC_TYPE_PID_T.
87613
87614 1999-03-28  Jim Meyering  <meyering@ascend.com>
87615
87616         * m4/jm-macros.m4: Define GNU_PACKAGE here.
87617         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
87618         replaced e.g., in the *.sh files of the sh-utils.
87619
87620 1999-03-20  Jim Meyering  <meyering@ascend.com>
87621
87622         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
87623         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
87624         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
87625
87626 1999-03-19  Jim Meyering  <meyering@ascend.com>
87627
87628         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
87629
87630 1999-03-12  Jim Meyering  <meyering@ascend.com>
87631
87632         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
87633
87634 1999-03-07  Jim Meyering  <meyering@ascend.com>
87635
87636         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
87637         declared.
87638
87639 1999-02-17  Jim Meyering  <meyering@ascend.com>
87640
87641         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
87642         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
87643
87644 1999-02-07  Jim Meyering  <meyering@ascend.com>
87645
87646         * m4/group-member.m4: New file -- extracted from sh-utils'
87647         configure.in.
87648
87649         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
87650         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
87651
87652 1999-02-06  Jim Meyering  <meyering@ascend.com>
87653
87654         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
87655         * m4/fnmatch.m4: Likewise.
87656         * m4/getgroups.m4: Likewise.
87657         * m4/lstat.m4: Likewise.
87658         * m4/malloc.m4: Likewise.
87659         * m4/putenv.m4: Likewise.
87660         * m4/realloc.m4: Likewise.
87661         * m4/regex.m4: Likewise.
87662         * m4/stat.m4: Likewise.
87663         * m4/strftime.m4: Likewise.
87664         Suggestion from Alain Magloire.
87665
87666         * m4/chown.m4: Use `.$ac_objext', not `.o'.
87667         * m4/fnmatch.m4: Likewise.
87668         * m4/getgroups.m4: Likewise.
87669         * m4/getline.m4: Likewise.
87670         * m4/lstat.m4: Likewise.
87671         * m4/malloc.m4: Likewise.
87672         * m4/memcmp.m4: Likewise.
87673         * m4/putenv.m4: Likewise.
87674         * m4/realloc.m4: Likewise.
87675         * m4/regex.m4: Likewise.
87676         * m4/stat.m4: Likewise.
87677         * m4/strftime.m4: Likewise.
87678         Suggestion from Alain Magloire.
87679
87680         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
87681         an argument.
87682
87683         * m4/regex.m4: Add a run-time Test for proper operation of
87684         re_compile_pattern.
87685
87686 1999-01-31  Jim Meyering  <meyering@ascend.com>
87687
87688         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
87689
87690 1999-01-30  Jim Meyering  <meyering@ascend.com>
87691
87692         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
87693
87694         * m4/jm-mktime.m4: Make this a wrapper around the official
87695         AM_FUNC_MKTIME rather than my private copy, now that the official one
87696         is up to date.
87697         * m4/mktime.m4: Remove file.
87698
87699         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
87700         * m4/uptime.m4: Likewise.
87701         * m4/uintmax_t.m4: Likewise.
87702
87703 1999-01-28  Jim Meyering  <meyering@ascend.com>
87704
87705         * m4/jm-macros.m4: Use jm_AFS.
87706         * m4/afs.m4: New file (from fileutils' configure.in).
87707
87708         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
87709         * m4/chown.m4: Likewise.
87710         * m4/d-ino.m4: Likewise.
87711         * m4/d-type.m4: Likewise.
87712         * m4/fnmatch.m4: Likewise.
87713         * m4/getgroups.m4: Likewise.
87714         * m4/gettext.m4: Likewise.
87715         * m4/jm-mktime.m4: Likewise.
87716         * m4/jm-winsz2.m4: Likewise.
87717         * m4/lcmessage.m4: Likewise.
87718         * m4/ls-mntd-fs.m4: Likewise.
87719         * m4/malloc.m4: Likewise.
87720         * m4/memcmp.m4: Likewise.
87721         * m4/putenv.m4: Likewise.
87722         * m4/realloc.m4: Likewise.
87723         * m4/st_mtim.m4: Likewise.
87724         * m4/strftime.m4: Likewise.
87725
87726 1999-01-16  Jim Meyering  <meyering@ascend.com>
87727
87728         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
87729         (ARGMATCH_DIE_DECL): Define.
87730
87731 1999-01-12  Jim Meyering  <meyering@ascend.com>
87732
87733         * m4/Makefile.am.in: Rewrite to avoid using fmt.
87734         Reported by Lars Hecking.
87735
87736 1999-01-10  Jim Meyering  <meyering@ascend.com>
87737
87738         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
87739         gross kludge.
87740         * m4/inttypes_h.m4: Likewise.
87741         * m4/lstat.m4: Likewise.
87742         * m4/malloc.m4: Likewise.
87743         * m4/readdir.m4: Likewise.
87744         * m4/realloc.m4: Likewise.
87745         * m4/st_dm_mode.m4: Likewise.
87746         * m4/stat.m4: Likewise.
87747         * m4/utimbuf.m4: Likewise.
87748         * m4/utimes.m4: Likewise.
87749
87750         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
87751         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
87752         comments in config.h.in are meaningful.
87753
87754         * m4/jm-macros.m4: Require autoconf-2.13 here.
87755
87756         * m4/regex.m4: By default, don't use the included regex.c on systems
87757         with glibc 2.  Suggestion from Uli Drepper.
87758
87759 1999-01-02  Jim Meyering  <meyering@ascend.com>
87760
87761         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
87762
87763 1998-12-18  Jim Meyering  <meyering@ascend.com>
87764
87765         * m4/Makefile.am.in (Makefile.am): Simplify rule.
87766         Based on a suggestion from Lars Hecking.
87767
87768 1998-11-16  Paul Eggert  <eggert@twinsun.com>
87769
87770         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
87771
87772 1998-11-16  Jim Meyering  <meyering@ascend.com>
87773
87774         * m4/lfs.m4: Double-quote the `uname...` expression.
87775
87776 1998-11-14  Jim Meyering  <meyering@ascend.com>
87777
87778         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
87779         * m4/stat.m4: Likewise.
87780
87781 1998-11-03  Jim Meyering  <meyering@ascend.com>
87782
87783         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
87784         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
87785
87786 1998-10-18  Jim Meyering  <meyering@ascend.com>
87787
87788         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
87789
87790 1998-10-17  Jim Meyering  <meyering@ascend.com>
87791
87792         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
87793         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
87794         calls for those previously hard-coded headers.  Instead, take a new
87795         parameter.
87796         (jm_CHECK_DECLARATIONS): Reflect interface change.
87797         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
87798         (jm_CHECK_DECL_LOCALTIME_R): New macro.
87799
87800         * m4/mktime.m4: Test for spring-forward gap before long-running test.
87801
87802 1998-10-14  Jim Meyering  <meyering@ascend.com>
87803
87804         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
87805         instead of "TZ=America/Vancouver".  From Paul Eggert.
87806
87807 1998-10-11  Jim Meyering  <meyering@ascend.com>
87808
87809         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
87810         This adds a test for a recently added compatibility fix for mktime.c.
87811         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
87812
87813 1998-09-27  Jim Meyering  <meyering@ascend.com>
87814
87815         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
87816
87817         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
87818         ../configure.in, including a change from Gordon Matzigkeit to allow
87819         cross-compiling for the Hurd.
87820
87821         * m4/glibc.m4: New file/macro to test for the GNU C Library
87822         versions 1 and 2.  From Gordon Matzigkeit.
87823         Indent.
87824
87825 1998-09-21  Jim Meyering  <meyering@ascend.com>
87826
87827         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
87828
87829 1998-08-18  Paul Eggert  <eggert@twinsun.com>
87830
87831         Port nanosecond-resolution times to UnixWare 2.1.2 and
87832         pedantic Solaris 2.6.
87833
87834         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
87835         AC_STRUCT_ST_MTIM.
87836         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
87837         Generate name of ns member, instead of just 1 or undef.
87838         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
87839
87840 1998-08-15  Jim Meyering  <meyering@ascend.com>
87841
87842         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
87843         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
87844         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
87845         instead of jm_TYPE_SSIZE_T.
87846
87847 1998-08-12  Jim Meyering  <meyering@ascend.com>
87848
87849         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
87850
87851 1998-08-02  Jim Meyering  <meyering@ascend.com>
87852
87853         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
87854         in acconfig.h manually.
87855
87856 1998-07-31  Paul Eggert  <eggert@twinsun.com>
87857
87858         * m4/st_mtim.m4: New file.
87859
87860 1998-07-28  Jim Meyering  <meyering@ascend.com>
87861
87862         * m4/utimes.m4: Undef stat.
87863
87864 1998-07-25  Jim Meyering  <meyering@ascend.com>
87865
87866         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
87867         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
87868
87869 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
87870
87871         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
87872         uid and gid actually remain unchanged.
87873
87874 1998-07-07  Jim Meyering  <meyering@ascend.com>
87875
87876         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
87877
87878 1998-07-04  Jim Meyering  <meyering@ascend.com>
87879
87880         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
87881         to prove that this macro can be used in packages without regex.c.
87882
87883 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
87884
87885         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
87886         is to be used.
87887
87888 1998-07-03  Jim Meyering  <meyering@ascend.com>
87889
87890         * m4/gettext.m4: Add -lintl if it's found to be necessary.
87891
87892         * m4/gettext.m4: New file -- from gettext-0.10.35.
87893         * m4/lcmessage.m4: Likewise.
87894         * m4/progtest.m4: Likewise.
87895
87896         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
87897         * m4/jm-macros.m4: Require the new macro.
87898
87899 1998-06-29  Jim Meyering  <meyering@ascend.com>
87900
87901         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
87902         for the definition of NGROUPS (used in a system header included
87903         by sys/mount.h).
87904
87905 1998-06-28  Jim Meyering  <meyering@ascend.com>
87906
87907         * m4/ls-mntd-fs.m4: New file.
87908         * m4/fstypename.m4: New file.
87909
87910         * m4/jm-macros.m4: Require the new macro.
87911         * m4/jm-glibc-io.m4: New file.
87912
87913 1998-05-19  Jim Meyering  <meyering@ascend.com>
87914
87915         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
87916         * m4/lchown.m4: New file.
87917
87918         * m4/Makefile.am.in: New file.
87919         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
87920
87921 1998-05-14  Jim Meyering  <meyering@ascend.com>
87922
87923         * m4/Makefile.am (EXTRA_DIST): Add them.
87924         * m4/jm-macros.m4: New file.
87925         * m4/utimbuf.m4: New file.
87926
87927 1998-05-12  Jim Meyering  <meyering@ascend.com>
87928
87929         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
87930
87931 1998-05-11  Jim Meyering  <meyering@ascend.com>
87932
87933         * m4/isc-posix.m4: New file.
87934
87935 1998-05-10  Jim Meyering  <meyering@ascend.com>
87936
87937         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
87938
87939 1998-05-09  Jim Meyering  <meyering@ascend.com>
87940
87941         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
87942         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
87943         with automake.
87944
87945         * m4/ssize_t.m4: New file.
87946         * m4/mktime.m4: Remove file -- the new automake has this now.
87947
87948 1998-04-26  Jim Meyering  <meyering@ascend.com>
87949
87950         * m4/assert.m4: New file.
87951         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
87952
87953 1998-04-05  Jim Meyering  <meyering@ascend.com>
87954
87955         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
87956         (jm_PREREQ): Use it here.
87957
87958 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
87959
87960         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
87961         in acconfig.h.
87962
87963 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
87964
87965         * m4/prereq.m4: New file.
87966         * m4/error.m4: New file.
87967         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
87968
87969 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
87970
87971         * m4/getline.m4: Don't set am_cv_func_working_getline before the
87972         cache-check for the same variable -- that defeated the purpose of
87973         the test; the test program was never run.  This was a problem only
87974         on systems with losing getline functions -- HP-UX 10.20 is one.
87975         Reported by Bjorn Helgaas.
87976
87977 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
87978
87979         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
87980
87981 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
87982
87983         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
87984
87985         * m4/const.m4: New file.  Use an initializer in this declaration
87986         typedef int charset[2]; const charset x;
87987         Reported by Bob Glickstein.
87988
87989 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
87990
87991         * m4/chown.m4: Fix reversed types on -1 args to chown.
87992         From Kaveh Ghazi.
87993
87994 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
87995
87996         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
87997         Add lseek and memchr.
87998
87999         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
88000         T.E.Dickey <dickey@clark.net> said that some older preprocessors
88001         have a 20-character limit on names.
88002
88003 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
88004
88005         * m4/inttypes_h.m4: New file.
88006         * m4/uintmax_t.m4: New file.
88007         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
88008
88009
88010         -----
88011
88012         Local Variables:
88013         coding: utf-8
88014         End:
88015
88016         Copyright (C) 1997-2011 Free Software Foundation, Inc.
88017
88018         Copying and distribution of this file, with or without
88019         modification, are permitted provided the copyright notice
88020         and this notice are preserved.